@feedlog-ai/webcomponents 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +20 -5
  2. package/dist/cjs/feedlog-badge.cjs.entry.js +3 -3
  3. package/dist/cjs/feedlog-button_2.cjs.entry.js +1547 -8
  4. package/dist/cjs/feedlog-card.cjs.entry.js +1 -1
  5. package/dist/cjs/feedlog-github-issues-client.cjs.entry.js +24 -18
  6. package/dist/cjs/feedlog-github-issues.cjs.entry.js +14 -4
  7. package/dist/cjs/feedlog-issues-list.cjs.entry.js +8 -37
  8. package/dist/cjs/feedlog-toolkit.cjs.js +2 -2
  9. package/dist/cjs/{index-5lluu_3h.js → index-DnsqTPII.js} +0 -37
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/collection/components/feedlog-badge/feedlog-badge.css +15 -3
  12. package/dist/collection/components/feedlog-badge/feedlog-badge.js +3 -3
  13. package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.css +202 -13
  14. package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.js +73 -2
  15. package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.stories.js +56 -6
  16. package/dist/collection/components/feedlog-github-issues-client/feedlog-github-issues-client.js +63 -2
  17. package/dist/collection/components/feedlog-issue/feedlog-issue.css +196 -46
  18. package/dist/collection/components/feedlog-issue/feedlog-issue.js +71 -6
  19. package/dist/collection/components/feedlog-issue/feedlog-issue.stories.js +115 -3
  20. package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.css +3 -209
  21. package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.js +29 -35
  22. package/dist/collection/utils/markdown.js +48 -0
  23. package/dist/components/feedlog-badge.js +1 -1
  24. package/dist/components/feedlog-github-issues-client.js +1 -1
  25. package/dist/components/feedlog-github-issues.js +1 -1
  26. package/dist/components/feedlog-issue.js +1 -1
  27. package/dist/components/feedlog-issues-list.js +1 -1
  28. package/dist/components/index.js +1 -1
  29. package/dist/components/p-BBPFf6g7.js +3 -0
  30. package/dist/components/p-Chc3XZ5Y.js +1 -0
  31. package/dist/components/p-cag4iyHV.js +1 -0
  32. package/dist/esm/feedlog-badge.entry.js +3 -3
  33. package/dist/esm/feedlog-button_2.entry.js +1547 -8
  34. package/dist/esm/feedlog-card.entry.js +1 -1
  35. package/dist/esm/feedlog-github-issues-client.entry.js +24 -18
  36. package/dist/esm/feedlog-github-issues.entry.js +14 -4
  37. package/dist/esm/feedlog-issues-list.entry.js +8 -37
  38. package/dist/esm/feedlog-toolkit.js +3 -3
  39. package/dist/esm/{index-CkB6Yzeb.js → index-rs_66Oq4.js} +0 -37
  40. package/dist/esm/loader.js +3 -3
  41. package/dist/feedlog-toolkit/feedlog-toolkit.esm.js +1 -1
  42. package/dist/feedlog-toolkit/p-13773ed6.entry.js +1 -0
  43. package/dist/feedlog-toolkit/{p-cdb2b098.entry.js → p-4e90285c.entry.js} +1 -1
  44. package/dist/feedlog-toolkit/p-9b515728.entry.js +1 -0
  45. package/dist/feedlog-toolkit/p-da51c7fd.entry.js +1 -0
  46. package/dist/feedlog-toolkit/p-dad7b157.entry.js +3 -0
  47. package/dist/feedlog-toolkit/p-e5ba7dd7.entry.js +1 -0
  48. package/dist/feedlog-toolkit/p-rs_66Oq4.js +2 -0
  49. package/dist/types/components/feedlog-badge/feedlog-badge.d.ts +1 -1
  50. package/dist/types/components/feedlog-github-issues/feedlog-github-issues.d.ts +16 -1
  51. package/dist/types/components/feedlog-github-issues/feedlog-github-issues.stories.d.ts +1 -0
  52. package/dist/types/components/feedlog-github-issues-client/feedlog-github-issues-client.d.ts +14 -1
  53. package/dist/types/components/feedlog-issue/feedlog-issue.d.ts +19 -2
  54. package/dist/types/components/feedlog-issue/feedlog-issue.stories.d.ts +10 -0
  55. package/dist/types/components/feedlog-issues-list/feedlog-issues-list.d.ts +5 -5
  56. package/dist/types/components.d.ts +68 -4
  57. package/dist/types/utils/markdown.d.ts +5 -0
  58. package/package.json +4 -2
  59. package/dist/components/p-Bu_AsIay.js +0 -1
  60. package/dist/components/p-CHtSMTyP.js +0 -1
  61. package/dist/components/p-Cp7B8xwh.js +0 -1
  62. package/dist/feedlog-toolkit/p-2401f510.entry.js +0 -1
  63. package/dist/feedlog-toolkit/p-5df44120.entry.js +0 -1
  64. package/dist/feedlog-toolkit/p-95fea2f4.entry.js +0 -1
  65. package/dist/feedlog-toolkit/p-CkB6Yzeb.js +0 -2
  66. package/dist/feedlog-toolkit/p-b4b631f3.entry.js +0 -1
  67. package/dist/feedlog-toolkit/p-c19a4d1b.entry.js +0 -1
@@ -1 +1 @@
1
- const t=":root{--feedlog-font-size:16px;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-popover:oklch(1 0 0);--feedlog-popover-foreground:oklch(0.145 0 0);--feedlog-primary:#030213;--feedlog-primary-foreground:oklch(1 0 0);--feedlog-secondary:oklch(0.95 0.0058 264.53);--feedlog-secondary-foreground:#030213;--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-accent:#e9ebef;--feedlog-accent-foreground:#030213;--feedlog-destructive:#d4183d;--feedlog-destructive-foreground:#ffffff;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-input:transparent;--feedlog-input-background:#f3f3f5;--feedlog-switch-background:#cbced4;--feedlog-ring:oklch(0.708 0 0);--feedlog-radius:0.625rem;--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-blue-900:oklch(0.379 0.146 265.522);--feedlog-font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace}.dark{--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.145 0 0);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-popover:oklch(0.145 0 0);--feedlog-popover-foreground:oklch(0.985 0 0);--feedlog-primary:oklch(0.985 0 0);--feedlog-primary-foreground:oklch(0.205 0 0);--feedlog-secondary:oklch(0.269 0 0);--feedlog-secondary-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.269 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-accent:oklch(0.269 0 0);--feedlog-accent-foreground:oklch(0.985 0 0);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-foreground:oklch(0.637 0.237 25.331);--feedlog-border:oklch(0.269 0 0);--feedlog-input:oklch(0.269 0 0);--feedlog-ring:oklch(0.439 0 0)}";var e,n,i,r,s,o,l,f,c,h,u,a,d,p,g,v,b,m=Object.create,w=Object.defineProperty,y=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,k=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,S=t=>{throw TypeError(t)},j=(t,e)=>function(){return e||(0,t[$(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,n)=>e.has(t)||S("Cannot "+n),E=(t,e,n)=>(M(t,e,"read from private field"),n?n.call(t):e.get(t)),x=(t,e,n)=>e.has(t)?S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),P=(t,e,n)=>(M(t,e,"write to private field"),e.set(t,n),n),W=(t,e,n)=>(M(t,e,"access private method"),n),R=j({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var s=r(t,e,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+t.length,s[1]),post:n.slice(s[1]+e.length)}}function i(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var i,r,s,o,l,f=n.indexOf(t),c=n.indexOf(e,f+1),h=f;if(f>=0&&c>0){if(t===e)return[f,c];for(i=[],s=n.length;h>=0&&!l;)h==f?(i.push(h),f=n.indexOf(t,h+1)):1==i.length?l=[i.pop(),c]:((r=i.pop())<s&&(s=r,o=c),c=n.indexOf(e,h+1)),h=f<c&&f>=0?f:c;i.length&&(l=[s,o])}return l}e.exports=n,n.range=r}}),N=j({"node_modules/brace-expansion/index.js"(t,e){var n=R();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(i).split("\\{").join(r).split("\\}").join(s).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(c)):[]};var i="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function f(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(i).join("\\").split(r).join("{").split(s).join("}").split(o).join(",").split(l).join(".")}function h(t){if(!t)return[""];var e=[],i=n("{","}",t);if(!i)return t.split(",");var r=i.body,s=i.post,o=i.pre.split(",");o[o.length-1]+="{"+r+"}";var l=h(s);return s.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function u(t){return"{"+t+"}"}function a(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function p(t,e){return t>=e}function g(t,e){var i=[],r=n("{","}",t);if(!r)return[t];var o=r.pre,l=r.post.length?g(r.post,!1):[""];if(/\$$/.test(r.pre))for(var c=0;c<l.length;c++)i.push(A=o+"{"+r.body+"}"+l[c]);else{var v,b,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),y=m||w,$=r.body.indexOf(",")>=0;if(!y&&!$)return r.post.match(/,(?!,).*\}/)?g(t=r.pre+"{"+r.body+s+r.post):[t];if(y)v=r.body.split(/\.\./);else if(1===(v=h(r.body)).length&&1===(v=g(v[0],!1).map(u)).length)return l.map((function(t){return r.pre+v[0]+t}));if(y){var k=f(v[0]),O=f(v[1]),S=Math.max(v[0].length,v[1].length),j=3==v.length?Math.abs(f(v[2])):1,M=d;O<k&&(j*=-1,M=p);var E=v.some(a);b=[];for(var x=k;M(x,O);x+=j){var P;if(w)"\\"===(P=String.fromCharCode(x))&&(P="");else if(P=x+"",E){var W=S-P.length;if(W>0){var R=Array(W+1).join("0");P=x<0?"-"+R+P.slice(1):R+P}}b.push(P)}}else{b=[];for(var N=0;N<v.length;N++)b.push.apply(b,g(v[N],!1))}for(N=0;N<b.length;N++)for(c=0;c<l.length;c++){var A=o+b[N]+l[c];(!e||y||A)&&i.push(A)}}return i}}}),A=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[i]])=>{if(31&i||32&i){const i=t[n],r=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(t,n,{get(){return r.get.call(this)},set(t){r.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):i}}))},C=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},z=(t,e)=>e in t,L=(t,e)=>(0,console.error)(t,e),_=new Map,T="undefined"!=typeof window?window:{},F=T.HTMLElement||class{},D={l:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,i)=>t.addEventListener(e,n,i),rel:(t,e,n,i)=>t.removeEventListener(e,n,i),ce:(t,e)=>new CustomEvent(t,e)},U=(()=>{try{return!!T.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),G=!!U&&(()=>!!T.document&&Object.getOwnPropertyDescriptor(T.document.adoptedStyleSheets,"length").writable)(),I=!1,Z=[],H=[],V=(t,e)=>n=>{t.push(n),I||(I=!0,e&&4&D.l?J(B):D.raf(B))},q=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){L(t)}t.length=0},B=()=>{q(Z),q(H),(I=Z.length>0)&&D.raf(B)},J=t=>Promise.resolve(void 0).then(t),Y=V(H,!0),K=t=>{const e=new URL(t,D.h);return e.origin!==T.location.origin?e.href:e.pathname},Q=t=>D.h=t,X=t=>"object"==(t=typeof t)||"function"===t,tt=((t,e,n)=>(n=null!=t?m(k(t)):{},((t,e,n,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of $(e))O.call(t,n)||undefined===n||w(t,n,{get:()=>e[n],enumerable:!(i=y(e,n))||i.enumerable});return t})(w(n,"default",{value:t,enumerable:!0}),t)))(N()),et=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},nt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},it=t=>t.replace(/[[\]\\-]/g,"\\$&"),rt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),st=t=>t.join(""),ot=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const i=[],r=[];let s=n+1,o=!1,l=!1,f=!1,c=!1,h=n,u="";t:for(;s<t.length;){const e=t.charAt(s);if("!"!==e&&"^"!==e||s!==n+1){if("]"===e&&o&&!f){h=s+1;break}if(o=!0,"\\"!==e||f){if("["===e&&!f)for(const[e,[o,f,c]]of Object.entries(nt))if(t.startsWith(e,s)){if(u)return["$.",!1,t.length-n,!0];s+=e.length,c?r.push(o):i.push(o),l=l||f;continue t}f=!1,u?(e>u?i.push(it(u)+"-"+it(e)):e===u&&i.push(it(e)),u="",s++):t.startsWith("-]",s+1)?(i.push(it(e+"-")),s+=2):t.startsWith("-",s+1)?(u=e,s+=2):(i.push(it(e)),s++)}else f=!0,s++}else c=!0,s++}if(h<s)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,t.length-n,!0];if(0===r.length&&1===i.length&&/^\\?.$/.test(i[0])&&!c){const t=2===i[0].length?i[0].slice(-1):i[0];return[rt(t),!1,h-n,!1]}const a="["+(c?"^":"")+st(i)+"]",d="["+(c?"":"^")+st(r)+"]";return[i.length&&r.length?"("+a+"|"+d+")":i.length?a:d,l,h-n,!0]},lt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ft=new Set(["!","?","+","*","@"]),ct=t=>ft.has(t),ht="(?!\\.)",ut=new Set(["[","."]),at=new Set(["..","."]),dt=new Set("().*{}+?[]^$\\!"),pt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gt="[^/]",vt=gt+"*?",bt=gt+"+?",mt=class t{constructor(t,d,p={}){x(this,a),((t,e,n)=>{((t,e,n)=>{e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),x(this,e),x(this,n),x(this,i,!1),x(this,r,[]),x(this,s),x(this,o),x(this,l),x(this,f,!1),x(this,c),x(this,h),x(this,u,!1),this.type=t,t&&P(this,n,!0),P(this,s,d),P(this,e,E(this,s)?E(E(this,s),e):this),P(this,c,E(this,e)===this?p:E(E(this,e),c)),P(this,l,E(this,e)===this?[]:E(E(this,e),l)),"!"!==t||E(E(this,e),f)||E(this,l).push(this),P(this,o,E(this,s)?E(E(this,s),r).length:0)}get hasMagic(){if(void 0!==E(this,n))return E(this,n);for(const t of E(this,r))if("string"!=typeof t&&(t.type||t.hasMagic))return P(this,n,!0);return E(this,n)}toString(){return void 0!==E(this,h)?E(this,h):P(this,h,this.type?this.type+"("+E(this,r).map((t=>t+"")).join("|")+")":E(this,r).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&E(n,s)===this))throw Error("invalid part: "+n);E(this,r).push(n)}}toJSON(){var t;const n=null===this.type?E(this,r).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...E(this,r).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===E(this,e)||E(E(this,e),f)&&"!"===(null==(t=E(this,s))?void 0:t.type))&&n.push({}),n}isStart(){var n;if(E(this,e)===this)return!0;if(!(null==(n=E(this,s))?void 0:n.isStart()))return!1;if(0===E(this,o))return!0;const i=E(this,s);for(let e=0;e<E(this,o);e++){const n=E(i,r)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,n,i;if(E(this,e)===this)return!0;if("!"===(null==(t=E(this,s))?void 0:t.type))return!0;if(!(null==(n=E(this,s))?void 0:n.isEnd()))return!1;if(!this.type)return null==(i=E(this,s))?void 0:i.isEnd();const l=E(this,s)?E(E(this,s),r).length:0;return E(this,o)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of E(this,r))n.copyIn(t);return n}static fromGlob(e,n={}){var i;const r=new t(null,void 0,n);return W(i=t,p,g).call(i,e,r,0,n),r}toMMPattern(){if(this!==E(this,e))return E(this,e).toMMPattern();const t=""+this,[i,r,s,o]=this.toRegExpSource();if(!(s||E(this,n)||E(this,c).nocase&&!E(this,c).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const l=(E(this,c).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${i}$`,l),{_src:i,_glob:t})}get options(){return E(this,c)}toRegExpSource(o){var l;const h=null!=o?o:!!E(this,c).dot;if(E(this,e)===this&&W(this,a,d).call(this),!this.type){const c=this.isStart()&&this.isEnd(),u=E(this,r).map((e=>{var r;const[s,l,f,h]="string"==typeof e?W(r=t,p,b).call(r,e,E(this,n),c):e.toRegExpSource(o);return P(this,n,E(this,n)||f),P(this,i,E(this,i)||h),s})).join("");let a="";if(this.isStart()&&"string"==typeof E(this,r)[0]&&(1!==E(this,r).length||!at.has(E(this,r)[0]))){const t=ut,e=h&&t.has(u.charAt(0))||u.startsWith("\\.")&&t.has(u.charAt(2))||u.startsWith("\\.\\.")&&t.has(u.charAt(4)),n=!h&&!o&&t.has(u.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?ht:""}let d="";return this.isEnd()&&E(E(this,e),f)&&"!"===(null==(l=E(this,s))?void 0:l.type)&&(d="(?:$|\\/)"),[a+u+d,lt(u),P(this,n,!!E(this,n)),E(this,i)]}const g="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let w=W(this,a,v).call(this,h);if(this.isStart()&&this.isEnd()&&!w&&"!"!==this.type){const t=""+this;return P(this,r,[t]),this.type=null,P(this,n,void 0),[t,lt(""+this),!1,!1]}let y=!g||o||h?"":W(this,a,v).call(this,!0);y===w&&(y=""),y&&(w=`(?:${w})(?:${y})*?`);let $="";return $="!"===this.type&&E(this,u)?(this.isStart()&&!h?ht:"")+bt:m+w+("!"===this.type?"))"+(!this.isStart()||h||o?"":ht)+vt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":")"+this.type),[$,lt(w),P(this,n,!!E(this,n)),E(this,i)]}};e=new WeakMap,n=new WeakMap,i=new WeakMap,r=new WeakMap,s=new WeakMap,o=new WeakMap,l=new WeakMap,f=new WeakMap,c=new WeakMap,h=new WeakMap,u=new WeakMap,a=new WeakSet,d=function(){if(this!==E(this,e))throw Error("should only call on root");if(E(this,f))return this;let t;for(P(this,f,!0);t=E(this,l).pop();){if("!"!==t.type)continue;let e=t,n=E(e,s);for(;n;){for(let i=E(e,o)+1;!n.type&&i<E(n,r).length;i++)for(const e of E(t,r)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(E(n,r)[i])}e=n,n=E(e,s)}}return this},p=new WeakSet,g=function(t,e,i,s){var o,l;let f=!1,c=!1,h=-1,a=!1;if(null===e.type){let n=i,r="";for(;n<t.length;){const i=t.charAt(n++);if(f||"\\"===i)f=!f,r+=i;else if(c)n===h+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||n===h+2&&a||(c=!1),r+=i;else if("["!==i)if(s.noext||!ct(i)||"("!==t.charAt(n))r+=i;else{e.push(r),r="";const l=new mt(i,e);n=W(o=mt,p,g).call(o,t,l,n,s),e.push(l)}else c=!0,h=n,a=!1,r+=i}return e.push(r),n}let d=i+1,v=new mt(null,e);const b=[];let m="";for(;d<t.length;){const n=t.charAt(d++);if(f||"\\"===n)f=!f,m+=n;else if(c)d===h+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||d===h+2&&a||(c=!1),m+=n;else if("["!==n)if(ct(n)&&"("===t.charAt(d)){v.push(m),m="";const e=new mt(n,v);v.push(e),d=W(l=mt,p,g).call(l,t,e,d,s)}else if("|"!==n){if(")"===n)return""===m&&0===E(e,r).length&&P(e,u,!0),v.push(m),m="",e.push(...b,v),d;m+=n}else v.push(m),m="",b.push(v),v=new mt(null,e);else c=!0,h=d,a=!1,m+=n}return e.type=null,P(e,n,void 0),P(e,r,[t.substring(i-1)]),d},v=function(t){return E(this,r).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,r,s,o]=e.toRegExpSource(t);return P(this,i,E(this,i)||o),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},b=function(t,e,n=!1){let i=!1,r="",s=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(i)i=!1,r+=(dt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,i,l,f]=ot(t,o);if(l){r+=n,s=s||i,o+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?r+=pt(l):(r+=gt,e=!0):(r+=n&&"*"===t?bt:vt,e=!0)}else o===t.length-1?r+="\\\\":i=!0}return[r,lt(t),!!e,s]},x(mt,p);var wt=mt,yt=(t,e,n={})=>(et(e),!(!n.nocomment&&"#"===e.charAt(0))&&new Vt(e,n).match(t)),$t=/^\*+([^+@!?\*\[\(]*)$/,kt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Ot=t=>e=>e.endsWith(t),St=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Mt=/^\*+\.\*+$/,Et=t=>!t.startsWith(".")&&t.includes("."),xt=t=>"."!==t&&".."!==t&&t.includes("."),Pt=/^\.\*+$/,Wt=t=>"."!==t&&".."!==t&&t.startsWith("."),Rt=/^\*+$/,Nt=t=>0!==t.length&&!t.startsWith("."),At=t=>0!==t.length&&"."!==t&&".."!==t,Ct=/^\?+([^+@!?\*\[\(]*)?$/,zt=([t,e=""])=>{const n=Ft([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Lt=([t,e=""])=>{const n=Dt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},_t=([t,e=""])=>{const n=Dt([t]);return e?t=>n(t)&&t.endsWith(e):n},Tt=([t,e=""])=>{const n=Ft([t]);return e?t=>n(t)&&t.endsWith(e):n},Ft=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Dt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Ut="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";yt.sep="win32"===Ut?"\\":"/";var Gt=Symbol("globstar **");yt.GLOBSTAR=Gt,yt.filter=(t,e={})=>n=>yt(n,t,e);var It=(t,e={})=>Object.assign({},t,e);yt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return yt;const e=yt;return Object.assign(((n,i,r={})=>e(n,i,It(t,r))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,It(t,n))}static defaults(n){return e.defaults(It(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,i={}){super(e,n,It(t,i))}static fromGlob(n,i={}){return e.AST.fromGlob(n,It(t,i))}},unescape:(n,i={})=>e.unescape(n,It(t,i)),escape:(n,i={})=>e.escape(n,It(t,i)),filter:(n,i={})=>e.filter(n,It(t,i)),defaults:n=>e.defaults(It(t,n)),makeRe:(n,i={})=>e.makeRe(n,It(t,i)),braceExpand:(n,i={})=>e.braceExpand(n,It(t,i)),match:(n,i,r={})=>e.match(n,i,It(t,r)),sep:e.sep,GLOBSTAR:Gt})};var Zt=(t,e={})=>(et(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,tt.default)(t));yt.braceExpand=Zt,yt.makeRe=(t,e={})=>new Vt(t,e).makeRe(),yt.match=(t,e,n={})=>{const i=new Vt(e,n);return t=t.filter((t=>i.match(t))),i.options.nonull&&!t.length&&t.push(e),t};var Ht=/[?*]|[+@!]\(.*?\)|\[|\]/,Vt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){et(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Ut,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Ht.test(t[2])||Ht.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,i),this.set=i.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const i=t[n];1===n&&""===i&&""===t[0]||"."!==i&&""!==i||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const i=t[n-1];i&&"."!==i&&".."!==i&&"**"!==i&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let i=-1;for(;-1!==(i=n.indexOf("**",i+1));){let r=i;for(;"**"===n[r+1];)r++;r>i&&n.splice(i+1,r-i);const s=n[i+2],o=n[i+3];if(".."!==n[i+1])continue;if(!s||"."===s||".."===s||!o||"."===o||".."===o)continue;e=!0,n.splice(i,1);const l=n.slice(0);l[i]="**",t.push(l),i--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const i=n[t];1===t&&""===i&&""===n[0]||"."!==i&&""!==i||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let r=0;for(;-1!==(r=n.indexOf("..",r+1));){const t=n[r-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(r-1,2,...1===r&&"**"===n[r+1]?["."]:[]),0===n.length&&n.push(""),r-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const i=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);i&&(t[e]=i,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let i=0,r=0,s=[],o="";for(;i<t.length&&r<e.length;)if(t[i]===e[r])s.push("b"===o?e[r]:t[i]),i++,r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])s.push(t[i]),i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])s.push(e[r]),r++;else if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]){if("*"!==e[r]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i])return!1;if("a"===o)return!1;o="b",s.push(e[r]),i++,r++}else{if("b"===o)return!1;o="a",s.push(t[i]),i++,r++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let i=0;i<t.length&&"!"===t.charAt(i);i++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const i=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),i=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),r="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),s=i?3:n?0:void 0,o=!r&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:r?0:void 0;if("number"==typeof s&&"number"==typeof o){const[n,i]=[t[s],e[o]];n.toLowerCase()===i.toLowerCase()&&(e[o]=n,o>s?e=e.slice(o):s>o&&(t=t.slice(s)))}}const{optimizationLevel:r=1}=this.options;r>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,o=0,l=t.length,f=e.length;s<l&&o<f;s++,o++){this.debug("matchOne loop");var c=e[o],h=t[s];if(this.debug(e,c,h),!1===c)return!1;if(c===Gt){this.debug("GLOBSTAR",[e,c,h]);var u=s,a=o+1;if(a===f){for(this.debug("** at the end");s<l;s++)if("."===t[s]||".."===t[s]||!i.dot&&"."===t[s].charAt(0))return!1;return!0}for(;u<l;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,a,d),this.matchOne(t.slice(u),e.slice(a),n))return this.debug("globstar found match!",u,l,d),!0;if("."===d||".."===d||!i.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,a);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,a),u!==l))}let r;if("string"==typeof c?(r=h===c,this.debug("string match",c,h,r)):(r=c.test(h),this.debug("pattern match",c,h,r)),!r)return!1}if(s===l&&o===f)return!0;if(s===l)return n;if(o===f)return s===l-1&&""===t[s];throw Error("wtf?")}braceExpand(){return Zt(this.pattern,this.options)}parse(t){et(t);const e=this.options;if("**"===t)return Gt;if(""===t)return"";let n,i=null;(n=t.match(Rt))?i=e.dot?At:Nt:(n=t.match($t))?i=(e.nocase?e.dot?jt:St:e.dot?Ot:kt)(n[1]):(n=t.match(Ct))?i=(e.nocase?e.dot?Lt:zt:e.dot?_t:Tt)(n):(n=t.match(Mt))?i=e.dot?xt:Et:(n=t.match(Pt))&&(i=Wt);const r=wt.fromGlob(t,this.options).toMMPattern();return i&&"object"==typeof r&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(e.nocase?["i"]:[]);let r=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))i.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Gt?Gt:t._src}));return e.forEach(((t,i)=>{const r=e[i+1],s=e[i-1];t===Gt&&s!==Gt&&(void 0===s?void 0!==r&&r!==Gt?e[i+1]="(?:\\/|"+n+"\\/)?"+r:e[i]=n:void 0===r?e[i-1]=s+"(?:\\/|"+n+")?":r!==Gt&&(e[i-1]=s+"(?:\\/|\\/"+n+"\\/)"+r,e[i+1]=Gt))})),e.filter((t=>t!==Gt)).join("/")})).join("|");const[s,o]=t.length>1?["(?:",")"]:["",""];r="^"+s+r+o+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=RegExp(r,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const r=this.set;this.debug(this.pattern,"set",r);let s=i[i.length-1];if(!s)for(let t=i.length-2;!s&&t>=0;t--)s=i[t];for(let t=0;t<r.length;t++){const o=r[t];let l=i;if(n.matchBase&&1===o.length&&(l=[s]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return yt.defaults(t).Minimatch}};yt.AST=wt,yt.Minimatch=Vt,yt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),yt.unescape=lt,((t,e)=>{for(var n in e)w(t,n,{get:e[n],enumerable:!0})})({},{err:()=>Bt,map:()=>Jt,ok:()=>qt,unwrap:()=>Kt,unwrapErr:()=>Qt});var qt=t=>({isOk:!0,isErr:!1,value:t}),Bt=t=>({isOk:!1,isErr:!0,value:t});function Jt(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>qt(t))):qt(n)}if(t.isErr)return Bt(t.value);throw"should never get here"}var Yt,Kt=t=>{if(t.isOk)return t.value;throw t.value},Qt=t=>{if(t.isErr)return t.value;throw t.value};function Xt(){var e;const n=this.attachShadow({mode:"open"});if(void 0===Yt&&(Yt=null!=(e=function(t){if(!U)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),Yt)G?n.adoptedStyleSheets.push(Yt):n.adoptedStyleSheets=[...n.adoptedStyleSheets,Yt];else if(!U){const e=document.createElement("style");e.innerHTML=t,n.prepend(e)}}var te=new WeakMap,ee=t=>"sc-"+t.u,ne=(t,e,...n)=>{let i=null,r=null,s=!1,o=!1;const l=[],f=e=>{for(let n=0;n<e.length;n++)i=e[n],Array.isArray(i)?f(i):null!=i&&"boolean"!=typeof i&&((s="function"!=typeof t&&!X(i))&&(i+=""),s&&o?l[l.length-1].p+=i:l.push(s?ie(null,i):i),o=s)};if(f(n),e){e.key&&(r=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,l,se);const c=ie(t,null);return c.v=e,l.length>0&&(c.m=l),c.$=r,c},ie=(t,e)=>({l:0,k:t,p:e,O:null,m:null,v:null,$:null}),re={},se={forEach:(t,e)=>t.map(oe).forEach(e),map:(t,e)=>t.map(oe).map(e).map(le)},oe=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.S,vtag:t.k,vtext:t.p}),le=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),ne(t.vtag,e,...t.vchildren||[])}const e=ie(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.S=t.vname,e},fe=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};fe("::slotted"),fe(":host"),fe(":host-context");var ce,he=(t,e)=>null==t||X(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,ue=(t,e)=>{const n=t;return{emit:t=>ae(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},ae=(t,e,n)=>{const i=D.ce(e,n);return t.dispatchEvent(i),i},de=(t,e,n,i,r,s)=>{if(n===i)return;let o=z(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,r=ge(n);let s=ge(i);e.remove(...r.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!r.includes(t))))}else if("style"===e){for(const e in n)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)n&&i[e]===n[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const l=X(i);if((o||l&&null!==i)&&!r)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const r=null==i?"":i;"list"===e?o=!1:null!=n&&t[e]==r||("function"==typeof t.__lookupSetter__(e)?t[e]=r:t.setAttribute(e,r))}}catch(t){}null==i||!1===i?!1===i&&""!==t.getAttribute(e)||t.removeAttribute(e):(!o||4&s||r)&&!l&&1===t.nodeType&&t.setAttribute(e,i=!0===i?"":i)}else if(e="-"===e[2]?e.slice(3):z(T,l)?l.slice(2):l[2]+e.slice(3),n||i){const r=e.endsWith(ve);e=e.replace(be,""),n&&D.rel(t,e,n,r),i&&D.ael(t,e,i,r)}},pe=/\s/,ge=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(pe):[]),ve="Capture",be=RegExp(ve+"$"),me=(t,e,n)=>{const i=11===e.O.nodeType&&e.O.host?e.O.host:e.O,r=t&&t.v||{},s=e.v||{};for(const t of we(Object.keys(r)))t in s||de(i,t,r[t],void 0,n,e.l);for(const t of we(Object.keys(s)))de(i,t,r[t],s[t],n,e.l)};function we(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ye=!1,$e=(t,e,n)=>{const i=e.m[n];let r,s,o=0;if(null!==i.p)r=i.O=T.document.createTextNode(i.p);else{if(ye||(ye="svg"===i.k),!T.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(r=i.O=T.document.createElementNS(ye?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.k),ye&&"foreignObject"===i.k&&(ye=!1),me(null,i,ye),i.m){const e="template"===i.k?r.content:r;for(o=0;o<i.m.length;++o)s=$e(t,i,o),s&&e.appendChild(s)}"svg"===i.k?ye=!1:"foreignObject"===r.tagName&&(ye=!0)}return r["s-hn"]=ce,r},ke=(t,e,n,i,r,s)=>{let o,l=t;for(l.shadowRoot&&l.tagName===ce&&(l=l.shadowRoot),"template"===n.k&&(l=l.content);r<=s;++r)i[r]&&(o=$e(null,n,r),o&&(i[r].O=o,Me(l,o,e)))},Oe=(t,e,n)=>{for(let i=e;i<=n;++i){const e=t[i];if(e){const t=e.O;t&&t.remove()}}},Se=(t,e,n=!1)=>t.k===e.k&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),je=(t,e,n=!1)=>{const i=e.O=t.O,r=t.m,s=e.m,o=e.k,l=e.p;null===l?(me(t,e,ye="svg"===o||"foreignObject"!==o&&ye),null!==r&&null!==s?((t,e,n,i,r=!1)=>{let s,o,l=0,f=0,c=0,h=0,u=e.length-1,a=e[0],d=e[u],p=i.length-1,g=i[0],v=i[p];const b="template"===n.k?t.content:t;for(;l<=u&&f<=p;)if(null==a)a=e[++l];else if(null==d)d=e[--u];else if(null==g)g=i[++f];else if(null==v)v=i[--p];else if(Se(a,g,r))je(a,g,r),a=e[++l],g=i[++f];else if(Se(d,v,r))je(d,v,r),d=e[--u],v=i[--p];else if(Se(a,v,r))je(a,v,r),Me(b,a.O,d.O.nextSibling),a=e[++l],v=i[--p];else if(Se(d,g,r))je(d,g,r),Me(b,d.O,a.O),d=e[--u],g=i[++f];else{for(c=-1,h=l;h<=u;++h)if(e[h]&&null!==e[h].$&&e[h].$===g.$){c=h;break}c>=0?(o=e[c],o.k!==g.k?s=$e(e&&e[f],n,c):(je(o,g,r),e[c]=void 0,s=o.O),g=i[++f]):(s=$e(e&&e[f],n,f),g=i[++f]),s&&Me(a.O.parentNode,s,a.O)}l>u?ke(t,null==i[p+1]?null:i[p+1].O,n,i,f,p):f>p&&Oe(e,l,u)})(i,r,e,s,n):null!==s?(null!==t.p&&(i.textContent=""),ke(i,null,e,s,0,s.length-1)):!n&&null!==r&&Oe(r,0,r.length-1),ye&&"svg"===o&&(ye=!1)):t.p!==l&&(i.data=l)},Me=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Ee=(t,e,n=!1)=>{const i=t.$hostElement$,r=t.j||ie(null,null),s=(t=>t&&t.k===re)(e)?e:ne(null,null,e);if(ce=i.tagName,n&&s.v)for(const t of Object.keys(s.v))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.v[t]=i[t]);s.k=null,s.l|=4,t.j=s,s.O=r.O=i.shadowRoot||i,je(r,s,n)},xe=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((i=>t.M=()=>{e["s-p"].splice(n-1,1),i()})))}},Pe=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);xe(t,t.P);const n=()=>We(t,e);if(!e)return Y(n);queueMicrotask((()=>{n()}))},We=(t,e)=>{const n=t.$hostElement$,i=n;if(!i)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=_e(i,e?"componentWillLoad":"componentWillUpdate",void 0,n),r=Re(r,(()=>_e(i,"componentWillRender",void 0,n))),Re(r,(()=>Ae(t,i,e)))},Re=(t,e)=>Ne(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ne=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ae=async(t,e,n)=>{var i;const r=t.$hostElement$,s=r["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,i=e.l,r=((t,e)=>{var n,i,r;const s=ee(e),o=_.get(s);if(!T.document)return s;if(t=11===t.nodeType?t:T.document,o)if("string"==typeof o){let r,l=te.get(t=t.head||t);if(l||te.set(t,l=new Set),!l.has(s)){r=T.document.createElement("style"),r.innerHTML=o;const f=null!=(n=D.W)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=T.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=f&&r.setAttribute("nonce",f),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(r,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(U){const e=new(null!=(i=t.defaultView)?i:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),G?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(r)}else t.append(r);1&e.l&&t.insertBefore(r,null),4&e.l&&(r.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(s)}}else{let e=te.get(t);if(e||te.set(t,e=new Set),!e.has(s)){const n=null!=(r=t.defaultView)?r:t.ownerDocument.defaultView;let i;if(o.constructor===n.CSSStyleSheet)i=o;else{i=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)i.insertRule(o.cssRules[t].cssText,t)}G?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i],e.add(s)}}return s})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(t);Ce(t,e,r,n),s&&(s.map((t=>t())),r["s-rc"]=void 0);{const e=null!=(i=r["s-p"])?i:[],n=()=>ze(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},Ce=(t,e,n,i)=>{try{e=e.render(),t.l&=-17,t.l|=2,Ee(t,e,i)}catch(e){L(e,t.$hostElement$)}return null},ze=t=>{const e=t.$hostElement$,n=e,i=t.P;_e(n,"componentDidRender",void 0,e),64&t.l?_e(n,"componentDidUpdate",void 0,e):(t.l|=64,Te(e),_e(n,"componentDidLoad",void 0,e),t.R(e),i||Le()),t.M&&(t.M(),t.M=void 0),512&t.l&&J((()=>Pe(t,!1))),t.l&=-517},Le=()=>{J((()=>ae(T,"appload",{detail:{namespace:"feedlog-toolkit"}})))},_e=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){L(t,i)}},Te=t=>t.classList.add("hydrated"),Fe=(t,e,n,i)=>{const r=C(t);if(!r)return;const s=t,o=r.o.get(e),l=r.l,f=s;if(!((n=he(n,i.t[e][0]))===o||Number.isNaN(o)&&Number.isNaN(n)||(r.o.set(e,n),2!=(18&l)))){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,o,e))return;Pe(r,!1)}},De=(t,e)=>{var n,i;const r=t.prototype;if(e.t){const s=Object.entries(null!=(n=e.t)?n:{});s.map((([t,[n]])=>{if(31&n||32&n){const{get:i,set:s}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.t[t][0]|=2048),s&&(e.t[t][0]|=4096),Object.defineProperty(r,t,{get(){return i?i.apply(this):((t,e)=>C(this).o.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=C(this);if(r){if(s)return void 0===(32&n?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(i=r.o.get(t)),s.call(this,he(i,n)),void Fe(this,t,i=32&n?this[t]:r.$hostElement$[t],e);Fe(this,t,i,e)}}})}}));{const n=new Map;r.attributeChangedCallback=function(t,i,o){D.jmp((()=>{var l;const f=n.get(t),c=C(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==o)return;if(null==f){const n=null==c?void 0:c.l;if(c&&n&&!(8&n)&&o!==i){const r=this,s=null==(l=e.N)?void 0:l[t];null==s||s.forEach((e=>{const[[s,l]]=Object.entries(e);null!=r[s]&&(128&n||1&l)&&r[s].call(r,o,i,t)}))}return}const h=s.find((([t])=>t===f));h&&4&h[1][0]&&(o=null!==o&&"false"!==o);const u=Object.getOwnPropertyDescriptor(r,f);o==this[f]||u.get&&!u.set||(this[f]=o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.N)?i:{}),...s.filter((([t,e])=>31&e[0])).map((([t,e])=>{const i=e[1]||t;return n.set(i,t),i}))]))}}return t},Ue=(t,e)=>{const n={l:e[0],u:e[1]};n.t=e[2];const i=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,i:e,o:new Map,A:new Map};n.C=new Promise((t=>n.R=t)),t["s-p"]=[],t["s-rc"]=[];const i=n;t.__stencil__getHostRef=()=>i,512&e.l&&A(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!C(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&D.l)){const e=C(t);if(!e)return;const n=e.i,i=()=>{};if(1&e.l)(null==e?void 0:e.L)||(null==e?void 0:e.C)&&e.C.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){xe(e,e.P=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let i;if(!(32&e.l)&&(e.l|=32,i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),i&&i.style)){let t;"string"==typeof i.style&&(t=i.style);const e=ee(n);if(!_.has(e)){const i=()=>{};((t,e,n)=>{let i=_.get(t);U&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,_.set(t,i)})(e,t,!!(1&n.l)),i()}}const r=e.P,s=()=>Pe(e,!0);r&&r["s-rc"]?r["s-rc"].push(s):s()})(t,e,n)}i()}})(this),i&&i.call(this)},disconnectedCallback(){(async t=>{te.has(t)&&te.delete(t),t.shadowRoot&&te.has(t.shadowRoot)&&te.delete(t.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.u}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Xt.call(this,n)}}),t.is=n.u,De(t,n)},Ge=t=>D.W=t,Ie=t=>Object.assign(D,t);function Ze(t,e){Ee({$hostElement$:e},t)}function He(t){return t}export{F as H,re as a,ue as c,K as getAssetPath,ne as h,Ue as p,Ze as render,Q as setAssetPath,Ge as setNonce,Ie as setPlatformOptions,He as t}
1
+ const t=":root{--feedlog-font-size:16px;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-popover:oklch(1 0 0);--feedlog-popover-foreground:oklch(0.145 0 0);--feedlog-primary:#030213;--feedlog-primary-foreground:oklch(1 0 0);--feedlog-secondary:oklch(0.95 0.0058 264.53);--feedlog-secondary-foreground:#030213;--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-accent:#e9ebef;--feedlog-accent-foreground:#030213;--feedlog-destructive:#d4183d;--feedlog-destructive-foreground:#ffffff;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-input:transparent;--feedlog-input-background:#f3f3f5;--feedlog-switch-background:#cbced4;--feedlog-ring:oklch(0.708 0 0);--feedlog-radius:0.625rem;--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-blue-900:oklch(0.379 0.146 265.522);--feedlog-font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace}.dark{--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.145 0 0);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-popover:oklch(0.145 0 0);--feedlog-popover-foreground:oklch(0.985 0 0);--feedlog-primary:oklch(0.985 0 0);--feedlog-primary-foreground:oklch(0.205 0 0);--feedlog-secondary:oklch(0.269 0 0);--feedlog-secondary-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.269 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-accent:oklch(0.269 0 0);--feedlog-accent-foreground:oklch(0.985 0 0);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-foreground:oklch(0.637 0.237 25.331);--feedlog-border:oklch(0.269 0 0);--feedlog-input:oklch(0.269 0 0);--feedlog-ring:oklch(0.439 0 0)}";var e,n,i,s,r,o,l,f,c,h,u,a,d,p,g,v,b,m=Object.create,w=Object.defineProperty,y=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,k=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,S=t=>{throw TypeError(t)},j=(t,e)=>function(){return e||(0,t[$(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,n)=>e.has(t)||S("Cannot "+n),E=(t,e,n)=>(M(t,e,"read from private field"),n?n.call(t):e.get(t)),x=(t,e,n)=>e.has(t)?S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),P=(t,e,n)=>(M(t,e,"write to private field"),e.set(t,n),n),W=(t,e,n)=>(M(t,e,"access private method"),n),R=j({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var r=s(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function i(t,e){var n=e.match(t);return n?n[0]:null}function s(t,e,n){var i,s,r,o,l,f=n.indexOf(t),c=n.indexOf(e,f+1),h=f;if(f>=0&&c>0){if(t===e)return[f,c];for(i=[],r=n.length;h>=0&&!l;)h==f?(i.push(h),f=n.indexOf(t,h+1)):1==i.length?l=[i.pop(),c]:((s=i.pop())<r&&(r=s,o=c),c=n.indexOf(e,h+1)),h=f<c&&f>=0?f:c;i.length&&(l=[r,o])}return l}e.exports=n,n.range=s}}),N=j({"node_modules/brace-expansion/index.js"(t,e){var n=R();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(c)):[]};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function f(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(i).join("\\").split(s).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function h(t){if(!t)return[""];var e=[],i=n("{","}",t);if(!i)return t.split(",");var s=i.body,r=i.post,o=i.pre.split(",");o[o.length-1]+="{"+s+"}";var l=h(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function u(t){return"{"+t+"}"}function a(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function p(t,e){return t>=e}function g(t,e){var i=[],s=n("{","}",t);if(!s)return[t];var o=s.pre,l=s.post.length?g(s.post,!1):[""];if(/\$$/.test(s.pre))for(var c=0;c<l.length;c++)i.push(A=o+"{"+s.body+"}"+l[c]);else{var v,b,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=m||w,$=s.body.indexOf(",")>=0;if(!y&&!$)return s.post.match(/,(?!,).*\}/)?g(t=s.pre+"{"+s.body+r+s.post):[t];if(y)v=s.body.split(/\.\./);else if(1===(v=h(s.body)).length&&1===(v=g(v[0],!1).map(u)).length)return l.map((function(t){return s.pre+v[0]+t}));if(y){var k=f(v[0]),O=f(v[1]),S=Math.max(v[0].length,v[1].length),j=3==v.length?Math.abs(f(v[2])):1,M=d;O<k&&(j*=-1,M=p);var E=v.some(a);b=[];for(var x=k;M(x,O);x+=j){var P;if(w)"\\"===(P=String.fromCharCode(x))&&(P="");else if(P=x+"",E){var W=S-P.length;if(W>0){var R=Array(W+1).join("0");P=x<0?"-"+R+P.slice(1):R+P}}b.push(P)}}else{b=[];for(var N=0;N<v.length;N++)b.push.apply(b,g(v[N],!1))}for(N=0;N<b.length;N++)for(c=0;c<l.length;c++){var A=o+b[N]+l[c];(!e||y||A)&&i.push(A)}}return i}}}),A=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[i]])=>{if(31&i||32&i){const i=t[n],s=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(t,n,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):i}}))},C=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},z=(t,e)=>e in t,L=(t,e)=>(0,console.error)(t,e),_=new Map,T="undefined"!=typeof window?window:{},F=T.HTMLElement||class{},D={l:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,i)=>t.addEventListener(e,n,i),rel:(t,e,n,i)=>t.removeEventListener(e,n,i),ce:(t,e)=>new CustomEvent(t,e)},U=(()=>{try{return!!T.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),G=!!U&&(()=>!!T.document&&Object.getOwnPropertyDescriptor(T.document.adoptedStyleSheets,"length").writable)(),I=!1,Z=[],H=[],V=(t,e)=>n=>{t.push(n),I||(I=!0,e&&4&D.l?J(B):D.raf(B))},q=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){L(t)}t.length=0},B=()=>{q(Z),q(H),(I=Z.length>0)&&D.raf(B)},J=t=>Promise.resolve(void 0).then(t),Y=V(H,!0),K=t=>{const e=new URL(t,D.h);return e.origin!==T.location.origin?e.href:e.pathname},Q=t=>D.h=t,X=t=>"object"==(t=typeof t)||"function"===t,tt=((t,e,n)=>(n=null!=t?m(k(t)):{},((t,e,n,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of $(e))O.call(t,n)||undefined===n||w(t,n,{get:()=>e[n],enumerable:!(i=y(e,n))||i.enumerable});return t})(w(n,"default",{value:t,enumerable:!0}),t)))(N()),et=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},nt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},it=t=>t.replace(/[[\]\\-]/g,"\\$&"),st=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rt=t=>t.join(""),ot=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const i=[],s=[];let r=n+1,o=!1,l=!1,f=!1,c=!1,h=n,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!f){h=r+1;break}if(o=!0,"\\"!==e||f){if("["===e&&!f)for(const[e,[o,f,c]]of Object.entries(nt))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-n,!0];r+=e.length,c?s.push(o):i.push(o),l=l||f;continue t}f=!1,u?(e>u?i.push(it(u)+"-"+it(e)):e===u&&i.push(it(e)),u="",r++):t.startsWith("-]",r+1)?(i.push(it(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(i.push(it(e)),r++)}else f=!0,r++}else c=!0,r++}if(h<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,t.length-n,!0];if(0===s.length&&1===i.length&&/^\\?.$/.test(i[0])&&!c){const t=2===i[0].length?i[0].slice(-1):i[0];return[st(t),!1,h-n,!1]}const a="["+(c?"^":"")+rt(i)+"]",d="["+(c?"":"^")+rt(s)+"]";return[i.length&&s.length?"("+a+"|"+d+")":i.length?a:d,l,h-n,!0]},lt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ft=new Set(["!","?","+","*","@"]),ct=t=>ft.has(t),ht="(?!\\.)",ut=new Set(["[","."]),at=new Set(["..","."]),dt=new Set("().*{}+?[]^$\\!"),pt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gt="[^/]",vt=gt+"*?",bt=gt+"+?",mt=class t{constructor(t,d,p={}){x(this,a),((t,e,n)=>{((t,e,n)=>{e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),x(this,e),x(this,n),x(this,i,!1),x(this,s,[]),x(this,r),x(this,o),x(this,l),x(this,f,!1),x(this,c),x(this,h),x(this,u,!1),this.type=t,t&&P(this,n,!0),P(this,r,d),P(this,e,E(this,r)?E(E(this,r),e):this),P(this,c,E(this,e)===this?p:E(E(this,e),c)),P(this,l,E(this,e)===this?[]:E(E(this,e),l)),"!"!==t||E(E(this,e),f)||E(this,l).push(this),P(this,o,E(this,r)?E(E(this,r),s).length:0)}get hasMagic(){if(void 0!==E(this,n))return E(this,n);for(const t of E(this,s))if("string"!=typeof t&&(t.type||t.hasMagic))return P(this,n,!0);return E(this,n)}toString(){return void 0!==E(this,h)?E(this,h):P(this,h,this.type?this.type+"("+E(this,s).map((t=>t+"")).join("|")+")":E(this,s).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&E(n,r)===this))throw Error("invalid part: "+n);E(this,s).push(n)}}toJSON(){var t;const n=null===this.type?E(this,s).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...E(this,s).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===E(this,e)||E(E(this,e),f)&&"!"===(null==(t=E(this,r))?void 0:t.type))&&n.push({}),n}isStart(){var n;if(E(this,e)===this)return!0;if(!(null==(n=E(this,r))?void 0:n.isStart()))return!1;if(0===E(this,o))return!0;const i=E(this,r);for(let e=0;e<E(this,o);e++){const n=E(i,s)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,n,i;if(E(this,e)===this)return!0;if("!"===(null==(t=E(this,r))?void 0:t.type))return!0;if(!(null==(n=E(this,r))?void 0:n.isEnd()))return!1;if(!this.type)return null==(i=E(this,r))?void 0:i.isEnd();const l=E(this,r)?E(E(this,r),s).length:0;return E(this,o)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of E(this,s))n.copyIn(t);return n}static fromGlob(e,n={}){var i;const s=new t(null,void 0,n);return W(i=t,p,g).call(i,e,s,0,n),s}toMMPattern(){if(this!==E(this,e))return E(this,e).toMMPattern();const t=""+this,[i,s,r,o]=this.toRegExpSource();if(!(r||E(this,n)||E(this,c).nocase&&!E(this,c).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return s;const l=(E(this,c).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${i}$`,l),{_src:i,_glob:t})}get options(){return E(this,c)}toRegExpSource(o){var l;const h=null!=o?o:!!E(this,c).dot;if(E(this,e)===this&&W(this,a,d).call(this),!this.type){const c=this.isStart()&&this.isEnd(),u=E(this,s).map((e=>{var s;const[r,l,f,h]="string"==typeof e?W(s=t,p,b).call(s,e,E(this,n),c):e.toRegExpSource(o);return P(this,n,E(this,n)||f),P(this,i,E(this,i)||h),r})).join("");let a="";if(this.isStart()&&"string"==typeof E(this,s)[0]&&(1!==E(this,s).length||!at.has(E(this,s)[0]))){const t=ut,e=h&&t.has(u.charAt(0))||u.startsWith("\\.")&&t.has(u.charAt(2))||u.startsWith("\\.\\.")&&t.has(u.charAt(4)),n=!h&&!o&&t.has(u.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?ht:""}let d="";return this.isEnd()&&E(E(this,e),f)&&"!"===(null==(l=E(this,r))?void 0:l.type)&&(d="(?:$|\\/)"),[a+u+d,lt(u),P(this,n,!!E(this,n)),E(this,i)]}const g="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let w=W(this,a,v).call(this,h);if(this.isStart()&&this.isEnd()&&!w&&"!"!==this.type){const t=""+this;return P(this,s,[t]),this.type=null,P(this,n,void 0),[t,lt(""+this),!1,!1]}let y=!g||o||h?"":W(this,a,v).call(this,!0);y===w&&(y=""),y&&(w=`(?:${w})(?:${y})*?`);let $="";return $="!"===this.type&&E(this,u)?(this.isStart()&&!h?ht:"")+bt:m+w+("!"===this.type?"))"+(!this.isStart()||h||o?"":ht)+vt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":")"+this.type),[$,lt(w),P(this,n,!!E(this,n)),E(this,i)]}};e=new WeakMap,n=new WeakMap,i=new WeakMap,s=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,f=new WeakMap,c=new WeakMap,h=new WeakMap,u=new WeakMap,a=new WeakSet,d=function(){if(this!==E(this,e))throw Error("should only call on root");if(E(this,f))return this;let t;for(P(this,f,!0);t=E(this,l).pop();){if("!"!==t.type)continue;let e=t,n=E(e,r);for(;n;){for(let i=E(e,o)+1;!n.type&&i<E(n,s).length;i++)for(const e of E(t,s)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(E(n,s)[i])}e=n,n=E(e,r)}}return this},p=new WeakSet,g=function(t,e,i,r){var o,l;let f=!1,c=!1,h=-1,a=!1;if(null===e.type){let n=i,s="";for(;n<t.length;){const i=t.charAt(n++);if(f||"\\"===i)f=!f,s+=i;else if(c)n===h+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||n===h+2&&a||(c=!1),s+=i;else if("["!==i)if(r.noext||!ct(i)||"("!==t.charAt(n))s+=i;else{e.push(s),s="";const l=new mt(i,e);n=W(o=mt,p,g).call(o,t,l,n,r),e.push(l)}else c=!0,h=n,a=!1,s+=i}return e.push(s),n}let d=i+1,v=new mt(null,e);const b=[];let m="";for(;d<t.length;){const n=t.charAt(d++);if(f||"\\"===n)f=!f,m+=n;else if(c)d===h+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||d===h+2&&a||(c=!1),m+=n;else if("["!==n)if(ct(n)&&"("===t.charAt(d)){v.push(m),m="";const e=new mt(n,v);v.push(e),d=W(l=mt,p,g).call(l,t,e,d,r)}else if("|"!==n){if(")"===n)return""===m&&0===E(e,s).length&&P(e,u,!0),v.push(m),m="",e.push(...b,v),d;m+=n}else v.push(m),m="",b.push(v),v=new mt(null,e);else c=!0,h=d,a=!1,m+=n}return e.type=null,P(e,n,void 0),P(e,s,[t.substring(i-1)]),d},v=function(t){return E(this,s).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,s,r,o]=e.toRegExpSource(t);return P(this,i,E(this,i)||o),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},b=function(t,e,n=!1){let i=!1,s="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(i)i=!1,s+=(dt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,i,l,f]=ot(t,o);if(l){s+=n,r=r||i,o+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?s+=pt(l):(s+=gt,e=!0):(s+=n&&"*"===t?bt:vt,e=!0)}else o===t.length-1?s+="\\\\":i=!0}return[s,lt(t),!!e,r]},x(mt,p);var wt=mt,yt=(t,e,n={})=>(et(e),!(!n.nocomment&&"#"===e.charAt(0))&&new Vt(e,n).match(t)),$t=/^\*+([^+@!?\*\[\(]*)$/,kt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Ot=t=>e=>e.endsWith(t),St=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Mt=/^\*+\.\*+$/,Et=t=>!t.startsWith(".")&&t.includes("."),xt=t=>"."!==t&&".."!==t&&t.includes("."),Pt=/^\.\*+$/,Wt=t=>"."!==t&&".."!==t&&t.startsWith("."),Rt=/^\*+$/,Nt=t=>0!==t.length&&!t.startsWith("."),At=t=>0!==t.length&&"."!==t&&".."!==t,Ct=/^\?+([^+@!?\*\[\(]*)?$/,zt=([t,e=""])=>{const n=Ft([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Lt=([t,e=""])=>{const n=Dt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},_t=([t,e=""])=>{const n=Dt([t]);return e?t=>n(t)&&t.endsWith(e):n},Tt=([t,e=""])=>{const n=Ft([t]);return e?t=>n(t)&&t.endsWith(e):n},Ft=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Dt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Ut="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";yt.sep="win32"===Ut?"\\":"/";var Gt=Symbol("globstar **");yt.GLOBSTAR=Gt,yt.filter=(t,e={})=>n=>yt(n,t,e);var It=(t,e={})=>Object.assign({},t,e);yt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return yt;const e=yt;return Object.assign(((n,i,s={})=>e(n,i,It(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,It(t,n))}static defaults(n){return e.defaults(It(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,i={}){super(e,n,It(t,i))}static fromGlob(n,i={}){return e.AST.fromGlob(n,It(t,i))}},unescape:(n,i={})=>e.unescape(n,It(t,i)),escape:(n,i={})=>e.escape(n,It(t,i)),filter:(n,i={})=>e.filter(n,It(t,i)),defaults:n=>e.defaults(It(t,n)),makeRe:(n,i={})=>e.makeRe(n,It(t,i)),braceExpand:(n,i={})=>e.braceExpand(n,It(t,i)),match:(n,i,s={})=>e.match(n,i,It(t,s)),sep:e.sep,GLOBSTAR:Gt})};var Zt=(t,e={})=>(et(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,tt.default)(t));yt.braceExpand=Zt,yt.makeRe=(t,e={})=>new Vt(t,e).makeRe(),yt.match=(t,e,n={})=>{const i=new Vt(e,n);return t=t.filter((t=>i.match(t))),i.options.nonull&&!t.length&&t.push(e),t};var Ht=/[?*]|[+@!]\(.*?\)|\[|\]/,Vt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){et(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Ut,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Ht.test(t[2])||Ht.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,i),this.set=i.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const i=t[n];1===n&&""===i&&""===t[0]||"."!==i&&""!==i||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const i=t[n-1];i&&"."!==i&&".."!==i&&"**"!==i&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let i=-1;for(;-1!==(i=n.indexOf("**",i+1));){let s=i;for(;"**"===n[s+1];)s++;s>i&&n.splice(i+1,s-i);const r=n[i+2],o=n[i+3];if(".."!==n[i+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(i,1);const l=n.slice(0);l[i]="**",t.push(l),i--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const i=n[t];1===t&&""===i&&""===n[0]||"."!==i&&""!==i||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let s=0;for(;-1!==(s=n.indexOf("..",s+1));){const t=n[s-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(s-1,2,...1===s&&"**"===n[s+1]?["."]:[]),0===n.length&&n.push(""),s-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const i=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);i&&(t[e]=i,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let i=0,s=0,r=[],o="";for(;i<t.length&&s<e.length;)if(t[i]===e[s])r.push("b"===o?e[s]:t[i]),i++,s++;else if(n&&"**"===t[i]&&e[s]===t[i+1])r.push(t[i]),i++;else if(n&&"**"===e[s]&&t[i]===e[s+1])r.push(e[s]),s++;else if("*"!==t[i]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]){if("*"!==e[s]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i])return!1;if("a"===o)return!1;o="b",r.push(e[s]),i++,s++}else{if("b"===o)return!1;o="a",r.push(t[i]),i++,s++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let i=0;i<t.length&&"!"===t.charAt(i);i++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const i=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),i=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),s="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=i?3:n?0:void 0,o=!s&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:s?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,i]=[t[r],e[o]];n.toLowerCase()===i.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,f=e.length;r<l&&o<f;r++,o++){this.debug("matchOne loop");var c=e[o],h=t[r];if(this.debug(e,c,h),!1===c)return!1;if(c===Gt){this.debug("GLOBSTAR",[e,c,h]);var u=r,a=o+1;if(a===f){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!i.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<l;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,a,d),this.matchOne(t.slice(u),e.slice(a),n))return this.debug("globstar found match!",u,l,d),!0;if("."===d||".."===d||!i.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,a);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,a),u!==l))}let s;if("string"==typeof c?(s=h===c,this.debug("string match",c,h,s)):(s=c.test(h),this.debug("pattern match",c,h,s)),!s)return!1}if(r===l&&o===f)return!0;if(r===l)return n;if(o===f)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Zt(this.pattern,this.options)}parse(t){et(t);const e=this.options;if("**"===t)return Gt;if(""===t)return"";let n,i=null;(n=t.match(Rt))?i=e.dot?At:Nt:(n=t.match($t))?i=(e.nocase?e.dot?jt:St:e.dot?Ot:kt)(n[1]):(n=t.match(Ct))?i=(e.nocase?e.dot?Lt:zt:e.dot?_t:Tt)(n):(n=t.match(Mt))?i=e.dot?xt:Et:(n=t.match(Pt))&&(i=Wt);const s=wt.fromGlob(t,this.options).toMMPattern();return i&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))i.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Gt?Gt:t._src}));return e.forEach(((t,i)=>{const s=e[i+1],r=e[i-1];t===Gt&&r!==Gt&&(void 0===r?void 0!==s&&s!==Gt?e[i+1]="(?:\\/|"+n+"\\/)?"+s:e[i]=n:void 0===s?e[i-1]=r+"(?:\\/|"+n+")?":s!==Gt&&(e[i-1]=r+"(?:\\/|\\/"+n+"\\/)"+s,e[i+1]=Gt))})),e.filter((t=>t!==Gt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+o+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=RegExp(s,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let r=i[i.length-1];if(!r)for(let t=i.length-2;!r&&t>=0;t--)r=i[t];for(let t=0;t<s.length;t++){const o=s[t];let l=i;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return yt.defaults(t).Minimatch}};yt.AST=wt,yt.Minimatch=Vt,yt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),yt.unescape=lt,((t,e)=>{for(var n in e)w(t,n,{get:e[n],enumerable:!0})})({},{err:()=>Bt,map:()=>Jt,ok:()=>qt,unwrap:()=>Kt,unwrapErr:()=>Qt});var qt=t=>({isOk:!0,isErr:!1,value:t}),Bt=t=>({isOk:!1,isErr:!0,value:t});function Jt(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>qt(t))):qt(n)}if(t.isErr)return Bt(t.value);throw"should never get here"}var Yt,Kt=t=>{if(t.isOk)return t.value;throw t.value},Qt=t=>{if(t.isErr)return t.value;throw t.value};function Xt(){var e;const n=this.attachShadow({mode:"open"});if(void 0===Yt&&(Yt=null!=(e=function(t){if(!U)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),Yt)G?n.adoptedStyleSheets.push(Yt):n.adoptedStyleSheets=[...n.adoptedStyleSheets,Yt];else if(!U){const e=document.createElement("style");e.innerHTML=t,n.prepend(e)}}var te=new WeakMap,ee=t=>"sc-"+t.u,ne=(t,e,...n)=>{let i=null,s=null,r=!1,o=!1;const l=[],f=e=>{for(let n=0;n<e.length;n++)i=e[n],Array.isArray(i)?f(i):null!=i&&"boolean"!=typeof i&&((r="function"!=typeof t&&!X(i))&&(i+=""),r&&o?l[l.length-1].p+=i:l.push(r?ie(null,i):i),o=r)};if(f(n),e){e.key&&(s=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const c=ie(t,null);return c.v=e,l.length>0&&(c.m=l),c.$=s,c},ie=(t,e)=>({l:0,k:t,p:e,O:null,m:null,v:null,$:null}),se={},re=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};re("::slotted"),re(":host"),re(":host-context");var oe,le=(t,e)=>null==t||X(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,fe=(t,e)=>{const n=t;return{emit:t=>ce(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},ce=(t,e,n)=>{const i=D.ce(e,n);return t.dispatchEvent(i),i},he=(t,e,n,i,s,r)=>{if(n===i)return;let o=z(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,s=ae(n);let r=ae(i);e.remove(...s.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)n&&i[e]===n[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const l=X(i);if((o||l&&null!==i)&&!s)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const s=null==i?"":i;"list"===e?o=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}null==i||!1===i?!1===i&&""!==t.getAttribute(e)||t.removeAttribute(e):(!o||4&r||s)&&!l&&1===t.nodeType&&t.setAttribute(e,i=!0===i?"":i)}else if(e="-"===e[2]?e.slice(3):z(T,l)?l.slice(2):l[2]+e.slice(3),n||i){const s=e.endsWith(de);e=e.replace(pe,""),n&&D.rel(t,e,n,s),i&&D.ael(t,e,i,s)}},ue=/\s/,ae=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ue):[]),de="Capture",pe=RegExp(de+"$"),ge=(t,e,n)=>{const i=11===e.O.nodeType&&e.O.host?e.O.host:e.O,s=t&&t.v||{},r=e.v||{};for(const t of ve(Object.keys(s)))t in r||he(i,t,s[t],void 0,n,e.l);for(const t of ve(Object.keys(r)))he(i,t,s[t],r[t],n,e.l)};function ve(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var be=!1,me=(t,e,n)=>{const i=e.m[n];let s,r,o=0;if(null!==i.p)s=i.O=T.document.createTextNode(i.p);else{if(be||(be="svg"===i.k),!T.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=i.O=T.document.createElementNS(be?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.k),be&&"foreignObject"===i.k&&(be=!1),ge(null,i,be),i.m){const e="template"===i.k?s.content:s;for(o=0;o<i.m.length;++o)r=me(t,i,o),r&&e.appendChild(r)}"svg"===i.k?be=!1:"foreignObject"===s.tagName&&(be=!0)}return s["s-hn"]=oe,s},we=(t,e,n,i,s,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===oe&&(l=l.shadowRoot),"template"===n.k&&(l=l.content);s<=r;++s)i[s]&&(o=me(null,n,s),o&&(i[s].O=o,Oe(l,o,e)))},ye=(t,e,n)=>{for(let i=e;i<=n;++i){const e=t[i];if(e){const t=e.O;t&&t.remove()}}},$e=(t,e,n=!1)=>t.k===e.k&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),ke=(t,e,n=!1)=>{const i=e.O=t.O,s=t.m,r=e.m,o=e.k,l=e.p;null===l?(ge(t,e,be="svg"===o||"foreignObject"!==o&&be),null!==s&&null!==r?((t,e,n,i,s=!1)=>{let r,o,l=0,f=0,c=0,h=0,u=e.length-1,a=e[0],d=e[u],p=i.length-1,g=i[0],v=i[p];const b="template"===n.k?t.content:t;for(;l<=u&&f<=p;)if(null==a)a=e[++l];else if(null==d)d=e[--u];else if(null==g)g=i[++f];else if(null==v)v=i[--p];else if($e(a,g,s))ke(a,g,s),a=e[++l],g=i[++f];else if($e(d,v,s))ke(d,v,s),d=e[--u],v=i[--p];else if($e(a,v,s))ke(a,v,s),Oe(b,a.O,d.O.nextSibling),a=e[++l],v=i[--p];else if($e(d,g,s))ke(d,g,s),Oe(b,d.O,a.O),d=e[--u],g=i[++f];else{for(c=-1,h=l;h<=u;++h)if(e[h]&&null!==e[h].$&&e[h].$===g.$){c=h;break}c>=0?(o=e[c],o.k!==g.k?r=me(e&&e[f],n,c):(ke(o,g,s),e[c]=void 0,r=o.O),g=i[++f]):(r=me(e&&e[f],n,f),g=i[++f]),r&&Oe(a.O.parentNode,r,a.O)}l>u?we(t,null==i[p+1]?null:i[p+1].O,n,i,f,p):f>p&&ye(e,l,u)})(i,s,e,r,n):null!==r?(null!==t.p&&(i.textContent=""),we(i,null,e,r,0,r.length-1)):!n&&null!==s&&ye(s,0,s.length-1),be&&"svg"===o&&(be=!1)):t.p!==l&&(i.data=l)},Oe=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Se=(t,e,n=!1)=>{const i=t.$hostElement$,s=t.S||ie(null,null),r=(t=>t&&t.k===se)(e)?e:ne(null,null,e);if(oe=i.tagName,n&&r.v)for(const t of Object.keys(r.v))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.v[t]=i[t]);r.k=null,r.l|=4,t.S=r,r.O=s.O=i.shadowRoot||i,ke(s,r,n)},je=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((i=>t.j=()=>{e["s-p"].splice(n-1,1),i()})))}},Me=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);je(t,t.M);const n=()=>Ee(t,e);if(!e)return Y(n);queueMicrotask((()=>{n()}))},Ee=(t,e)=>{const n=t.$hostElement$,i=n;if(!i)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=Ce(i,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=xe(s,(()=>Ce(i,"componentWillRender",void 0,n))),xe(s,(()=>We(t,i,e)))},xe=(t,e)=>Pe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Pe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,We=async(t,e,n)=>{var i;const s=t.$hostElement$,r=s["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,i=e.l,s=((t,e)=>{var n,i,s;const r=ee(e),o=_.get(r);if(!T.document)return r;if(t=11===t.nodeType?t:T.document,o)if("string"==typeof o){let s,l=te.get(t=t.head||t);if(l||te.set(t,l=new Set),!l.has(r)){s=T.document.createElement("style"),s.innerHTML=o;const f=null!=(n=D.P)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=T.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=f&&s.setAttribute("nonce",f),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(U){const e=new(null!=(i=t.defaultView)?i:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),G?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&t.insertBefore(s,null),4&e.l&&(s.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(r)}}else{let e=te.get(t);if(e||te.set(t,e=new Set),!e.has(r)){const n=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let i;if(o.constructor===n.CSSStyleSheet)i=o;else{i=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)i.insertRule(o.cssRules[t].cssText,t)}G?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i],e.add(r)}}return r})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);Re(t,e,s,n),r&&(r.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(i=s["s-p"])?i:[],n=()=>Ne(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},Re=(t,e,n,i)=>{try{e=e.render(),t.l&=-17,t.l|=2,Se(t,e,i)}catch(e){L(e,t.$hostElement$)}return null},Ne=t=>{const e=t.$hostElement$,n=e,i=t.M;Ce(n,"componentDidRender",void 0,e),64&t.l?Ce(n,"componentDidUpdate",void 0,e):(t.l|=64,ze(e),Ce(n,"componentDidLoad",void 0,e),t.W(e),i||Ae()),t.j&&(t.j(),t.j=void 0),512&t.l&&J((()=>Me(t,!1))),t.l&=-517},Ae=()=>{J((()=>ce(T,"appload",{detail:{namespace:"feedlog-toolkit"}})))},Ce=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){L(t,i)}},ze=t=>t.classList.add("hydrated"),Le=(t,e,n,i)=>{const s=C(t);if(!s)return;const r=t,o=s.o.get(e),l=s.l,f=r;if(!((n=le(n,i.t[e][0]))===o||Number.isNaN(o)&&Number.isNaN(n)||(s.o.set(e,n),2!=(18&l)))){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,o,e))return;Me(s,!1)}},_e=(t,e)=>{var n,i;const s=t.prototype;if(e.t){const r=Object.entries(null!=(n=e.t)?n:{});r.map((([t,[n]])=>{if(31&n||32&n){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return i?i.apply(this):((t,e)=>C(this).o.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=C(this);if(s){if(r)return void 0===(32&n?this[t]:s.$hostElement$[t])&&s.o.get(t)&&(i=s.o.get(t)),r.call(this,le(i,n)),void Le(this,t,i=32&n?this[t]:s.$hostElement$[t],e);Le(this,t,i,e)}}})}}));{const n=new Map;s.attributeChangedCallback=function(t,i,o){D.jmp((()=>{var l;const f=n.get(t),c=C(this);if(this.hasOwnProperty(f),s.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==o)return;if(null==f){const n=null==c?void 0:c.l;if(c&&n&&!(8&n)&&o!==i){const s=this,r=null==(l=e.R)?void 0:l[t];null==r||r.forEach((e=>{const[[r,l]]=Object.entries(e);null!=s[r]&&(128&n||1&l)&&s[r].call(s,o,i,t)}))}return}const h=r.find((([t])=>t===f));h&&4&h[1][0]&&(o=null!==o&&"false"!==o);const u=Object.getOwnPropertyDescriptor(s,f);o==this[f]||u.get&&!u.set||(this[f]=o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.R)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const i=e[1]||t;return n.set(i,t),i}))]))}}return t},Te=(t,e)=>{const n={l:e[0],u:e[1]};n.t=e[2];const i=t.prototype.connectedCallback,s=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,i:e,o:new Map,N:new Map};n.A=new Promise((t=>n.W=t)),t["s-p"]=[],t["s-rc"]=[];const i=n;t.__stencil__getHostRef=()=>i,512&e.l&&A(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!C(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&D.l)){const e=C(t);if(!e)return;const n=e.i,i=()=>{};if(1&e.l)(null==e?void 0:e.C)||(null==e?void 0:e.A)&&e.A.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){je(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let i;if(!(32&e.l)&&(e.l|=32,i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),i&&i.style)){let t;"string"==typeof i.style&&(t=i.style);const e=ee(n);if(!_.has(e)){const i=()=>{};((t,e,n)=>{let i=_.get(t);U&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,_.set(t,i)})(e,t,!!(1&n.l)),i()}}const s=e.M,r=()=>Me(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(t,e,n)}i()}})(this),i&&i.call(this)},disconnectedCallback(){(async t=>{te.has(t)&&te.delete(t),t.shadowRoot&&te.has(t.shadowRoot)&&te.delete(t.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.u}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Xt.call(this,n)}}),t.is=n.u,_e(t,n)},Fe=t=>D.P=t,De=t=>Object.assign(D,t);function Ue(t,e){Se({$hostElement$:e},t)}function Ge(t){return t}export{F as H,se as a,fe as c,K as getAssetPath,ne as h,Te as p,Ue as render,Q as setAssetPath,Fe as setNonce,De as setPlatformOptions,Ge as t}
@@ -0,0 +1,3 @@
1
+ import{t as e,p as t,H as n,c as r,h as i,a as o}from"./index.js";import{d as s}from"./p-Chc3XZ5Y.js";var l={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function a(e){l=e}var c={exec:()=>null};function u(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(d.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var f=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),d={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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+));?/gi,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})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\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"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,g=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,m=u(g).replace(/bull/g,p).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(),b=u(g).replace(/bull/g,p).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(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,x=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=u(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),v="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",S=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$=u("^ {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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",S).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A=u(k).replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),T={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:x,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:$,lheading:m,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:A,table:c,text:/^[^\n]+/},_=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),R={...T,lheading:b,table:_,paragraph:u(k).replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},E={...T,html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).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:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(k).replace("hr",h).replace("heading"," *#{1,6} *[^\n]").replace("lheading",m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)/,P=/[\p{P}\p{S}]/u,L=/[\s\p{P}\p{S}]/u,M=/[^\s\p{P}\p{S}]/u,D=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),C=/(?!~)[\p{P}\p{S}]/u,I=/(?![*_])[\p{P}\p{S}]/u,O=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),q=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=u(q,"u").replace(/punct/g,P).getRegex(),F=u(q,"u").replace(/punct/g,C).getRegex(),N="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=u(N,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),U=u(N,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,C).getRegex(),Z=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),H=u(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,I).getRegex(),W=u("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),X=u(/\\(punct)/,"gu").replace(/punct/g,P).getRegex(),G=u(/^<(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(),Y=u(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=u("^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",Y).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Q=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=u(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",w).getRegex(),ee=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ne={_backpedal:c,anyPunctuation:X,autolink:G,blockSkip:O,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:c,delLDelim:c,delRDelim:c,emStrongLDelim:B,emStrongRDelimAst:j,emStrongRDelimUnd:Z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q,nolink:ee,punctuation:D,reflink:J,reflinkSearch:u("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",ee).getRegex(),tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:c},re={...ne,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},ie={...ne,emStrongRDelimAst:U,emStrongLDelim:F,delLDelim:H,delRDelim:W,url:u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",te).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",te).getRegex()},oe={...ie,br:u(z).replace("{2,}","*").getRegex(),text:u(ie.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},se={normal:T,gfm:R,pedantic:E},le={normal:ne,gfm:ie,breaks:oe,pedantic:re},ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce=e=>ae[e];function ue(e,t){if(t){if(d.escapeTest.test(e))return e.replace(d.escapeReplace,ce)}else if(d.escapeTestNoEncode.test(e))return e.replace(d.escapeReplaceNoEncode,ce);return e}function fe(e){try{e=encodeURI(e).replace(d.percentDecode,"%")}catch{return null}return e}function de(e,t){let n=e.replace(d.findPipe,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(d.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(d.slashPipe,"|");return n}function he(e,t){let n=e.length;if(0===n)return"";let r=0;for(;r<n&&e.charAt(n-r-1)===t;)r++;return e.slice(0,n-r)}function pe(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function ge(e,t,n,r,i){let o=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}var me=class{options;rules;lexer;constructor(e){this.options=e||l}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:he(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map((e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=he(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:he(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=he(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else{if(o)break;s.push(e[t])}e=e.slice(t);let l=s.join("\n"),a=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${a}`:a;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,r=r.substring(0,r.length-t.text.length)+s.text;break}if("list"!==u?.type);else{let t=u,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,r=r.substring(0,r.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",l="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let a=pe(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!a.trim(),f=0;if(this.options.pedantic?(f=2,l=a.trimStart()):u?f=t[1].length+1:(f=a.search(this.rules.other.nonSpaceChar),f=f>4?1:f,l=a.slice(f),f+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(f),n=this.rules.other.hrRegex(f),i=this.rules.other.fencesBeginRegex(f),o=this.rules.other.headingBeginRegex(f),s=this.rules.other.htmlBeginRegex(f),d=this.rules.other.blockquoteBeginRegex(f);for(;e;){let h,p=e.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||s.test(c)||d.test(c)||t.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=f||!c.trim())l+="\n"+h.slice(f);else{if(u||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(a)||o.test(a)||n.test(a))break;l+="\n"+c}u=!c.trim(),r+=p+"\n",e=e.substring(p.length+1),a=h.slice(f)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]}),i.raw+=r}let l=i.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));i.loose=n}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=de(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(de(e,o.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]}))));return o}}lheading(e){let 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){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let 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){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=he(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[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}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ge(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.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))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ge(n,e,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))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,s=o,l=0,a="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=a.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){l+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+l);let t=[...r[0]][0].length,a=e.slice(0,o+r.index+t+i);if(Math.min(o,i)%2){let e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}let c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,s=o,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(i=[...n].length,i!==o))continue;if(r[3]||r[4]){s+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s);let t=[...r[0]][0].length,l=e.slice(0,o+r.index+t+i),a=l.slice(o,-o);return{type:"del",raw:l,text:a,tokens:this.lexer.inlineTokens(a)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}},be=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||l,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:d,block:se.normal,inline:le.normal};this.options.pedantic?(t.block=se.pedantic,t.inline=le.pedantic):this.options.gfm&&(t.block=se.gfm,t.inline=this.options.breaks?le.breaks:le.gfm),this.tokenizer.rules=t}static get rules(){return{block:se,inline:le}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(d.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(d.tabCharGlobal," ").replace(d.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let o=!1,s="";for(;e;){let n;if(o||(s=""),o=!1,this.options.extensions?.inline?.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,s)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,r,s)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),o=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ke=class{options;parser;constructor(e){this.options=e||l}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(d.notSpaceStart)?.[0],i=e.replace(d.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ue(r)+'">'+(n?i:ue(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:ue(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++)r+=this.listitem(e.items[t]);let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\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>${ue(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=fe(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+ue(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=fe(e);if(null===i)return ue(n);let o=`<img src="${e=i}" alt="${n}"`;return t&&(o+=` title="${ue(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ue(e.text)}},we=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""}checkbox({raw:e}){return e}},xe=class e{options;renderer;textRenderer;constructor(e){this.options=e||l,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new we}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let i=r;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"checkbox":n+=t.checkbox(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},ye=class{options;block;constructor(e){this.options=e||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?be.lex:be.lexInline}provideParser(){return this.block?xe.parse:xe.parseInline}},ve=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xe;Renderer=ke;TextRenderer=we;Lexer=be;Tokenizer=me;Hooks=ye;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ke(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new me(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ye;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];t[n]=ye.passThroughHooks.has(n)?e=>{if(this.defaults.async&&ye.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let o=r.call(t,e);return i.call(t,o)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return be.lex(e,t??this.defaults)}parser(e,t){return xe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)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 t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?be.lex:be.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser():e?xe.parse:xe.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?be.lex:be.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?xe.parse:xe.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ue(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Se(e,t){return ve.parse(e,t)}Se.options=Se.setOptions=function(e){return ve.setOptions(e),a(Se.defaults=ve.defaults),Se},Se.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Se.defaults=l,Se.use=function(...e){return ve.use(...e),a(Se.defaults=ve.defaults),Se},Se.walkTokens=function(e,t){return ve.walkTokens(e,t)},Se.parseInline=ve.parseInline,Se.Parser=xe,Se.parser=xe.parse,Se.Renderer=ke,Se.TextRenderer=we,Se.Lexer=be,Se.lexer=be.lex,Se.Tokenizer=me,Se.Hooks=ye,Se.parse=Se;
2
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
3
+ const{entries:$e,setPrototypeOf:Ae,isFrozen:Te,getPrototypeOf:_e,getOwnPropertyDescriptor:Re}=Object;let{freeze:Ee,seal:ze,create:Pe}=Object,{apply:Le,construct:Me}="undefined"!=typeof Reflect&&Reflect;Ee||(Ee=function(e){return e}),ze||(ze=function(e){return e}),Le||(Le=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),Me||(Me=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const De=Ye(Array.prototype.forEach),Ce=Ye(Array.prototype.lastIndexOf),Ie=Ye(Array.prototype.pop),Oe=Ye(Array.prototype.push),qe=Ye(Array.prototype.splice),Be=Ye(String.prototype.toLowerCase),Fe=Ye(String.prototype.toString),Ne=Ye(String.prototype.match),je=Ye(String.prototype.replace),Ue=Ye(String.prototype.indexOf),Ze=Ye(String.prototype.trim),He=Ye(Object.prototype.hasOwnProperty),We=Ye(RegExp.prototype.test),Xe=(Ge=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Me(Ge,t)});var Ge;function Ye(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Le(e,t,r)}}function Ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be;Ae&&Ae(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(Te(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ke(e){for(let t=0;t<e.length;t++)He(e,t)||(e[t]=null);return e}function Qe(e){const t=Pe(null);for(const[n,r]of $e(e))He(e,n)&&(t[n]=Array.isArray(r)?Ke(r):r&&"object"==typeof r&&r.constructor===Object?Qe(r):r);return t}function Je(e,t){for(;null!==e;){const n=Re(e,t);if(n){if(n.get)return Ye(n.get);if("function"==typeof n.value)return Ye(n.value)}e=_e(e)}return function(){return null}}const et=Ee(["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"]),tt=Ee(["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"]),nt=Ee(["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"]),rt=Ee(["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"]),it=Ee(["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"]),ot=Ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),st=Ee(["#text"]),lt=Ee(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),at=Ee(["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","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","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-rendering","textlength","type","u1","u2","unicode","values","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"]),ct=Ee(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ut=Ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ft=ze(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dt=ze(/<%[\w\W]*|[\w\W]*%>/gm),ht=ze(/\$\{[\w\W]*/gm),pt=ze(/^data-[\-\w.\u00B7-\uFFFF]+$/),gt=ze(/^aria-[\-\w]+$/),mt=ze(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bt=ze(/^(?:\w+script|data):/i),kt=ze(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wt=ze(/^html$/i),xt=ze(/^[a-z][.\w]*(-[.\w]+)+$/i);var yt=Object.freeze({__proto__:null,ARIA_ATTR:gt,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:xt,DATA_ATTR:pt,DOCTYPE_NAME:wt,ERB_EXPR:dt,IS_ALLOWED_URI:mt,IS_SCRIPT_OR_DATA:bt,MUSTACHE_EXPR:ft,TMPLIT_EXPR:ht});const vt=function(){return"undefined"==typeof window?null:window};var St=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:p}=t,g=c.prototype,m=Je(g,"cloneNode"),b=Je(g,"remove"),k=Je(g,"nextSibling"),w=Je(g,"childNodes"),x=Je(g,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let y,v="";const{implementation:S,createNodeIterator:$,createDocumentFragment:A,getElementsByTagName:T}=r,{importNode:_}=i;let R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof $e&&"function"==typeof x&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:E,ERB_EXPR:z,TMPLIT_EXPR:P,DATA_ATTR:L,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:C,CUSTOM_ELEMENT:I}=yt;let{IS_ALLOWED_URI:O}=yt,q=null;const B=Ve({},[...et,...tt,...nt,...it,...st]);let F=null;const N=Ve({},[...lt,...at,...ct,...ut]);let j=Object.seal(Pe(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}})),U=null,Z=null;const H=Object.seal(Pe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,X=!0,G=!1,Y=!0,V=!1,K=!0,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1,se=!0,le=!1,ae={},ce=null;const ue=Ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fe=null;const de=Ve({},["audio","video","img","source","image","track"]);let he=null;const pe=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ke=be,we=!1,xe=null;const ye=Ve({},[ge,me,be],Fe);let ve=Ve({},["mi","mo","mn","ms","mtext"]),Se=Ve({},["annotation-xml"]);const Ae=Ve({},["title","style","font","a","script"]);let Te=null;const _e=["application/xhtml+xml","text/html"];let Re=null,ze=null;const Le=r.createElement("form"),Me=function(e){return e instanceof RegExp||e instanceof Function},Ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ze||ze!==e){if(e&&"object"==typeof e||(e={}),e=Qe(e),Te=-1===_e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Re="application/xhtml+xml"===Te?Fe:Be,q=He(e,"ALLOWED_TAGS")?Ve({},e.ALLOWED_TAGS,Re):B,F=He(e,"ALLOWED_ATTR")?Ve({},e.ALLOWED_ATTR,Re):N,xe=He(e,"ALLOWED_NAMESPACES")?Ve({},e.ALLOWED_NAMESPACES,Fe):ye,he=He(e,"ADD_URI_SAFE_ATTR")?Ve(Qe(pe),e.ADD_URI_SAFE_ATTR,Re):pe,fe=He(e,"ADD_DATA_URI_TAGS")?Ve(Qe(de),e.ADD_DATA_URI_TAGS,Re):de,ce=He(e,"FORBID_CONTENTS")?Ve({},e.FORBID_CONTENTS,Re):ue,U=He(e,"FORBID_TAGS")?Ve({},e.FORBID_TAGS,Re):Qe({}),Z=He(e,"FORBID_ATTR")?Ve({},e.FORBID_ATTR,Re):Qe({}),ae=!!He(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,X=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,V=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,le=e.IN_PLACE||!1,O=e.ALLOWED_URI_REGEXP||mt,ke=e.NAMESPACE||be,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,Se=e.HTML_INTEGRATION_POINTS||Se,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(X=!1),ne&&(te=!0),ae&&(q=Ve({},st),F=[],!0===ae.html&&(Ve(q,et),Ve(F,lt)),!0===ae.svg&&(Ve(q,tt),Ve(F,at),Ve(F,ut)),!0===ae.svgFilters&&(Ve(q,nt),Ve(F,at),Ve(F,ut)),!0===ae.mathMl&&(Ve(q,it),Ve(F,ct),Ve(F,ut))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(q===B&&(q=Qe(q)),Ve(q,e.ADD_TAGS,Re))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(F===N&&(F=Qe(F)),Ve(F,e.ADD_ATTR,Re))),e.ADD_URI_SAFE_ATTR&&Ve(he,e.ADD_URI_SAFE_ATTR,Re),e.FORBID_CONTENTS&&(ce===ue&&(ce=Qe(ce)),Ve(ce,e.FORBID_CONTENTS,Re)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Qe(ce)),Ve(ce,e.ADD_FORBID_CONTENTS,Re)),se&&(q["#text"]=!0),Q&&Ve(q,["html","head","body"]),q.table&&(Ve(q,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Xe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Xe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,v=y.createHTML("")}else void 0===y&&(y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,o)),null!==y&&"string"==typeof v&&(v=y.createHTML(""));Ee&&Ee(e),ze=e}},Ye=Ve({},[...tt,...nt,...rt]),Ke=Ve({},[...it,...ot]),ft=function(e){Oe(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){b(e)}},dt=function(e,t){try{Oe(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Oe(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Ne(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Te&&ke===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=y?y.createHTML(e):e;if(ke===be)try{t=(new h).parseFromString(i,Te)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(ke,"template",null);try{t.documentElement.innerHTML=we?v:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ke===be?T.call(t,Q?"html":"body")[0]:Q?t.documentElement:o},pt=function(e){return $.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},gt=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof a&&e instanceof a};function kt(e,t,r){De(e,(e=>{e.call(n,t,r,ze)}))}const xt=function(e){let t=null;if(kt(R.beforeSanitizeElements,e,null),gt(e))return ft(e),!0;const r=Re(e.nodeName);if(kt(R.uponSanitizeElement,e,{tagName:r,allowedTags:q}),K&&e.hasChildNodes()&&!bt(e.firstElementChild)&&We(/<[/\w!]/g,e.innerHTML)&&We(/<[/\w!]/g,e.textContent))return ft(e),!0;if(7===e.nodeType)return ft(e),!0;if(K&&8===e.nodeType&&We(/<[/\w]/g,e.data))return ft(e),!0;if(!(H.tagCheck instanceof Function&&H.tagCheck(r))&&(!q[r]||U[r])){if(!U[r]&&$t(r)){if(j.tagNameCheck instanceof RegExp&&We(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}if(se&&!ce[r]){const t=x(e)||e.parentNode,n=w(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,k(e))}}return ft(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ke,tagName:"template"});const n=Be(e.tagName),r=Be(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===be?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(Ye[n]):e.namespaceURI===ge?t.namespaceURI===be?"math"===n:t.namespaceURI===me?"math"===n&&Se[r]:Boolean(Ke[n]):e.namespaceURI===be?!(t.namespaceURI===me&&!Se[r])&&!(t.namespaceURI===ge&&!ve[r])&&!Ke[n]&&(Ae[n]||!Ye[n]):!("application/xhtml+xml"!==Te||!xe[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!We(/<\/no(script|embed|frames)/i,e.innerHTML)?(V&&3===e.nodeType&&(t=e.textContent,De([E,z,P],(e=>{t=je(t,e," ")})),e.textContent!==t&&(Oe(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt(R.afterSanitizeElements,e,null),!1):(ft(e),!0)},St=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in r||n in Le))return!1;if(X&&!Z[t]&&We(L,t));else if(W&&We(M,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!F[t]||Z[t]){if(!($t(e)&&(j.tagNameCheck instanceof RegExp&&We(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&We(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&We(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(he[t]);else if(We(O,je(n,C,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ue(n,"data:")||!fe[e])if(G&&!We(D,je(n,C,"")));else if(n)return!1;return!0},$t=function(e){return"annotation-xml"!==e&&Ne(e,I)},At=function(e){kt(R.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||gt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:l,value:a}=o,c=Re(s),u=a;let f="value"===s?u:Ze(u);if(r.attrName=c,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,kt(R.uponSanitizeAttribute,e,r),f=r.attrValue,!oe||"id"!==c&&"name"!==c||(dt(s,e),f="user-content-"+f),K&&We(/((--!?|])>)|<\/(style|title|textarea)/i,f)){dt(s,e);continue}if("attributename"===c&&Ne(f,"href")){dt(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){dt(s,e);continue}if(!Y&&We(/\/>/i,f)){dt(s,e);continue}V&&De([E,z,P],(e=>{f=je(f,e," ")}));const d=Re(e.nodeName);if(St(d,c,f)){if(y&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(d,c)){case"TrustedHTML":f=y.createHTML(f);break;case"TrustedScriptURL":f=y.createScriptURL(f)}if(f!==u)try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),gt(e)?ft(e):Ie(n.removed)}catch(t){dt(s,e)}}else dt(s,e)}kt(R.afterSanitizeAttributes,e,null)},Tt=function e(t){let n=null;const r=pt(t);for(kt(R.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)kt(R.uponSanitizeShadowNode,n,null),xt(n),At(n),n.content instanceof s&&e(n.content);kt(R.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,l=null,c=null;if(we=!e,we&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw Xe("toString is not a function");if("string"!=typeof(e=e.toString()))throw Xe("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Ge(t),n.removed=[],"string"==typeof e&&(le=!1),le){if(e.nodeName){const t=Re(e.nodeName);if(!q[t]||U[t])throw Xe("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)r=ht("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!V&&!Q&&-1===e.indexOf("<"))return y&&re?y.createHTML(e):e;if(r=ht(e),!r)return te?null:re?v:""}r&&ee&&ft(r.firstChild);const u=pt(le?e:r);for(;l=u.nextNode();)xt(l),At(l),l.content instanceof s&&Tt(l.content);if(le)return e;if(te){if(ne)for(c=A.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(F.shadowroot||F.shadowrootmode)&&(c=_.call(i,c,!0)),c}let f=Q?r.outerHTML:r.innerHTML;return Q&&q["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&We(wt,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),V&&De([E,z,P],(e=>{f=je(f,e," ")})),y&&re?y.createHTML(f):f},n.setConfig=function(){Ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){ze=null,J=!1},n.isValidAttribute=function(e,t,n){ze||Ge({});const r=Re(e),i=Re(t);return St(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&Oe(R[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ce(R[e],t);return-1===n?void 0:qe(R[e],n,1)[0]}return Ie(R[e])},n.removeHooks=function(e){R[e]=[]},n.removeAllHooks=function(){R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function $t(e){if(null==e||""===e)return"";const t=Se.parse(e,{gfm:!0,breaks:!0});return St.sanitize(t,{ALLOWED_TAGS:["p","br","strong","em","b","i","u","s","code","pre","a","ul","ol","li","h1","h2","h3","h4","h5","h6","blockquote","hr","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","target","rel"]})}const At=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=r(this,"feedlogUpvote"),this.theme="light",this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit({issueId:this.issue.id,currentUpvoted:this.issue.hasUpvoted,currentCount:this.issue.upvoteCount})}}renderPinIcon(){return i("svg",{class:"pin-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",{d:"M12 17v5"}),i("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16h1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2h1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}))}renderUpvoteIcon(e){return i("svg",e?{class:"upvote-icon filled",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"}:{class:"upvote-icon outline",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",{d:"M7 10v12"}),i("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z"}))}formatDate(e){try{const t=new Date(e),n=new Date,r=Math.floor((n.getTime()-t.getTime())/1e3);return r<60?"just now":r<3600?`${Math.floor(r/60)}m ago`:r<86400?`${Math.floor(r/3600)}h ago`:r<604800?`${Math.floor(r/86400)}d ago`:r<2592e3?`${Math.floor(r/604800)}w ago`:t.toLocaleDateString()}catch(e){return"unknown date"}}getStatusBadgeLabel(){const{issue:e}=this;return"in_progress"===e.status?"In progress":"closed"===e.status&&"bug"===e.type?"Resolved":"closed"===e.status&&"enhancement"===e.type?"Implemented":null}renderExternalLinkIcon(){return i("svg",{class:"github-link-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),i("polyline",{points:"15 3 21 3 21 9"}),i("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))}render(){var e,t;const{issue:n,issueUrl:r}=this;if(!n)return null;const s=new Date(n.updatedAt).getTime()>new Date(n.createdAt).getTime(),l=s?"Updated":"Created",a=s?n.updatedAt:n.createdAt,c=s?`Updated: ${n.updatedAt}`:`Created: ${n.createdAt}`,u=null!==(e=n.title)&&void 0!==e?e:"Untitled",f=n.repository.name,d=null!=f&&""!==f&&"unnamed repository"!==f.toLowerCase()?f:null,h=null!=n.repository.description&&""!==n.repository.description?n.repository.description:void 0,p=this.getStatusBadgeLabel(),g=null!==(t=n.githubIssueLink)&&void 0!==t?t:r,m=null!=g&&""!==g;return i(o,{class:"dark"===this.theme?"dark":"","data-upvoted":n.hasUpvoted?"true":"false"},i("div",{class:`issue-card issue-type-${n.type}`},i("div",{class:"issue-content"},i("div",{class:"issue-header"},i("div",{class:"issue-header-left"},i("div",{class:"issue-type-badge"},"bug"===n.type?i("feedlog-badge",{variant:"destructive"},"Bug"):i("feedlog-badge",{variant:"enhancement"},"Enhancement")),p&&i("feedlog-badge",{variant:"secondary"},p),n.pinnedAt&&i("div",{class:"pinned-indicator",title:"Pinned issue"},this.renderPinIcon())),i("span",{class:"issue-timestamp",title:c},l," ",this.formatDate(a))),i("div",{class:"issue-main"},i("div",{class:"issue-details"},i("h3",{class:"issue-title"},u),null!=n.body&&""!==n.body&&i("div",{class:"issue-body",innerHTML:$t(n.body)}),i("div",{class:"issue-repository"},null!=d&&i("span",{class:"repo-name",title:h},d),m&&i("a",{part:"github-link",class:"github-link",href:g,target:"_blank",rel:"noopener noreferrer",title:"View on GitHub"},this.renderExternalLinkIcon(),i("span",{class:"github-link-text"},"View on GitHub")))),"bug"!==n.type&&i("button",{part:"upvote-button",class:"upvote-button "+(n.hasUpvoted?"upvoted":""),onClick:e=>this.handleUpvote(e),title:n.hasUpvoted?"Remove upvote":"Upvote this issue"},i("slot",{name:"upvote-icon"},this.renderUpvoteIcon(n.hasUpvoted)),i("span",{class:"upvote-count"},n.upvoteCount))))))}static get style(){return":host{display:block;font-family:ui-sans-serif,\\n system-ui,\\n -apple-system,\\n BlinkMacSystemFont,\\n 'Segoe UI',\\n Roboto,\\n 'Helvetica Neue',\\n Arial,\\n sans-serif;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#f1f5f9;--feedlog-muted-foreground:#64748b;--feedlog-border:rgba(0, 0, 0, 0.08);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-red-100:#fce7f3;--feedlog-red-400:#f472b6;--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-card-padding:1.25rem;--feedlog-title-font-size:0.9375rem;--feedlog-title-font-weight:600;--feedlog-body-font-size:0.8125rem;--feedlog-body-line-height:1.5;--feedlog-timestamp-font-size:0.6875rem;--feedlog-timestamp-color:var(--feedlog-muted-foreground);--feedlog-card-accent-width:3px;--feedlog-icon-color:var(--feedlog-muted-foreground);--feedlog-icon-color-muted:var(--feedlog-muted-foreground);--feedlog-pin-color:var(--feedlog-accent-color);--feedlog-upvote-icon-color:var(--feedlog-blue-600);--feedlog-upvote-icon-filled-color:var(--feedlog-red-600);--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--feedlog-shadow-hover:0 4px 12px -2px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.08)}:host(.dark){--feedlog-background:oklch(0.18 0.01 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.24 0.01 260);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.32 0.01 260);--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-border:oklch(0.34 0.01 260);--feedlog-accent-color:#3b82f6;--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-900-30:color-mix(in oklab, oklch(0.379 0.146 265.522) 30%, transparent);--feedlog-red-900-30:color-mix(in oklab, oklch(0.396 0.141 25.723) 30%, transparent);--feedlog-upvote-icon-color:var(--feedlog-blue-400);--feedlog-upvote-icon-filled-color:var(--feedlog-red-600);--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.3);--feedlog-shadow-hover:0 4px 12px -2px rgba(0, 0, 0, 0.4)}.issue-card{background-color:var(--feedlog-card);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:var(--feedlog-shadow);transition:box-shadow 0.2s ease,\\n transform 0.2s ease;position:relative;overflow:hidden}.issue-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--feedlog-card-accent-width);background:var(--feedlog-accent-color)}.issue-card.issue-type-bug::before{background:var(--feedlog-destructive)}.issue-card:hover{box-shadow:var(--feedlog-shadow-hover)}.issue-content{padding:var(--feedlog-card-padding);padding-left:calc(var(--feedlog-card-padding) + var(--feedlog-card-accent-width));display:flex;flex-direction:column;gap:0.875rem}.issue-header{display:flex;align-items:flex-start;justify-content:space-between;gap:0.75rem;min-height:1.5rem}.issue-header-left{display:flex;align-items:center;gap:0.375rem;flex-wrap:wrap}.issue-type-badge{width:fit-content}.pinned-indicator{display:flex;align-items:center;color:var(--feedlog-pin-color, var(--feedlog-accent-color));opacity:0.9}.pin-icon{width:0.875rem;height:0.875rem;color:inherit}.issue-timestamp{font-size:var(--feedlog-timestamp-font-size);color:var(--feedlog-timestamp-color);white-space:nowrap;flex-shrink:0;cursor:help}.issue-main{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.issue-details{flex:1;min-width:0}.issue-title{color:var(--feedlog-card-foreground);font-size:var(--feedlog-title-font-size);font-weight:var(--feedlog-title-font-weight);margin:0 0 0.5rem 0;line-height:1.4;word-break:break-word}.issue-body{color:var(--feedlog-muted-foreground);font-size:var(--feedlog-body-font-size);line-height:var(--feedlog-body-line-height);margin:0 0 0.75rem 0;word-break:break-word}.issue-body :first-child{margin-top:0}.issue-body :last-child{margin-bottom:0}.issue-body p{margin:0 0 0.5em 0}.issue-body p:last-child{margin-bottom:0}.issue-body a{color:var(--feedlog-accent-color);text-decoration:none}.issue-body a:hover{text-decoration:underline}.issue-body code{background-color:var(--feedlog-muted);padding:0.125em 0.375em;border-radius:0.25rem;font-size:0.9em}.issue-body pre{margin:0.5em 0;padding:0.75rem;background-color:var(--feedlog-muted);border-radius:0.25rem;overflow-x:auto;font-size:0.85em}.issue-body pre code{background:none;padding:0}.issue-body strong{font-weight:600}.issue-body ul,.issue-body ol{margin:0.5em 0;padding-left:1.25em}.issue-body li{margin:0.25em 0}.issue-body blockquote{margin:0.5em 0;padding-left:1em;border-left:3px solid var(--feedlog-muted);color:var(--feedlog-muted-foreground)}.issue-repository{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:var(--feedlog-muted-foreground);flex-wrap:wrap}.repo-name{font-weight:500}.github-link{display:inline-flex;align-items:center;gap:0.25rem;color:var(--feedlog-accent-color);text-decoration:none;font-weight:500;font-size:0.75rem;padding:0.125rem 0.375rem;border-radius:0.25rem;transition:background-color 0.15s ease,\\n color 0.15s ease}.github-link:hover{text-decoration:underline}.github-link-icon{flex-shrink:0;color:inherit}.github-link-text{white-space:nowrap}.github-number{color:var(--feedlog-blue-600);font-weight:600}:host(.dark) .github-number{color:var(--feedlog-blue-400)}.upvote-button{display:flex;flex-direction:column;align-items:center;gap:0.125rem;padding:0.5rem 0.75rem;border-radius:0.5rem;background-color:var(--feedlog-muted);border:1px solid transparent;cursor:pointer;transition:all 0.2s ease;flex-shrink:0;font-size:0.75rem;font-weight:600}.upvote-button:hover{background-color:var(--feedlog-blue-100);border-color:var(--feedlog-blue-400)}.upvote-button.upvoted{background-color:var(--feedlog-red-100);border-color:var(--feedlog-red-400)}.upvote-button.upvoted:hover{background-color:var(--feedlog-red-100);border-color:var(--feedlog-red-600)}:host(.dark) .upvote-button:hover{background-color:var(--feedlog-blue-900-30);border-color:var(--feedlog-blue-600)}:host(.dark) .upvote-button.upvoted{background-color:var(--feedlog-red-900-30);border-color:var(--feedlog-red-600)}.upvote-icon{width:1rem;height:1rem;color:inherit}.upvote-icon.filled{color:var(--feedlog-upvote-icon-filled-color)}.upvote-icon.outline{color:var(--feedlog-upvote-icon-color)}.upvote-count{font-size:0.75rem;font-weight:600;color:var(--feedlog-card-foreground)}"}},[257,"feedlog-issue",{issue:[16],issueUrl:[1,"issue-url"],theme:[1]}]);function Tt(){"undefined"!=typeof customElements&&["feedlog-issue","feedlog-badge"].forEach((t=>{switch(t){case"feedlog-issue":customElements.get(e(t))||customElements.define(e(t),At);break;case"feedlog-badge":customElements.get(e(t))||s()}}))}Tt();export{At as F,Tt as d}
@@ -0,0 +1 @@
1
+ import{t as e,p as o,H as d,h as a}from"./index.js";const r=o(class extends d{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.variant="default"}render(){return a("span",{key:"22e5d49e033459b4e3e409ffa0e76641457ad740",class:`badge badge-${this.variant}`},a("slot",{key:"8f986c5150aa39034f090a258231e45363f9cac9"}))}static get style(){return":host{display:inline-block;--feedlog-badge-font-size:0.75rem;--feedlog-badge-font-weight:500;--feedlog-badge-padding-x:0.5rem;--feedlog-badge-padding-y:0.125rem;--feedlog-badge-border-radius:calc(0.625rem - 2px);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-destructive:#d4183d;--feedlog-destructive-hover:#b91c1c}:host(.dark){--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-hover:oklch(0.45 0.16 25.723)}.badge{display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;font-size:var(--feedlog-badge-font-size);font-weight:var(--feedlog-badge-font-weight);padding:var(--feedlog-badge-padding-y) var(--feedlog-badge-padding-x);border-radius:var(--feedlog-badge-border-radius);white-space:nowrap;transition:background-color 0.15s ease;font-family:inherit}.badge-default{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-default:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-default{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-default:hover{background-color:var(--feedlog-blue-600)}.badge-enhancement{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-enhancement:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-enhancement{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-enhancement:hover{background-color:var(--feedlog-blue-600)}.badge-destructive{background-color:var(--feedlog-destructive);color:#ffffff}.badge-destructive:hover{background-color:var(--feedlog-destructive-hover)}.badge-secondary{background-color:var(--feedlog-muted, #f1f5f9);color:var(--feedlog-muted-foreground, #64748b)}:host(.dark) .badge-secondary{background-color:var(--feedlog-muted, oklch(0.32 0.01 260));color:var(--feedlog-muted-foreground, oklch(0.72 0.02 260))}"}},[257,"feedlog-badge",{variant:[1]}]);function l(){"undefined"!=typeof customElements&&["feedlog-badge"].forEach((o=>{"feedlog-badge"===o&&(customElements.get(e(o))||customElements.define(e(o),r))}))}l();export{r as F,l as d}
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as o,c as s,h as i,a as l}from"./index.js";import{d as r}from"./p-Chc3XZ5Y.js";import{d as a}from"./p-DMdb-G26.js";import{d}from"./p-BBPFf6g7.js";const n=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=s(this,"feedlogUpvote"),this.feedlogLoadMore=s(this,"feedlogLoadMore"),this.issues=[],this.maxWidth="42rem",this.theme="light",this.loading=!1,this.error=null,this.hasMore=!1,this.isLoadingMore=!1,this.currentTheme="light",this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit(e.detail)},this.handleLoadMore=()=>{this.feedlogLoadMore.emit()}}componentWillLoad(){this.currentTheme=this.theme}renderEmptyStateIllustration(){return i("svg",{class:"empty-state-illustration",xmlns:"http://www.w3.org/2000/svg",width:"120",height:"96",viewBox:"0 0 120 96",fill:"none","aria-hidden":"true"},i("path",{d:"M20 36h80v44c0 4.4-3.6 8-8 8H28c-4.4 0-8-3.6-8-8V36z",fill:"var(--feedlog-empty-illustration-bg)",stroke:"var(--feedlog-empty-illustration-stroke)","stroke-width":"1.5","stroke-linejoin":"round"}),i("path",{d:"M20 36l20-24h40l20 24",fill:"none",stroke:"var(--feedlog-empty-illustration-stroke)","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M44 52h32M44 60h24M44 68h28",stroke:"var(--feedlog-empty-illustration-muted)","stroke-width":"1.25","stroke-linecap":"round"}))}renderErrorIcon(){return i("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},i("circle",{cx:"12",cy:"12",r:"10"}),i("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),i("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"}))}renderIssuesList(){var e,t;return i("div",{class:"issues-list"},0===this.issues.length?i("div",{class:"empty-state"},i("div",{class:"empty-state-content"},this.renderEmptyStateIllustration(),i("h2",{class:"empty-state-title"},null!==(e=this.emptyStateTitle)&&void 0!==e?e:"No updates yet"),i("p",{class:"empty-state-message"},null!==(t=this.emptyStateMessage)&&void 0!==t?t:"Check back later for new updates."))):this.issues.map((e=>{var t,o;return i("feedlog-issue",{key:e.id,issue:e,issueUrl:null!==(o=null===(t=this.getIssueUrl)||void 0===t?void 0:t.call(this,e))&&void 0!==o?o:void 0,theme:this.currentTheme,onFeedlogUpvote:e=>this.handleUpvote(e)})})))}render(){return i(l,{key:"fbd1890061b47db8b850a8d993e2ac5432c4b3f6",class:"dark"===this.currentTheme?"dark":""},i("div",{key:"5ce9267da314ebb69ed8ee00f28015fdad73ab8a",class:"github-issues-container",style:{maxWidth:this.maxWidth}},(this.heading||this.subtitle)&&i("header",{key:"461c707df1e5dc7eaab15462de975fafdce872df",class:"issues-header"},i("div",{key:"e6972c2f0cfe5630cc73fb41a2103c9b0118179c",class:"header-content"},this.heading&&i("h1",{key:"d74e89c1ad981da6c4287e5b75256bfb831f1172",class:"issues-title"},this.heading),this.subtitle&&i("p",{key:"c820d8e3beaa57c0c193ceaace1d13e94a2a6290",class:"issues-subtitle"},this.subtitle))),this.loading&&i("div",{key:"959be24cb77b257fba5197302448f78af553817e",class:"loading-state",role:"status","aria-label":"Loading issues"},i("div",{key:"e69594f18e3268208634a3ad82cb2ae0bc552c11",class:"loading-skeletons"},[1,2,3].map((e=>i("div",{key:e,class:"skeleton-card"},i("div",{class:"skeleton-content"},i("div",{class:"skeleton-header"},i("div",{class:"skeleton-badge"}),i("div",{class:"skeleton-timestamp"})),i("div",{class:"skeleton-main"},i("div",{class:"skeleton-title"}),i("div",{class:"skeleton-body"},i("div",{class:"skeleton-line"}),i("div",{class:"skeleton-line short"})),i("div",{class:"skeleton-repo"})),i("div",{class:"skeleton-footer"},i("div",{class:"skeleton-upvote"})))))))),this.error&&i("div",{key:"93e82b0beca0b96c23803b1abfc3d50fe099fa6a",class:"error-state",role:"alert"},i("div",{key:"9276d85925d02bd4c81d5ee44a5d6a8af986c4c9",class:"error-state-content"},this.renderErrorIcon(),i("h2",{key:"6f5762740f908712a46cddeafae675294d3bcc40",class:"error-state-title"},"Something went wrong"),i("p",{key:"f1587bd9a2abe250aa730d64498a5105a412d657",class:"error-state-message"},this.error))),!this.loading&&!this.error&&i("div",{key:"22c68553352358a9a408ea763af1e63c9c84eabd"},this.renderIssuesList(),this.hasMore&&i("div",{key:"231ec6f4680b4b114ba72c657f9801d84951a6d6",class:"load-more-container"},i("feedlog-button",{key:"18fa475708fe233f3f9d0ec85bf0f8daea9a4a0a",onFeedlogClick:this.handleLoadMore,disabled:this.isLoadingMore,variant:"outline"},this.isLoadingMore?"Loading...":"Load More Issues")))))}static get style(){return":host{display:block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-red-100:#fce7f3;--feedlog-red-400:#f472b6;--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-padding:2rem;--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--feedlog-empty-illustration-bg:oklch(0.96 0.01 260);--feedlog-empty-illustration-stroke:oklch(0.75 0.02 260);--feedlog-empty-illustration-muted:oklch(0.82 0.01 260)}:host(.dark){--feedlog-background:oklch(0.18 0.01 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.24 0.01 260);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.32 0.01 260);--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-border:oklch(0.34 0.01 260);--feedlog-accent-color:#3b82f6;--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-900-30:color-mix(in oklab, oklch(0.379 0.146 265.522) 30%, transparent);--feedlog-red-900-30:color-mix(in oklab, oklch(0.396 0.141 25.723) 30%, transparent);--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.3);--feedlog-empty-illustration-bg:oklch(0.28 0.02 260);--feedlog-empty-illustration-stroke:oklch(0.45 0.02 260);--feedlog-empty-illustration-muted:oklch(0.38 0.02 260)}.github-issues-container{min-height:100vh;background-color:var(--feedlog-background);padding:var(--feedlog-padding);margin:0 auto}.issues-header{margin-bottom:1.5rem;display:flex;align-items:flex-start;justify-content:space-between}.header-content{flex:1}.issues-title{color:var(--feedlog-foreground);margin:0 0 0.25rem 0;font-size:1.5rem;font-weight:500;line-height:1.5}.issues-subtitle{color:var(--feedlog-muted-foreground);font-size:0.875rem;margin:0}.loading-state{padding:0}.loading-skeletons{display:flex;flex-direction:column;gap:var(--feedlog-gap)}.skeleton-card{background-color:var(--feedlog-card);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:var(--feedlog-shadow);position:relative;overflow:hidden}.skeleton-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--feedlog-muted)}.skeleton-content{padding:1.25rem;padding-left:calc(1.25rem + 3px);display:flex;flex-direction:column;gap:0.875rem}.skeleton-header{display:flex;align-items:center;justify-content:space-between;gap:0.75rem}.skeleton-badge{width:4.5rem;height:1.25rem;border-radius:0.375rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite}.skeleton-timestamp{width:3rem;height:0.75rem;border-radius:0.25rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.2s}.skeleton-main{display:flex;flex-direction:column;gap:0.5rem}.skeleton-title{height:0.9375rem;border-radius:0.25rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.1s;width:85%}.skeleton-body{display:flex;flex-direction:column;gap:0.375rem}.skeleton-line{height:0.8125rem;border-radius:0.25rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.15s;width:100%}.skeleton-line.short{width:70%}.skeleton-repo{width:6rem;height:0.75rem;border-radius:0.25rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.25s}.skeleton-footer{display:flex;justify-content:flex-end}.skeleton-upvote{width:2.5rem;height:2rem;border-radius:0.5rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.3s}@keyframes skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}.error-state{display:flex;align-items:center;justify-content:center;padding:3rem 2rem;min-height:12rem}.error-state-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:20rem;padding:2rem}.error-icon{color:var(--feedlog-muted-foreground);opacity:0.8;margin-bottom:1rem}.error-state-title{margin:0 0 0.5rem 0;font-size:1.125rem;font-weight:600;color:var(--feedlog-foreground);line-height:1.4}.error-state-message{margin:0 0 1.25rem 0;font-size:0.875rem;color:var(--feedlog-muted-foreground);line-height:1.5}.issues-list{display:flex;flex-direction:column;gap:var(--feedlog-gap)}.empty-state{display:flex;align-items:center;justify-content:center;padding:4rem 2rem;min-height:16rem}.empty-state-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:20rem}.empty-state-illustration{margin-bottom:1.5rem;opacity:0.9}.empty-state-title{margin:0 0 0.5rem 0;font-size:1.125rem;font-weight:600;color:var(--feedlog-foreground);line-height:1.4}.empty-state-message{margin:0;font-size:0.875rem;color:var(--feedlog-muted-foreground);line-height:1.5}.load-more-container{display:flex;justify-content:center;padding:2rem 0;gap:1rem}"}},[1,"feedlog-github-issues",{issues:[16],maxWidth:[1,"max-width"],theme:[1025],heading:[1],subtitle:[1],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],loading:[4],error:[1],hasMore:[4,"has-more"],isLoadingMore:[4,"is-loading-more"],getIssueUrl:[16],currentTheme:[32]}]);function c(){"undefined"!=typeof customElements&&["feedlog-github-issues","feedlog-badge","feedlog-button","feedlog-issue"].forEach((t=>{switch(t){case"feedlog-github-issues":customElements.get(e(t))||customElements.define(e(t),n);break;case"feedlog-badge":customElements.get(e(t))||r();break;case"feedlog-button":customElements.get(e(t))||a();break;case"feedlog-issue":customElements.get(e(t))||d()}}))}c();export{n as F,c as d}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-CkB6Yzeb.js';
1
+ import { r as registerInstance, h } from './index-rs_66Oq4.js';
2
2
 
3
- const feedlogBadgeCss = () => `:host{display:inline-block;--feedlog-badge-font-size:0.75rem;--feedlog-badge-font-weight:500;--feedlog-badge-padding-x:0.5rem;--feedlog-badge-padding-y:0.125rem;--feedlog-badge-border-radius:calc(0.625rem - 2px);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-destructive:#d4183d;--feedlog-destructive-hover:#b91c1c}:host(.dark){--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-hover:oklch(0.45 0.16 25.723)}.badge{display:inline-flex;align-items:center;justify-content:center;font-size:var(--feedlog-badge-font-size);font-weight:var(--feedlog-badge-font-weight);padding:var(--feedlog-badge-padding-y) var(--feedlog-badge-padding-x);border-radius:var(--feedlog-badge-border-radius);white-space:nowrap;transition:background-color 0.15s ease;font-family:inherit}.badge-default{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-default:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-default{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-default:hover{background-color:var(--feedlog-blue-600)}.badge-enhancement{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-enhancement:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-enhancement{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-enhancement:hover{background-color:var(--feedlog-blue-600)}.badge-destructive{background-color:var(--feedlog-destructive);color:#ffffff}.badge-destructive:hover{background-color:var(--feedlog-destructive-hover)}`;
3
+ const feedlogBadgeCss = () => `:host{display:inline-block;--feedlog-badge-font-size:0.75rem;--feedlog-badge-font-weight:500;--feedlog-badge-padding-x:0.5rem;--feedlog-badge-padding-y:0.125rem;--feedlog-badge-border-radius:calc(0.625rem - 2px);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-destructive:#d4183d;--feedlog-destructive-hover:#b91c1c}:host(.dark){--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-hover:oklch(0.45 0.16 25.723)}.badge{display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;font-size:var(--feedlog-badge-font-size);font-weight:var(--feedlog-badge-font-weight);padding:var(--feedlog-badge-padding-y) var(--feedlog-badge-padding-x);border-radius:var(--feedlog-badge-border-radius);white-space:nowrap;transition:background-color 0.15s ease;font-family:inherit}.badge-default{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-default:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-default{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-default:hover{background-color:var(--feedlog-blue-600)}.badge-enhancement{background-color:var(--feedlog-blue-600);color:#ffffff}.badge-enhancement:hover{background-color:var(--feedlog-blue-700)}:host(.dark) .badge-enhancement{background-color:var(--feedlog-blue-500)}:host(.dark) .badge-enhancement:hover{background-color:var(--feedlog-blue-600)}.badge-destructive{background-color:var(--feedlog-destructive);color:#ffffff}.badge-destructive:hover{background-color:var(--feedlog-destructive-hover)}.badge-secondary{background-color:var(--feedlog-muted, #f1f5f9);color:var(--feedlog-muted-foreground, #64748b)}:host(.dark) .badge-secondary{background-color:var(--feedlog-muted, oklch(0.32 0.01 260));color:var(--feedlog-muted-foreground, oklch(0.72 0.02 260))}`;
4
4
 
5
5
  const FeedlogBadge = class {
6
6
  constructor(hostRef) {
@@ -11,7 +11,7 @@ const FeedlogBadge = class {
11
11
  this.variant = 'default';
12
12
  }
13
13
  render() {
14
- return (h("span", { key: '482a74feb8d254a75383c30c7b39790edd04a05b', class: `badge badge-${this.variant}` }, h("slot", { key: '8d2db3fe0c2bc58e17829db4de7d0233189bb101' })));
14
+ return (h("span", { key: '22e5d49e033459b4e3e409ffa0e76641457ad740', class: `badge badge-${this.variant}` }, h("slot", { key: '8f986c5150aa39034f090a258231e45363f9cac9' })));
15
15
  }
16
16
  };
17
17
  FeedlogBadge.style = feedlogBadgeCss();