Files
projekt-plattform/skill/viewer/dist/assets/index-DpwYxPe8.js

68 lines
145 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Nc=Object.defineProperty;var ao=e=>{throw TypeError(e)};var Cc=(e,t,n)=>t in e?Nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>Cc(e,typeof t!="symbol"?t+"":t,n),ji=(e,t,n)=>t.has(e)||ao("Cannot "+n);var h=(e,t,n)=>(ji(e,t,"read from private field"),n?n.call(e):t.get(e)),ie=(e,t,n)=>t.has(e)?ao("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(ji(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),W=(e,t,n)=>(ji(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const el=!1;var Ni=Array.isArray,Pc=Array.prototype.indexOf,qs=Array.prototype.includes,Ci=Array.from,tl=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Mc=Object.getOwnPropertyDescriptors,$c=Object.prototype,zc=Array.prototype,nl=Object.getPrototypeOf,oo=Object.isExtensible;const vi=()=>{};function Fc(e){for(var t=0;t<e.length;t++)e[t]()}function rl(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Uc(e,t,n=!1){return e===void 0?n?t():t:e}const Dt=2,ls=4,Pi=8,sl=1<<24,gn=16,bn=32,dr=64,pa=128,Na=256,wn=512,dt=1024,ze=2048,Qt=4096,Mt=8192,Lt=16384,ps=32768,ki=1<<25,cs=65536,yi=1<<17,Bc=1<<18,hs=1<<19,Hc=1<<20,In=1<<25,xi=1<<21,Jr=1<<22,cr=1<<23,Bs=Symbol("$state"),il=Symbol("component"),jc=Symbol(""),mi=Symbol("attributes"),ha=Symbol("class"),Gc=Symbol("style"),Cs=Symbol("text"),gi=Symbol("form reset"),Js=new class extends Error{constructor(){super(...arguments);Y(this,"name","StaleReactionError");Y(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Wc=1,qc=2,al=4,Vc=8,Yc=16,Zc=1,Kc=2,ol={},ft=Symbol("uninitialized"),ll="http://www.w3.org/1999/xhtml",Xc="http://www.w3.org/2000/svg",Qc="http://www.w3.org/1998/Math/MathML";function Jc(){console.warn("https://svelte.dev/e/derived_inert")}function eu(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function tu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function cl(e){return e===this.v}function nu(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ul(e){return!nu(e,this.v)}function ru(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function su(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function iu(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function au(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ou(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function lu(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function uu(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function du(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let hu=!1,$t=null;function us(e){$t=e}function Ca(e,t=!1,n){$t={p:$t,i:!1,c:null,e:null,s:e,x:null,r:pe,l:null}}function Pa(e){var t=$t,n=t.e;if(n!==null){t.e=null;for(var r of n)Ml(r)}return t.i=!0,$t=t.p,fl(e)}function fl(e={}){return tl(e,il,{value:!0}),e}function dl(){return!0}let Rr=[];function pl(){var e=Rr;Rr=[],Fc(e)}function lr(e){if(Rr.length===0&&!Hs){var t=Rr;queueMicrotask(()=>{t===Rr&&pl()})}Rr.push(e)}function vu(){for(;Rr.length>0;)pl()}const mu=-7169;function rt(e,t){e.f=e.f&mu|t}function Ma(e){(e.f&wn)!==0||e.deps===null?rt(e,dt):rt(e,Qt)}function hl(e,t){(e.f&ze)!==0?t.set(e,ze):(e.f&Qt)!==0&&t.get(e)!==ze&&t.set(e,Qt),rt(e,dt)}let lo=!1;function gu(){lo||(lo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n[gi])==null||t.call(n)})},{capture:!0}))}function ei(e){var t=re,n=pe;ln(null),Nn(null);try{return e()}finally{ln(t),Nn(n)}}function vl(e,t,n,r=n){e.addEventListener(t,()=>ei(n));const s=e[gi];s?e[gi]=()=>{s(),r(!0)}:e[gi]=()=>r(!0),gu()}function _u(e,t,n,r){const s=$a;var i=e.filter(_=>!_.settled),o=t.map(s);if(n.length===0&&i.length===0){r(o);return}var a=pe,f=wu(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(_=>_.promise)):null;function d(_){if((a.f&Lt)===0){f();try{r([...o,..._])}catch(g){On(g,a)}Ti()}}var w=ml();if(n.length===0){u.then(()=>d([])).finally(w);return}function m(){Promise.all(n.map(_=>bu(_))).then(d).catch(_=>On(_,a)).finally(w)}u?u.then(()=>{if((a.f&Lt)!==0){w();return}f(),m(),Ti()}):m()}function wu(){var e=pe,t=re,n=$t,r=z;return function(i=!0){Nn(e),ln(t),us(n),i&&(e.f&Lt)===0&&(r==null||r.activate(),r==null||r.apply())}}function Ti(e=!0){Nn(null),ln(null),us(null),e&&(z==null||z.deactivate())}function ml(){var e=pe,t=e.b,n=z,r=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,n),n.increment(r,e),()=>{t==null||t.update_pending_count(-1,n),n.decrement(r,e)}}function $a(e){var t=Dt|ze;return pe!==null&&(pe.f|=hs),{ctx:$t,deps:null,effects:null,equals:cl,f:t,fn:e,reactions:null,rv:0,v:ft,wv:0,parent:pe,ac:null}}const Ps=Symbol("obsolete");function bu(e,t,n){let r=pe;r===null&&su();var s=void 0,i=Fr(ft),o=!re,a=new Set;return $u(()=>{var _,g;var f=pe,u=rl();s=u.promise;try{Promise.resolve(e()).then(u.resolve,E=>{E!==Js&&u.reject(E)}).finally(Ti)}catch(E){u.reject(E),Ti()}var d=z;if(o){if((f.f&ps)!==0)var w=ml();if((_=r.b)!=null&&_.is_rendered())(g=d.async_deriveds.get(f))==null||g.reject(Ps);else for(const E of a.values())E.reject(Ps);a.add(u),d.async_deriveds.set(f,u)}const m=(E,x=void 0)=>{w==null||w(),a.delete(u),x!==Ps&&(d.activate(),x?(i.f|=cr,fs(i,x)):((i.f&cr)!==0&&(i.f^=cr),fs(i,E)),d.deactivate())};u.promise.then(m,E=>m(null,E||"unknown"))}),Pl(()=>{for(const f of a)f.reject(Ps)}),new Promise(f=>{function u(d){function w(){d===s?f(i):u(s)}d.then(w,w)}u(s)})}function K(e){const t=$a(e);return jl(t),t}function gl(e){const t=$a(e);return t.equals=ul,t}function ku(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)jt(t[n])}}function za(e){var t,n=pe,r=e.parent;if(!pr&&r!==null&&e.v!==ft&&(r.f&(Lt|Mt))!==0)return Jc(),e.v;Nn(r);try{ku(e),t=Vl(e)}finally{Nn(n)}return t}function _l(e){var t=za(e);if(!e.equals(t)&&(e.wv=Wl(),(!(z!=null&&z.is_fork)||e.deps===null)&&(z!==null?(z.capture(e,t,!0),ur==null||ur.capture(e,t,!0)):e.v=t,e.deps===null))){rt(e,dt);return}pr||(xt!==null?(Ba()||z!=null&&z.is_fork)&&xt.set(e,t):Ma(e))}function yu(e){var t;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),n.ac!==null&&ei(()=>{n.ac.abort(Js),n.ac=null}),n.fn!==null&&(n.teardown=vi),Vs(n,0),Ha(n))}function wl(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&ds(t)}let Gi=null,Zr=null,z=null,ur=null,xt=null,va=null,Hs=!1,Wi=!1,js=null,_i=null;var co=0;let xu=1;var ns,rs,ss,Gn,is,Wn,Zs,Sn,En,as,Dr,ae,ma,bl,ga,Ms,_a,kl,yl,xl,Kr,Tu,$s;const Ii=class Ii{constructor(){ie(this,ae);Y(this,"id",xu++);Y(this,"started",!1);Y(this,"linked",!0);Y(this,"prev",null);Y(this,"next",null);Y(this,"async_deriveds",new Map);Y(this,"current",new Map);Y(this,"previous",new Map);ie(this,ns,new Set);ie(this,rs,new Set);ie(this,ss,0);ie(this,Gn,new Map);ie(this,is,null);ie(this,Wn,[]);ie(this,Zs,[]);ie(this,Sn,new Map);ie(this,En,new Map);ie(this,as,new Set);Y(this,"is_fork",!1);ie(this,Dr,!1);Zr===null?Gi=Zr=this:(Zr.next=this,this.prev=Zr),Zr=this}skip_effect(t){h(this,En).has(t)||h(this,En).set(t,{d:[],m:[]}),h(this,as).delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=h(this,En).get(t);if(r){h(this,En).delete(t);for(var s of r.d)rt(s,ze),n(s);for(s of r.m)rt(s,Qt),n(s)}h(this,as).add(t)}capture(t,n,r=!1){t.v!==ft&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&cr)===0&&(this.current.set(t,[n,r]),xt==null||xt.set(t,n)),this.is_fork||(t.v=n)}activate(){z=this}deactivate(){z=null,xt=null}flush(){try{Wi=!0,z=this,W(this,ae,Ms).call(this)}finally{co=0,va=null,js=null,_i=null,Wi=!1,z=null,xt=null,Ln.clear()}}discard(){var t;for(const n of h(this,rs))n(this);h(this,rs).clear();for(const n of this.async_deriveds.values())n.reject(Ps);W(this,ae,$s).call(this),(t=h(this,is))==null||t.resolve()}register_created_effect(t){h(this,Zs).push(t)}increment(t,n){if(ne(this,ss,h(this,ss)+1),t){let r=h(this,Gn).get(n)??0;h(this,Gn).set(n,r+1)}}decrement(t,n){if(ne(this,ss,h(this,ss)-1),t){let r=h(this,Gn).get(n)??0;r===1?h(this,Gn).delete(n):h(this,Gn).set(n,r-1)}h(this,Dr)||(ne(this,Dr,!0),lr(()=>{ne(this,Dr,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[n,r]of t)this.add_dirty_reaction(n,r);t.clear()}add_dirty_reaction(t,n){(n===ze||h(this,Sn).get(t)!==ze)&&h(this,Sn).set(t,n)}oncommit(t){h(this,ns).add(t)}ondiscard(t){h(this,rs).add(t)}settled(){return(h(this,is)??ne(this,is,rl())).promise}static ensure(){if(z===null){const t=z=new Ii;!Wi&&!Hs&&lr(()=>{t.started||t.flush()})}return z}apply(){{xt=null;return}}schedule(t){var n;if(va=t,(n=t.b)!=null&&n.is_pending&&(t.f&(ls|Pi|sl))!==0&&(t.f&ps)===0){t.b.defer_effect(t);return}h(this,Wn).push(t)}};ns=new WeakMap,rs=new WeakMap,ss=new WeakMap,Gn=new WeakMap,is=new WeakMap,Wn=new WeakMap,Zs=new WeakMap,Sn=new WeakMap,En=new WeakMap,as=new WeakMap,Dr=new WeakMap,ae=new WeakSet,ma=function(){if(this.is_fork)return!0;for(const t of h(this,Gn).keys())if(!W(this,ae,bl).call(this,t))return!0;return!1},bl=function(t){for(var n=t;n!==null;n=n.parent)if(h(this,En).has(n))return!0;return!1},ga=function(){var t=[];for(const i of h(this,Wn))if(!((i.f&Lt)!==0||(i.f&(ze|Qt))===0)){for(var n=i,r=!1;n.parent!==null;){n=n.parent;var s=n.f;if((s&(dr|bn))!==0){if((s&dt)===0){r=!0;break}n.f^=dt}}r||t.push(n)}return ne(this,Wn,[]),t},Ms=function(){var a,f,u,d;this.started=!0;for(const[w,m]of h(this,Sn))rt(w,m),this.schedule(w);this.apply();for(var t=js=[],n=[],r=_i=[];h(this,Wn).length>0;){co++>1e3&&(W(this,ae,$s).call(this),Eu());for(const w of W(this,ae,ga).call(this))try{W(this,ae,_a).call(this,w,t,n)}catch(m){throw El(w),W(this,ae,ma).call(this)||this.discard(),m}}if(z=null,r.length>0){var s=Ii.ensure();for(const w of r)s.schedule(w)}if(js=null,_i=null,W(this,ae,ma).call(this)){W(this,ae,Kr).call(this,n),W(this,ae,Kr).call(this,t);for(const[w,m]of h(this,En))Sl(w,m);r.length>0&&W(a=z,ae,Ms).call(a);return}const i=W(this,ae,kl).call(this);if(i){W(this,ae,Kr).call(this,n),W(this,ae,Kr).call(this,t),W(f=i,ae,xl).call(f,this);return}h(this,Sn).clear();for(const w of h(this,ns))w(this);h(this,ns).clear(),ur=this,uo(n),uo(t),ur=null,(u=h(this,is))==null||u.resolve();var o=z;h(this,ss)===0&&(h(this,Wn).length===0||o!==null)&&W(this,ae,$s).call(this),o!==null&&(Ln.clear(),W(d=o,ae,Ms).call(d))},_a=function(t,n,r){t.f^=dt;for(var s=t.first;s!==null;){var i=s.f,o=(i&(bn|dr))!==0,a=o&&(i&dt)!==0,f=a||(i&Mt)!==0||h(this,En).has(s);if(!f&&s.fn!==null){o?s.f^=dt:(i&ls)!==0?n.push(s):ni(s)&&((i&gn)!==0&&this.add_dirty_reaction(s,Qt),ds(s));var u=s.first;if(u!==null){s=u;continue}}for(;s!==null;){var d=s.next;if(d!==null){s=d;break}s=s.parent}}},kl=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&W(this,ae,yl).call(this,t))return t;return null},yl=function(t){for(const[n,[,r]]of this.current)if(!r&&t.current.has(n))return!0;return!1},xl=function(t){var r;for(const[s,i]of t.current)!this.previous.has(s)&&t.previous.has(s)&&this.previous.set(s,t.previous.get(s)),this.current.set(s,i);for(const[s,i]of t.async_deriveds){const o=this.async_deriveds.get(s);o&&i.promise.then(o.resolve).catch(o.reject)}t.async_deriveds.clear(),this.transfer_reactions(h(t,Sn));const n=s=>{var i=s.reactions;if(i!==null&&!((s.f&Dt)!==0&&(s.f&(ze|Qt))===0))for(const f of i){var o=f.f;if((o&Dt)!==0)n(f);else{var a=f;o&(Jr|gn)&&!this.async_deriveds.has(a)&&(h(this,Sn).delete(a),rt(a,ze),this.schedule(a))}}};for(const s of this.current.keys())n(s);this.oncommit(()=>t.discard()),W(r=t,ae,$s).call(r),z=this,W(this,ae,Ms).call(this)},Kr=function(t){for(var n=0;n<t.length;n+=1)hl(t[n],h(this,Sn))},Tu=function(){var w,m;for(let _=Gi;_!==null;_=_.next){var t=_.id<this.id,n=[];for(const[g,[E,x]]of this.current){if(_.current.has(g)){var r=_.current.get(g)[0];if(t&&E!==r)_.current.set(g,[E,x]);else continue}n.push(g)}if(t)for(const[g,E]of this.async_deriveds){const x=_.async_deriveds.get(g);x&&E.promise.then(x.resolve).catch(x.reject)}var s=[..._.current.keys()].filter(g=>!_.current.get(g)[1]);if(!(!_.started||s.length===0)){var i=s.filter(g=>!this.current.has(g));if(i.length===0)t&&_.discard();else if(n.length>0){if(t)for(const g of h(this,as))_.unskip_effect(g,E=>{var x;(E.f&(gn|Jr))!==0?_.schedule(E):W(x=_,ae,Kr).call(x,[E])});_.activate();var o=new Set,a=new Map;for(var f of n)Tl(f,i,o,a);a=new Map;var u=[..._.current].filter(([g,E])=>{const x=this.current.get(g);return x?x[0]!==E[0]||x[1]!==E[1]:!0}).map(([g])=>g);if(u.length>0)for(const g of h(this,Zs))(g.f&(Lt|Mt|yi))===0&&Fa(g,u,a)&&((g.f&(Jr|gn))!==0?(rt(g,ze),_.schedule(g)):_.add_dirty_reaction(g,ze));if(h(_,Wn).length>0&&!h(_,Dr)){_.apply();for(var d of W(w=_,ae,ga).call(w))W(m=_,ae,_a).call(m,d,[],[])}_.deactivate()}}}},$s=function(){if(this.linked){var t=this.prev,n=this.next;t===null?Gi=n:t.next=n,n===null?Zr=t:n.prev=t,this.linked=!1}};let zr=Ii;function Su(e){var t=Hs,n=ur;ur=null,Hs=!0;try{for(var r;;){if(vu(),z===null)return r;z.flush()}}finally{Hs=t,ur=n}}function Eu(){try{cu()}catch(e){On(e,va)}}let vn=null;function uo(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Lt|Mt))===0&&ni(r)&&(vn=new Set,ds(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Ul(r),(vn==null?void 0:vn.size)>0)){Ln.clear();for(const s of vn){if((s.f&(Lt|Mt))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)vn.has(o)&&(vn.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const f=i[a];(f.f&(Lt|Mt))===0&&ds(f)}}vn.clear()}}vn=null}}function Tl(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&Dt)!==0?Tl(s,t,n,r):(i&(Jr|gn))!==0&&(i&ze)===0&&Fa(s,t,r)&&(rt(s,ze),Ua(s))}}function Fa(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(qs.call(t,s))return!0;if((s.f&Dt)!==0&&Fa(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Ua(e){z.schedule(e)}function Sl(e,t){if(!((e.f&bn)!==0&&(e.f&dt)!==0)){(e.f&ze)!==0?t.d.push(e):(e.f&Qt)!==0&&t.m.push(e),rt(e,dt);for(var n=e.first;n!==null;)Sl(n,t),n=n.next}}function El(e){rt(e,dt);for(var t=e.first;t!==null;)El(t),t=t.next}let Si=new Set;const Ln=new Map;let Al=!1;function Fr(e,t){var n={f:0,v:e,reactions:null,equals:cl,rv:0,wv:0};return n}function He(e,t){const n=Fr(e);return jl(n),n}function Au(e,t=!1,n=!0){const r=Fr(e);return t||(r.equals=ul),r}function ee(e,t,n=!1){re!==null&&(!_n||(re.f&yi)!==0)&&dl()&&(re.f&(Dt|gn|Jr|yi))!==0&&(Dn===null||!Dn.has(e))&&du();let r=n?Or(t):t;return fs(e,r,_i)}var Ar=null,wa=0;function fs(e,t,n=null){if(!e.equals(t)){pr?Ln.set(e,t):Ln.has(e)||Ln.set(e,e.v);var r=zr.ensure();if(r.capture(e,t),(e.f&Dt)!==0){const s=e;(e.f&ze)!==0&&za(s),xt===null&&Ma(s)}e.wv=Wl(),Ar=null,wa=0,Rl(e,ze,n),Ar=null,pe!==null&&(pe.f&dt)!==0&&(pe.f&(bn|dr))===0&&(rn===null?Fu([e]):rn.push(e)),!r.is_fork&&Si.size>0&&!Al&&Ru()}return t}function Ru(){Al=!1;for(const e of Si){(e.f&dt)!==0&&rt(e,Qt);let t;try{t=ni(e)}catch{t=!0}t&&ds(e)}Si.clear()}function Gs(e){ee(e,e.v+1)}function Rl(e,t,n){var r=e.reactions;if(r!==null){var s=r.length;if(wa+=s,wa>1e5&&Ar===null&&(Ar=new Set),Ar!==null){if(Ar.has(e))return;Ar.add(e)}for(var i=0;i<s;i++){var o=r[i],a=o.f,f=(a&ze)===0;if(f&&rt(o,t),(a&yi)!==0)Si.add(o);else if((a&Dt)!==0){var u=o;xt==null||xt.delete(u),Rl(u,Qt,n)}else if(f){var d=o;(a&gn)!==0&&vn!==null&&vn.add(d),n!==null?n.push(d):Ua(d)}}}}function Or(e){if(typeof e!="object"||e===null||Bs in e||il in e)return e;const t=nl(e);if(t!==$c&&t!==zc)return e;var n=new Map,r=Ni(e),s=He(0),i=$r,o=a=>{if($r===i)return a();var f=re,u=$r;ln(null),vo(i);var d=a();return ln(f),vo(u),d};return r&&n.set("length",He(e.length)),new Proxy(e,{defineProperty(a,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&uu();var d=n.get(f);return d===void 0?o(()=>{var w=He(u.value);return n.set(f,w),w}):ee(d,u.value,!0),!0},deleteProperty(a,f){var u=n.get(f);if(u===void 0){if(f in a){const d=o(()=>He(ft));n.set(f,d),Gs(s)}}else ee(u,ft),Gs(s);return!0},get(a,f,u){var _;if(f===Bs)return e;var d=n.get(f),w=f in a;if(d===void 0&&(!w||(_=Us(a,f))!=null&&_.writable)&&(d=o(()=>{var g=Or(w?a[f]:ft),E=He(g);return E}),n.set(f,d)),d!==void 0){var m=c(d);return m===ft?void 0:m}return Reflect.get(a,f,u)},getOwnPropertyDescriptor(a,f){var m;(m=this.has)==null||m.call(this,a,f);var u=Reflect.getOwnPropertyDescriptor(a,f),d=n.get(f);if(d!==void 0){var w=c(d);if(w===ft)return;if(u&&"value"in u)u.value=w;else return{enumerable:!0,configurable:!0,value:w,writable:!0}}return u},has(a,f){var m;if(f===Bs)return!0;var u=n.get(f),d=u!==void 0&&u.v!==ft||Reflect.has(a,f);if(u!==void 0||(pe!==null||re!==null)&&(!d||(m=Us(a,f))!=null&&m.writable)){u===void 0&&(u=o(()=>{var _=d?Or(a[f]):ft,g=He(_);return g}),n.set(f,u));var w=c(u);if(w===ft)return!1}return d},set(a,f,u,d){var se;var w=n.get(f),m=f in a;if(r&&f==="length")for(var _=u;_<w.v;_+=1){var g=n.get(_+"");g!==void 0?ee(g,ft):_ in a&&(g=o(()=>He(ft)),n.set(_+"",g))}if(w===void 0)(!m||(se=Us(a,f))!=null&&se.writable)&&(w=o(()=>He(void 0)),ee(w,Or(u)),n.set(f,w));else{m=w.v!==ft;var E=o(()=>Or(u));ee(w,E)}var x=Reflect.getOwnPropertyDescriptor(a,f);if(x!=null&&x.set&&x.set.call(d,u),!m){if(r&&typeof f=="string"){var R=n.get("length"),te=Number(f);Number.isInteger(te)&&te>=R.v&&ee(R,te+1)}Gs(s)}return!0},ownKeys(a){c(s);var f=Reflect.ownKeys(a).filter(w=>{var m=n.get(w);return m===void 0||m.v!==ft});for(var[u,d]of n)d.v!==ft&&!(u in a)&&f.push(u);return f},setPrototypeOf(){fu()}})}function fo(e){try{if(e!==null&&typeof e=="object"&&Bs in e)return e[Bs]}catch{}return e}function Ol(e,t){return Object.is(fo(e),fo(t))}var po,Il,Ll,Dl;function Ou(){if(po===void 0){po=window,Il=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ll=Us(t,"firstChild").get,Dl=Us(t,"nextSibling").get,oo(e)&&(e[ha]=void 0,e[mi]=null,e[Gc]=void 0,e.__e=void 0),oo(n)&&(n[Cs]=void 0)}}function fr(e=""){return document.createTextNode(e)}function Vn(e){return Ll.call(e)}function ti(e){return Dl.call(e)}function F(e,t){return Vn(e)}function gt(e,t=!1){{var n=Vn(e);return n instanceof Comment&&n.data===""?ti(n):n}}function I(e,t=!1){return Vn(e)}function S(e,t=1,n=!1){let r=e;for(;t--;)r=ti(r);return r}function Iu(e){e.textContent=""}function Nl(){return!1}function Cl(e,t,n){return t==null||t===ll?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Lu(e){var t=pe;if(t===null)return re.f|=cr,e;if((t.f&ps)===0&&(t.f&ls)===0)throw e;On(e,t)}function On(e,t){if(e===ol)throw e;if(!(t!==null&&(t.f&Lt)!==0)){for(;t!==null;){if((t.f&pa)!==0&&(t.f&(Lt|ki))===0){if((t.f&ps)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}}function Du(e){pe===null&&(re===null&&lu(),ou()),pr&&au()}function Nu(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Kn(e,t){var n=pe;n!==null&&(n.f&Mt)!==0&&(e|=Mt);var r={ctx:$t,deps:null,nodes:null,f:e|ze|wn,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};z==null||z.register_created_effect(r);var s=r;if((e&ls)!==0)js!==null?js.push(r):zr.ensure().schedule(r);else if(t!==null){try{ds(r)}catch(o){throw jt(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&hs)===0&&(s=s.first,(e&gn)!==0&&(e&cs)!==0&&s!==null&&(s.f|=cs))}if(s!==null&&(s.parent=n,n!==null&&Nu(s,n),re!==null&&(re.f&Dt)!==0&&(e&dr)===0)){var i=re;(i.effects??(i.effects=[])).push(s)}return r}function Ba(){return re!==null&&!_n}function Pl(e){const t=Kn(Pi,null);return rt(t,dt),t.teardown=e,t}function Cu(e){Du();var t=pe.f,n=!re&&(t&bn)!==0&&$t!==null&&!$t.i;if(n){var r=$t;(r.e??(r.e=[])).push(e)}else return Ml(e)}function Ml(e){return Kn(ls|Hc,e)}function Pu(e){zr.ensure();const t=Kn(dr|hs,e);return(n={})=>new Promise(r=>{n.outro?Mr(t,()=>{jt(t),r(void 0)}):(jt(t),r(void 0))})}function Mu(e){return Kn(ls,e)}function $u(e){return Kn(Jr|hs,e)}function $l(e,t=0){return Kn(Pi|t,e)}function B(e,t=[],n=[],r=[]){_u(r,t,n,s=>{Kn(Pi,()=>{e(...s.map(c))})})}function Mi(e,t=0){var n=Kn(gn|t,e);return n}function on(e){return Kn(bn|hs,e)}function zl(e){var t=e.teardown;if(t!==null){const n=pr,r=re;ho(!0),ln(null);try{t.call(null)}catch(s){On(s,e.parent)}finally{ho(n),ln(r)}}}function Ha(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ei(()=>{s.abort(Js)});var r=n.next;(n.f&dr)!==0?n.parent=null:jt(n,t),n=r}}function zu(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&bn)===0&&jt(t),t=n}}function jt(e,t=!0){var n=!1;(t||(e.f&Bc)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fl(e.nodes.start,e.nodes.end),n=!0),e.f|=ki,Ha(e,t&&!n),Vs(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();zl(e),e.f^=ki,e.f|=Lt;var s=e.parent;s!==null&&s.first!==null&&Ul(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fl(e,t){for(;e!==null;){var n=e===t?null:ti(e);e.remove(),e=n}}function Ul(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Mr(e,t,n=!0){var r=[];e.f|=Na,Bl(e,r,!0);var s=()=>{n&&jt(e),t&&t()},i=r.length;if(i>0){var o=()=>--i||s();for(var a of r)a.out(o)}else s()}function Bl(e,t,n){if((e.f&Mt)===0){e.f^=Mt;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var s=e.first;s!==null;){var i=s.next;if((s.f&dr)===0){var o=(s.f&cs)!==0||(s.f&bn)!==0&&(e.f&gn)!==0;Bl(s,t,o?n:!1)}s=i}}}function Ei(e){e.f&=~Na,Hl(e,!0)}function Hl(e,t){if((e.f&Na)===0&&(e.f&Mt)!==0){e.f^=Mt,(e.f&dt)===0&&(rt(e,ze),zr.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&cs)!==0||(n.f&bn)!==0;Hl(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)(o.is_global||t)&&o.in()}}function ja(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ti(n);t.append(n),n=s}}let pr=!1;function ho(e){pr=e}let re=null,_n=!1;function ln(e){re=e}let pe=null;function Nn(e){pe=e}let Dn=null;function jl(e){re!==null&&((re.f&xi)!==0||(re.f&Dt)!==0)&&(Dn??(Dn=new Set)).add(e)}let Ht=null,Kt=0,rn=null;function Fu(e){rn=e}let Gl=1,Ir=0,$r=Ir;function vo(e){$r=e}function Wl(){return++Gl}function ni(e){var t=e.f;if((t&ze)!==0)return!0;if((t&Qt)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(ni(i)&&_l(i),i.wv>e.wv)return!0}(t&wn)!==0&&xt===null&&rt(e,dt)}return!1}function ql(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Dn!==null&&Dn.has(e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&Dt)!==0?ql(i,t,!1):t===i&&(n?rt(i,ze):(i.f&dt)!==0&&rt(i,Qt),Ua(i))}}function Vl(e){var t=Ht,n=Kt,r=rn,s=re,i=Dn,o=$t,a=_n,f=$r,u=e.f;Ht=null,Kt=0,rn=null,re=(u&(bn|dr))===0?e:null,Dn=null,us(e.ctx),_n=!1,$r=++Ir,e.ac!==null&&(ei(()=>{e.ac.abort(Js)}),e.ac=null);try{e.f|=xi;var d=e.fn,w=d();e.f|=ps;var m=mo(e);if(dl()&&rn!==null&&!_n&&m!==null&&(e.f&(Dt|Qt|ze))===0)for(var _=0;_<rn.length;_++)ql(rn[_],e);if(s!==null&&s!==e){if(Ir++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=Ir;if(t!==null)for(const g of t)g.rv=Ir;rn!==null&&(r===null?r=rn:r.push(...rn))}return(e.f&cr)!==0&&(e.f^=cr),w}catch(g){return mo(e),Lu(g)}finally{e.f^=xi,Ht=t,Kt=n,rn=r,re=s,Dn=i,us(o),_n=a,$r=f}}function mo(e){var s;var t=e.deps,n=z==null?void 0:z.is_fork;if(Ht!==null){var r;if(n||Vs(e,Kt),t!==null&&Kt>0)for(t.length=Kt+Ht.length,r=0;r<Ht.length;r++)t[Kt+r]=Ht[r];else e.deps=t=Ht;if(Ba()&&(e.f&wn)!==0)for(r=Kt;r<t.length;r++)((s=t[r]).reactions??(s.reactions=[])).push(e)}else!n&&t!==null&&Kt<t.length&&(Vs(e,Kt),t.length=Kt);return t}function Uu(e,t){let n=t.reactions;if(n!==null){var r=Pc.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&Dt)!==0&&(Ht===null||!qs.call(Ht,t))){var i=t;(i.f&wn)!==0&&(i.f^=wn),i.v!==ft&&Ma(i),i.ac!==null&&ei(()=>{i.ac.abort(Js),i.ac=null,rt(i,ze)}),yu(i),Vs(i,0)}}function Vs(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Uu(e,n[r])}function ds(e){var t=e.f;if((t&Lt)===0){rt(e,dt);var n=pe;pe=e;try{(t&(gn|sl))!==0?zu(e):Ha(e),zl(e);var r=Vl(e);e.teardown=typeof r=="function"?r:null,e.wv=Gl;var s;el&&hu&&(e.f&ze)!==0&&e.deps}finally{pe=n}}}async function Yl(){await Promise.resolve(),Su()}function c(e){var t=e.f,n=(t&Dt)!==0;if(re!==null&&!_n){var r=pe!==null&&(pe.f&Lt)!==0;if(!r&&(Dn===null||!Dn.has(e))){var s=re.deps;if((re.f&xi)!==0)e.rv<Ir&&(e.rv=Ir,Ht===null&&s!==null&&s[Kt]===e?Kt++:Ht===null?Ht=[e]:Ht.push(e));else{re.deps??(re.deps=[]),qs.call(re.deps,e)||re.deps.push(e);var i=e.reactions;i===null?e.reactions=[re]:qs.call(i,re)||i.push(re)}}}if(pr&&Ln.has(e))return Ln.get(e);if(n){var o=e;if(pr){var a=o.v;return((o.f&dt)===0&&o.reactions!==null||Kl(o))&&(a=za(o)),Ln.set(o,a),a}var f=(o.f&wn)===0&&!_n&&re!==null&&(re.f&wn)!==0,u=(o.f&ps)===0;ni(o)&&(f&&(o.f|=wn),_l(o)),f&&!u&&(wl(o),Zl(o))}if(xt!=null&&xt.has(e))return xt.get(e);if((e.f&cr)!==0)throw e.v;return e.v}function Zl(e){if(e.f|=wn,e.deps!==null)for(const n of e.deps){var t=n.reactions;t===null?n.reactions=[e]:qs.call(t,e)||t.push(e),(n.f&Dt)!==0&&(n.f&wn)===0&&(wl(n),Zl(n))}}function Kl(e){if(e.v===ft)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ln.has(t)||(t.f&Dt)!==0&&Kl(t))return!0;return!1}function Ga(e){var t=_n;try{return _n=!0,e()}finally{_n=t}}const Bu=["touchstart","touchmove"];function Hu(e){return Bu.includes(e)}const Lr=Symbol("events"),Xl=new Set,ba=new Set;function Qe(e,t,n){(t[Lr]??(t[Lr]={}))[e]=n}function Ql(e){for(var t=0;t<e.length;t++)Xl.add(e[t]);for(var n of ba)n(e)}let qi=null,Vi=!1;function go(e){var E,x;var t=this,n=t.ownerDocument,r=e.type,s=((E=e.composedPath)==null?void 0:E.call(e))||[],i=s[0]||e.target;qi=e,Vi||(Vi=!0,setTimeout(()=>{Vi=!1,qi=null}));var o=0,a=qi===e&&e[Lr];if(a){var f=s.indexOf(a);if(f!==-1&&(t===document||t===window)){e[Lr]=t;return}var u=s.indexOf(t);if(u===-1)return;f<=u&&(o=f)}if(i=s[o]||e.target,i!==t){tl(e,"currentTarget",{configurable:!0,get(){return i||n}});var d=re,w=pe;ln(null),Nn(null);try{for(var m,_=[];i!==null&&i!==t;){try{var g=(x=i[Lr])==null?void 0:x[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(R){m?_.push(R):m=R}if(e.cancelBubble)break;o++,i=o<s.length?s[o]:null}if(m){for(let R of _)queueMicrotask(()=>{throw R});throw m}}finally{e[Lr]=t,delete e.currentTarget,ln(d),Nn(w)}}}var Qo;const Yi=((Qo=globalThis==null?void 0:globalThis.window)==null?void 0:Qo.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ju(e){return(Yi==null?void 0:Yi.createHTML(e))??e}function Gu(e){var t=Cl("template");return t.innerHTML=ju(e.replaceAll("<!>","<!---->")),t.content}function Ys(e,t){var n=pe;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function P(e,t){var n=(t&Zc)!==0,r=(t&Kc)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=Gu(i?e:"<!>"+e),n||(s=Vn(s)));var o=r||Il?document.importNode(s,!0):s.cloneNode(!0);if(n){var a=Vn(o),f=o.lastChild;Ys(a,f)}else Ys(o,o);return o}}function Xr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=fr();return e.append(t,n),Ys(t,n),e}function A(e,t){e!==null&&e.before(t)}function Wu(e){let t=0,n=Fr(0),r;return()=>{Ba()&&(c(n),$l(()=>(t===0&&(r=Ga(()=>e(()=>Gs(n)))),t+=1,()=>{lr(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Gs(n))})})))}}var qu=cs|hs;function Vu(e,t,n,r){new Yu(e,t,n,r)}var sn,Da,an,Nr,It,Vt,Ct,Yt,An,Cr,or,os,Ks,qn,Li,ue,Zu,Ku,ka,ar,Xu,ya,zs,wi,xa,Ta;class Yu{constructor(t,n,r,s){ie(this,ue);Y(this,"parent");Y(this,"is_pending",!1);Y(this,"transform_error");ie(this,sn);ie(this,Da,null);ie(this,an);ie(this,Nr);ie(this,It);ie(this,Vt,null);ie(this,Ct,null);ie(this,Yt,null);ie(this,An,null);ie(this,Cr,0);ie(this,or,0);ie(this,os,!1);ie(this,Ks,new Map);ie(this,qn,null);ie(this,Li,Wu(()=>(ne(this,qn,Fr(h(this,Cr))),()=>{ne(this,qn,null)})));var i;ne(this,sn,t),ne(this,an,n),ne(this,Nr,o=>{var a=pe;a.b=this,a.f|=pa,r(o)}),this.parent=pe.b,this.transform_error=s??((i=this.parent)==null?void 0:i.transform_error)??(o=>o),ne(this,It,Mi(()=>{W(this,ue,ya).call(this)},qu))}defer_effect(t){hl(t,h(this,Ks))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,an).pending}update_pending_count(t,n){W(this,ue,xa).call(this,t,n),ne(this,Cr,h(this,Cr)+t),!(!h(this,qn)||h(this,os))&&(ne(this,os,!0),lr(()=>{ne(this,os,!1),h(this,qn)&&fs(h(this,qn),h(this,Cr))}))}get_effect_pending(){return h(this,Li).call(this),c(h(this,qn))}error(t){if(t===ol||!h(this,an).onerror&&!h(this,an).failed)throw t;z!=null&&z.is_fork?(h(this,Vt)&&z.skip_effect(h(this,Vt)),h(this,Ct)&&z.skip_effect(h(this,Ct)),h(this,Yt)&&z.skip_effect(h(this,Yt)),z.oncommit(()=>{W(this,ue,ar).call(this)||W(this,ue,Ta).call(this,t)})):W(this,ue,Ta).call(this,t)}}sn=new WeakMap,Da=new WeakMap,an=new WeakMap,Nr=new WeakMap,It=new WeakMap,Vt=new WeakMap,Ct=new WeakMap,Yt=new WeakMap,An=new WeakMap,Cr=new WeakMap,or=new WeakMap,os=new WeakMap,Ks=new WeakMap,qn=new WeakMap,Li=new WeakMap,ue=new WeakSet,Zu=function(){try{ne(this,Vt,on(()=>h(this,Nr).call(this,h(this,sn))))}catch(t){this.error(t)}},Ku=function(t){const n=h(this,an).failed,{reset:r,invoke_onerror:s}=W(this,ue,ka).call(this,t);lr(s),n&&ne(this,Yt,on(()=>{n(h(this,sn),()=>t,()=>r)}))},ka=function(t){var n=!1,r=!1;const s=()=>{if(!W(this,ue,ar).call(this)){if(n){tu();return}n=!0,r&&pu(),h(this,Yt)!==null&&Mr(h(this,Yt),()=>{ne(this,Yt,null)}),W(this,ue,wi).call(this,()=>{W(this,ue,ya).call(this)})}};return{reset:s,invoke_onerror:()=>{var o,a;if(!W(this,ue,ar).call(this))try{r=!0,(a=(o=h(this,an)).onerror)==null||a.call(o,t,s),r=!1}catch(f){On(f,h(this,It)&&h(this,It).parent)}}}},ar=function(){return(h(this,It).f&(Lt|ki))!==0},Xu=function(){const t=h(this,an).pending;t&&(this.is_pending=!0,ne(this,Ct,on(()=>t(h(this,sn)))),lr(()=>{if(!W(this,ue,ar).call(this)){var n=ne(this,An,document.createDocumentFragment()),r=fr(),s=!1;if(n.append(r),ne(this,Vt,W(this,ue,wi).call(this,()=>{try{return on(()=>h(this,Nr).call(this,r))}catch(i){try{this.error(i),s=!0}catch(o){On(o,h(this,It).parent)}return null}})),h(this,Vt)===null){ne(this,An,null),s&&W(this,ue,zs).call(this,z);return}h(this,or)===0&&(h(this,sn).before(n),ne(this,An,null),Mr(h(this,Ct),()=>{ne(this,Ct,null)}),W(this,ue,zs).call(this,z))}}))},ya=function(){try{if(this.is_pending=this.has_pending_snippet(),ne(this,or,0),ne(this,Cr,0),ne(this,Vt,on(()=>{h(this,Nr).call(this,h(this,sn))})),h(this,or)>0){var t=ne(this,An,document.createDocumentFragment());ja(h(this,Vt),t);const n=h(this,an).pending;ne(this,Ct,on(()=>n(h(this,sn))))}else W(this,ue,zs).call(this,z)}catch(n){this.error(n)}},zs=function(t){this.is_pending=!1,t.transfer_reactions(h(this,Ks))},wi=function(t){var n=pe,r=re,s=$t;Nn(h(this,It)),ln(h(this,It)),us(h(this,It).ctx);try{return zr.ensure(),t()}finally{Nn(n),ln(r),us(s)}},xa=function(t,n){var r;if(!this.has_pending_snippet()){this.parent&&W(r=this.parent,ue,xa).call(r,t,n);return}ne(this,or,h(this,or)+t),h(this,or)===0&&(W(this,ue,zs).call(this,n),h(this,Ct)&&Mr(h(this,Ct),()=>{ne(this,Ct,null)}),h(this,An)&&(h(this,sn).before(h(this,An)),ne(this,An,null)))},Ta=function(t){h(this,Vt)&&(jt(h(this,Vt)),ne(this,Vt,null)),h(this,Ct)&&(jt(h(this,Ct)),ne(this,Ct,null)),h(this,Yt)&&(jt(h(this,Yt)),ne(this,Yt,null));let n=h(this,an).failed;const r=s=>{if(W(this,ue,ar).call(this))return;const{reset:i,invoke_onerror:o}=W(this,ue,ka).call(this,s);o(),n&&!W(this,ue,ar).call(this)&&ne(this,Yt,W(this,ue,wi).call(this,()=>{try{return on(()=>{var a=pe;a.b=this,a.f|=pa,n(h(this,sn),()=>s,()=>i)})}catch(a){return On(a,h(this,It).parent),null}}))};lr(()=>{if(!W(this,ue,ar).call(this)){var s;try{s=this.transform_error(t)}catch(i){On(i,h(this,It)&&h(this,It).parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(r,i=>On(i,h(this,It)&&h(this,It).parent)):r(s)}})};function O(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e[Cs]??(e[Cs]=e.nodeValue))&&(e[Cs]=n,e.nodeValue=`${n}`)}function Qu(e,t){return Ju(e,t)}const fi=new Map;function Ju(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0,transformError:a}){Ou();var f=void 0,u=Pu(()=>{var d=n??t.appendChild(fr());Vu(d,{pending:()=>{}},_=>{Ca({});var g=$t;i&&(g.c=i),s&&(r.$$events=s),f=e(_,r)||fl(),Pa()},a);var w=new Set,m=_=>{for(var g=0;g<_.length;g++){var E=_[g];if(!w.has(E)){w.add(E);var x=Hu(E);for(const se of[t,document]){var R=fi.get(se);R===void 0&&(R=new Map,fi.set(se,R));var te=R.get(E);te===void 0?(se.addEventListener(E,go,{passive:x}),R.set(E,1)):R.set(E,te+1)}}}};return m(Ci(Xl)),ba.add(m),()=>{var x;for(var _ of w)for(const R of[t,document]){var g=fi.get(R),E=g.get(_);--E==0?(R.removeEventListener(_,go),g.delete(_),g.size===0&&fi.delete(R)):g.set(_,E)}ba.delete(m),d!==n&&((x=d.parentNode)==null||x.removeChild(d))}});return ef.set(f,u),f}let ef=new WeakMap;var mn,Rn,Zt,Pr,Xs,Qs,Di;class Jl{constructor(t,n=!0){Y(this,"anchor");ie(this,mn,new Map);ie(this,Rn,new Map);ie(this,Zt,new Map);ie(this,Pr,new Set);ie(this,Xs,!0);ie(this,Qs,t=>{if(h(this,mn).has(t)){var n=h(this,mn).get(t),r=h(this,Rn).get(n);if(r)Ei(r),h(this,Pr).delete(n);else{var s=h(this,Zt).get(n);s&&(Ei(s.effect),h(this,Rn).set(n,s.effect),h(this,Zt).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of h(this,mn)){if(h(this,mn).delete(i),i===t)break;const a=h(this,Zt).get(o);a&&(jt(a.effect),h(this,Zt).delete(o))}for(const[i,o]of h(this,Rn)){if(i===n||h(this,Pr).has(i))continue;const a=()=>{if(Array.from(h(this,mn).values()).includes(i)){var u=document.createDocumentFragment();ja(o,u),u.append(fr()),h(this,Zt).set(i,{effect:o,fragment:u})}else jt(o);h(this,Pr).delete(i),h(this,Rn).delete(i)};h(this,Xs)||!r?(h(this,Pr).add(i),Mr(o,a,!1)):a()}}});ie(this,Di,t=>{h(this,mn).delete(t);const n=Array.from(h(this,mn).values());for(const[r,s]of h(this,Zt))n.includes(r)||(jt(s.effect),h(this,Zt).delete(r))});this.anchor=t,ne(this,Xs,n)}ensure(t,n){var r=z,s=Nl();if(n&&!h(this,Rn).has(t)&&!h(this,Zt).has(t))if(s){var i=document.createDocumentFragment(),o=fr();i.append(o),h(this,Zt).set(t,{effect:on(()=>n(o)),fragment:i})}else h(this,Rn).set(t,on(()=>n(this.anchor)));if(h(this,mn).set(r,t),s){for(const[a,f]of h(this,Rn))a===t?r.unskip_effect(f):r.skip_effect(f);for(const[a,f]of h(this,Zt))a===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(h(this,Qs)),r.ondiscard(h(this,Di))}else h(this,Qs).call(this,r)}}mn=new WeakMap,Rn=new WeakMap,Zt=new WeakMap,Pr=new WeakMap,Xs=new WeakMap,Qs=new WeakMap,Di=new WeakMap;function J(e,t,n=!1){var r=new Jl(e),s=n?cs:0;function i(o,a){r.ensure(o,a)}Mi(()=>{var o=!1;t((a,f=0)=>{o=!0,i(f,a)}),o||i(-1,null)},s)}const tf=Symbol("NaN");function nf(e,t,n){var r=new Jl(e);Mi(()=>{var s=t();s!==s&&(s=tf),r.ensure(s,n)})}function Wt(e,t){return t}function rf(e,t,n){for(var r=[],s=t.length,i,o=t.length,a=0;a<s;a++){let w=t[a];Mr(w,()=>{if(i){if(i.pending.delete(w),i.done.add(w),i.pending.size===0){var m=e.outrogroups;Sa(e,Ci(i.done)),m.delete(i),m.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var f=r.length===0&&n!==null&&e.pending.size===0;if(f){var u=n,d=u.parentNode;Iu(d),d.append(u),e.items.clear()}Sa(e,t,!f)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function Sa(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const a of o)r.add(e.items.get(a).e)}for(var s=0;s<t.length;s++){var i=t[s];if(r!=null&&r.has(i)){i.f|=In;const o=document.createDocumentFragment();ja(i,o)}else jt(t[s],n)}}var _o;function Je(e,t,n,r,s,i=null){var o=e,a=new Map,f=(t&al)!==0;if(f){var u=e;o=u.appendChild(fr())}var d=null,w=gl(()=>{var te=n();return Ni(te)?te:te==null?[]:Ci(te)}),m=new Map,_=!0;function g(te){if((R.effect.f&Lt)===0){R.pending.delete(te);var se=c(w);R.fallback=d,sf(R,se,o,t,r),d!==null&&(se.length===0?(d.f&In)===0?Ei(d):(d.f^=In,Fs(d,null,o)):Mr(d,()=>{d=null}))}}function E(te){R.pending.delete(te)}var x=Mi(()=>{for(var te=c(w),se=te.length,q=new Set,Fe=z,Ye=Nl(),ce=0;ce<se;ce+=1){var St=te[ce],pt=r(St,ce),me=_?null:a.get(pt);me?(me.v&&fs(me.v,St),me.i&&fs(me.i,ce),Ye&&Fe.unskip_effect(me.e)):(me=af(a,_?o:_o??(_o=fr()),St,pt,ce,s,t,n),_||(me.e.f|=In),a.set(pt,me)),q.add(pt)}if(se===0&&i&&!d&&(_?d=on(()=>i(o)):(d=on(()=>i(_o??(_o=fr()))),d.f|=In)),se>q.size&&iu(),!_)if(m.set(Fe,q),Ye){for(const[Ge,st]of a)q.has(Ge)||Fe.skip_effect(st.e);Fe.oncommit(g),Fe.ondiscard(E)}else g(Fe);c(w)}),R={effect:x,items:a,pending:m,outrogroups:null,fallback:d};_=!1}function As(e){for(;e!==null&&(e.f&bn)===0;)e=e.next;return e}function sf(e,t,n,r,s){var me,Ge,st,Et,kn,cn,hr,wt,vr;var i=(r&Vc)!==0,o=t.length,a=e.items,f=As(e.effect.first),u,d=null,w,m=[],_=[],g,E,x,R;if(i)for(R=0;R<o;R+=1)g=t[R],E=s(g,R),x=a.get(E).e,(x.f&In)===0&&((Ge=(me=x.nodes)==null?void 0:me.a)==null||Ge.measure(),(w??(w=new Set)).add(x));for(R=0;R<o;R+=1){if(g=t[R],E=s(g,R),x=a.get(E).e,e.outrogroups!==null)for(const zt of e.outrogroups)zt.pending.delete(x),zt.done.delete(x);if((x.f&Mt)!==0&&(Ei(x),i&&((Et=(st=x.nodes)==null?void 0:st.a)==null||Et.unfix(),(w??(w=new Set)).delete(x))),(x.f&In)!==0)if(x.f^=In,x===f)Fs(x,null,n);else{var te=d?d.next:f;x===e.effect.last&&(e.effect.last=x.prev),x.prev&&(x.prev.next=x.next),x.next&&(x.next.prev=x.prev),sr(e,d,x),sr(e,x,te),Fs(x,te,n),d=x,m=[],_=[],f=As(d.next);continue}if(x!==f){if(u!==void 0&&u.has(x)){if(m.length<_.length){var se=_[0],q;d=se.prev;var Fe=m[0],Ye=m[m.length-1];for(q=0;q<m.length;q+=1)Fs(m[q],se,n);for(q=0;q<_.length;q+=1)u.delete(_[q]);sr(e,Fe.prev,Ye.next),sr(e,d,Fe),sr(e,Ye,se),f=se,d=Ye,R-=1,m=[],_=[]}else u.delete(x),Fs(x,f,n),sr(e,x.prev,x.next),sr(e,x,d===null?e.effect.first:d.next),sr(e,d,x),d=x;continue}for(m=[],_=[];f!==null&&f!==x;)(u??(u=new Set)).add(f),_.push(f),f=As(f.next);if(f===null)continue}(x.f&In)===0&&m.push(x),d=x,f=As(x.next)}if(e.outrogroups!==null){for(const zt of e.outrogroups)zt.pending.size===0&&(Sa(e,Ci(zt.done)),(kn=e.outrogroups)==null||kn.delete(zt));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||u!==void 0){var ce=[];if(u!==void 0)for(x of u)(x.f&Mt)===0&&ce.push(x);for(;f!==null;)(f.f&Mt)===0&&f!==e.fallback&&ce.push(f),f=As(f.next);var St=ce.length;if(St>0){var pt=(r&al)!==0&&o===0?n:null;if(i){for(R=0;R<St;R+=1)(hr=(cn=ce[R].nodes)==null?void 0:cn.a)==null||hr.measure();for(R=0;R<St;R+=1)(vr=(wt=ce[R].nodes)==null?void 0:wt.a)==null||vr.fix()}rf(e,ce,pt)}}i&&lr(()=>{var zt,it;if(w!==void 0)for(x of w)(it=(zt=x.nodes)==null?void 0:zt.a)==null||it.apply()})}function af(e,t,n,r,s,i,o,a){var f=(o&Wc)!==0?(o&Yc)===0?Au(n,!1,!1):Fr(n):null,u=(o&qc)!==0?Fr(s):null;return{v:f,i:u,e:on(()=>(i(t,f??n,u??s,a),()=>{e.delete(r)}))}}function Fs(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,i=t&&(t.f&In)===0?t.nodes.start:n;r!==null;){var o=ti(r);if(i.before(r),r===s)return;r=o}}function sr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function kt(e,t,n=!1,r=!1,s=!1,i=!1){var o=e,a="";if(n)var f=e;B(()=>{var u=pe;if(a!==(a=t()??"")){if(n){u.nodes=null,f.innerHTML=a,a!==""&&Ys(Vn(f),f.lastChild);return}if(u.nodes!==null&&(Fl(u.nodes.start,u.nodes.end),u.nodes=null),a!==""){var d=r?Xc:s?Qc:void 0,w=Cl(r?"svg":s?"math":"template",d);w.innerHTML=a;var m=r||s?w:w.content;if(Ys(Vn(m),m.lastChild),r||s)for(;Vn(m);)o.before(Vn(m));else o.before(m)}}})}const wo=[...`
\r\f \v\uFEFF`];function of(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,o=0;(o=r.indexOf(s,o))>=0;){var a=o+i;(o===0||wo.includes(r[o-1]))&&(a===r.length||wo.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Ae(e,t,n,r,s,i){var o=e[ha];if(o!==n||o===void 0){var a=of(n,r,i);a==null?e.removeAttribute("class"):e.className=a,e[ha]=n}else if(i&&s!==i)for(var f in i){var u=!!i[f];(s==null||u!==!!s[f])&&e.classList.toggle(f,u)}return i}function lf(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function cf(e,t){var n=e.__defaultValue,r=e.multiple,s=r?n??[]:null;if(!(r&&!Ni(s))){e.selectedIndex;for(var i of e.options){var o=es(i);lf(i,r?s.includes(o):Ol(o,n))}}}function Wa(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Ni(t))return eu();for(var r of e.options)r.selected=t.includes(es(r));return}for(r of e.options){var s=es(r);if(Ol(s,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ec(e){var t=new MutationObserver(n=>{n.every(ff)||("__defaultValue"in e&&cf(e),"__value"in e&&Wa(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Pl(()=>{t.disconnect()})}function uf(e,t,n=t){var r=new WeakSet,s=!0;vl(e,"change",i=>{var o=i?"[selected]":":checked",a;if(e.multiple)a=[].map.call(e.querySelectorAll(o),es);else{var f=e.querySelector(o)??e.querySelector("option:not([disabled])");a=f&&es(f)}n(a),e.__value=a,z!==null&&r.add(z)}),Mu(()=>{var i=t();if(e===document.activeElement){var o=z;if(r.has(o))return}if(Wa(e,i,s),s&&i===void 0){var a=e.querySelector(":checked");a!==null&&(i=es(a),n(i))}e.__value=i,s=!1})}function es(e){return"__value"in e?e.__value:e.value}function ff(e){if(e.target.closest("selectedcontent")!==null)return!0;if(e.type==="childList"){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(n=>n.nodeName==="SELECTEDCONTENT")}return!1}const df=Symbol("is custom element"),pf=Symbol("is html");function nt(e,t,n,r){var s=hf(e),i=s[t];i!==(s[t]=n)&&(t==="loading"&&(e[jc]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vf(e).has(t)?e[t]=n:e.setAttribute(t,n))}function hf(e){return e[mi]??(e[mi]={[df]:e.nodeName.includes("-"),[pf]:e.namespaceURI===ll})}var bo=new Map;function vf(e){var t=e.getAttribute("is")||e.nodeName,n=bo.get(t);if(n)return n;bo.set(t,n=new Set);for(var r,s=e,i=Element.prototype;i!==s;){r=Mc(s);for(var o in r)r[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.add(o);s=nl(s)}return n}function mf(e,t,n=t){var r=new WeakSet;vl(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=Zi(e)?Ki(i):i,n(i),z!==null&&r.add(z),await Yl(),i!==(i=t())){var o=e.selectionStart,a=e.selectionEnd,f=e.value.length;if(e.value=i??"",a!==null){var u=e.value.length;o===a&&a===f&&u>f?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=o,e.selectionEnd=Math.min(a,u))}}}),Ga(t)==null&&e.value&&(n(Zi(e)?Ki(e.value):e.value),z!==null&&r.add(z)),$l(()=>{var s=t();if(e===document.activeElement){var i=z;if(r.has(i))return}Zi(e)&&s===Ki(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function Zi(e){var t=e.type;return t==="number"||t==="range"}function Ki(e){return e===""?null:+e}function ko(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var f;return f=()=>{var u=e[t];return u===void 0?o():(i=!0,u)},f}function tc(e){$t===null&&ru(),Cu(()=>{const t=Ga(e);if(typeof t=="function")return t})}const gf="5";var Jo;typeof window<"u"&&((Jo=window.__svelte??(window.__svelte={})).v??(Jo.v=new Set)).add(gf);const Ea={project:"0"};async function qa(e){return await fetch(`/api/${e}${e.includes("?")?"&":"?"}project=${encodeURIComponent(Ea.project)}`,{cache:"no-store"})}async function _f(){const e=await fetch("/api/projects",{cache:"no-store"});if(!e.ok)throw new Error(await e.text());return e.json()}async function wf(){const e=await qa("roadmap");if(!e.ok)throw new Error(await e.text());return e.text()}async function bf(){const e=await qa("klicktests");return e.ok?e.text():""}async function kf(){const e=await qa("reports");return e.ok?e.json():[]}/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function yo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yf(e){if(Array.isArray(e))return e}function xf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,a=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);f=!0);}catch(d){u=!0,s=d}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw s}}return a}}function Tf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Sf(e,t){return yf(e)||xf(e,t)||Ef(e,t)||Tf()}function Ef(e,t){if(e){if(typeof e=="string")return yo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yo(e,t):void 0}}const nc=Object.entries,xo=Object.setPrototypeOf,Af=Object.isFrozen,rc=Object.getPrototypeOf,sc=Object.getOwnPropertyDescriptor;let _t=Object.freeze,Tt=Object.seal,Qr=Object.create,ic=typeof Reflect<"u"&&Reflect,Aa=ic.apply,Ra=ic.construct;_t||(_t=function(t){return t});Tt||(Tt=function(t){return t});Aa||(Aa=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(n,s)});Ra||(Ra=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new t(...r)});const Hn=je(Array.prototype.forEach),Rf=je(Array.prototype.lastIndexOf),To=je(Array.prototype.pop),Rs=je(Array.prototype.push),Of=je(Array.prototype.slice),If=je(Array.prototype.splice),ts=Array.isArray,Xi=ac(Set),Qi=je(Set.prototype.add),Os=je(Set.prototype.has),Er=je(String.prototype.toLowerCase),Ji=je(String.prototype.toString),So=je(String.prototype.match),Is=je(String.prototype.replace),Eo=je(String.prototype.indexOf),Lf=je(String.prototype.trim),Df=je(Number.prototype.toString),Nf=je(Boolean.prototype.toString),Ao=typeof BigInt>"u"?null:je(BigInt.prototype.toString),Ro=typeof Symbol>"u"?null:je(Symbol.prototype.toString),Bt=je(Object.prototype.hasOwnProperty),Ls=je(Object.prototype.toString),yt=je(RegExp.prototype.test),jn=ac(TypeError);function je(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return Aa(e,t,r)}}function ac(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ra(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Er;if(xo&&xo(e,null),!ts(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=n(s);i!==s&&(Af(t)||(t[r]=i),s=i)}e[s]=!0}return e}function Cf(e){for(let t=0;t<e.length;t++)Bt(e,t)||(e[t]=null);return e}function qt(e){const t=Qr(null);for(const r of nc(e)){var n=Sf(r,2);const s=n[0],i=n[1];Bt(e,s)&&(ts(i)?t[s]=Cf(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=qt(i):t[s]=i)}return t}function Pf(e){switch(typeof e){case"string":return e;case"number":return Df(e);case"boolean":return Nf(e);case"bigint":return Ao?Ao(e):"0";case"symbol":return Ro?Ro(e):"Symbol()";case"undefined":return Ls(e);case"function":case"object":{if(e===null)return Ls(e);const t=e,n=nn(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Ls(r)}return Ls(e)}default:return Ls(e)}}function nn(e,t){for(;e!==null;){const r=sc(e,t);if(r){if(r.get)return je(r.get);if(typeof r.value=="function")return je(r.value)}e=rc(e)}function n(){return null}return n}function Mf(e,t){for(;e!==null;){const n=sc(e,t);if(n)return n.get?je(n.get):null;e=rc(e)}return null}function $f(e){try{return yt(e,""),!0}catch{return!1}}const Oo=_t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ea=_t(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ta=_t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zf=_t(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),na=_t(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ff=_t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Io=_t(["#text"]),Lo=_t(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ra=_t(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Do=_t(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),di=_t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Uf=Tt(/{{[\w\W]*|^[\w\W]*}}/g),Bf=Tt(/<%[\w\W]*|^[\w\W]*%>/g),Hf=Tt(/\${[\w\W]*/g),jf=Tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gf=Tt(/^aria-[\-\w]+$/),No=Tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wf=Tt(/^(?:\w+script|data):/i),qf=Tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vf=Tt(/^html$/i),Yf=Tt(/^[a-z][.\w]*(-[.\w]+)+$/i),sa=Tt(/<[/\w!]/g),Co=Tt(/<[/\w]/g),Zf=Tt(/<\/no(script|embed|frames)/i),Po=Tt(/\/>/i),ct={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Kf=_t(fe({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Xf=function(){return typeof window>"u"?null:window},Qf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Mo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ir=function(t,n,r,s){return Bt(t,n)&&ts(t[n])?fe(s.base?qt(s.base):{},t[n],s.transform):r},ia=function(t,n,r){const s=Bt(t,n)?t[n]:void 0;return s&&typeof s=="object"?qt(s):r()};function oc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xf();const t=y=>oc(y);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==ct.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,a=e.Element,f=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,d=e.trustedTypes,w=a.prototype,m=nn(w,"cloneNode"),_=nn(w,"remove"),g=nn(w,"removeAttributeNode"),E=nn(w,"nextSibling"),x=nn(w,"childNodes"),R=nn(w,"parentNode"),te=nn(w,"shadowRoot"),se=nn(w,"attributes"),q=o&&o.prototype?nn(o.prototype,"nodeType"):null,Fe=o&&o.prototype?nn(o.prototype,"nodeName"):null,Ye=o&&o.prototype?nn(o.prototype,"ownerDocument"):null,ce=function(l){return q?q(l):l.nodeType},St=function(l){return Fe?Fe(l):l.nodeName},pt=Mf(w,"namespaceURI"),me=function(l){return pt?pt(l):l.namespaceURI};if(typeof i=="function"){const y=n.createElement("template");y.content&&y.content.ownerDocument&&(n=y.content.ownerDocument)}let Ge,st="",Et,kn=!1,cn=0;const hr=function(){if(cn>0)throw jn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},wt=function(l){hr(),cn++;try{return Ge.createHTML(l)}finally{cn--}},vr=function(l){hr(),cn++;try{return Ge.createScriptURL(l)}finally{cn--}},zt=function(){return kn||(Et=Qf(d,s),kn=!0),Et},it=n,Xn=it.implementation,si=it.createNodeIterator,Hr=it.createDocumentFragment,ii=it.getElementsByTagName,Fi=r.importNode;let Re=Mo();t.isSupported=typeof nc=="function"&&typeof R=="function"&&Xn&&Xn.createHTMLDocument!==void 0;const ai=Uf,Ui=Bf,jr=Hf,mr=jf,Bi=Gf,gr=Wf,oi=qf,Cn=Yf;let li=No,Oe=null;const _r=fe({},[...Oo,...ea,...ta,...na,...Io]);let Te=null;const Gr=fe({},[...Lo,...ra,...Do,...di]);let Jt=Object.seal(Qr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Qn=null,vs=null;const un=Object.seal(Qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ms=!0,gs=!0,_s=!1,ws=!0,fn=!1,Pn=!0,Mn=!1,bs=!1,wr=null,Wr=null,qr=!1,Jn=!1,er=!1,br=!1,ci=!0,ks=!1;const ui="user-content-";let ys=!0,xs=!1,$n=null,tr={},v=null;const T=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let X=null;const Ie=fe({},["audio","video","img","source","image","track"]);let et=null;const Ze=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml";let ht=Ne,yn=!1,kr=null;const yr=fe({},[at,At,Ne],Ji),xr=_t(["mi","mo","mn","ms","mtext"]);let Ft=fe({},xr);const xn=_t(["annotation-xml"]);let nr=fe({},xn);const Vr=fe({},["title","style","font","a","script"]);let zn=null;const Ts=["application/xhtml+xml","text/html"],Ss="text/html";let oe=null,Gt=null;const Q=n.createElement("form"),M=function(l){return l instanceof RegExp||l instanceof Function},V=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===l)return;(!l||typeof l!="object")&&(l={}),l=qt(l),zn=Ts.indexOf(l.PARSER_MEDIA_TYPE)===-1?Ss:l.PARSER_MEDIA_TYPE,oe=zn==="application/xhtml+xml"?Ji:Er,Oe=ir(l,"ALLOWED_TAGS",_r,{transform:oe}),Te=ir(l,"ALLOWED_ATTR",Gr,{transform:oe}),kr=ir(l,"ALLOWED_NAMESPACES",yr,{transform:Ji}),et=ir(l,"ADD_URI_SAFE_ATTR",Ze,{transform:oe,base:Ze}),X=ir(l,"ADD_DATA_URI_TAGS",Ie,{transform:oe,base:Ie}),v=ir(l,"FORBID_CONTENTS",T,{transform:oe}),Qn=ir(l,"FORBID_TAGS",qt({}),{transform:oe}),vs=ir(l,"FORBID_ATTR",qt({}),{transform:oe}),tr=Bt(l,"USE_PROFILES")?l.USE_PROFILES&&typeof l.USE_PROFILES=="object"?qt(l.USE_PROFILES):l.USE_PROFILES:!1,ms=l.ALLOW_ARIA_ATTR!==!1,gs=l.ALLOW_DATA_ATTR!==!1,_s=l.ALLOW_UNKNOWN_PROTOCOLS||!1,ws=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fn=l.SAFE_FOR_TEMPLATES||!1,Pn=l.SAFE_FOR_XML!==!1,Mn=l.WHOLE_DOCUMENT||!1,Jn=l.RETURN_DOM||!1,er=l.RETURN_DOM_FRAGMENT||!1,br=l.RETURN_TRUSTED_TYPE||!1,qr=l.FORCE_BODY||!1,ci=l.SANITIZE_DOM!==!1,ks=l.SANITIZE_NAMED_PROPS||!1,ys=l.KEEP_CONTENT!==!1,xs=l.IN_PLACE||!1,li=$f(l.ALLOWED_URI_REGEXP)?l.ALLOWED_URI_REGEXP:No,ht=typeof l.NAMESPACE=="string"?l.NAMESPACE:Ne,Ft=ia(l,"MATHML_TEXT_INTEGRATION_POINTS",()=>fe({},xr)),nr=ia(l,"HTML_INTEGRATION_POINTS",()=>fe({},xn));const p=ia(l,"CUSTOM_ELEMENT_HANDLING",()=>Qr(null));if(Jt=Qr(null),Bt(p,"tagNameCheck")&&M(p.tagNameCheck)&&(Jt.tagNameCheck=p.tagNameCheck),Bt(p,"attributeNameCheck")&&M(p.attributeNameCheck)&&(Jt.attributeNameCheck=p.attributeNameCheck),Bt(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(Jt.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),Tt(Jt),fn&&(gs=!1),er&&(Jn=!0),tr&&(Oe=fe({},Io),Te=Qr(null),tr.html===!0&&(fe(Oe,Oo),fe(Te,Lo)),tr.svg===!0&&(fe(Oe,ea),fe(Te,ra),fe(Te,di)),tr.svgFilters===!0&&(fe(Oe,ta),fe(Te,ra),fe(Te,di)),tr.mathMl===!0&&(fe(Oe,na),fe(Te,Do),fe(Te,di))),un.tagCheck=null,un.attributeCheck=null,Bt(l,"ADD_TAGS")&&(typeof l.ADD_TAGS=="function"?un.tagCheck=l.ADD_TAGS:ts(l.ADD_TAGS)&&(Oe===_r&&(Oe=qt(Oe)),fe(Oe,l.ADD_TAGS,oe))),Bt(l,"ADD_ATTR")&&(typeof l.ADD_ATTR=="function"?un.attributeCheck=l.ADD_ATTR:ts(l.ADD_ATTR)&&(Te===Gr&&(Te=qt(Te)),fe(Te,l.ADD_ATTR,oe))),Bt(l,"ADD_FORBID_CONTENTS")&&ts(l.ADD_FORBID_CONTENTS)&&(v===T&&(v=qt(v)),fe(v,l.ADD_FORBID_CONTENTS,oe)),ys&&(Oe["#text"]=!0),Mn&&fe(Oe,["html","head","body"]),Oe.table&&(fe(Oe,["tbody"]),delete Qn.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const b=Ge;Ge=l.TRUSTED_TYPES_POLICY;try{st=wt("")}catch(k){throw Ge=b,k}}else l.TRUSTED_TYPES_POLICY===null?(Ge=void 0,st=""):(Ge===void 0&&(Ge=zt()),Ge&&typeof st=="string"&&(st=wt("")));_t&&_t(l),Gt=l},le=fe({},[...ea,...ta,...zf]),ge=fe({},[...na,...Ff]),Ce=function(l,p,b){return p.namespaceURI===Ne?l==="svg":p.namespaceURI===at?l==="svg"&&(b==="annotation-xml"||Ft[b]):!!le[l]},Ue=function(l,p,b){return p.namespaceURI===Ne?l==="math":p.namespaceURI===At?l==="math"&&nr[b]:!!ge[l]},We=function(l,p,b){return p.namespaceURI===At&&!nr[b]||p.namespaceURI===at&&!Ft[b]?!1:!ge[l]&&(Vr[l]||!le[l])},ot=function(l){const p=me(l),b=Er(St(l)),k=R(l);let C,L;return k&&ce(k)===ct.element?(C={namespaceURI:me(k)},L=Er(St(k))):(C={namespaceURI:ht},L="template"),kr[p]?p===At?Ce(b,C,L):p===at?Ue(b,C,L):p===Ne?We(b,C,L):!!(zn==="application/xhtml+xml"&&kr[p]):!1},Se=function(l){Rs(t.removed,{element:l});try{R(l).removeChild(l)}catch{if(_(l),!R(l))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ke=function(l,p,b){try{g(l,p)}catch{try{l.removeAttribute(b)}catch{}}},Rt=function(l){Z(l);const p=x(l);p&&Hn(Of(p),k=>{try{_(k)}catch{}});const b=ce(l)===ct.element?se(l):null;if(b)for(let k=b.length-1;k>=0;--k){const C=b[k],L=C&&C.name;typeof L=="string"&&Ke(l,C,L)}},lt=function(l,p,b){if(!b)try{b=p.getAttributeNode(l)}catch{b=null}Rs(t.removed,{attribute:b||null,from:p});try{b?g(p,b):p.removeAttribute(l)}catch{try{p.removeAttribute(l)}catch{}}if(l==="is")if(Jn||er)try{Se(p)}catch{}else try{p.setAttribute(l,"")}catch{}},ke=function(l){const p=se(l);if(p)for(let b=p.length-1;b>=0;--b){const k=p[b],C=k&&k.name;typeof C!="string"||Te[oe(C)]||Ke(l,k,C)}},Pe=function(l,p){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const k=[l];for(;k.length>0;){const C=k.pop();if(p(C)===!1)continue;if(b&&ce(C)===ct.element){const $=te(C);_e($)&&k.push($)}const L=x(C);if(L)for(let $=L.length-1;$>=0;--$)k.push(L[$])}},Z=function(l){Pe(l,p=>{ce(p)===ct.element&&ke(p)})},N=function(l){const p=[];return Pe(l,b=>{p.push(b)},!0),p},D=function(l,p){const b=Xi();Hn(N(l),k=>{ce(k)===ct.element&&Qi(b,k)}),Hn(p,k=>{ce(k)===ct.element&&!Os(b,k)&&ke(k)})},G=function(l,p){let b=!1;return Hn(t.removed,k=>{k.element&&(b=b||k.element===l,Z(k.element))}),D(l,p),b},he=8,ye=function(l,p){const b=$n;let k=null;const C=()=>(k||(k=Xi(),Hn(p,L=>{Qi(k,L)})),k);for(let L=0;;L++){const $=N(l),Ee=[l];let Nt=!1;if(Hn($,ut=>{ce(ut)===ct.documentFragment?Rs(Ee,ut):!Nt&&!Os(b,ut)&&(Nt=Os(C(),ut))}),!Nt)return;if(L>=he)throw jn("the tree kept changing during in-place sanitization; refusing to return it");Hn(Ee,(ut,mt)=>{U(ut,mt>0,l,C())})}},U=function(l,p,b,k){const C=tt(l);let L;for(;L=C.nextNode();)!Os(k,L)||Os($n,L)||(p&&xe(Re.uponSanitizeShadowNode,L,null),dn(L,b),Tr(L,b),_e(L.content)&&tn(L.content))},H=function(l){$n&&Qi($n,l)},Me=function(l,p){return Pn?l==="patchsrc"?!0:l==="for"&&p!=="label"&&p!=="output":!1},qe=function(l){Pn&&Pe(l,p=>{const b=ce(p);if(b===ct.processingInstruction||b===ct.comment&&yt(Co,p.data)){try{_(p)}catch{}return!1}if(b===ct.element){const k=p,C=oe(St(p));try{k.hasAttribute&&k.hasAttribute("patchsrc")&&k.removeAttribute("patchsrc"),k.hasAttribute&&k.hasAttribute("for")&&Me("for",C)&&k.removeAttribute("for")}catch{}}return!0})},Xe=function(l){let p=null,b=null;if(qr)l="<remove></remove>"+l;else{const L=So(l,/^[\r\n\t ]+/);b=L&&L[0]}zn==="application/xhtml+xml"&&ht===Ne&&(l='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+l+"</body></html>");const k=Ge?wt(l):l;if(ht===Ne)try{p=new u().parseFromString(k,zn)}catch{}if(!p||!p.documentElement){p=Xn.createDocument(ht,"template",null);try{p.documentElement.innerHTML=yn?st:k}catch{}}const C=p.body||p.documentElement;return l&&b&&C.insertBefore(n.createTextNode(b),C.childNodes[0]||null),ht===Ne?ii.call(p,Mn?"html":"body")[0]:Mn?p.documentElement:C},tt=function(l){const p=Ye?Ye(l):l.ownerDocument;return si.call(p||l,l,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},de=function(l){return l=Is(l,ai," "),l=Is(l,Ui," "),l=Is(l,jr," "),l},vt=function(l){var p;en(l);const b=(p=l.querySelectorAll)===null||p===void 0?void 0:p.call(l,"template");b&&Hn(b,k=>{_e(k.content)&&vt(k.content)})},en=function(l){l.normalize();const p=Ye?Ye(l):l.ownerDocument,b=si.call(p||l,l,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null);let k=b.nextNode();for(;k;)k.data=de(k.data),k=b.nextNode()},Ot=function(l){const p=Fe?Fe(l):null;return typeof p!="string"||oe(p)!=="form"?!1:typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||l.attributes!==se(l)||typeof l.removeAttribute!="function"||typeof l.removeAttributeNode!="function"||typeof l.getAttributeNode!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function"||l.nodeType!==q(l)||l.childNodes!==x(l)},_e=function(l){if(!q||typeof l!="object"||l===null)return!1;try{return q(l)===ct.documentFragment}catch{return!1}},Le=function(l){if(!q||typeof l!="object"||l===null)return!1;try{return typeof q(l)=="number"}catch{return!1}};function xe(y,l,p){y.length!==0&&Hn(y,b=>{b.call(t,l,p,Gt)})}const De=function(l,p){return!!(Pn&&l.hasChildNodes()&&!Le(l.firstElementChild)&&yt(sa,l.textContent)&&yt(sa,l.innerHTML)||Pn&&Kf[p]&&ce(l)===ct.element&&me(l)===Ne&&(Le(l.firstElementChild)||typeof l.textContent=="string"&&yt(sa,l.textContent))||l.nodeType===ct.processingInstruction||Pn&&l.nodeType===ct.comment&&yt(Co,l.data))},ve=function(l,p){if(l instanceof RegExp)return yt(l,p);if(l instanceof Function){for(var b=arguments.length,k=new Array(b>2?b-2:0),C=2;C<b;C++)k[C-2]=arguments[C];return!!l(p,...k)}return!1},$e=function(l,p,b){if(!Qn[p]&&pn(p)&&ve(Jt.tagNameCheck,p))return!1;if(ys&&!v[p]&&!v[Er(p)]){const k=R(l),C=x(l);if(C&&k){const L=C.length;for(let $=L-1;$>=0;--$){const Ee=l===b?m(C[$],!0):C[$];k.insertBefore(Ee,E(l))}}}return Se(l),!0},Ve=function(l,p,b,k){return l.length===0?p:p===b||p===k?qt(p):p},Be=function(l,p){return l===p||R(l)!==null?!1:(xs&&Z(l),!0)},dn=function(l,p){if(H(l),xe(Re.beforeSanitizeElements,l,null),Be(l,p))return!0;if(Ot(l))return Se(l),!0;const b=oe(St(l));if(Oe=Ve(Re.uponSanitizeElement,Oe,_r,wr),xe(Re.uponSanitizeElement,l,{tagName:b,allowedTags:Oe}),Be(l,p))return!0;if(De(l,b))return Se(l),!0;if(Qn[b]||!(un.tagCheck instanceof Function&&un.tagCheck(b))&&!Oe[b]){const k=$e(l,b,p);return k===!1&&(xe(Re.afterSanitizeElements,l,null),Be(l,p))?!0:k}if(ce(l)===ct.element&&!ot(l)||(b==="noscript"||b==="noembed"||b==="noframes")&&yt(Zf,l.innerHTML))return Se(l),!0;if(fn&&l.nodeType===ct.text){const k=de(l.textContent);l.textContent!==k&&(Rs(t.removed,{element:l.cloneNode()}),l.textContent=k)}return xe(Re.afterSanitizeElements,l,null),Be(l,p)},Ut=function(l,p,b){if(vs[p]||Me(p,l)||ci&&(p==="id"||p==="name")&&(b in n||b in Q))return!1;const k=Te[p]||un.attributeCheck instanceof Function&&un.attributeCheck(p,l);return gs&&yt(mr,p)||ms&&yt(Bi,p)?!0:k?et[p]||yt(li,Is(b,oi,""))||(p==="src"||p==="xlink:href"||p==="href")&&l!=="script"&&Eo(b,"data:")===0&&X[l]||_s&&!yt(gr,Is(b,oi,""))?!0:!b:pn(l)&&ve(Jt.tagNameCheck,l)&&ve(Jt.attributeNameCheck,p,l)||p==="is"&&Jt.allowCustomizedBuiltInElements&&ve(Jt.tagNameCheck,b)},Fn=fe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pn=function(l){return!Fn[Er(l)]&&yt(Cn,l)},Un=function(l,p,b,k){if(Ge&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!b)switch(d.getAttributeType(l,p)){case"TrustedHTML":return wt(k);case"TrustedScriptURL":return vr(k)}return k},rr=function(l,p,b,k){try{return b?l.setAttributeNS(b,p,k):l.setAttribute(p,k),Ot(l)?(Se(l),!1):!0}catch{return lt(p,l),!1}},Yr=function(l,p){return Pn&&yt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)?!0:Er(l)==="attributename"&&So(p,"href")!==null},Tr=function(l,p){if(xe(Re.beforeSanitizeAttributes,l,null),Be(l,p))return;const b=l.attributes;if(!b||Ot(l))return;Te=Ve(Re.uponSanitizeAttribute,Te,Gr,Wr);const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let C=b.length;const L=oe(l.nodeName);for(;C--;){const $=b[C],Ee=$.name,Nt=$.namespaceURI,ut=$.value,mt=oe(Ee),Bn=ut;let bt=Ee==="value"?Bn:Lf(Bn),Es=!1;if(k.attrName=mt,k.attrValue=bt,k.keepAttr=!0,k.forceKeepAttr=void 0,xe(Re.uponSanitizeAttribute,l,k),bt=k.attrValue,ks&&(mt==="id"||mt==="name")&&Eo(bt,ui)!==0&&(lt(Ee,l,$),bt=ui+bt,Es=!0),Yr(Ee,bt)){lt(Ee,l,$);continue}if(!k.forceKeepAttr){if(!k.keepAttr){lt(Ee,l,$);continue}if(!ws&&yt(Po,bt)){lt(Ee,l,$);continue}if(fn&&(bt=de(bt)),!Ut(L,mt,bt)){lt(Ee,l,$);continue}bt=Un(L,mt,Nt,bt),bt!==Bn&&rr(l,Ee,Nt,bt)&&Es&&To(t.removed)}}xe(Re.afterSanitizeAttributes,l,null),Be(l,p)},tn=function(l){let p=null;const b=tt(l);for(xe(Re.beforeSanitizeShadowDOM,l,null);p=b.nextNode();)if(xe(Re.uponSanitizeShadowNode,p,null),dn(p,l),Tr(p,l),_e(p.content)&&tn(p.content),ce(p)===ct.element){const k=te(p);_e(k)&&(hn(k),tn(k))}fn&&en(l),xe(Re.afterSanitizeShadowDOM,l,null)},hn=function(l){const p=[{node:l,shadow:null}];for(;p.length>0;){const b=p.pop();if(b.shadow){tn(b.shadow);continue}const k=b.node,C=ce(k)===ct.element,L=x(k);if(L)for(let $=L.length-1;$>=0;--$)p.push({node:L[$],shadow:null});if(C){const $=Fe?Fe(k):null;if(typeof $=="string"&&oe($)==="template"){const Ee=k.content;_e(Ee)&&p.push({node:Ee,shadow:null})}}if(C){const $=te(k);_e($)&&p.push({node:null,shadow:$},{node:$,shadow:null})}}};return t.sanitize=function(y){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,b=null,k=null,C=null;if(yn=!y,yn&&(y="<!-->"),typeof y!="string"&&!Le(y)&&(y=Pf(y),typeof y!="string"))throw jn("dirty is not a string, aborting");if(!t.isSupported)return y;bs?(Oe=wr,Te=Wr):V(l),(Re.uponSanitizeElement.length>0||Re.uponSanitizeAttribute.length>0)&&(Oe=qt(Oe)),Re.uponSanitizeAttribute.length>0&&(Te=qt(Te)),t.removed=[];const L=xs&&typeof y!="string"&&Le(y);let $=[];const Ee=$n;if(L){qe(y);const mt=St(y);if(typeof mt=="string"){const Bn=oe(mt);if(!Oe[Bn]||Qn[Bn])throw Rt(y),jn("root node is forbidden and cannot be sanitized in-place")}if(Ot(y))throw Rt(y),jn("root node is clobbered and cannot be sanitized in-place");$=N(y),$n=Xi()}else if(Le(y))p=Xe("<!---->"),b=p.ownerDocument.importNode(y,!0),b.nodeType===ct.element&&b.nodeName==="BODY"||b.nodeName==="HTML"?p=b:p.appendChild(b),hn(p);else{if(!Jn&&!fn&&!Mn&&y.indexOf("<")===-1)return Ge&&br?wt(y):y;if(p=Xe(y),!p)return Jn?null:br?st:""}p&&qr&&Se(p.firstChild);const Nt=L?y:p;try{L&&hn(y);const mt=tt(Nt);for(;k=mt.nextNode();)dn(k,Nt),Tr(k,Nt),_e(k.content)&&tn(k.content);L&&ye(y,$)}catch(mt){throw L&&(Rt(y),G(y,$)),mt}finally{$n=Ee}if(L){if(G(y,$))throw jn("a node selected for removal could not be safely returned; refusing to sanitize in place");return fn&&vt(y),y}if(Jn){if(fn&&vt(p),er)for(C=Hr.call(p.ownerDocument);p.firstChild;)C.appendChild(p.firstChild);else C=p;return(Te.shadowroot||Te.shadowrootmode)&&(C=Fi.call(r,C,!0)),C}let ut=Mn?p.outerHTML:p.innerHTML;return Mn&&Oe["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&yt(Vf,p.ownerDocument.doctype.name)&&(ut="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
`+ut),fn&&(ut=de(ut)),Ge&&br?wt(ut):ut},t.setConfig=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};V(y),bs=!0,wr=Oe,Wr=Te},t.clearConfig=function(){Gt=null,bs=!1,wr=null,Wr=null,Ge=Et,st=""},t.isValidAttribute=function(y,l,p){Gt||V({});const b=oe(y),k=oe(l);return typeof p=="string"&&(Yr(l,p)||!ws&&yt(Po,p))?!1:Ut(b,k,p)},t.addHook=function(y,l){typeof l=="function"&&Bt(Re,y)&&Rs(Re[y],l)},t.removeHook=function(y,l){if(Bt(Re,y)){if(l!==void 0){const p=Rf(Re[y],l);return p===-1?void 0:If(Re[y],p,1)[0]}return To(Re[y])}},t.removeHooks=function(y){Bt(Re,y)&&(Re[y]=[])},t.removeAllHooks=function(){Re=Mo()},t}var $o=oc();function Va(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Br=Va();function lc(e){Br=e}var Ws={exec:()=>null};function be(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Pt.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var Pt={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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Jf=/^(?:[ \t]*(?:\n|$))+/,ed=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,td=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ri=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ya=/(?:[*+-]|\d{1,9}[.)])/,cc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uc=be(cc).replace(/bull/g,Ya).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(),rd=be(cc).replace(/bull/g,Ya).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(),Za=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sd=/^[^\n]+/,Ka=/(?!\s*\])(?:\\.|[^\[\]\\])+/,id=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ka).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ad=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ya).getRegex(),$i="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",Xa=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,od=be("^ {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",Xa).replace("tag",$i).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fc=be(Za).replace("hr",ri).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",$i).getRegex(),ld=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fc).getRegex(),Qa={blockquote:ld,code:ed,def:id,fences:td,heading:nd,hr:ri,html:od,lheading:uc,list:ad,newline:Jf,paragraph:fc,table:Ws,text:sd},zo=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ri).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",$i).getRegex(),cd={...Qa,lheading:rd,table:zo,paragraph:be(Za).replace("hr",ri).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zo).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",$i).getRegex()},ud={...Qa,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xa).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:Ws,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Za).replace("hr",ri).replace("heading",` *#{1,6} *[^
]`).replace("lheading",uc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,dc=/^( {2,}|\\)\n(?!\s*$)/,pd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,zi=/[\p{P}\p{S}]/u,Ja=/[\s\p{P}\p{S}]/u,pc=/[^\s\p{P}\p{S}]/u,hd=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ja).getRegex(),hc=/(?!~)[\p{P}\p{S}]/u,vd=/(?!~)[\s\p{P}\p{S}]/u,md=/(?:[^\s\p{P}\p{S}]|~)/u,gd=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,vc=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_d=be(vc,"u").replace(/punct/g,zi).getRegex(),wd=be(vc,"u").replace(/punct/g,hc).getRegex(),mc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bd=be(mc,"gu").replace(/notPunctSpace/g,pc).replace(/punctSpace/g,Ja).replace(/punct/g,zi).getRegex(),kd=be(mc,"gu").replace(/notPunctSpace/g,md).replace(/punctSpace/g,vd).replace(/punct/g,hc).getRegex(),yd=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,pc).replace(/punctSpace/g,Ja).replace(/punct/g,zi).getRegex(),xd=be(/\\(punct)/,"gu").replace(/punct/g,zi).getRegex(),Td=be(/^<(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(),Sd=be(Xa).replace("(?:-->|$)","-->").getRegex(),Ed=be("^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",Sd).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ai=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ad=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ai).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gc=be(/^!?\[(label)\]\[(ref)\]/).replace("label",Ai).replace("ref",Ka).getRegex(),_c=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ka).getRegex(),Rd=be("reflink|nolink(?!\\()","g").replace("reflink",gc).replace("nolink",_c).getRegex(),eo={_backpedal:Ws,anyPunctuation:xd,autolink:Td,blockSkip:gd,br:dc,code:dd,del:Ws,emStrongLDelim:_d,emStrongRDelimAst:bd,emStrongRDelimUnd:yd,escape:fd,link:Ad,nolink:_c,punctuation:hd,reflink:gc,reflinkSearch:Rd,tag:Ed,text:pd,url:Ws},Od={...eo,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",Ai).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ai).getRegex()},Oa={...eo,emStrongRDelimAst:kd,emStrongLDelim:wd,url:be(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Id={...Oa,br:be(dc).replace("{2,}","*").getRegex(),text:be(Oa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pi={normal:Qa,gfm:cd,pedantic:ud},Ds={normal:eo,gfm:Oa,breaks:Id,pedantic:Od},Ld={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fo=e=>Ld[e];function Tn(e,t){if(t){if(Pt.escapeTest.test(e))return e.replace(Pt.escapeReplace,Fo)}else if(Pt.escapeTestNoEncode.test(e))return e.replace(Pt.escapeReplaceNoEncode,Fo);return e}function Uo(e){try{e=encodeURI(e).replace(Pt.percentDecode,"%")}catch{return null}return e}function Bo(e,t){var i;const n=e.replace(Pt.findPipe,(o,a,f)=>{let u=!1,d=a;for(;--d>=0&&f[d]==="\\";)u=!u;return u?"|":" |"}),r=n.split(Pt.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(Pt.slashPipe,"|");return r}function Ns(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Dd(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ho(e,t,n,r,s){const i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;const f={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,f}function Nd(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const s=r[1];return t.split(`
`).map(i=>{const o=i.match(n.other.beginningSpace);if(o===null)return i;const[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
`)}var Ri=class{constructor(e){Y(this,"options");Y(this,"rules");Y(this,"lexer");this.options=e||Br}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ns(n,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=Nd(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const r=Ns(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ns(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=Ns(t[0],`
`).split(`
`),r="",s="";const i=[];for(;n.length>0;){let o=!1;const a=[];let f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))a.push(n[f]),o=!0;else if(!o)a.push(n[f]);else break;n=n.slice(f);const u=a.join(`
`),d=u.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
${u}`:u,s=s?`${s}
${d}`:d;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,i,!0),this.lexer.state.top=w,n.length===0)break;const m=i.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const _=m,g=_.raw+`
`+n.join(`
`),E=this.blockquote(g);i[i.length-1]=E,r=r.substring(0,r.length-_.raw.length)+E.raw,s=s.substring(0,s.length-_.text.length)+E.text;break}else if((m==null?void 0:m.type)==="list"){const _=m,g=_.raw+`
`+n.join(`
`),E=this.list(g);i[i.length-1]=E,r=r.substring(0,r.length-m.raw.length)+E.raw,s=s.substring(0,s.length-_.raw.length)+E.raw,n=g.substring(i.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,s={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 i=this.rules.other.listItemRegex(n);let o=!1;for(;e;){let f=!1,u="",d="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let w=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,R=>" ".repeat(3*R.length)),m=e.split(`
`,1)[0],_=!w.trim(),g=0;if(this.options.pedantic?(g=2,d=w.trimStart()):_?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=w.slice(g),g+=t[1].length),_&&this.rules.other.blankLine.test(m)&&(u+=m+`
`,e=e.substring(m.length+1),f=!0),!f){const R=this.rules.other.nextBulletRegex(g),te=this.rules.other.hrRegex(g),se=this.rules.other.fencesBeginRegex(g),q=this.rules.other.headingBeginRegex(g),Fe=this.rules.other.htmlBeginRegex(g);for(;e;){const Ye=e.split(`
`,1)[0];let ce;if(m=Ye,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),ce=m):ce=m.replace(this.rules.other.tabCharGlobal," "),se.test(m)||q.test(m)||Fe.test(m)||R.test(m)||te.test(m))break;if(ce.search(this.rules.other.nonSpaceChar)>=g||!m.trim())d+=`
`+ce.slice(g);else{if(_||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||se.test(w)||q.test(w)||te.test(w))break;d+=`
`+m}!_&&!m.trim()&&(_=!0),u+=Ye+`
`,e=e.substring(Ye.length+1),w=ce.slice(g)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let E=null,x;this.options.gfm&&(E=this.rules.other.listIsTask.exec(d),E&&(x=E[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!E,checked:x,loose:!1,text:d,tokens:[]}),s.raw+=u}const a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){const u=s.items[f].tokens.filter(w=>w.type==="space"),d=u.length>0&&u.some(w=>this.rules.other.anyLine.test(w.raw));s.loose=d}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){var o;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=Bo(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const a of r)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a<n.length;a++)i.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:i.align[a]});for(const a of s)i.rows.push(Bo(a,i.header.length).map((f,u)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:i.align[u]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const i=Ns(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=Dd(t[2],"()");if(i===-2)return;if(i>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){const i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[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)),Ho(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Ho(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const i=[...r[0]].length-1;let o,a,f=i,u=0;const d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){f+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){u+=a;continue}if(f-=a,f>0)continue;a=Math.min(a,a+f+u);const w=[...r[0]][0].length,m=e.slice(0,i+r.index+w+a);if(Math.min(i,a)%2){const g=m.slice(1,-1);return{type:"em",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}const _=m.slice(2,-2);return{type:"strong",raw:m,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,s;if(t[2]==="@")r=t[0],s="mailto:"+r;else{let i;do i=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(i!==t[0]);r=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Yn=class Ia{constructor(t){Y(this,"tokens");Y(this,"options");Y(this,"state");Y(this,"tokenizer");Y(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Br,this.options.tokenizer=this.options.tokenizer||new Ri,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:Pt,block:pi.normal,inline:Ds.normal};this.options.pedantic?(n.block=pi.pedantic,n.inline=Ds.pedantic):this.options.gfm&&(n.block=pi.gfm,this.options.breaks?n.inline=Ds.breaks:n.inline=Ds.gfm),this.tokenizer.rules=n}static get rules(){return{block:pi,inline:Ds}}static lex(t,n){return new Ia(n).lex(t)}static lexInline(t,n){return new Ia(n).inlineTokens(t)}lex(t){t=t.replace(Pt.carriageReturn,`
`),this.blockTokens(t,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(t,n=[],r=!1){var s,i,o;for(this.options.pedantic&&(t=t.replace(Pt.tabCharGlobal," ").replace(Pt.spaceLine,""));t;){let a;if((i=(s=this.options.extensions)==null?void 0:s.block)!=null&&i.some(u=>(a=u.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);const u=n.at(-1);a.raw.length===1&&u!==void 0?u.raw+=`
`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
`+a.raw,u.text+=`
`+a.text,this.inlineQueue.at(-1).src=u.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
`+a.raw,u.text+=`
`+a.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let f=t;if((o=this.options.extensions)!=null&&o.startBlock){let u=1/0;const d=t.slice(1);let w;this.options.extensions.startBlock.forEach(m=>{w=m.call({lexer:this},d),typeof w=="number"&&w>=0&&(u=Math.min(u,w))}),u<1/0&&u>=0&&(f=t.substring(0,u+1))}if(this.state.top&&(a=this.tokenizer.paragraph(f))){const u=n.at(-1);r&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=`
`+a.raw,u.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(a),r=f.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=`
`+a.raw,u.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(a);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var a,f,u;let r=t,s=null;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;t;){i||(o=""),i=!1;let d;if((f=(a=this.options.extensions)==null?void 0:a.inline)!=null&&f.some(m=>(d=m.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);const m=n.at(-1);d.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,r,o)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let w=t;if((u=this.options.extensions)!=null&&u.startInline){let m=1/0;const _=t.slice(1);let g;this.options.extensions.startInline.forEach(E=>{g=E.call({lexer:this},_),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(w=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(w)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),i=!0;const m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(t){const m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},Oi=class{constructor(e){Y(this,"options");Y(this,"parser");this.options=e||Br}space(e){return""}code({text:e,lang:t,escaped:n}){var i;const r=(i=(t||"").match(Pt.notSpaceStart))==null?void 0:i[0],s=e.replace(Pt.endingNewline,"")+`
`;return r?'<pre><code class="language-'+Tn(r)+'">'+(n?s:Tn(s,!0))+`</code></pre>
`:"<pre><code>"+(n?s:Tn(s,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,n=e.start;let r="";for(let o=0;o<e.items.length;o++){const a=e.items[o];r+=this.listitem(a)}const s=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+s+i+`>
`+r+"</"+s+`>
`}listitem(e){var n;let t="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Tn(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){const i=e.rows[s];n="";for(let o=0;o<i.length;o++)n+=this.tablecell(i[o]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Tn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),s=Uo(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+Tn(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const s=Uo(e);if(s===null)return Tn(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${Tn(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Tn(e.text)}},to=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Zn=class La{constructor(t){Y(this,"options");Y(this,"renderer");Y(this,"textRenderer");this.options=t||Br,this.options.renderer=this.options.renderer||new Oi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new to}static parse(t,n){return new La(n).parse(t)}static parseInline(t,n){return new La(n).parseInline(t)}parse(t,n=!0){var s,i;let r="";for(let o=0;o<t.length;o++){const a=t[o];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[a.type]){const u=a,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){r+=d||"";continue}}const f=a;switch(f.type){case"space":{r+=this.renderer.space(f);continue}case"hr":{r+=this.renderer.hr(f);continue}case"heading":{r+=this.renderer.heading(f);continue}case"code":{r+=this.renderer.code(f);continue}case"table":{r+=this.renderer.table(f);continue}case"blockquote":{r+=this.renderer.blockquote(f);continue}case"list":{r+=this.renderer.list(f);continue}case"html":{r+=this.renderer.html(f);continue}case"paragraph":{r+=this.renderer.paragraph(f);continue}case"text":{let u=f,d=this.renderer.text(u);for(;o+1<t.length&&t[o+1].type==="text";)u=t[++o],d+=`
`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):r+=d;continue}default:{const u='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){var s,i;let r="";for(let o=0;o<t.length;o++){const a=t[o];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[a.type]){const u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=u||"";continue}}const f=a;switch(f.type){case"escape":{r+=n.text(f);break}case"html":{r+=n.html(f);break}case"link":{r+=n.link(f);break}case"image":{r+=n.image(f);break}case"strong":{r+=n.strong(f);break}case"em":{r+=n.em(f);break}case"codespan":{r+=n.codespan(f);break}case"br":{r+=n.br(f);break}case"del":{r+=n.del(f);break}case"text":{r+=n.text(f);break}default:{const u='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},da,bi=(da=class{constructor(e){Y(this,"options");Y(this,"block");this.options=e||Br}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Yn.lex:Yn.lexInline}provideParser(){return this.block?Zn.parse:Zn.parseInline}},Y(da,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),da),Cd=class{constructor(...e){Y(this,"defaults",Va());Y(this,"options",this.setOptions);Y(this,"parse",this.parseMarkdown(!0));Y(this,"parseInline",this.parseMarkdown(!1));Y(this,"Parser",Zn);Y(this,"Renderer",Oi);Y(this,"TextRenderer",to);Y(this,"Lexer",Yn);Y(this,"Tokenizer",Ri);Y(this,"Hooks",bi);this.use(...e)}walkTokens(e,t){var r,s;let n=[];for(const i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{const o=i;for(const a of o.header)n=n.concat(this.walkTokens(a.tokens,t));for(const a of o.rows)for(const f of a)n=n.concat(this.walkTokens(f.tokens,t));break}case"list":{const o=i;n=n.concat(this.walkTokens(o.items,t));break}default:{const o=i;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const f=o[a].flat(1/0);n=n.concat(this.walkTokens(f,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){const s=this.defaults.renderer||new Oi(this.defaults);for(const i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const o=i,a=n.renderer[o],f=s[o];s[o]=(...u)=>{let d=a.apply(s,u);return d===!1&&(d=f.apply(s,u)),d||""}}r.renderer=s}if(n.tokenizer){const s=this.defaults.tokenizer||new Ri(this.defaults);for(const i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const o=i,a=n.tokenizer[o],f=s[o];s[o]=(...u)=>{let d=a.apply(s,u);return d===!1&&(d=f.apply(s,u)),d}}r.tokenizer=s}if(n.hooks){const s=this.defaults.hooks||new bi;for(const i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;const o=i,a=n.hooks[o],f=s[o];bi.passThroughHooks.has(i)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(w=>f.call(s,w));const d=a.call(s,u);return f.call(s,d)}:s[o]=(...u)=>{let d=a.apply(s,u);return d===!1&&(d=f.apply(s,u)),d}}r.hooks=s}if(n.walkTokens){const s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Yn.lex(e,t??this.defaults)}parser(e,t){return Zn.parse(e,t??this.defaults)}parseMarkdown(e){return(n,r)=>{const s={...r},i={...this.defaults,...s},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);const a=i.hooks?i.hooks.provideLexer():e?Yn.lex:Yn.lexInline,f=i.hooks?i.hooks.provideParser():e?Zn.parse:Zn.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(u=>a(u,i)).then(u=>i.hooks?i.hooks.processAllTokens(u):u).then(u=>i.walkTokens?Promise.all(this.walkTokens(u,i.walkTokens)).then(()=>u):u).then(u=>f(u,i)).then(u=>i.hooks?i.hooks.postprocess(u):u).catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));let u=a(n,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let d=f(u,i);return i.hooks&&(d=i.hooks.postprocess(d)),d}catch(u){return o(u)}}}onError(e,t){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+Tn(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ur=new Cd;function we(e,t){return Ur.parse(e,t)}we.options=we.setOptions=function(e){return Ur.setOptions(e),we.defaults=Ur.defaults,lc(we.defaults),we};we.getDefaults=Va;we.defaults=Br;we.use=function(...e){return Ur.use(...e),we.defaults=Ur.defaults,lc(we.defaults),we};we.walkTokens=function(e,t){return Ur.walkTokens(e,t)};we.parseInline=Ur.parseInline;we.Parser=Zn;we.parser=Zn.parse;we.Renderer=Oi;we.TextRenderer=to;we.Lexer=Yn;we.lexer=Yn.lex;we.Tokenizer=Ri;we.Hooks=bi;we.parse=we;we.options;we.setOptions;we.use;we.walkTokens;we.parseInline;Zn.parse;Yn.lex;const wc=1;function bc(e){const t=e.match(/\bFormat:\s*([^\s·]+)/);return t?/^\d+$/.test(t[1])?Number(t[1]):NaN:0}function aa(e){const t=e.match(/Projekt-ID:\s*(P-\d{4}|offen)(?![\w-])/);return t?t[1]:null}function Pd(e){return bc(e)>wc}const kc=["✓","◐","✗","?"],oa=kc;function yc(e){const t=e.match(/^\[#(\d+)\]\s*(.*)$/s);return t?{id:Number(t[1]),rest:t[2]}:{id:null,rest:e}}function xc(e){const t=e.match(/\s*→\s*((?:#\d+(?:,\s*)?)+)\s*$/);return t?{refs:[...t[1].matchAll(/#(\d+)/g)].map(n=>Number(n[1])),rest:e.slice(0,t.index).trim()}:{refs:[],rest:e}}function Tc(e){const t=e.replace(/\r/g,"").split(`
`),n=[],r=[];let s=null;for(const a of t){const f=a.match(/^##\s+(?:(\d+)\.\s*)?(.+?)\s*$/);f?(s={id:f[1]??String(n.length+1),title:f[2],lines:[]},n.push(s)):s?s.lines.push(a):a.startsWith("# ")||r.push(a)}const i=r.join(`
`).trim(),o=i.match(/Nächste freie ID:\s*#(\d+)/);return{head:i,sections:n,nextId:o?Number(o[1]):null}}function no(e){const t=e.filter(n=>n.trim().startsWith("|")).map(n=>n.trim().replace(/^\||\|$/g,"").split("|").map(r=>r.trim()));return t.length<2?{header:[],rows:[]}:{header:t[0],rows:t.slice(2)}}function Md(e){const t=e.trim().charAt(0);return kc.includes(t)?t:""}function $d(e){const t=no(e),n=t.header.findIndex(i=>/^id$/i.test(i)),r=t.header.filter((i,o)=>o!==n),s=r.findIndex(i=>/^stand$/i.test(i));return{header:r,rows:t.rows.map(i=>{const o=n>=0?(i[n]??"").replace("#","").trim():"",a=i.filter((f,u)=>u!==n);return{id:o?Number(o):null,cells:a,status:s>=0?Md(a[s]??""):""}})}}function zd(e){const t=e.trim();if(t.startsWith("**")){const r=t.indexOf("**",2);if(r>2){let s=t.slice(0,r+2),i=t.slice(r+2).trim();if(s.length-4<8){const o=i.search(/[.;] /);if(o>0&&o<140)s=`${s} ${i.slice(0,o+1)}`,i=i.slice(o+2).trim();else if(i.length>110){const a=i.lastIndexOf(" ",100);s=`${s} ${i.slice(0,a)} …`}}return{title:s,detail:i}}}if(t.length<=110)return{title:t,detail:""};const n=t.search(/[.;] /);return n>0&&n<140?{title:t.slice(0,n+1),detail:t.slice(n+2).trim()}:{title:`${t.slice(0,100)} …`,detail:t}}const la="Erledigt (einzeln)";function Fd(e){const t=[],n=[],r=[];let s="";for(const i of e){const o=i.trim();if(!o)continue;const a=o.match(/^\*\*(P\d[a-z]?)\s*[–-]\s*(.+?)\*\*$/);if(a){s=`${a[1]} – ${a[2]}`;continue}if(/^\*\*Erledigt \(einzeln\)\*\*$/.test(o)){s=la;continue}const f=o.match(/^\*\*(Erledigt am [^*]+?):?\*\*\s*(.*)$/);if(f){r.push({title:f[1].replace(/:$/,""),text:f[2]}),s=la;continue}const u=o.match(/^(?:-\s+|\d+\.\s+)(.*)$/);if(!u)continue;const{id:d,rest:w}=yc(u[1]),{refs:m,rest:_}=xc(w),{title:g,detail:E}=zd(_),x={id:d,title:g,detail:E,group:s,refs:m};(s===la?n:t).push(x)}return{items:t,finished:n,done:r}}function ca(e){return e.map(t=>t.trim()).filter(t=>t.startsWith("- ")).map(t=>{const{id:n,rest:r}=yc(t.slice(2).trim()),{refs:s,rest:i}=xc(r);return{id:n,text:i,refs:s}})}function jo(e){const t=[];for(const n of e){const r=n.trim().match(/^\*\*([^*]+?)\.?\*\*\s*(.*)$/);if(r){const[s,...i]=r[1].split(/\s+[–-]\s+/);t.push({name:s.trim(),title:i.join(" – ").trim(),text:r[2].trim(),ids:[...new Set([...r[2].matchAll(/#(\d{3,})/g)].map(o=>Number(o[1])))]})}}return t}function Go(e){return e.filter(t=>t.trim()&&!t.trim().startsWith("|")&&!t.trim().startsWith("- ")&&!/^\d+\.\s/.test(t.trim())&&!t.trim().startsWith("**")).join(" ").trim()}function Ud(e){const t=Tc(e),n=t.sections.map(r=>{const s=u=>{var d;return((d=r.lines.find(w=>w.trim().startsWith(`**${u}:**`)))==null?void 0:d.replace(new RegExp(`^\\s*\\*\\*${u}:\\*\\*\\s*`),"").trim())??""},i=no(r.lines),o=r.lines.findIndex(u=>u.trim().startsWith("**So gehst du vor:**")),a=r.lines.findIndex((u,d)=>d>o&&u.trim().startsWith("|"));return{howto:o<0?"":r.lines.slice(o+1,a<0?void 0:a).join(`
`).trim(),name:r.title,purpose:s("Zweck"),covers:[...s("Deckt ab").matchAll(/#(\d+)/g)].map(u=>Number(u[1])),precondition:s("Voraussetzung"),tests:i.rows.map(u=>({id:u[0]??"",steps:u[1]??"",expected:u[2]??"",kind:u[3]??""}))}}).filter(r=>r.tests.length);return{intro:t.head,processes:n}}function Bd(e){const t=[];for(const n of e){const r=n.text.replace(/\r\n/g,`
`).match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);if(!r)continue;const s={};for(const o of r[1].split(`
`)){const a=o.indexOf(":");a>0&&(s[o.slice(0,a).trim()]=o.slice(a+1).trim())}const i={zeit:s.zeit??"",commit:s.commit??"",art:s.art??"manuell",file:n.file};if(i.art==="auto-lauf")for(const o of r[2].split(`
`)){const a=o.match(/^- ([a-z0-9.\-]+): (✓|✗)(?:\s+(.*))?$/);a&&t.push({...i,id:a[1],result:a[2],note:a[3]??""})}else s.test&&(s.ergebnis==="✓"||s.ergebnis==="✗")&&t.push({...i,id:s.test,result:s.ergebnis,note:r[2].trim()})}return t.sort((n,r)=>n.zeit.localeCompare(r.zeit)||n.file.localeCompare(r.file))}const Xt=Or({intro:"",processes:[],runs:[]});async function Hd(){const e=Ud(await bf());Xt.intro=e.intro,Xt.processes=e.processes,Xt.runs=Bd(await kf())}function ua(e){for(let t=Xt.runs.length-1;t>=0;t--)if(Xt.runs[t].id===e)return Xt.runs[t]}const jd={rmTitle:"Roadmap",rmNewer:"Datei ist neuer als ich verstehe",rmNewerDetail:"Die ROADMAP.md hat Format {n}, dieser Viewer versteht bis Format {max}. Sie wird deshalb nur als einfacher Text gezeigt.",rmNextId:"Nächste freie ID",rmNextIdTip:"Steht im Kopf der ROADMAP.md",rmLoaded:"Gelesen um",rmReload:"Neu lesen",rmSummary:"Kennzahlen",rmDone:"fertig",rmPart:"teilweise",rmOpen2:"offen",rmUnknown:"nicht geprüft",rmTestsOk:"Tests bestanden",rmTodoCount:"Todo offen",rmAll:"Alle",rmSearch:"Suchen …",rmNone:"Keine Treffer.",rmCopyId:"ID kopieren",rmAdvances:"bringt voran",rmOpenTodos:"offene Todos",rmTests:"Tests",rmTodoShort:"Todo",rmCovers:"deckt ab",rmFinished:"Erledigt (einzeln)",rmDoneTitle:"Erledigt je Tag",rmP1Empty:"Kein P1-Punkt offen",rmP1Open:"Nächstes Paket in der Roadmap",rmDecOpen:"offen",rmDecDone:"entschieden",rmVerDone:"veröffentlicht",rmVerWork:"in Arbeit",rmVerNew:"neu",rmVerPlanning:"Planung",rmProcess:"Prozess",rmHowTitle:"So entstehen die Ergebnisse",rmHow1:"Jeder Test steht in KLICKTESTS.md mit Schritten und erwartetem Ergebnis.",rmHow2:"Ein Lauf ist eine Berichtsdatei in testberichte/ (Zeit, Commit, ✓ oder ✗, Notiz).",rmHow3:"Der letzte Bericht je Test gilt; „–“ heißt nie gelaufen.",rmHow4:"Diese Ansicht liest nur. Berichte schreibt der Assistent oder ein automatischer Lauf.",rmHowProc:"So gehst du vor"};function j(e){return jd[e]??e}var hi=P('<button type="button"> </button>'),Gd=P('<span class="svelte-gm2aws"> </span>'),Wd=P('<button type="button"> <!></button>'),qd=P('<span class="refs svelte-gm2aws"><small class="svelte-gm2aws"> </small> <!></span>'),Vd=P('<span class="badge svelte-gm2aws"> </span>'),Yd=P('<span class="badge svelte-gm2aws" title="Projekt-ID" data-testid="rm-pid"> </span>'),Wo=P('<small class="svelte-gm2aws"> </small>'),Zd=P('<p class="stamp svelte-gm2aws"></p>'),Kd=P('<p class="error svelte-gm2aws" role="alert"> </p>'),Xd=P('<div class="newer svelte-gm2aws" role="alert" data-testid="rm-newer"><strong class="svelte-gm2aws"> </strong> <p class="svelte-gm2aws"> </p></div> <pre class="plain svelte-gm2aws" data-testid="rm-plain"> </pre>',1),qo=P('<button type="button"><strong class="svelte-gm2aws"> </strong><span class="svelte-gm2aws"> </span></button>'),Qd=P('<button type="button">🧪 Tests</button>'),Vo=P('<div class="free svelte-gm2aws"></div>'),Jd=P('<option class="svelte-gm2aws"> </option>'),Yo=P('<p class="hint svelte-gm2aws"> </p>'),ep=P('<details class="howto svelte-gm2aws" data-testid="rm-proc-howto" open=""><summary class="svelte-gm2aws"> </summary> <div class="free svelte-gm2aws"></div></details>'),tp=P('<tr class="svelte-gm2aws"><td class="idcell svelte-gm2aws"><code class="svelte-gm2aws"> </code></td><td class="svelte-gm2aws"></td><td class="svelte-gm2aws"></td><td class="svelte-gm2aws"><span> </span></td><td class="state svelte-gm2aws"> </td><td class="state svelte-gm2aws"><span> </span></td></tr>'),np=P('<section class="proc svelte-gm2aws"><header class="svelte-gm2aws"><h2 class="svelte-gm2aws"> </h2> <span class="hint svelte-gm2aws"> </span></header> <!> <!> <!> <div class="tablewrap svelte-gm2aws"><table class="svelte-gm2aws"><thead class="svelte-gm2aws"><tr class="svelte-gm2aws"><th class="svelte-gm2aws">Test</th><th class="svelte-gm2aws">Schritte</th><th class="svelte-gm2aws">Erwartet</th><th class="svelte-gm2aws">Art</th><th class="svelte-gm2aws">Letzter Lauf</th><th class="svelte-gm2aws">Ergebnis</th></tr></thead><tbody class="svelte-gm2aws"></tbody></table></div></section>'),rp=P('<details class="howto svelte-gm2aws" data-testid="rm-howto" open=""><summary class="svelte-gm2aws"> </summary> <ol class="svelte-gm2aws"><li class="svelte-gm2aws"> </li> <li class="svelte-gm2aws"> </li> <li class="svelte-gm2aws"> </li> <li class="svelte-gm2aws"> </li></ol> <!></details> <div class="filters svelte-gm2aws"><select class="procselect svelte-gm2aws" data-testid="rm-test-process"><option class="svelte-gm2aws"> </option><!></select> <button type="button"> </button> <button type="button"> </button> <button type="button"> </button> <button type="button"> </button></div> <!>',1),sp=P('<button type="button" class="chip primary svelte-gm2aws" data-testid="rm-p1-open"> </button>'),Zo=P('<span class="more svelte-gm2aws" aria-hidden="true">▾</span>'),ip=P('<div class="detail svelte-gm2aws"><!> <!></div>'),ap=P('<details><summary class="svelte-gm2aws"><!> <span class="ttl svelte-gm2aws"></span> <!></summary> <!></details>'),fa=P('<h2 class="group svelte-gm2aws"> </h2> <div class="list svelte-gm2aws"></div>',1),op=P('<div class="detail svelte-gm2aws"><!><!></div>'),lp=P('<details><summary class="svelte-gm2aws"><!><span class="ttl svelte-gm2aws"></span><!></summary> <!></details>'),cp=P('<details class="card done svelte-gm2aws"><summary class="svelte-gm2aws"><span class="num svelte-gm2aws">✓</span><span class="ttl svelte-gm2aws"> </span><span class="more svelte-gm2aws" aria-hidden="true">▾</span></summary> <div class="detail svelte-gm2aws"></div></details>'),up=P('<div class="filters svelte-gm2aws"><button type="button"> </button> <!> <!></div> <!> <!> <!>',1),Ko=P('<th class="svelte-gm2aws"> </th>'),fp=P("<span> </span> <!>",1),dp=P('<button type="button" class="refchip svelte-gm2aws"> </button>'),pp=P('<span class="refs svelte-gm2aws"><small class="svelte-gm2aws"> </small><!></span>'),Xo=P("<!><!>",1),hp=P("<td><!></td>"),vp=P('<tr><td class="idcell svelte-gm2aws"><!></td><!></tr>'),mp=P('<div class="filters svelte-gm2aws"><button type="button"> </button> <!> <input type="search" class="svelte-gm2aws"/></div> <div class="tablewrap svelte-gm2aws"><table class="svelte-gm2aws"><thead class="svelte-gm2aws"><tr class="svelte-gm2aws"><th class="svelte-gm2aws">ID</th><!></tr></thead><tbody class="svelte-gm2aws"></tbody></table> <!></div>',1),gp=P("<span> </span>"),_p=P('<span class="pill plan svelte-gm2aws"> </span>'),wp=P('<span class="arrow svelte-gm2aws" aria-hidden="true">→</span>'),bp=P('<section class="ver svelte-gm2aws"><header class="svelte-gm2aws"><span class="vname svelte-gm2aws"> </span><span class="vtitle svelte-gm2aws"> </span> <!></header> <p class="svelte-gm2aws"></p> <!> <!></section>'),kp=P('<div class="versions svelte-gm2aws"></div>'),yp=P('<td class="svelte-gm2aws"></td>'),xp=P('<tr class="svelte-gm2aws"></tr>'),Tp=P('<div class="tablewrap svelte-gm2aws"><table class="svelte-gm2aws"><thead class="svelte-gm2aws"><tr class="svelte-gm2aws"></tr></thead><tbody class="svelte-gm2aws"></tbody></table></div>'),Sp=P('<p class="hint svelte-gm2aws"></p>'),Ep=P('<div class="filters svelte-gm2aws" data-testid="rm-decide-filters"><button type="button"> </button> <button type="button" data-testid="rm-decide-open"> </button> <button type="button" data-testid="rm-decide-done"> </button></div>'),Ap=P('<span class="num dot svelte-gm2aws">•</span>'),Rp=P('<span data-testid="rm-decide-state"> </span>'),Op=P('<div><!> <!> <span class="ttl svelte-gm2aws"><!><!></span></div>'),Ip=P('<div class="list svelte-gm2aws"></div>'),Lp=P("<!> <!> <!>",1),Dp=P('<div class="cards svelte-gm2aws" role="group"><!> <!> <button type="button"><strong class="svelte-gm2aws"> </strong><span class="svelte-gm2aws"> </span></button></div> <nav class="tabs svelte-gm2aws"><!> <!></nav> <!>',1),Np=P('<article class="roadmap svelte-gm2aws"><header class="top svelte-gm2aws"><div class="titles svelte-gm2aws"><h1 class="svelte-gm2aws"> </h1> <!> <!></div> <div class="tools svelte-gm2aws"><!> <!> <button type="button" class="svelte-gm2aws">⟳</button></div></header> <!> <!> <!></article>');function Cp(e,t){Ca(t,!0);const n=(v,T=vi)=>{var X=Xr(),Ie=gt(X);{var et=Ze=>{var at=hi();let At;var Ne=I(at);B(ht=>{At=Ae(at,1,"idchip svelte-gm2aws",null,At,{copied:c(gr)===T()}),nt(at,"title",ht),O(Ne,`#${T()??""}${c(gr)===T()?" ✓":""}`)},[()=>j("rmCopyId")]),Qe("click",at,ht=>{ht.preventDefault(),ht.stopPropagation(),oi(T())}),A(Ze,at)};J(Ie,Ze=>{T()!==null&&Ze(et)})}A(v,X)},r=(v,T=vi,X=vi,Ie)=>{let et=gl(()=>Uc(Ie==null?void 0:Ie(),!1));var Ze=Xr(),at=gt(Ze);{var At=Ne=>{var ht=qd(),yn=F(ht),kr=I(yn,!0),yr=S(yn,2);Je(yr,17,T,Wt,(xr,Ft)=>{var xn=Wd();let nr;var Vr=F(xn),zn=S(Vr);{var Ts=oe=>{var Gt=Gd(),Q=I(Gt,!0);B(M=>O(Q,M),[()=>{var M;return(M=c(mr).get(c(Ft)))==null?void 0:M.title}]),A(oe,Gt)},Ss=K(()=>c(mr).get(c(Ft)));J(zn,oe=>{c(Ss)&&oe(Ts)})}B((oe,Gt,Q,M)=>{nr=Ae(xn,1,"refchip svelte-gm2aws",null,nr,{missing:oe,done:Gt,open:Q}),nt(xn,"title",M),O(Vr,`#${c(Ft)??""}`)},[()=>!c(mr).get(c(Ft)),()=>c(et)&&c(Xn).has(c(Ft)),()=>c(et)&&!c(Xn).has(c(Ft)),()=>{var oe;return((oe=c(mr).get(c(Ft)))==null?void 0:oe.title)??""}]),Qe("click",xn,oe=>{oe.preventDefault(),oe.stopPropagation(),li(c(Ft))}),A(xr,xn)}),B(()=>O(kr,X())),A(Ne,ht)};J(at,Ne=>{T().length&&Ne(At)})}A(v,Ze)};let s=ko(t,"title",3,""),i=ko(t,"path",3,""),o=He(null),a=He(""),f=He(""),u=He(""),d=He(""),w=He(""),m=He("todo"),_=He(""),g=He(""),E=He(""),x=He("");const R=v=>/entschieden/i.test(v.text);async function te(){try{ee(a,await wf(),!0),ee(o,Tc(c(a)),!0),await Hd(),ee(d,""),ee(w,new Date().toLocaleTimeString(),!0)}catch(v){ee(d,String(v),!0)}}tc(()=>{try{ee(m,localStorage.getItem("roadmap.tab")??"todo",!0)}catch{}te();const v=()=>{document.visibilityState==="visible"&&te()};return document.addEventListener("visibilitychange",v),window.addEventListener("focus",v),()=>{document.removeEventListener("visibilitychange",v),window.removeEventListener("focus",v)}});function se(v){ee(m,v,!0);try{localStorage.setItem("roadmap.tab",v)}catch{}}const q=v=>$o.sanitize(we.parseInline(v,{async:!1})),Fe=v=>$o.sanitize(we.parse(v,{async:!1})),Ye=[["todo",/^todo/i,"📌"],["stand",/^stand/i,"📊"],["decide",/^offene entscheid/i,"❓"],["road",/^roadmap/i,"🗺"],["risk",/^risiken/i,"⚠"],["rules",/^leitplanken/i,"🧭"],["orders",/^auftr/i,"📨"]],ce={todo:"Todo",stand:"Stand",decide:"Entscheidungen",road:"Roadmap",risk:"Risiken",rules:"Leitplanken",orders:"Aufträge"},St=["todo","stand","decide","road","risk","rules","orders"],pt=K(()=>{var v;return(((v=c(o))==null?void 0:v.sections)??[]).map(T=>{var X,Ie;return{...T,kind:((X=Ye.find(([,et])=>et.test(T.title)))==null?void 0:X[0])??`s${T.id}`,icon:((Ie=Ye.find(([,et])=>et.test(T.title)))==null?void 0:Ie[2])??"•"}}).sort((T,X)=>(St.indexOf(T.kind)+1||99)-(St.indexOf(X.kind)+1||99))}),me=K(()=>c(m)==="tests"?void 0:c(pt).find(v=>v.kind===c(m))??c(pt)[0]),Ge=K(()=>c(m)==="tests"),st=K(()=>Xt.processes.flatMap(v=>v.tests.map(T=>({...T,process:v.name})))),Et=v=>{var T;return((T=ua(v))==null?void 0:T.result)??""},kn=K(()=>({ok:c(st).filter(v=>Et(v.id)==="✓").length,bad:c(st).filter(v=>Et(v.id)==="✗").length,none:c(st).filter(v=>!Et(v.id)).length})),cn=v=>v===null?[]:Xt.processes.filter(T=>T.covers.includes(v)),hr=v=>v.startsWith("✓")?"ok":v.startsWith("✗")?"open":"unk",wt=K(()=>{const v=c(pt).find(T=>T.kind==="stand");return v?$d(v.lines):{header:[],rows:[]}}),vr=K(()=>Object.fromEntries(oa.map(v=>[v,c(wt).rows.filter(T=>T.status===v).length]))),zt=K(()=>c(wt).rows.filter(v=>(!c(_)||v.status===c(_))&&(!c(g).trim()||v.cells.join(" ").toLowerCase().includes(c(g).trim().toLowerCase())))),it=K(()=>{const v=c(pt).find(T=>T.kind==="todo");return v?Fd(v.lines):{items:[],finished:[],done:[]}}),Xn=K(()=>new Set(c(it).finished.map(v=>v.id).filter(Boolean))),si=K(()=>{var Ie,et;const v=(((et=(Ie=c(o))==null?void 0:Ie.head.match(/(?:installiert ist|Release\s+`?)v?([0-9]+(?:\.[0-9]+)*)/))==null?void 0:et[1])??"").trim(),T=new Map,X=c(pt).find(Ze=>Ze.kind==="road");for(const Ze of X?jo(X.lines):[]){const at=Ze.ids.length>0&&Ze.ids.every(Ne=>c(Xn).has(Ne));if(Ze.name===v||at){T.set(Ze.name,{cls:"ok",text:j("rmVerDone")});continue}const At=Ze.ids.some(Ne=>c(Xn).has(Ne));T.set(Ze.name,At?{cls:"work",text:j("rmVerWork")}:{cls:"plan",text:""})}return T}),Hr=K(()=>{const v=c(pt).find(T=>T.kind==="decide");return v?ca(v.lines):[]}),ii=K(()=>c(Hr).filter(v=>!R(v)).length),Fi=K(()=>c(Hr).length-c(ii)),Re=K(()=>{const v=c(pt).find(T=>T.kind==="risk");return v?ca(v.lines):[]}),ai=K(()=>[...new Set(c(it).items.map(v=>v.group))]),Ui=K(()=>c(it).items.filter(v=>!c(E)||v.group===c(E))),jr=v=>v.replace(/\*\*|`|\[|\]/g,"").replace(/\s+/g," ").trim(),mr=K(()=>{const v=new Map;for(const T of c(wt).rows)T.id!==null&&v.set(T.id,{kind:"stand",title:jr(T.cells[0]??"")});for(const T of[...c(it).items,...c(it).finished])T.id!==null&&v.set(T.id,{kind:"todo",title:jr(T.title)});for(const T of c(Hr))T.id!==null&&v.set(T.id,{kind:"decide",title:jr(T.text).slice(0,80)});for(const T of c(Re))T.id!==null&&v.set(T.id,{kind:"risk",title:jr(T.text).slice(0,80)});return v}),Bi=v=>v===null?[]:c(it).items.filter(T=>T.refs.includes(v));let gr=He(null);async function oi(v){try{await navigator.clipboard.writeText(`#${v}`),ee(gr,v,!0),setTimeout(()=>{c(gr)===v&&ee(gr,null)},1500)}catch{}}let Cn=He(null);async function li(v){const T=c(mr).get(v);if(!T)return;ee(_,""),ee(g,""),ee(E,""),se(T.kind),await Yl();const X=document.querySelector(`[data-id="${v}"]`);X instanceof HTMLDetailsElement&&(X.open=!0),X==null||X.scrollIntoView({block:"center",behavior:"smooth"}),ee(Cn,v,!0),setTimeout(()=>{c(Cn)===v&&ee(Cn,null)},1800)}const Oe={"✓":"rmDone","◐":"rmPart","✗":"rmOpen2","?":"rmUnknown"},_r=v=>v==="◐"?"½":v||"–",Te=v=>({"✓":"ok","◐":"part","✗":"open","?":"unk"})[v]??"",Gr=K(()=>c(wt).header.findIndex(v=>/^stand$/i.test(v))),Jt=v=>v.split(`
`).find(T=>T.trim())??"";var Qn=Np(),vs=F(Qn),un=F(vs),ms=F(un),gs=I(ms,!0),_s=S(ms,2);{var ws=v=>{var T=Vd(),X=I(T,!0);B(()=>{nt(T,"title",i()),O(X,i())}),A(v,T)};J(_s,v=>{i()&&v(ws)})}var fn=S(_s,2);{var Pn=v=>{var T=Yd(),X=I(T,!0);B(Ie=>O(X,Ie),[()=>aa(c(o).head)==="offen"?"Projekt-ID offen":aa(c(o).head)]),A(v,T)},Mn=K(()=>c(o)&&aa(c(o).head));J(fn,v=>{c(Mn)&&v(Pn)})}var bs=S(un,2),wr=F(bs);{var Wr=v=>{var T=Wo(),X=I(T);B((Ie,et)=>{nt(T,"title",Ie),O(X,`${et??""} #${c(o).nextId??""}`)},[()=>j("rmNextIdTip"),()=>j("rmNextId")]),A(v,T)};J(wr,v=>{var T;(T=c(o))!=null&&T.nextId&&v(Wr)})}var qr=S(wr,2);{var Jn=v=>{var T=Wo(),X=I(T);B(Ie=>O(X,`${Ie??""} ${c(w)??""}`),[()=>j("rmLoaded")]),A(v,T)};J(qr,v=>{c(w)&&v(Jn)})}var er=S(qr,2),br=S(vs,2);{var ci=v=>{var T=Zd();kt(T,()=>q(Jt(c(o).head)),!0),A(v,T)};J(br,v=>{var T;(T=c(o))!=null&&T.head&&v(ci)})}var ks=S(br,2);{var ui=v=>{var T=Kd(),X=I(T,!0);B(()=>O(X,c(d))),A(v,T)};J(ks,v=>{c(d)&&v(ui)})}var ys=S(ks,2);{var xs=v=>{var T=Xd(),X=gt(T),Ie=F(X),et=I(Ie,!0),Ze=S(Ie,2),at=I(Ze,!0),At=S(X,2),Ne=I(At,!0);B((ht,yn)=>{O(et,ht),O(at,yn),O(Ne,c(a))},[()=>j("rmNewer"),()=>j("rmNewerDetail").replace("{n}",String(bc(c(o).head))).replace("{max}",String(wc))]),A(v,T)},$n=K(()=>c(o)&&Pd(c(o).head)),tr=v=>{var T=Dp(),X=gt(T),Ie=F(X);Je(Ie,17,()=>oa,Wt,(Q,M)=>{var V=qo();let le;var ge=F(V),Ce=I(ge,!0),Ue=S(ge),We=I(Ue);B((ot,Se,Ke)=>{le=Ae(V,1,`stat ${ot??""}`,"svelte-gm2aws",le,{on:c(m)==="stand"&&c(_)===c(M)}),O(Ce,c(vr)[c(M)]),O(We,`${Se??""} ${Ke??""}`)},[()=>Te(c(M)),()=>_r(c(M)),()=>j(Oe[c(M)])]),Qe("click",V,()=>{se("stand"),ee(_,c(_)===c(M)?"":c(M),!0)}),A(Q,V)});var et=S(Ie,2);{var Ze=Q=>{var M=qo();let V;var le=F(M),ge=I(le),Ce=S(le),Ue=I(Ce);B(We=>{V=Ae(M,1,"stat tests svelte-gm2aws",null,V,{on:c(Ge)}),O(ge,`${c(kn).ok??""}/${c(st).length??""}`),O(Ue,`🧪 ${We??""}`)},[()=>j("rmTestsOk")]),Qe("click",M,()=>se("tests")),A(Q,M)};J(et,Q=>{c(st).length&&Q(Ze)})}var at=S(et,2);let At;var Ne=F(at),ht=I(Ne,!0),yn=S(Ne),kr=I(yn),yr=S(X,2),xr=F(yr);Je(xr,17,()=>c(pt),Q=>Q.id,(Q,M)=>{var V=hi();let le;var ge=I(V);B(Ce=>{var Ue;le=Ae(V,1,"svelte-gm2aws",null,le,{on:((Ue=c(me))==null?void 0:Ue.kind)===c(M).kind}),O(ge,`${c(M).icon??""} ${Ce??""}`)},[()=>ce[c(M).kind]??c(M).title.replace(/\s*\(.*$/,"")]),Qe("click",V,()=>se(c(M).kind)),A(Q,V)});var Ft=S(xr,2);{var xn=Q=>{var M=Qd();let V;B(()=>V=Ae(M,1,"svelte-gm2aws",null,V,{on:c(Ge)})),Qe("click",M,()=>se("tests")),A(Q,M)};J(Ft,Q=>{Xt.processes.length&&Q(xn)})}var nr=S(yr,2);{var Vr=Q=>{var M=rp(),V=gt(M),le=F(V),ge=I(le,!0),Ce=S(le,2),Ue=F(Ce),We=I(Ue,!0),ot=S(Ue,2),Se=I(ot,!0),Ke=S(ot,2),Rt=I(Ke,!0),lt=S(Ke,2),ke=I(lt,!0),Pe=S(Ce,2);{var Z=De=>{var ve=Vo();kt(ve,()=>Fe(Xt.intro),!0),A(De,ve)};J(Pe,De=>{Xt.intro&&De(Z)})}var N=S(V,2),D=F(N),G=F(D),he=I(G);G.value=G.__value="";var ye=S(G);Je(ye,17,()=>Xt.processes,De=>De.name,(De,ve)=>{var $e=Jd(),Ve=I($e,!0),Be={};B(()=>{O(Ve,c(ve).name),Be!==(Be=c(ve).name)&&($e.value=($e.__value=Be)??"")}),A(De,$e)}),ec(D);var U=S(D,2);let H;var Me=I(U),qe=S(U,2);let Xe;var tt=I(qe),de=S(qe,2);let vt;var en=I(de),Ot=S(de,2);let _e;var Le=I(Ot),xe=S(N,2);Je(xe,17,()=>Xt.processes,De=>De.name,(De,ve)=>{const $e=K(()=>c(ve).tests.filter(Ut=>!c(f)||(c(f)==="ok"?Et(Ut.id)==="✓":c(f)==="bad"?Et(Ut.id)==="✗":!Et(Ut.id))));var Ve=Xr(),Be=gt(Ve);{var dn=Ut=>{var Fn=np(),pn=F(Fn),Un=F(pn),rr=I(Un,!0),Yr=S(Un,2),Tr=I(Yr,!0),tn=S(pn,2);{let L=K(()=>j("rmCovers"));r(tn,()=>c(ve).covers,()=>c(L))}var hn=S(tn,2);{var y=L=>{var $=Yo(),Ee=I($,!0);B(()=>O(Ee,c(ve).precondition)),A(L,$)};J(hn,L=>{c(ve).precondition&&L(y)})}var l=S(hn,2);{var p=L=>{var $=ep(),Ee=F($),Nt=I(Ee,!0),ut=S(Ee,2);kt(ut,()=>Fe(c(ve).howto),!0),B(mt=>O(Nt,mt),[()=>j("rmHowProc")]),A(L,$)};J(l,L=>{c(ve).howto&&L(p)})}var b=S(l,2),k=F(b),C=S(F(k));Je(C,21,()=>c($e),L=>L.id,(L,$)=>{var Ee=tp(),Nt=F(Ee),ut=F(Nt),mt=I(ut,!0),Bn=S(Nt);kt(Bn,()=>q(c($).steps),!0);var bt=S(Bn);kt(bt,()=>q(c($).expected),!0);var Es=S(bt),ro=F(Es);let so;var Sc=I(ro,!0),io=S(Es),Ec=I(io,!0),Ac=S(io),Hi=F(Ac),Rc=I(Hi,!0);B((Sr,Oc,Ic,Lc,Dc)=>{nt(Ee,"data-test",c($).id),O(mt,c($).id),so=Ae(ro,1,"kind svelte-gm2aws",null,so,{auto:Sr}),O(Sc,c($).kind),O(Ec,Oc),Ae(Hi,1,`pill ${Ic??""}`,"svelte-gm2aws"),nt(Hi,"title",Lc),O(Rc,Dc)},[()=>c($).kind.startsWith("auto"),()=>{var Sr;return((Sr=ua(c($).id))==null?void 0:Sr.zeit)??""},()=>hr(Et(c($).id)),()=>{var Sr;return((Sr=ua(c($).id))==null?void 0:Sr.note)??""},()=>Et(c($).id)||"–"]),A(L,Ee)}),B(()=>{nt(Fn,"data-process",c(ve).name),O(rr,c(ve).name),O(Tr,c(ve).purpose)}),A(Ut,Fn)};J(Be,Ut=>{(!c(u)||c(ve).name===c(u))&&c($e).length&&Ut(dn)})}A(De,Ve)}),B((De,ve,$e,Ve,Be,dn,Ut,Fn)=>{O(ge,De),O(We,ve),O(Se,$e),O(Rt,Ve),O(ke,Be),nt(D,"aria-label",dn),O(he,`${Ut??""} (${c(st).length??""})`),H=Ae(U,1,"chip svelte-gm2aws",null,H,{on:!c(f)}),O(Me,`${Fn??""} (${c(st).length??""})`),Xe=Ae(qe,1,"chip ok svelte-gm2aws",null,Xe,{on:c(f)==="ok"}),O(tt,`✓ ${c(kn).ok??""}`),vt=Ae(de,1,"chip open svelte-gm2aws",null,vt,{on:c(f)==="bad"}),O(en,`✗ ${c(kn).bad??""}`),_e=Ae(Ot,1,"chip svelte-gm2aws",null,_e,{on:c(f)==="none"}),O(Le,`– ${c(kn).none??""}`)},[()=>j("rmHowTitle"),()=>j("rmHow1"),()=>j("rmHow2"),()=>j("rmHow3"),()=>j("rmHow4"),()=>j("rmProcess"),()=>j("rmAll"),()=>j("rmAll")]),uf(D,()=>c(u),De=>ee(u,De)),Qe("click",U,()=>ee(f,"")),Qe("click",qe,()=>ee(f,c(f)==="ok"?"":"ok",!0)),Qe("click",de,()=>ee(f,c(f)==="bad"?"":"bad",!0)),Qe("click",Ot,()=>ee(f,c(f)==="none"?"":"none",!0)),A(Q,M)},zn=Q=>{var M=up(),V=gt(M),le=F(V);let ge;var Ce=I(le,!0),Ue=S(le,2);Je(Ue,17,()=>c(ai),Wt,(Z,N)=>{var D=hi();let G;var he=I(D,!0);B(ye=>{G=Ae(D,1,"chip svelte-gm2aws",null,G,{on:c(E)===c(N)}),O(he,ye)},[()=>c(N).split(" – ")[0]]),Qe("click",D,()=>ee(E,c(N),!0)),A(Z,D)});var We=S(Ue,2);{var ot=Z=>{var N=sp(),D=I(N);B((G,he)=>{nt(N,"title",G),O(D,`→ ${he??""}`)},[()=>j("rmP1Empty"),()=>j("rmP1Open")]),Qe("click",N,()=>se("road")),A(Z,N)},Se=K(()=>!c(it).items.some(Z=>Z.group.startsWith("P1")));J(We,Z=>{c(Se)&&Z(ot)})}var Ke=S(V,2);Je(Ke,17,()=>c(ai).filter(Z=>!c(E)||Z===c(E)),Wt,(Z,N)=>{var D=fa(),G=gt(D),he=I(G,!0),ye=S(G,2);Je(ye,23,()=>c(Ui).filter(U=>U.group===c(N)),(U,H)=>`${U.id??U.title}-${H}`,(U,H)=>{var Me=ap();let qe;var Xe=F(Me),tt=F(Xe);n(tt,()=>c(H).id);var de=S(tt,2);kt(de,()=>q(c(H).title),!0);var vt=S(de,2);{var en=Le=>{var xe=Zo();A(Le,xe)};J(vt,Le=>{(c(H).detail||c(H).refs.length)&&Le(en)})}var Ot=S(Xe,2);{var _e=Le=>{var xe=ip(),De=F(xe);{var ve=Ve=>{var Be=Xr(),dn=gt(Be);kt(dn,()=>q(c(H).detail)),A(Ve,Be)};J(De,Ve=>{c(H).detail&&Ve(ve)})}var $e=S(De,2);{let Ve=K(()=>j("rmAdvances"));r($e,()=>c(H).refs,()=>c(Ve))}A(Le,xe)};J(Ot,Le=>{(c(H).detail||c(H).refs.length)&&Le(_e)})}B(()=>{qe=Ae(Me,1,"card svelte-gm2aws",null,qe,{plain:!c(H).detail&&!c(H).refs.length,flash:c(Cn)===c(H).id}),nt(Me,"data-id",c(H).id)}),A(U,Me)}),B(()=>O(he,c(N))),A(Z,D)});var Rt=S(Ke,2);{var lt=Z=>{var N=fa(),D=gt(N),G=I(D,!0),he=S(D,2);Je(he,23,()=>c(it).finished,(ye,U)=>`${ye.id??ye.title}-${U}`,(ye,U)=>{var H=lp();let Me;var qe=F(H),Xe=F(qe);n(Xe,()=>c(U).id);var tt=S(Xe);kt(tt,()=>q(c(U).title),!0);var de=S(tt);{var vt=_e=>{var Le=Zo();A(_e,Le)};J(de,_e=>{c(U).detail&&_e(vt)})}var en=S(qe,2);{var Ot=_e=>{var Le=op(),xe=F(Le);{var De=$e=>{var Ve=Xr(),Be=gt(Ve);kt(Be,()=>q(c(U).detail)),A($e,Ve)};J(xe,$e=>{c(U).detail&&$e(De)})}var ve=S(xe);{let $e=K(()=>j("rmAdvances"));r(ve,()=>c(U).refs,()=>c($e))}A(_e,Le)};J(en,_e=>{(c(U).detail||c(U).refs.length)&&_e(Ot)})}B(()=>{Me=Ae(H,1,"card done svelte-gm2aws",null,Me,{flash:c(Cn)===c(U).id}),nt(H,"data-id",c(U).id)}),A(ye,H)}),B(ye=>O(G,ye),[()=>j("rmFinished")]),A(Z,N)};J(Rt,Z=>{c(it).finished.length&&Z(lt)})}var ke=S(Rt,2);{var Pe=Z=>{var N=fa(),D=gt(N),G=I(D,!0),he=S(D,2);Je(he,21,()=>c(it).done,Wt,(ye,U)=>{var H=cp(),Me=F(H),qe=S(F(Me)),Xe=I(qe,!0),tt=S(Me,2);kt(tt,()=>q(c(U).text),!0),B(()=>O(Xe,c(U).title)),A(ye,H)}),B(ye=>O(G,ye),[()=>j("rmDoneTitle")]),A(Z,N)};J(ke,Z=>{c(it).done.length&&Z(Pe)})}B(Z=>{ge=Ae(le,1,"chip svelte-gm2aws",null,ge,{on:!c(E)}),O(Ce,Z)},[()=>j("rmAll")]),Qe("click",le,()=>ee(E,"")),A(Q,M)},Ts=Q=>{var M=mp(),V=gt(M),le=F(V);let ge;var Ce=I(le),Ue=S(le,2);Je(Ue,17,()=>oa,Wt,(N,D)=>{var G=hi();let he;var ye=I(G);B((U,H)=>{he=Ae(G,1,`chip ${U??""}`,"svelte-gm2aws",he,{on:c(_)===c(D)}),O(ye,`${H??""} ${c(vr)[c(D)]??""}`)},[()=>Te(c(D)),()=>_r(c(D))]),Qe("click",G,()=>ee(_,c(_)===c(D)?"":c(D),!0)),A(N,G)});var We=S(Ue,2),ot=S(V,2),Se=F(ot),Ke=F(Se),Rt=F(Ke),lt=S(F(Rt));Je(lt,17,()=>c(wt).header,Wt,(N,D)=>{var G=Ko(),he=I(G,!0);B(()=>O(he,c(D))),A(N,G)});var ke=S(Ke);Je(ke,23,()=>c(zt),(N,D)=>`${N.id??N.cells[0]}-${D}`,(N,D)=>{var G=vp();let he;var ye=F(G),U=F(ye);n(U,()=>c(D).id);var H=S(ye);Je(H,17,()=>c(D).cells,Wt,(Me,qe,Xe)=>{var tt=hp();let de;var vt=F(tt);{var en=_e=>{var Le=fp(),xe=gt(Le),De=I(xe,!0),ve=S(xe,2);kt(ve,()=>q(c(qe).replace(/^\S\s*/,""))),B(($e,Ve,Be)=>{Ae(xe,1,`pill ${$e??""}`,"svelte-gm2aws"),nt(xe,"title",Ve),O(De,Be)},[()=>Te(c(D).status),()=>j(Oe[c(D).status]??"rmUnknown"),()=>_r(c(D).status)]),A(_e,Le)},Ot=_e=>{var Le=Xo(),xe=gt(Le);kt(xe,()=>q(c(qe)));var De=S(xe);{var ve=$e=>{var Ve=Xo(),Be=gt(Ve);{let pn=K(()=>Bi(c(D).id).map(rr=>rr.id??0).filter(Boolean)),Un=K(()=>j("rmOpenTodos"));r(Be,()=>c(pn),()=>c(Un))}var dn=S(Be);{var Ut=pn=>{var Un=pp(),rr=F(Un),Yr=I(rr,!0),Tr=S(rr);Je(Tr,17,()=>cn(c(D).id),Wt,(tn,hn)=>{var y=dp(),l=I(y);B(p=>{nt(y,"title",c(hn).purpose),O(l,`${c(hn).name??""} ${p??""}/${c(hn).tests.length??""}`)},[()=>c(hn).tests.filter(p=>Et(p.id)==="✓").length]),Qe("click",y,()=>se("tests")),A(tn,y)}),B(tn=>O(Yr,tn),[()=>j("rmTests")]),A(pn,Un)},Fn=K(()=>cn(c(D).id).length);J(dn,pn=>{c(Fn)&&pn(Ut)})}A($e,Ve)};J(De,$e=>{Xe===c(wt).header.length-1&&$e(ve)})}A(_e,Le)};J(vt,_e=>{Xe===c(Gr)?_e(en):_e(Ot,-1)})}B(()=>de=Ae(tt,1,"svelte-gm2aws",null,de,{state:Xe===c(Gr)})),A(Me,tt)}),B(()=>{nt(G,"data-id",c(D).id),he=Ae(G,1,"svelte-gm2aws",null,he,{flash:c(Cn)===c(D).id})}),A(N,G)});var Pe=S(Se,2);{var Z=N=>{var D=Yo(),G=I(D,!0);B(he=>O(G,he),[()=>j("rmNone")]),A(N,D)};J(Pe,N=>{c(zt).length||N(Z)})}B((N,D,G)=>{ge=Ae(le,1,"chip svelte-gm2aws",null,ge,{on:!c(_)}),O(Ce,`${N??""} (${c(wt).rows.length??""})`),nt(We,"placeholder",D),nt(We,"aria-label",G)},[()=>j("rmAll"),()=>j("rmSearch"),()=>j("rmSearch")]),Qe("click",le,()=>ee(_,"")),mf(We,()=>c(g),N=>ee(g,N)),A(Q,M)},Ss=Q=>{const M=K(()=>jo(c(me).lines)),V=K(()=>ge=>c(si).get(ge));var le=kp();Je(le,21,()=>c(M),Wt,(ge,Ce,Ue)=>{const We=K(()=>c(V)(c(Ce).name));var ot=bp(),Se=F(ot),Ke=F(Se),Rt=I(Ke,!0),lt=S(Ke),ke=I(lt,!0),Pe=S(lt,2);{var Z=U=>{var H=gp(),Me=I(H,!0);B(()=>{Ae(H,1,`pill ${c(We).cls??""}`,"svelte-gm2aws"),O(Me,c(We).text)}),A(U,H)},N=U=>{var H=_p(),Me=I(H,!0);B(qe=>O(Me,qe),[()=>Ue===c(M).length-1?j("rmVerNew"):j("rmVerPlanning")]),A(U,H)};J(Pe,U=>{var H;(H=c(We))!=null&&H.text?U(Z):U(N,-1)})}var D=S(Se,2);kt(D,()=>q(c(Ce).text.replace(/#\d{3,}(,\s*)?/g,"").replace(/Todo:\s*:?\s*/g,"").trim()),!0);var G=S(D,2);{let U=K(()=>j("rmTodoShort"));r(G,()=>c(Ce).ids,()=>c(U),()=>!0)}var he=S(G,2);{var ye=U=>{var H=wp();A(U,H)};J(he,U=>{Ue<c(M).length-1&&U(ye)})}B(()=>{O(Rt,c(Ce).name),O(ke,c(Ce).title)}),A(ge,ot)}),A(Q,le)},oe=Q=>{const M=K(()=>no(c(me).lines));var V=Tp(),le=F(V),ge=F(le),Ce=F(ge);Je(Ce,21,()=>c(M).header,Wt,(We,ot)=>{var Se=Ko(),Ke=I(Se,!0);B(()=>O(Ke,c(ot))),A(We,Se)});var Ue=S(ge);Je(Ue,21,()=>c(M).rows,Wt,(We,ot)=>{var Se=xp();Je(Se,21,()=>c(ot),Wt,(Ke,Rt)=>{var lt=yp();kt(lt,()=>q(c(Rt)),!0),A(Ke,lt)}),A(We,Se)}),A(Q,V)},Gt=Q=>{const M=K(()=>ca(c(me).lines)),V=K(()=>c(me).kind==="decide"),le=K(()=>c(V)?c(M).filter(ke=>!c(x)||c(x)==="open"==!R(ke)).sort((ke,Pe)=>Number(R(ke))-Number(R(Pe))):c(M));var ge=Lp(),Ce=gt(ge);{var Ue=ke=>{var Pe=Sp();kt(Pe,()=>q(Go(c(me).lines)),!0),A(ke,Pe)},We=K(()=>Go(c(me).lines));J(Ce,ke=>{c(We)&&ke(Ue)})}var ot=S(Ce,2);{var Se=ke=>{var Pe=Ep(),Z=F(Pe);let N;var D=I(Z),G=S(Z,2);let he;var ye=I(G),U=S(G,2);let H;var Me=I(U);B((qe,Xe,tt)=>{N=Ae(Z,1,"chip svelte-gm2aws",null,N,{on:!c(x)}),O(D,`${qe??""} ${c(Hr).length??""}`),he=Ae(G,1,"chip svelte-gm2aws",null,he,{on:c(x)==="open"}),O(ye,`${Xe??""} ${c(ii)??""}`),H=Ae(U,1,"chip svelte-gm2aws",null,H,{on:c(x)==="done"}),O(Me,`${tt??""} ${c(Fi)??""}`)},[()=>j("rmAll"),()=>j("rmDecOpen"),()=>j("rmDecDone")]),Qe("click",Z,()=>ee(x,"")),Qe("click",G,()=>ee(x,"open")),Qe("click",U,()=>ee(x,"done")),A(ke,Pe)};J(ot,ke=>{c(V)&&ke(Se)})}var Ke=S(ot,2);{var Rt=ke=>{var Pe=Ip();Je(Pe,23,()=>c(le),(Z,N)=>`${Z.id??Z.text}-${N}`,(Z,N)=>{var D=Op();let G;var he=F(D);{var ye=de=>{n(de,()=>c(N).id)},U=de=>{var vt=Ap();A(de,vt)};J(he,de=>{c(N).id!==null?de(ye):de(U,-1)})}var H=S(he,2);{var Me=de=>{var vt=Rp(),en=I(vt,!0);B((Ot,_e)=>{Ae(vt,1,`pill ${Ot??""}`,"svelte-gm2aws"),O(en,_e)},[()=>R(c(N))?"ok":"open",()=>R(c(N))?j("rmDecDone"):j("rmDecOpen")]),A(de,vt)};J(H,de=>{c(V)&&de(Me)})}var qe=S(H,2),Xe=F(qe);kt(Xe,()=>q(c(N).text));var tt=S(Xe);{let de=K(()=>j("rmAdvances"));r(tt,()=>c(N).refs,()=>c(de))}B(de=>{G=Ae(D,1,"card plain svelte-gm2aws",null,G,{done:de,flash:c(Cn)===c(N).id}),nt(D,"data-id",c(N).id)},[()=>c(V)&&R(c(N))]),A(Z,D)}),A(ke,Pe)},lt=ke=>{var Pe=Vo();kt(Pe,()=>Fe(c(me).lines.join(`
`)),!0),A(ke,Pe)};J(Ke,ke=>{c(le).length?ke(Rt):ke(lt,-1)})}A(Q,ge)};J(nr,Q=>{var M,V,le,ge;c(Ge)?Q(Vr):((M=c(me))==null?void 0:M.kind)==="todo"?Q(zn,1):((V=c(me))==null?void 0:V.kind)==="stand"?Q(Ts,2):((le=c(me))==null?void 0:le.kind)==="road"?Q(Ss,3):((ge=c(me))==null?void 0:ge.kind)==="orders"?Q(oe,4):c(me)&&Q(Gt,5)})}B((Q,M,V)=>{nt(X,"aria-label",Q),At=Ae(at,1,"stat todo svelte-gm2aws",null,At,{on:c(m)==="todo"}),O(ht,c(it).items.length),O(kr,`📌 ${M??""}`),nt(yr,"aria-label",V)},[()=>j("rmSummary"),()=>j("rmTodoCount"),()=>j("rmTitle")]),Qe("click",at,()=>se("todo")),A(v,T)};J(ys,v=>{c($n)?v(xs):c(o)&&v(tr,1)})}B((v,T,X)=>{O(gs,v),nt(er,"title",T),nt(er,"aria-label",X)},[()=>s()||j("rmTitle"),()=>j("rmReload"),()=>j("rmReload")]),Qe("click",er,te),A(e,Qn),Pa()}Ql(["click"]);var Pp=P('<p class="err svelte-1n46o8q" role="alert"> </p>'),Mp=P("<option> </option>"),$p=P('<label class="pick svelte-1n46o8q">Projekt <select></select></label>'),zp=P('<main class="svelte-1n46o8q"><!> <!> <!></main>');function Fp(e,t){Ca(t,!0);let n=He(Or([])),r=He("0"),s=He("");tc(async()=>{try{ee(n,await _f(),!0);const g=localStorage.getItem("viewer.project");g&&c(n).some(E=>E.id===g)&&ee(r,g,!0),Ea.project=c(r)}catch(g){ee(s,String(g),!0)}});function i(g){ee(r,g,!0),Ea.project=g;try{localStorage.setItem("viewer.project",g)}catch{}}const o=K(()=>c(n).find(g=>g.id===c(r)));var a=zp(),f=F(a);{var u=g=>{var E=Pp(),x=I(E,!0);B(()=>O(x,c(s))),A(g,E)};J(f,g=>{c(s)&&g(u)})}var d=S(f,2);{var w=g=>{var E=$p(),x=S(F(E));Je(x,21,()=>c(n),te=>te.id,(te,se)=>{var q=Mp(),Fe=I(q,!0),Ye={};B(()=>{O(Fe,c(se).name),Ye!==(Ye=c(se).id)&&(q.value=(q.__value=Ye)??"")}),A(te,q)});var R;ec(x),B(()=>{R!==(R=c(r))&&(x.value=(x.__value=R)??"",Wa(x,R))}),Qe("change",x,te=>i(te.currentTarget.value)),A(g,E)};J(d,g=>{c(n).length>1&&g(w)})}var m=S(d,2);{var _=g=>{var E=Xr(),x=gt(E);nf(x,()=>c(r),R=>{Cp(R,{get title(){return c(o).name},get path(){return c(o).path}})}),A(g,E)};J(m,g=>{c(o)&&g(_)})}A(e,a),Pa()}Ql(["change"]);Qu(Fp,{target:document.getElementById("app")});