@vividcodeai/embeddedcowork 0.0.23 → 0.0.24

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 (41) hide show
  1. package/dist/releases/rollback.js +54 -0
  2. package/package.json +1 -1
  3. package/public/assets/ChangesTab-Uu8GvqIU.js +2 -0
  4. package/public/assets/DiffToolbar-BgdJy7ap.js +1 -0
  5. package/public/assets/{FilesTab-Drvo30nM.js → FilesTab-BlKXggYW.js} +2 -2
  6. package/public/assets/{GitChangesTab-BhV6qTfP.js → GitChangesTab-DRAyGtTx.js} +2 -2
  7. package/public/assets/{SplitFilePanel-BBrs329I.js → SplitFilePanel-DR88B4Vy.js} +1 -1
  8. package/public/assets/StatusTab-BS7K80gj.js +1 -0
  9. package/public/assets/{bundle-full-CAZqmV2E.js → bundle-full-BusrfhOv.js} +1 -1
  10. package/public/assets/diff-viewer-BDYT5S-Q.js +1 -0
  11. package/public/assets/{git-diff-vendor-CSgooKT_.js → git-diff-vendor-DaSE45SW.js} +1 -1
  12. package/public/assets/index-BWhMWtCP.js +2 -0
  13. package/public/assets/index-Bsb7z85O.js +1 -0
  14. package/public/assets/{index-CgjnEdBS.js → index-By8QJmOa.js} +1 -1
  15. package/public/assets/{index-Co-dJ-Xs.js → index-DBPzV8JQ.js} +1 -1
  16. package/public/assets/{index-Da0V-sLI.js → index-DhOdialG.js} +1 -1
  17. package/public/assets/index-DlobuxMv.js +1 -0
  18. package/public/assets/{index-Ctcq8Rhl.css → index-QdhU2jY3.css} +1 -1
  19. package/public/assets/{index-hOT6sqTO.js → index-WYKVZxn4.js} +1 -1
  20. package/public/assets/{index-ChCPoe9m.js → index-gBWCTkMr.js} +1 -1
  21. package/public/assets/loading-C4yc63Qi.js +2 -0
  22. package/public/assets/main-y4WbiJBN.js +53 -0
  23. package/public/assets/{markdown-BBFC6uy4.js → markdown-DmuP22dE.js} +3 -3
  24. package/public/assets/{monaco-viewer-DnczYBfh.js → monaco-viewer-OXO07Mos.js} +2 -2
  25. package/public/assets/{todo-BLpUqy61.js → todo-_6sSKM36.js} +1 -1
  26. package/public/assets/{tool-call-B4Xz6FbC.js → tool-call-ChcZ5m6V.js} +23 -23
  27. package/public/assets/{unified-picker-BrzM_sH6.js → unified-picker-BkweRxZy.js} +1 -1
  28. package/public/assets/{wrap-text-B1i7zgLk.js → wrap-text-DDrpiK4b.js} +1 -1
  29. package/public/index.html +6 -6
  30. package/public/loading.html +5 -5
  31. package/public/sw.js +1 -1
  32. package/public/ui-version.json +1 -1
  33. package/public/assets/ChangesTab-C4_zdV74.js +0 -2
  34. package/public/assets/DiffToolbar-BsUPigM5.js +0 -1
  35. package/public/assets/StatusTab-DfYWlTSX.js +0 -1
  36. package/public/assets/diff-viewer--UIZ5GEn.js +0 -1
  37. package/public/assets/event-DjZVAIBO.js +0 -1
  38. package/public/assets/index--0EL0_Tu.js +0 -2
  39. package/public/assets/index-BLouhjer.js +0 -1
  40. package/public/assets/loading-CvW03p4Z.js +0 -2
  41. package/public/assets/main-ByuKWHRz.js +0 -53
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/bundle-full-CAZqmV2E.js","assets/index--0EL0_Tu.js","assets/git-diff-vendor-CSgooKT_.js","assets/fast-diff-vendor-DgdwVvTQ.js","assets/highlight-vendor-8FKMu9os.js","assets/git-diff-vendor-HAZkIolJ.css","assets/monaco-viewer-DnczYBfh.js","assets/index-Ctcq8Rhl.css"])))=>i.map(i=>d[i]);
2
- var Qe=Object.defineProperty;var de=o=>{throw TypeError(o)};var Oe=(o,t,e)=>t in o?Qe(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var k=(o,t,e)=>Oe(o,typeof t!="symbol"?t+"":t,e),De=(o,t,e)=>t.has(o)||de("Cannot "+e);var ke=(o,t,e)=>t.has(o)?de("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e);var B=(o,t,e)=>(De(o,t,"access private method"),e);import{t as je,_ as Ne}from"./index--0EL0_Tu.js";import{k as Fe}from"./monaco-viewer-DnczYBfh.js";import{aq as Q,e as b}from"./main-ByuKWHRz.js";import"./git-diff-vendor-CSgooKT_.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./core-DhEqZVGG.js";import"./event-DjZVAIBO.js";function se(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let S=se();function Te(o){S=o}const ze=/[&<>"']/,Ue=new RegExp(ze.source,"g"),Re=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ge=new RegExp(Re.source,"g"),Ke={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xe=o=>Ke[o];function x(o,t){if(t){if(ze.test(o))return o.replace(Ue,xe)}else if(Re.test(o))return o.replace(Ge,xe);return o}const We=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Xe(o){return o.replace(We,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const Ve=/(^|[^\[])\^/g;function d(o,t){let e=typeof o=="string"?o:o.source;t=t||"";const n={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(Ve,"$1"),e=e.replace(i,s),n},getRegex:()=>new RegExp(e,t)};return n}function me(o){try{o=encodeURI(o).replace(/%25/g,"%")}catch{return null}return o}const A={exec:()=>null};function be(o,t){const e=o.replace(/\|/g,(r,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),n=e.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function H(o,t,e){const n=o.length;if(n===0)return"";let i=0;for(;i<n&&o.charAt(n-i-1)===t;)i++;return o.slice(0,n-i)}function Je(o,t){if(o.indexOf(t[1])===-1)return-1;let e=0;for(let n=0;n<o.length;n++)if(o[n]==="\\")n++;else if(o[n]===t[0])e++;else if(o[n]===t[1]&&(e--,e<0))return n;return-1}function we(o,t,e,n){const i=t.href,r=t.title?x(t.title):null,s=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:e,href:i,title:r,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:e,href:i,title:r,text:x(s)}}function Ye(o,t){const e=o.match(/^(\s+)(?:```)/);if(e===null)return t;const n=e[1];return t.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/bundle-full-BusrfhOv.js","assets/index-BWhMWtCP.js","assets/git-diff-vendor-DaSE45SW.js","assets/fast-diff-vendor-DgdwVvTQ.js","assets/highlight-vendor-8FKMu9os.js","assets/git-diff-vendor-HAZkIolJ.css","assets/monaco-viewer-OXO07Mos.js","assets/index-QdhU2jY3.css"])))=>i.map(i=>d[i]);
2
+ var Qe=Object.defineProperty;var de=o=>{throw TypeError(o)};var Oe=(o,t,e)=>t in o?Qe(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var k=(o,t,e)=>Oe(o,typeof t!="symbol"?t+"":t,e),De=(o,t,e)=>t.has(o)||de("Cannot "+e);var ke=(o,t,e)=>t.has(o)?de("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e);var B=(o,t,e)=>(De(o,t,"access private method"),e);import{t as je,_ as Ne}from"./index-BWhMWtCP.js";import{g as Fe}from"./monaco-viewer-OXO07Mos.js";import{d as Q,e as b}from"./main-y4WbiJBN.js";import"./git-diff-vendor-DaSE45SW.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./core-DhEqZVGG.js";import"./index-Bsb7z85O.js";function se(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let S=se();function Te(o){S=o}const ze=/[&<>"']/,Ue=new RegExp(ze.source,"g"),Re=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ge=new RegExp(Re.source,"g"),Ke={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xe=o=>Ke[o];function x(o,t){if(t){if(ze.test(o))return o.replace(Ue,xe)}else if(Re.test(o))return o.replace(Ge,xe);return o}const We=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Xe(o){return o.replace(We,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const Ve=/(^|[^\[])\^/g;function d(o,t){let e=typeof o=="string"?o:o.source;t=t||"";const n={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(Ve,"$1"),e=e.replace(i,s),n},getRegex:()=>new RegExp(e,t)};return n}function me(o){try{o=encodeURI(o).replace(/%25/g,"%")}catch{return null}return o}const A={exec:()=>null};function be(o,t){const e=o.replace(/\|/g,(r,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),n=e.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function H(o,t,e){const n=o.length;if(n===0)return"";let i=0;for(;i<n&&o.charAt(n-i-1)===t;)i++;return o.slice(0,n-i)}function Je(o,t){if(o.indexOf(t[1])===-1)return-1;let e=0;for(let n=0;n<o.length;n++)if(o[n]==="\\")n++;else if(o[n]===t[0])e++;else if(o[n]===t[1]&&(e--,e<0))return n;return-1}function we(o,t,e,n){const i=t.href,r=t.title?x(t.title):null,s=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:e,href:i,title:r,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:e,href:i,title:r,text:x(s)}}function Ye(o,t){const e=o.match(/^(\s+)(?:```)/);if(e===null)return t;const n=e[1];return t.split(`
3
3
  `).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[s]=r;return s.length>=n.length?i.slice(n.length):i}).join(`
4
4
  `)}class N{constructor(t){k(this,"options");k(this,"rules");k(this,"lexer");this.options=t||S}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:H(n,`
5
5
  `)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],i=Ye(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(/#$/.test(n)){const i=H(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=e[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
@@ -44,7 +44,7 @@ ${t}</tr>
44
44
  `}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
45
45
  `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,e,n){const i=me(t);if(i===null)return n;t=i;let r='<a href="'+t+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>",r}image(t,e,n){const i=me(t);if(i===null)return n;t=i;let r=`<img src="${t}" alt="${n}"`;return e&&(r+=` title="${e}"`),r+=">",r}text(t){return t}}class ce{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class y{constructor(t){k(this,"options");k(this,"renderer");k(this,"textRenderer");this.options=t||S,this.options.renderer=this.options.renderer||new U,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ce}static parse(t,e){return new y(e).parse(t)}static parseInline(t,e){return new y(e).parseInline(t)}parse(t,e=!0){let n="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=r,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=l||"";continue}}switch(r.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{const s=r;n+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Xe(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=r;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=r;let l="",a="";for(let c=0;c<s.header.length;c++)a+=this.renderer.tablecell(this.parseInline(s.header[c].tokens),{header:!0,align:s.align[c]});l+=this.renderer.tablerow(a);let u="";for(let c=0;c<s.rows.length;c++){const p=s.rows[c];a="";for(let h=0;h<p.length;h++)a+=this.renderer.tablecell(this.parseInline(p[h].tokens),{header:!1,align:s.align[h]});u+=this.renderer.tablerow(a)}n+=this.renderer.table(l,u);continue}case"blockquote":{const s=r,l=this.parse(s.tokens);n+=this.renderer.blockquote(l);continue}case"list":{const s=r,l=s.ordered,a=s.start,u=s.loose;let c="";for(let p=0;p<s.items.length;p++){const h=s.items[p],f=h.checked,T=h.task;let m="";if(h.task){const z=this.renderer.checkbox(!!f);u?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=z+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=z+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:z+" "}):m+=z+" "}m+=this.parse(h.tokens,u),c+=this.renderer.listitem(m,T,!!f)}n+=this.renderer.list(c,l,a);continue}case"html":{const s=r;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=r;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=r,l=s.tokens?this.parseInline(s.tokens):s.text;for(;i+1<t.length&&t[i+1].type==="text";)s=t[++i],l+=`
46
46
  `+(s.tokens?this.parseInline(s.tokens):s.text);n+=e?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,e){e=e||this.renderer;let n="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=this.options.extensions.renderers[r.type].call({parser:this},r);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=s||"";continue}}switch(r.type){case"escape":{const s=r;n+=e.text(s.text);break}case"html":{const s=r;n+=e.html(s.text);break}case"link":{const s=r;n+=e.link(s.href,s.title,this.parseInline(s.tokens,e));break}case"image":{const s=r;n+=e.image(s.href,s.title,s.text);break}case"strong":{const s=r;n+=e.strong(this.parseInline(s.tokens,e));break}case"em":{const s=r;n+=e.em(this.parseInline(s.tokens,e));break}case"codespan":{const s=r;n+=e.codespan(s.text);break}case"br":{n+=e.br();break}case"del":{const s=r;n+=e.del(this.parseInline(s.tokens,e));break}case"text":{const s=r;n+=e.text(s.text);break}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class v{constructor(t){k(this,"options");this.options=t||S}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}k(v,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var L,ne,Ee;class _t{constructor(...t){ke(this,L);k(this,"defaults",se());k(this,"options",this.setOptions);k(this,"parse",B(this,L,ne).call(this,w.lex,y.parse));k(this,"parseInline",B(this,L,ne).call(this,w.lexInline,y.parseInline));k(this,"Parser",y);k(this,"Renderer",U);k(this,"TextRenderer",ce);k(this,"Lexer",w);k(this,"Tokenizer",N);k(this,"Hooks",v);this.use(...t)}walkTokens(t,e){var i,r;let n=[];for(const s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{const l=s;for(const a of l.header)n=n.concat(this.walkTokens(a.tokens,e));for(const a of l.rows)for(const u of a)n=n.concat(this.walkTokens(u.tokens,e));break}case"list":{const l=s;n=n.concat(this.walkTokens(l.items,e));break}default:{const l=s;(r=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&r[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{const u=l[a].flat(1/0);n=n.concat(this.walkTokens(u,e))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const s=e.renderers[r.name];s?e.renderers[r.name]=function(...l){let a=r.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),i.extensions=e),n.renderer){const r=this.defaults.renderer||new U(this.defaults);for(const s in n.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.renderer[l],u=r[l];r[l]=(...c)=>{let p=a.apply(r,c);return p===!1&&(p=u.apply(r,c)),p||""}}i.renderer=r}if(n.tokenizer){const r=this.defaults.tokenizer||new N(this.defaults);for(const s in n.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=n.tokenizer[l],u=r[l];r[l]=(...c)=>{let p=a.apply(r,c);return p===!1&&(p=u.apply(r,c)),p}}i.tokenizer=r}if(n.hooks){const r=this.defaults.hooks||new v;for(const s in n.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.hooks[l],u=r[l];v.passThroughHooks.has(s)?r[l]=c=>{if(this.defaults.async)return Promise.resolve(a.call(r,c)).then(h=>u.call(r,h));const p=a.call(r,c);return u.call(r,p)}:r[l]=(...c)=>{let p=a.apply(r,c);return p===!1&&(p=u.apply(r,c)),p}}i.hooks=r}if(n.walkTokens){const r=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),r&&(a=a.concat(r.call(this,l))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return w.lex(t,e??this.defaults)}parser(t,e){return y.parse(t,e??this.defaults)}}L=new WeakSet,ne=function(t,e){return(n,i)=>{const r={...i},s={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=B(this,L,Ee).call(this,!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(a=>t(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>e(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let a=t(n,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let u=e(a,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(a){return l(a)}}},Ee=function(t,e){return n=>{if(n.message+=`
47
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+x(n.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(n);throw n}};const _=new _t;function g(o,t){return _.parse(o,t)}g.options=g.setOptions=function(o){return _.setOptions(o),g.defaults=_.defaults,Te(g.defaults),g};g.getDefaults=se;g.defaults=S;g.use=function(...o){return _.use(...o),g.defaults=_.defaults,Te(g.defaults),g};g.walkTokens=function(o,t){return _.walkTokens(o,t)};g.parseInline=_.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=U;g.TextRenderer=ce;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=N;g.Hooks=v;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;const Pe=Fe("actions");let $=null,R=null,G="light",K=!1,C=!1,O=!1,$e=!1,Y=null,qe=null;const E=new Set,ee=new Set,P=[];let D=!1;const j=[];function Mt(o){return j.push(o),()=>{const t=j.indexOf(o);t>-1&&j.splice(t,1)}}function Lt(){for(const o of j)try{o()}catch(t){Pe.error("Error in language listener",t)}}async function X(){return $||R||(R=(async()=>(await Ze()).createHighlighter({themes:["github-light","github-light-high-contrast","github-dark"],langs:[]}))().catch(o=>{throw R=null,o}),$=await R,R=null,$)}async function Ze(){return Y||(Y=Ne(()=>import("./bundle-full-CAZqmV2E.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>(qe=o.bundledLanguages,o))),Y}function Be(){$||R||X().catch(o=>{Pe.warn("Failed to initialize markdown highlighter",o)})}function he(o){return o.trim().toLowerCase()}function ue(o){const t=he(o),e=qe;if(!e)return{canonical:null,raw:t};if(t in e)return{canonical:t,raw:t};for(const[n,i]of Object.entries(e)){const r=i.aliases;if(r!=null&&r.includes(t))return{canonical:n,raw:t}}return{canonical:null,raw:t}}function He(o){const t=new Set;try{const e=g.lexer(o);g.walkTokens(e,n=>{if((n==null?void 0:n.type)!=="code")return;const i=typeof n.lang=="string"?n.lang:"";i.trim()&&t.add(i.trim())})}catch{return[]}return[...t]}function Qt(o){const t=He(o);for(const e of t){const n=he(e);if(!n||n==="text")continue;const{canonical:i,raw:r}=ue(e),s=i||r;if(!(s==="text"||r==="text")&&(!$||!E.has(s)))return!0}return!1}async function St(o){if(C)return;const t=He(o);for(const e of t){const n=he(e);n&&n!=="text"&&(E.has(n)||ee.has(n)||(ee.add(n),P.push(async()=>{try{await Ze();const{canonical:i,raw:r}=ue(e),s=i||r;if(s==="text"||r==="text")return;await(await X()).loadLanguage(s),E.add(s),E.add(r),Lt()}catch{}finally{ee.delete(n)}})))}P.length>0&&!D&&It()}async function It(){if(!(D||P.length===0)){for(D=!0;P.length>0;){const o=P.shift();o&&await o()}D=!1}}function Me(o){if(G=o?"dark":"light",$e)return;g.setOptions({breaks:!0,gfm:!0});const t=new g.Renderer;t.code=(e,n)=>{const i=Q(e),r=encodeURIComponent(i),s=n&&n.trim()?n.trim():"text",l=b(s),a=b(je("markdown.copy")),u=`
47
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+x(n.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(n);throw n}};const _=new _t;function g(o,t){return _.parse(o,t)}g.options=g.setOptions=function(o){return _.setOptions(o),g.defaults=_.defaults,Te(g.defaults),g};g.getDefaults=se;g.defaults=S;g.use=function(...o){return _.use(...o),g.defaults=_.defaults,Te(g.defaults),g};g.walkTokens=function(o,t){return _.walkTokens(o,t)};g.parseInline=_.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=U;g.TextRenderer=ce;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=N;g.Hooks=v;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;const Pe=Fe("actions");let $=null,R=null,G="light",K=!1,C=!1,O=!1,$e=!1,Y=null,qe=null;const E=new Set,ee=new Set,P=[];let D=!1;const j=[];function Mt(o){return j.push(o),()=>{const t=j.indexOf(o);t>-1&&j.splice(t,1)}}function Lt(){for(const o of j)try{o()}catch(t){Pe.error("Error in language listener",t)}}async function X(){return $||R||(R=(async()=>(await Ze()).createHighlighter({themes:["github-light","github-light-high-contrast","github-dark"],langs:[]}))().catch(o=>{throw R=null,o}),$=await R,R=null,$)}async function Ze(){return Y||(Y=Ne(()=>import("./bundle-full-BusrfhOv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>(qe=o.bundledLanguages,o))),Y}function Be(){$||R||X().catch(o=>{Pe.warn("Failed to initialize markdown highlighter",o)})}function he(o){return o.trim().toLowerCase()}function ue(o){const t=he(o),e=qe;if(!e)return{canonical:null,raw:t};if(t in e)return{canonical:t,raw:t};for(const[n,i]of Object.entries(e)){const r=i.aliases;if(r!=null&&r.includes(t))return{canonical:n,raw:t}}return{canonical:null,raw:t}}function He(o){const t=new Set;try{const e=g.lexer(o);g.walkTokens(e,n=>{if((n==null?void 0:n.type)!=="code")return;const i=typeof n.lang=="string"?n.lang:"";i.trim()&&t.add(i.trim())})}catch{return[]}return[...t]}function Qt(o){const t=He(o);for(const e of t){const n=he(e);if(!n||n==="text")continue;const{canonical:i,raw:r}=ue(e),s=i||r;if(!(s==="text"||r==="text")&&(!$||!E.has(s)))return!0}return!1}async function St(o){if(C)return;const t=He(o);for(const e of t){const n=he(e);n&&n!=="text"&&(E.has(n)||ee.has(n)||(ee.add(n),P.push(async()=>{try{await Ze();const{canonical:i,raw:r}=ue(e),s=i||r;if(s==="text"||r==="text")return;await(await X()).loadLanguage(s),E.add(s),E.add(r),Lt()}catch{}finally{ee.delete(n)}})))}P.length>0&&!D&&It()}async function It(){if(!(D||P.length===0)){for(D=!0;P.length>0;){const o=P.shift();o&&await o()}D=!1}}function Me(o){if(G=o?"dark":"light",$e)return;g.setOptions({breaks:!0,gfm:!0});const t=new g.Renderer;t.code=(e,n)=>{const i=Q(e),r=encodeURIComponent(i),s=n&&n.trim()?n.trim():"text",l=b(s),a=b(je("markdown.copy")),u=`
48
48
  <div class="code-block-header">
49
49
  <span class="code-block-language">${l}</span>
50
50
  <button class="code-block-copy" data-code="${r}">
@@ -1,4 +1,4 @@
1
- var to=Object.defineProperty;var no=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>no(e,typeof t!="symbol"?t+"":t,n);import{c as L,u as Ge,a as ce,s as $t,b as X,r as ro,d as M,e as Hn,o as le,g as yn,f as P,$ as B,h as Ae,i as mt,j as qe,k as Ne,l as Ye,m as Gn,n as ue,p as oo,q as so,t as At,v as io,S as ao}from"./git-diff-vendor-CSgooKT_.js";import{g as co}from"./fast-diff-vendor-DgdwVvTQ.js";const lo=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],uo=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...lo]),fo=new Set(["innerHTML","textContent","innerText","children"]),ho=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),go=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function mo(e,t){const n=go[e];return typeof n=="object"?n[t]?n.$:void 0:n}const po=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),qn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","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","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),yo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},bo=e=>L(()=>e());function wo(e,t,n){let r=n.length,o=t.length,s=r,i=0,a=0,c=t[o-1].nextSibling,l=null;for(;i<o||a<s;){if(t[i]===n[a]){i++,a++;continue}for(;t[o-1]===n[s-1];)o--,s--;if(o===i){const u=s<r?a?n[a-1].nextSibling:n[s-a]:c;for(;a<s;)e.insertBefore(n[a++],u)}else if(s===a)for(;i<o;)(!l||!l.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[s-1]&&n[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[a++],t[i++].nextSibling),e.insertBefore(n[--s],u),t[o]=n[s]}else{if(!l){l=new Map;let d=a;for(;d<s;)l.set(n[d],d++)}const u=l.get(t[i]);if(u!=null)if(a<u&&u<s){let d=i,h=1,m;for(;++d<o&&d<s&&!((m=l.get(t[d]))==null||m!==u+h);)h++;if(h>u-a){const p=t[i];for(;a<u;)e.insertBefore(n[a++],p)}else e.replaceChild(n[a++],t[i++])}else i++;else t[i++].remove()}}}const bn="_$DX_DELEGATE";function Dc(e,t,n,r={}){let o;return Hn(s=>{o=s,t===document?e():pt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function sn(e,t,n,r){let o;const s=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},i=t?()=>Ge(()=>document.importNode(o||(o=s()),!0)):()=>(o||(o=s())).cloneNode(!0);return i.cloneNode=i,i}function Jn(e,t=window.document){const n=t[bn]||(t[bn]=new Set);for(let r=0,o=e.length;r<o;r++){const s=e[r];n.has(s)||(n.add(s),t.addEventListener(s,Mo))}}function Je(e,t,n){we(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Co(e,t,n,r){we(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function So(e,t,n){we(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function xo(e,t){we(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Oo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=s=>o.call(e,n[1],s))}else e.addEventListener(t,n,typeof n!="function"&&n)}function vo(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let s,i;for(s=0,i=o.length;s<i;s++){const a=o[s];!a||a==="undefined"||t[a]||(Cn(e,a,!1),delete n[a])}for(s=0,i=r.length;s<i;s++){const a=r[s],c=!!t[a];!a||a==="undefined"||n[a]===c||!c||(Cn(e,a,!0),n[a]=c)}return n}function ko(e,t,n){if(!t)return n?Je(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,s;for(s in n)t[s]==null&&r.removeProperty(s),delete n[s];for(s in t)o=t[s],o!==n[s]&&(r.setProperty(s,o),n[s]=o);return n}function wn(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function Xn(e,t={},n,r){const o={};return r||ce(()=>o.children=Xe(e,t.children,o.children)),ce(()=>typeof t.ref=="function"&&an(t.ref,e)),ce(()=>$o(e,t,n,!0,o,!0)),o}function an(e,t,n){return Ge(()=>e(t,n))}function pt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Xe(e,t,r,n);ce(o=>Xe(e,t(),o,n),r)}function $o(e,t,n,r,o={},s=!1){t||(t={});for(const i in o)if(!(i in t)){if(i==="children")continue;o[i]=Sn(e,i,null,o[i],n,s,t)}for(const i in t){if(i==="children")continue;const a=t[i];o[i]=Sn(e,i,a,o[i],n,s,t)}}function Yn(e){let t,n;return!we()||!(t=P.registry.get(n=Eo()))?e():(P.completed&&P.completed.add(t),P.registry.delete(n),t)}function we(e){return!!P.context&&!P.done&&(!e||e.isConnected)}function Ao(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Cn(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,s=r.length;o<s;o++)e.classList.toggle(r[o],n)}function Sn(e,t,n,r,o,s,i){let a,c,l,u,d;if(t==="style")return ko(e,n,r);if(t==="classList")return vo(e,n,r);if(n===r)return r;if(t==="ref")s||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);r&&e.removeEventListener(h,r,typeof r!="function"&&r),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);r&&e.removeEventListener(h,r,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=po.has(h);if(!m&&r){const p=Array.isArray(r)?r[0]:r;e.removeEventListener(h,p)}(m||n)&&(Oo(e,h,n,m),m&&Jn([h]))}else if(t.slice(0,5)==="attr:")Je(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")So(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(l=fo.has(t))||!o&&((u=mo(t,e.tagName))||(c=uo.has(t)))||(a=e.nodeName.includes("-")||"is"in i)){if(d)t=t.slice(5),c=!0;else if(we(e))return n;t==="class"||t==="className"?xo(e,n):a&&!c&&!l?e[Ao(t)]=n:e[u||t]=n}else{const h=o&&t.indexOf(":")>-1&&yo[t.split(":")[0]];h?Co(e,h,t,n):Je(e,ho[t]||t,n)}return n}function Mo(e){if(P.registry&&P.events&&P.events.find(([c,l])=>l===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,s=c=>Object.defineProperty(e,"target",{configurable:!0,value:c}),i=()=>{const c=t[n];if(c&&!t.disabled){const l=t[`${n}Data`];if(l!==void 0?c.call(t,l,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&s(t.host),!0},a=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),P.registry&&!P.done&&(P.done=_$HY.done=!0),e.composedPath){const c=e.composedPath();s(c[0]);for(let l=0;l<c.length-2&&(t=c[l],!!i());l++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();s(r)}function Xe(e,t,n,r,o){const s=we(e);if(s){!n&&(n=[...e.childNodes]);let c=[];for(let l=0;l<n.length;l++){const u=n[l];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():c.push(u)}n=c}for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(s||i==="number"&&(t=t.toString(),t===n))return n;if(a){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Oe(e,n,r,c)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(s)return n;n=Oe(e,n,r)}else{if(i==="function")return ce(()=>{let c=t();for(;typeof c=="function";)c=c();n=Xe(e,c,n,r)}),()=>n;if(Array.isArray(t)){const c=[],l=n&&Array.isArray(n);if(Kt(c,t,n,o))return ce(()=>n=Xe(e,c,n,r,!0)),()=>n;if(s){if(!c.length)return n;if(r===void 0)return n=[...e.childNodes];let u=c[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(c.length===0){if(n=Oe(e,n,r),a)return n}else l?n.length===0?xn(e,c,r):wo(e,n,c):(n&&Oe(e),xn(e,c));n=c}else if(t.nodeType){if(s&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Oe(e,n,r,t);Oe(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Kt(e,t,n,r){let o=!1;for(let s=0,i=t.length;s<i;s++){let a=t[s],c=n&&n[e.length],l;if(!(a==null||a===!0||a===!1))if((l=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=Kt(e,a,c)||o;else if(l==="function")if(r){for(;typeof a=="function";)a=a();o=Kt(e,Array.isArray(a)?a:[a],Array.isArray(c)?c:[c])||o}else e.push(a),o=!0;else{const u=String(a);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return o}function xn(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Oe(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let s=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const c=a.parentNode===e;!s&&!i?c?e.replaceChild(o,a):e.insertBefore(o,n):c&&a.remove()}else s=!0}}else e.insertBefore(o,n);return[o]}function Eo(){return P.getNextContextId()}const Io="http://www.w3.org/2000/svg";function Zn(e,t=!1,n=void 0){return t?document.createElementNS(Io,e):document.createElement(e,{is:n})}function Fc(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=yn();let s,i=!!P.context;return X(()=>{i&&(yn().user=i=!1),s||(s=ro(o,()=>L(()=>e.children)));const a=r();if(a instanceof HTMLHeadElement){const[c,l]=M(!1),u=()=>l(!0);Hn(d=>pt(a,()=>c()?d():s(),null)),le(u)}else{const c=Zn(e.isSVG?"g":"div",e.isSVG),l=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return n.parentNode},configurable:!0}),pt(l,s),a.appendChild(c),e.ref&&e.ref(c),le(()=>a.removeChild(c))}},void 0,{render:!i}),n}function To(e,t){const n=L(e);return L(()=>{const r=n();switch(typeof r){case"function":return Ge(()=>r(t));case"string":const o=qn.has(r),s=P.context?Yn():Zn(r,o,Ge(()=>t.is));return Xn(s,t,o),s}})}function Rc(e){const[,t]=$t(e,["component"]);return To(()=>e.component,t)}const Le=Symbol("store-raw"),ne=Symbol("store-node"),z=Symbol("store-has"),Qn=Symbol("store-self");function er(e){let t=e[B];if(!t&&(Object.defineProperty(e,B,{value:t=new Proxy(e,Lo)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,s=n.length;o<s;o++){const i=n[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(t)})}}return t}function Z(e){let t;return e!=null&&typeof e=="object"&&(e[B]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function se(e,t=new Set){let n,r,o,s;if(n=e!=null&&e[Le])return n;if(!Z(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,a=e.length;i<a;i++)o=e[i],(r=se(o,t))!==o&&(e[i]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const i=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let c=0,l=i.length;c<l;c++)s=i[c],!a[s].get&&(o=e[s],(r=se(o,t))!==o&&(e[s]=r))}return e}function De(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function pe(e,t,n){if(e[t])return e[t];const[r,o]=M(n,{equals:!1,internal:!0});return r.$=o,e[t]=r}function Po(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===B||t===ne||(delete n.value,delete n.writable,n.get=()=>e[B][t]),n}function cn(e){qe()&&pe(De(e,ne),Qn)()}function tr(e){return cn(e),Reflect.ownKeys(e)}const Lo={get(e,t,n){if(t===Le)return e;if(t===B)return n;if(t===mt)return cn(e),n;const r=De(e,ne),o=r[t];let s=o?o():e[t];if(t===ne||t===z||t==="__proto__")return s;if(!o){const i=Object.getOwnPropertyDescriptor(e,t);qe()&&(typeof s!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(s=pe(r,t,s)())}return Z(s)?er(s):s},has(e,t){return t===Le||t===B||t===mt||t===ne||t===z||t==="__proto__"?!0:(qe()&&pe(De(e,z),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:tr,getOwnPropertyDescriptor:Po};function F(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],s=e.length;n===void 0?(delete e[t],e[z]&&e[z][t]&&o!==void 0&&e[z][t].$()):(e[t]=n,e[z]&&e[z][t]&&o===void 0&&e[z][t].$());let i=De(e,ne),a;if((a=pe(i,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==s){for(let c=e.length;c<s;c++)(a=i[c])&&a.$();(a=pe(i,"length",s))&&a.$(e.length)}(a=i[Qn])&&a.$()}function nr(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];F(e,o,t[o])}}function Do(e,t){if(typeof t=="function"&&(t=t(e)),t=se(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const o=t[n];e[n]!==o&&F(e,n,o)}F(e,"length",r)}else nr(e,t)}function Ve(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let c=0;c<r.length;c++)Ve(e,[r[c]].concat(t),n);return}else if(a&&i==="function"){for(let c=0;c<e.length;c++)r(e[c],c)&&Ve(e,[c].concat(t),n);return}else if(a&&i==="object"){const{from:c=0,to:l=e.length-1,by:u=1}=r;for(let d=c;d<=l;d+=u)Ve(e,[d].concat(t),n);return}else if(t.length>1){Ve(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let s=t[0];typeof s=="function"&&(s=s(o,n),s===o)||r===void 0&&s==null||(s=se(s),r===void 0||Z(o)&&Z(s)&&!Array.isArray(s)?nr(o,s):F(e,r,s))}function Nc(...[e,t]){const n=se(e||{}),r=Array.isArray(n),o=er(n);function s(...i){Ae(()=>{r&&i.length===1?Do(n,i[0]):Ve(n,i)})}return[o,s]}function Fo(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||n.set||!n.configurable||t===B||t===ne||(delete n.value,delete n.writable,n.get=()=>e[B][t],n.set=r=>e[B][t]=r),n}const Ro={get(e,t,n){if(t===Le)return e;if(t===B)return n;if(t===mt)return cn(e),n;const r=De(e,ne),o=r[t];let s=o?o():e[t];if(t===ne||t===z||t==="__proto__")return s;if(!o){const i=Object.getOwnPropertyDescriptor(e,t),a=typeof s=="function";if(qe()&&(!a||e.hasOwnProperty(t))&&!(i&&i.get))s=pe(r,t,s)();else if(s!=null&&a&&s===Array.prototype[t])return(...c)=>Ae(()=>Array.prototype[t].apply(n,c))}return Z(s)?rr(s):s},has(e,t){return t===Le||t===B||t===mt||t===ne||t===z||t==="__proto__"?!0:(qe()&&pe(De(e,z),t)(),t in e)},set(e,t,n){return Ae(()=>F(e,t,se(n))),!0},deleteProperty(e,t){return Ae(()=>F(e,t,void 0,!0)),!0},ownKeys:tr,getOwnPropertyDescriptor:Fo};function rr(e){let t=e[B];if(!t){Object.defineProperty(e,B,{value:t=new Proxy(e,Ro)});const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),o=Object.getPrototypeOf(e),s=o!==null&&e!==null&&typeof e=="object"&&!Array.isArray(e)&&o!==Object.prototype;if(s){let i=o;for(;i!=null;){const a=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(a)),Object.assign(r,a),i=Object.getPrototypeOf(i)}}for(let i=0,a=n.length;i<a;i++){const c=n[i];if(!(s&&c==="constructor")){if(r[c].get){const l=r[c].get.bind(t);Object.defineProperty(e,c,{get:l,configurable:!0})}if(r[c].set){const l=r[c].set;Object.defineProperty(e,c,{set:d=>Ae(()=>l.call(t,d)),configurable:!0})}}}}return t}function No(e,t){const n=se(e||{});return rr(n)}const Ht=Symbol("store-root");function ke(e,t,n,r,o){const s=t[n];if(e===s)return;const i=Array.isArray(e);if(n!==Ht&&(!Z(e)||!Z(s)||i!==Array.isArray(s)||o&&e[o]!==s[o])){F(t,n,e);return}if(i){if(e.length&&s.length&&(!r||o&&e[0]&&e[0][o]!=null)){let l,u,d,h,m,p,C,b;for(d=0,h=Math.min(s.length,e.length);d<h&&(s[d]===e[d]||o&&s[d]&&e[d]&&s[d][o]&&s[d][o]===e[d][o]);d++)ke(e[d],s,d,r,o);const I=new Array(e.length),R=new Map;for(h=s.length-1,m=e.length-1;h>=d&&m>=d&&(s[h]===e[m]||o&&s[h]&&e[m]&&s[h][o]&&s[h][o]===e[m][o]);h--,m--)I[m]=s[h];if(d>m||d>h){for(u=d;u<=m;u++)F(s,u,e[u]);for(;u<e.length;u++)F(s,u,I[u]),ke(e[u],s,u,r,o);s.length>e.length&&F(s,"length",e.length);return}for(C=new Array(m+1),u=m;u>=d;u--)p=e[u],b=o&&p?p[o]:p,l=R.get(b),C[u]=l===void 0?-1:l,R.set(b,u);for(l=d;l<=h;l++)p=s[l],b=o&&p?p[o]:p,u=R.get(b),u!==void 0&&u!==-1&&(I[u]=s[l],u=C[u],R.set(b,u));for(u=d;u<e.length;u++)u in I?(F(s,u,I[u]),ke(e[u],s,u,r,o)):F(s,u,e[u])}else for(let l=0,u=e.length;l<u;l++)ke(e[l],s,l,r,o);s.length>e.length&&F(s,"length",e.length);return}const a=Object.keys(e);for(let l=0,u=a.length;l<u;l++)ke(e[a[l]],s,a[l],r,o);const c=Object.keys(s);for(let l=0,u=c.length;l<u;l++)e[c[l]]===void 0&&F(s,c[l],void 0)}function Bc(e,t={}){const{merge:n,key:r="id"}=t,o=se(e);return s=>{if(!Z(s)||!Z(o))return o;const i=ke(o,{[Ht]:s},Ht,n,r);return i===void 0?s:i}}const yt=new WeakMap,or={get(e,t){if(t===Le)return e;const n=e[t];let r;return Z(n)?yt.get(n)||(yt.set(n,r=new Proxy(n,or)),r):n},set(e,t,n){return F(e,t,se(n)),!0},deleteProperty(e,t){return F(e,t,void 0,!0),!0}};function Uc(e){return t=>{if(Z(t)){let n;(n=yt.get(t))||yt.set(t,n=new Proxy(t,or)),e(n)}return t}}function ln(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Bo(e){e=e.substr(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ye(e){if(typeof e!="string")return e;if(e.charAt(0)==="#")return ye(Bo(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error("MUI: Unsupported `%s` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). "+e);const r=e.substring(t+1,e.length-1);let o,s;if(n==="color"){if(o=r.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].substr(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error("MUI: unsupported `%s` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020. "+s)}else o=r.split(",");return{type:n,values:o.map(i=>parseFloat(i)),colorSpace:s}}function Mt(e){const{type:t,colorSpace:n}=e,{values:r}=e;let o;return t.indexOf("rgb")!==-1?o=r.map((s,i)=>i<3?parseInt(s.toString(),10):s).join(","):t.indexOf("hsl")!==-1&&(o=r.map((s,i)=>i===1||i===2?`${s}%`:s).join(",")),t.indexOf("color")!==-1?o=`${n} ${r.join(" ")}`:o=`${r.join(", ")}`,`${t}(${o})`}function Uo(e){const t=ye(e),{values:n}=t,r=n[0],o=n[1]/100,s=n[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+r/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(c+="a",l.push(n[3])),Mt({type:c,values:l})}function On(e){const{type:t,values:n}=ye(e);let r=t==="hsl"?ye(Uo(e)).values:n;return r=r.map(o=>(t!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function _o(e,t){const n=On(e),r=On(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _c(e,t){let{type:n,values:r}=ye(e);return t=ln(t),(n==="rgb"||n==="hsl")&&(n+="a"),n==="color"?r[3]=`/${t}`:r[3]=t,Mt({type:n,values:r})}function jo(e,t){const n=ye(e);if(t=ln(t),n.type.indexOf("hsl")!==-1)n.values[2]*=1-t;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)n.values[r]*=1-t;return Mt(n)}function Vo(e,t){const n=ye(e);if(t=ln(t),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*t;else if(n.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)n.values[r]+=(255-n.values[r])*t;else if(n.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)n.values[r]+=(1-n.values[r])*t;return Mt(n)}const Wo={xs:0,sm:600,md:900,lg:1200,xl:1536};function zo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints;return t.reduce((i,a,c)=>(i={...i,...s.up(s.keys[c],n(t[c]))},i),{})}if(typeof t=="object"){const s=r.breakpoints;return Object.keys(t).reduce((a,c)=>{if(Object.keys(s.values||Wo).indexOf(c)!==-1)a={...a,...s.up(c,n(t[c],c))};else{const l=c;a[l]=t[l]}return a},{})}return n(t)}const Ko={cleanupStyles:!0},Ho=Ne(Ko),be={black:"#000",white:"#fff"},Me={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ee={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ie={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Te={300:"#4fc3f7",400:"#29b6f6",700:"#0288d1",800:"#0277bd",900:"#01579b"},Pe={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ke={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function We(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function qo(e,t){for(const n of t){const r=e[n];delete e[n],e[n]=r}}function un(e,t,n={clone:!0}){const r=n.clone?{...e}:e,o=n.sortKeys?[]:void 0;return We(e)&&We(t)&&(Object.keys(t).forEach(s=>{if(s==="__proto__")return;o&&o.push(s);let i,a;We(i=t[s])&&s in e&&We(a=e[s])?r[s]=un(a,i,n):i!==void 0&&(r[s]=i)}),o&&qo(r,o)),r}function Gt(e){if(Array.isArray(e)){const t=[];for(const n of e)t.push(Gt(n));return t}else if(We(e)){const t={};for(const n in e)n!=="__proto__"&&(t[n]=Gt(e[n]));return t}else return e}function Ze(e,...t){for(const n of t)un(e,Gt(n),{clone:!1});return e}const Jo=()=>({text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:be.white,default:be.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}),Xo={primary:{main:Ie[700],light:Ie[400],dark:Ie[800]},secondary:{main:Ee[500],light:Ee[300],dark:Ee[700]},error:{main:Me[700],light:Me[400],dark:Me[800]},info:{main:Te[700],light:Te[800],dark:Te[900]},success:{main:Pe[800],light:Pe[500],dark:Pe[900]},warning:{main:"#ED6C02",light:Ke[500],dark:Ke[900]}},Yo=()=>({text:{primary:be.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:be.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}),Zo={primary:{main:Ie[200],light:Ie[50],dark:Ie[400]},secondary:{main:Ee[200],light:Ee[50],dark:Ee[400]},error:{main:Me[500],light:Me[300],dark:Me[700]},info:{main:Te[400],light:Te[300],dark:Te[700]},success:{main:Pe[400],light:Pe[300],dark:Pe[700]},warning:{main:Ke[400],light:Ke[300],dark:Ke[700]}},Qo={light:Jo,dark:Yo};function sr(e,t){return _o(e,be.white)>=t?be.white:"rgba(0, 0, 0, 0.87)"}function vn(e,t,n,r){const o=typeof r=="number"?r:r.light,s=typeof r=="number"?r*1.5:r.dark;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vo(e.main,o):t==="dark"&&(e.dark=jo(e.main,s)))}function es(e){const t={...e.color},n=e.mainShade??500;return!e.color.main&&e.color[n]&&(t.main=e.color[n]),vn(t,"light",e.lightShade??300,e.tonalOffset),vn(t,"dark",e.darkShade??700,e.tonalOffset),t.contrastText||(t.contrastText=sr(t.main,e.contrastThreshold)),t}const ts=()=>({mode:"light",tonalOffset:.2,contrastThreshold:3,grey:Go,common:be});function ns(e){const t=["error","info","primary","secondary","success","warning"],n=ts(),r={...Ze({},n,Qo[(e==null?void 0:e.mode)??n.mode](),e),isColorName(s){return t.includes(s)},getColorObject(s){return r[s]},getColor(s){return r.mode==="light"?r[s].light:r[s].dark},augmentColor(s){return es({...s,tonalOffset:r.tonalOffset,contrastThreshold:r.contrastThreshold})},getContrastText(s){return sr(s,r.contrastThreshold)}},o=s=>r.mode==="light"?Xo[s]:Zo[s];return r.primary=r.augmentColor({color:r.primary||o("primary")}),r.secondary=r.augmentColor({color:r.secondary||o("secondary"),mainShade:"A400",lightShade:"A200",darkShade:"A700"}),r.error=r.augmentColor({color:r.error||o("error")}),r.warning=r.augmentColor({color:r.warning||o("warning")}),r.info=r.augmentColor({color:r.info||o("info")}),r.success=r.augmentColor({color:r.success||o("success")}),r}const rs={};function os(e){return{...Ze({},rs,e??{})}}function ss(e,t=void 0,n={}){return{toolbar:{minHeight:56,[`${e.up("xs")} and (orientation: landscape)`]:{minHeight:48},[e.up("sm")]:{minHeight:64}},...n}}const Rt={},is=.2,as=.14,cs=.12;function k(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${is})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${as})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cs})`].join(",")}const ls=[()=>"none",()=>k(0,2,1,-1,0,1,1,0,0,1,3,0),()=>k(0,3,1,-2,0,2,2,0,0,1,5,0),()=>k(0,3,3,-2,0,3,4,0,0,1,8,0),()=>k(0,2,4,-1,0,4,5,0,0,1,10,0),()=>k(0,3,5,-1,0,5,8,0,0,1,14,0),()=>k(0,3,5,-1,0,6,10,0,0,1,18,0),()=>k(0,4,5,-2,0,7,10,1,0,2,16,1),()=>k(0,5,5,-3,0,8,10,1,0,3,14,2),()=>k(0,5,6,-3,0,9,12,1,0,3,16,2),()=>k(0,6,6,-3,0,10,14,1,0,4,18,3),()=>k(0,6,7,-4,0,11,15,1,0,4,20,3),()=>k(0,7,8,-4,0,12,17,2,0,5,22,4),()=>k(0,7,8,-4,0,13,19,2,0,5,24,4),()=>k(0,7,9,-4,0,14,21,2,0,5,26,4),()=>k(0,8,9,-5,0,15,22,2,0,6,28,5),()=>k(0,8,10,-5,0,16,24,2,0,6,30,5),()=>k(0,8,11,-5,0,17,26,2,0,6,32,5),()=>k(0,9,11,-5,0,18,28,2,0,7,34,6),()=>k(0,9,12,-6,0,19,29,2,0,7,36,6),()=>k(0,10,13,-6,0,20,31,3,0,8,38,7),()=>k(0,10,13,-6,0,21,33,3,0,8,40,7),()=>k(0,10,14,-6,0,22,35,3,0,8,42,7),()=>k(0,11,14,-7,0,23,36,3,0,9,44,8),()=>k(0,11,15,-7,0,24,38,3,0,9,46,8)];function us(){return new Proxy([],{get:(e,t)=>typeof t!="string"||isNaN(Number(t))?e[t]:t in Rt?Rt[t]:Rt[t]=ls[t]()})}const ds={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kn(e){return`${Math.round(e)}ms`}function hs(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function gs(e){const t={...ds,...e.easing},n={...fs,...e.duration};return{getAutoHeightDuration:hs,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:c=0,...l}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:kn(i)} ${a} ${typeof c=="string"?c:kn(c)}`).join(",")},...e,easing:t,duration:n}}const _={light:300,regular:400,medium:500},st={fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,htmlFontSize:16,h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},subtitle1:{},subtitle2:{},body1:{},body2:{},button:{},caption:{},overline:{},fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700};function ms(e){return Math.round(e*1e5)/1e5}function j(e,t,n,r,o,s){return{fontFamily:e.fontFamily,fontWeight:t,fontSize:e.pxToRem(n),lineHeight:`${r}`,letterSpacing:`${ms(o/n)}em`,...s?{textTransform:"uppercase"}:{}}}function ps(e={}){const t={fontFamily:e.fontFamily??st.fontFamily,fontSize:e.fontSize??st.fontSize,htmlFontSize:(e==null?void 0:e.htmlFontSize)??st.htmlFontSize,pxToRem:n=>{const r=t.fontSize/14;return`${n/t.htmlFontSize*r}rem`}};return Ze(st,t,{h1:j(t,_.light,96,1.167,-1.5),h2:j(t,_.light,60,1.2,-.5),h3:j(t,_.regular,48,1.167,0),h4:j(t,_.regular,34,1.235,.25),h5:j(t,_.regular,24,1.334,0),h6:j(t,_.medium,20,1.6,.15),subtitle1:j(t,_.regular,16,1.75,.15),subtitle2:j(t,_.medium,14,1.57,.1),body1:j(t,_.regular,16,1.5,.15),body2:j(t,_.regular,14,1.43,.15),button:j(t,_.medium,14,1.75,.4,!0),caption:j(t,_.regular,12,1.66,.4),overline:j(t,_.regular,12,2.66,1,!0)},e)}const ys={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bs(e){return{...Ze({},ys,e)}}function Nt(e,t,n="px"){let r;if(e==="up")r=`(min-width:${t}${n})`;else if(e==="down")r=`(max-width:${t}${n})`;else if(e==="between"){const[o,s]=t;r=`(max-width:${o}${n}) and (min-width:${s}${n})`}else throw new Error(`Invalid comparator: ${e}`);return`@media ${r}`}const ws={columns:12,keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},unit:"px"};function ir(e){const t={...ws,...e??{},up:(n,r)=>{const o=Nt("up",t.resolve(n));return r?{[o]:r}:o},down:(n,r)=>{const o=Nt("down",t.resolve(n));return r?{[o]:r}:o},between:(n,r)=>{const o=Nt("between",[t.resolve(n[0]),t.resolve(n[1])]);return r?{[o]:r}:o},resolve:n=>typeof n=="number"?n:t.values[n]};return t}function ar(e){return typeof e=="function"?e:(...n)=>n.map(r=>typeof r=="number"?`${r*(e??8)}px`:r).join(" ")}const Cs={borderRadius:4};function cr(e){return{...Ze({},Cs,e)}}function lr(e={}){const t={direction:"ltr",...e};function n(r,o){const s=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,...typeof s=="function"?{get:s}:{value:o({[r]:s})}})}return n("breakpoints",r=>ir(r.breakpoints)),n("components",r=>os(r.components)),n("palette",r=>ns(r.palette)),n("shape",r=>cr(r.shape)),n("spacing",r=>ar(r.spacing)),n("typography",r=>ps(r.typography)),n("shadows",()=>us()),n("transitions",()=>gs({})),n("zIndex",r=>bs(r.zIndex)),n("mixins",()=>ss(t.breakpoints)),t}function ur(e){let t;return function(){return t||(t=e()),t}}const Ss=ur(lr);let dr;dr=Ne({});const Et=dr;function xs(e){return{direction:"ltr",shadows:void 0,transitions:void 0,components:void 0,palette:void 0,typography:void 0,zIndex:void 0,mixins:void 0,...e,breakpoints:ir(e==null?void 0:e.breakpoints),shape:cr(e==null?void 0:e.shape),spacing:ar(e==null?void 0:e.spacing)}}const Os=ur(xs);function vs(e){for(const t in e)return!1;return!0}function dn(e=Os,t=Et){const n=Ye(t);if(typeof n=="function")return new Proxy({},{get:(r,o)=>n()[o]});if(vs(n)&&e)return typeof e=="function"?e():e;if(!n)throw new Error("Theme is not defined");return n}function fr(e=Ss){return dn(e,Et)}function ks(e){return dn(e,Et)}function $s(e){var s,i;const t=[],n=typeof e.propDefaults=="function"?e.propDefaults({set:a=>a,inProps:e.props}):e.propDefaults,o=(i=(s=ks().components)==null?void 0:s[e.name])==null?void 0:i.defaultProps;return n&&t.push(n),o&&t.push(o),t.length?Gn(...t,e.props):e.props}function As(e){return ue(Et.Provider,{get value(){return e.theme},get children(){return e.children}})}function Ms(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function Es(e,t){switch(typeof e){case"function":return Object.assign(e,{[oo]:!0}),Ge(()=>e(t));case"string":const n=qn.has(e),r=P.context?Yn():Ms(e,n);return Xn(r,t,n),r}}function hr(e,t){const n=L(e);return L(()=>Es(n(),t))}function jc(e){const[t,n]=$t(e,["$component"]);return hr(()=>t.$component,n)}function Is(e){const t=e.reduce((n,r)=>("name"in r&&(n[`--${r.name}`]="0"),un(n,r,{clone:!1,sortKeys:!0}),n),{});return delete t.name,t}function gr(e){return e.startsWith("--")}function Ts(e){return e.startsWith("__")}function mr(e){return/[^a-z-]/i.test(e)&&!gr(e)}function pr(e){return e.startsWith("@global")}function qt(e){return e.startsWith("@media")}function yr(e){return e.startsWith("@keyframes")}function $n(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function An(e,t,n=[],r={}){const o=e.split(",").map(s=>(s=s.trim(),s.includes("&")?s:`& ${s}`));return bt(t,(n.length?n:[""]).flatMap(s=>o.map(i=>i.replace(/&/g,s).trim())),{...r})}function Mn(e,t){if(!t)return $n(e);let n=t.get(e);return n||(t.set(e,n=$n(e)),n)}function bt(e,t=[],n={}){const r=[],o=[];for(let i in e){const a=e[i];if(!Ts(i))if(pr(i))for(const c in a)o.push(...An(c,a[c],[],n));else if(qt(i))o.push(...bt(a,t,{...n,sublevel:!0}).map(c=>`${i} {
1
+ var to=Object.defineProperty;var no=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>no(e,typeof t!="symbol"?t+"":t,n);import{c as L,u as Ge,a as ce,s as $t,b as X,r as ro,d as M,e as Hn,o as le,g as yn,f as P,$ as B,h as Ae,i as mt,j as qe,k as Ne,l as Ye,m as Gn,n as ue,p as oo,q as so,t as At,v as io,S as ao}from"./git-diff-vendor-DaSE45SW.js";import{g as co}from"./fast-diff-vendor-DgdwVvTQ.js";const lo=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],uo=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...lo]),fo=new Set(["innerHTML","textContent","innerText","children"]),ho=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),go=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function mo(e,t){const n=go[e];return typeof n=="object"?n[t]?n.$:void 0:n}const po=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),qn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","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","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),yo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},bo=e=>L(()=>e());function wo(e,t,n){let r=n.length,o=t.length,s=r,i=0,a=0,c=t[o-1].nextSibling,l=null;for(;i<o||a<s;){if(t[i]===n[a]){i++,a++;continue}for(;t[o-1]===n[s-1];)o--,s--;if(o===i){const u=s<r?a?n[a-1].nextSibling:n[s-a]:c;for(;a<s;)e.insertBefore(n[a++],u)}else if(s===a)for(;i<o;)(!l||!l.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[s-1]&&n[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[a++],t[i++].nextSibling),e.insertBefore(n[--s],u),t[o]=n[s]}else{if(!l){l=new Map;let d=a;for(;d<s;)l.set(n[d],d++)}const u=l.get(t[i]);if(u!=null)if(a<u&&u<s){let d=i,h=1,m;for(;++d<o&&d<s&&!((m=l.get(t[d]))==null||m!==u+h);)h++;if(h>u-a){const p=t[i];for(;a<u;)e.insertBefore(n[a++],p)}else e.replaceChild(n[a++],t[i++])}else i++;else t[i++].remove()}}}const bn="_$DX_DELEGATE";function Dc(e,t,n,r={}){let o;return Hn(s=>{o=s,t===document?e():pt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function sn(e,t,n,r){let o;const s=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},i=t?()=>Ge(()=>document.importNode(o||(o=s()),!0)):()=>(o||(o=s())).cloneNode(!0);return i.cloneNode=i,i}function Jn(e,t=window.document){const n=t[bn]||(t[bn]=new Set);for(let r=0,o=e.length;r<o;r++){const s=e[r];n.has(s)||(n.add(s),t.addEventListener(s,Mo))}}function Je(e,t,n){we(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Co(e,t,n,r){we(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function So(e,t,n){we(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function xo(e,t){we(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Oo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=s=>o.call(e,n[1],s))}else e.addEventListener(t,n,typeof n!="function"&&n)}function vo(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let s,i;for(s=0,i=o.length;s<i;s++){const a=o[s];!a||a==="undefined"||t[a]||(Cn(e,a,!1),delete n[a])}for(s=0,i=r.length;s<i;s++){const a=r[s],c=!!t[a];!a||a==="undefined"||n[a]===c||!c||(Cn(e,a,!0),n[a]=c)}return n}function ko(e,t,n){if(!t)return n?Je(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,s;for(s in n)t[s]==null&&r.removeProperty(s),delete n[s];for(s in t)o=t[s],o!==n[s]&&(r.setProperty(s,o),n[s]=o);return n}function wn(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function Xn(e,t={},n,r){const o={};return r||ce(()=>o.children=Xe(e,t.children,o.children)),ce(()=>typeof t.ref=="function"&&an(t.ref,e)),ce(()=>$o(e,t,n,!0,o,!0)),o}function an(e,t,n){return Ge(()=>e(t,n))}function pt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Xe(e,t,r,n);ce(o=>Xe(e,t(),o,n),r)}function $o(e,t,n,r,o={},s=!1){t||(t={});for(const i in o)if(!(i in t)){if(i==="children")continue;o[i]=Sn(e,i,null,o[i],n,s,t)}for(const i in t){if(i==="children")continue;const a=t[i];o[i]=Sn(e,i,a,o[i],n,s,t)}}function Yn(e){let t,n;return!we()||!(t=P.registry.get(n=Eo()))?e():(P.completed&&P.completed.add(t),P.registry.delete(n),t)}function we(e){return!!P.context&&!P.done&&(!e||e.isConnected)}function Ao(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Cn(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,s=r.length;o<s;o++)e.classList.toggle(r[o],n)}function Sn(e,t,n,r,o,s,i){let a,c,l,u,d;if(t==="style")return ko(e,n,r);if(t==="classList")return vo(e,n,r);if(n===r)return r;if(t==="ref")s||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);r&&e.removeEventListener(h,r,typeof r!="function"&&r),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);r&&e.removeEventListener(h,r,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=po.has(h);if(!m&&r){const p=Array.isArray(r)?r[0]:r;e.removeEventListener(h,p)}(m||n)&&(Oo(e,h,n,m),m&&Jn([h]))}else if(t.slice(0,5)==="attr:")Je(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")So(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(l=fo.has(t))||!o&&((u=mo(t,e.tagName))||(c=uo.has(t)))||(a=e.nodeName.includes("-")||"is"in i)){if(d)t=t.slice(5),c=!0;else if(we(e))return n;t==="class"||t==="className"?xo(e,n):a&&!c&&!l?e[Ao(t)]=n:e[u||t]=n}else{const h=o&&t.indexOf(":")>-1&&yo[t.split(":")[0]];h?Co(e,h,t,n):Je(e,ho[t]||t,n)}return n}function Mo(e){if(P.registry&&P.events&&P.events.find(([c,l])=>l===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,s=c=>Object.defineProperty(e,"target",{configurable:!0,value:c}),i=()=>{const c=t[n];if(c&&!t.disabled){const l=t[`${n}Data`];if(l!==void 0?c.call(t,l,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&s(t.host),!0},a=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),P.registry&&!P.done&&(P.done=_$HY.done=!0),e.composedPath){const c=e.composedPath();s(c[0]);for(let l=0;l<c.length-2&&(t=c[l],!!i());l++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();s(r)}function Xe(e,t,n,r,o){const s=we(e);if(s){!n&&(n=[...e.childNodes]);let c=[];for(let l=0;l<n.length;l++){const u=n[l];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():c.push(u)}n=c}for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(s||i==="number"&&(t=t.toString(),t===n))return n;if(a){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Oe(e,n,r,c)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(s)return n;n=Oe(e,n,r)}else{if(i==="function")return ce(()=>{let c=t();for(;typeof c=="function";)c=c();n=Xe(e,c,n,r)}),()=>n;if(Array.isArray(t)){const c=[],l=n&&Array.isArray(n);if(Kt(c,t,n,o))return ce(()=>n=Xe(e,c,n,r,!0)),()=>n;if(s){if(!c.length)return n;if(r===void 0)return n=[...e.childNodes];let u=c[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(c.length===0){if(n=Oe(e,n,r),a)return n}else l?n.length===0?xn(e,c,r):wo(e,n,c):(n&&Oe(e),xn(e,c));n=c}else if(t.nodeType){if(s&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Oe(e,n,r,t);Oe(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Kt(e,t,n,r){let o=!1;for(let s=0,i=t.length;s<i;s++){let a=t[s],c=n&&n[e.length],l;if(!(a==null||a===!0||a===!1))if((l=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=Kt(e,a,c)||o;else if(l==="function")if(r){for(;typeof a=="function";)a=a();o=Kt(e,Array.isArray(a)?a:[a],Array.isArray(c)?c:[c])||o}else e.push(a),o=!0;else{const u=String(a);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return o}function xn(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Oe(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let s=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const c=a.parentNode===e;!s&&!i?c?e.replaceChild(o,a):e.insertBefore(o,n):c&&a.remove()}else s=!0}}else e.insertBefore(o,n);return[o]}function Eo(){return P.getNextContextId()}const Io="http://www.w3.org/2000/svg";function Zn(e,t=!1,n=void 0){return t?document.createElementNS(Io,e):document.createElement(e,{is:n})}function Fc(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=yn();let s,i=!!P.context;return X(()=>{i&&(yn().user=i=!1),s||(s=ro(o,()=>L(()=>e.children)));const a=r();if(a instanceof HTMLHeadElement){const[c,l]=M(!1),u=()=>l(!0);Hn(d=>pt(a,()=>c()?d():s(),null)),le(u)}else{const c=Zn(e.isSVG?"g":"div",e.isSVG),l=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return n.parentNode},configurable:!0}),pt(l,s),a.appendChild(c),e.ref&&e.ref(c),le(()=>a.removeChild(c))}},void 0,{render:!i}),n}function To(e,t){const n=L(e);return L(()=>{const r=n();switch(typeof r){case"function":return Ge(()=>r(t));case"string":const o=qn.has(r),s=P.context?Yn():Zn(r,o,Ge(()=>t.is));return Xn(s,t,o),s}})}function Rc(e){const[,t]=$t(e,["component"]);return To(()=>e.component,t)}const Le=Symbol("store-raw"),ne=Symbol("store-node"),z=Symbol("store-has"),Qn=Symbol("store-self");function er(e){let t=e[B];if(!t&&(Object.defineProperty(e,B,{value:t=new Proxy(e,Lo)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,s=n.length;o<s;o++){const i=n[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(t)})}}return t}function Z(e){let t;return e!=null&&typeof e=="object"&&(e[B]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function se(e,t=new Set){let n,r,o,s;if(n=e!=null&&e[Le])return n;if(!Z(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,a=e.length;i<a;i++)o=e[i],(r=se(o,t))!==o&&(e[i]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const i=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let c=0,l=i.length;c<l;c++)s=i[c],!a[s].get&&(o=e[s],(r=se(o,t))!==o&&(e[s]=r))}return e}function De(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function pe(e,t,n){if(e[t])return e[t];const[r,o]=M(n,{equals:!1,internal:!0});return r.$=o,e[t]=r}function Po(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===B||t===ne||(delete n.value,delete n.writable,n.get=()=>e[B][t]),n}function cn(e){qe()&&pe(De(e,ne),Qn)()}function tr(e){return cn(e),Reflect.ownKeys(e)}const Lo={get(e,t,n){if(t===Le)return e;if(t===B)return n;if(t===mt)return cn(e),n;const r=De(e,ne),o=r[t];let s=o?o():e[t];if(t===ne||t===z||t==="__proto__")return s;if(!o){const i=Object.getOwnPropertyDescriptor(e,t);qe()&&(typeof s!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(s=pe(r,t,s)())}return Z(s)?er(s):s},has(e,t){return t===Le||t===B||t===mt||t===ne||t===z||t==="__proto__"?!0:(qe()&&pe(De(e,z),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:tr,getOwnPropertyDescriptor:Po};function F(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],s=e.length;n===void 0?(delete e[t],e[z]&&e[z][t]&&o!==void 0&&e[z][t].$()):(e[t]=n,e[z]&&e[z][t]&&o===void 0&&e[z][t].$());let i=De(e,ne),a;if((a=pe(i,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==s){for(let c=e.length;c<s;c++)(a=i[c])&&a.$();(a=pe(i,"length",s))&&a.$(e.length)}(a=i[Qn])&&a.$()}function nr(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];F(e,o,t[o])}}function Do(e,t){if(typeof t=="function"&&(t=t(e)),t=se(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const o=t[n];e[n]!==o&&F(e,n,o)}F(e,"length",r)}else nr(e,t)}function Ve(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let c=0;c<r.length;c++)Ve(e,[r[c]].concat(t),n);return}else if(a&&i==="function"){for(let c=0;c<e.length;c++)r(e[c],c)&&Ve(e,[c].concat(t),n);return}else if(a&&i==="object"){const{from:c=0,to:l=e.length-1,by:u=1}=r;for(let d=c;d<=l;d+=u)Ve(e,[d].concat(t),n);return}else if(t.length>1){Ve(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let s=t[0];typeof s=="function"&&(s=s(o,n),s===o)||r===void 0&&s==null||(s=se(s),r===void 0||Z(o)&&Z(s)&&!Array.isArray(s)?nr(o,s):F(e,r,s))}function Nc(...[e,t]){const n=se(e||{}),r=Array.isArray(n),o=er(n);function s(...i){Ae(()=>{r&&i.length===1?Do(n,i[0]):Ve(n,i)})}return[o,s]}function Fo(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||n.set||!n.configurable||t===B||t===ne||(delete n.value,delete n.writable,n.get=()=>e[B][t],n.set=r=>e[B][t]=r),n}const Ro={get(e,t,n){if(t===Le)return e;if(t===B)return n;if(t===mt)return cn(e),n;const r=De(e,ne),o=r[t];let s=o?o():e[t];if(t===ne||t===z||t==="__proto__")return s;if(!o){const i=Object.getOwnPropertyDescriptor(e,t),a=typeof s=="function";if(qe()&&(!a||e.hasOwnProperty(t))&&!(i&&i.get))s=pe(r,t,s)();else if(s!=null&&a&&s===Array.prototype[t])return(...c)=>Ae(()=>Array.prototype[t].apply(n,c))}return Z(s)?rr(s):s},has(e,t){return t===Le||t===B||t===mt||t===ne||t===z||t==="__proto__"?!0:(qe()&&pe(De(e,z),t)(),t in e)},set(e,t,n){return Ae(()=>F(e,t,se(n))),!0},deleteProperty(e,t){return Ae(()=>F(e,t,void 0,!0)),!0},ownKeys:tr,getOwnPropertyDescriptor:Fo};function rr(e){let t=e[B];if(!t){Object.defineProperty(e,B,{value:t=new Proxy(e,Ro)});const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),o=Object.getPrototypeOf(e),s=o!==null&&e!==null&&typeof e=="object"&&!Array.isArray(e)&&o!==Object.prototype;if(s){let i=o;for(;i!=null;){const a=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(a)),Object.assign(r,a),i=Object.getPrototypeOf(i)}}for(let i=0,a=n.length;i<a;i++){const c=n[i];if(!(s&&c==="constructor")){if(r[c].get){const l=r[c].get.bind(t);Object.defineProperty(e,c,{get:l,configurable:!0})}if(r[c].set){const l=r[c].set;Object.defineProperty(e,c,{set:d=>Ae(()=>l.call(t,d)),configurable:!0})}}}}return t}function No(e,t){const n=se(e||{});return rr(n)}const Ht=Symbol("store-root");function ke(e,t,n,r,o){const s=t[n];if(e===s)return;const i=Array.isArray(e);if(n!==Ht&&(!Z(e)||!Z(s)||i!==Array.isArray(s)||o&&e[o]!==s[o])){F(t,n,e);return}if(i){if(e.length&&s.length&&(!r||o&&e[0]&&e[0][o]!=null)){let l,u,d,h,m,p,C,b;for(d=0,h=Math.min(s.length,e.length);d<h&&(s[d]===e[d]||o&&s[d]&&e[d]&&s[d][o]&&s[d][o]===e[d][o]);d++)ke(e[d],s,d,r,o);const I=new Array(e.length),R=new Map;for(h=s.length-1,m=e.length-1;h>=d&&m>=d&&(s[h]===e[m]||o&&s[h]&&e[m]&&s[h][o]&&s[h][o]===e[m][o]);h--,m--)I[m]=s[h];if(d>m||d>h){for(u=d;u<=m;u++)F(s,u,e[u]);for(;u<e.length;u++)F(s,u,I[u]),ke(e[u],s,u,r,o);s.length>e.length&&F(s,"length",e.length);return}for(C=new Array(m+1),u=m;u>=d;u--)p=e[u],b=o&&p?p[o]:p,l=R.get(b),C[u]=l===void 0?-1:l,R.set(b,u);for(l=d;l<=h;l++)p=s[l],b=o&&p?p[o]:p,u=R.get(b),u!==void 0&&u!==-1&&(I[u]=s[l],u=C[u],R.set(b,u));for(u=d;u<e.length;u++)u in I?(F(s,u,I[u]),ke(e[u],s,u,r,o)):F(s,u,e[u])}else for(let l=0,u=e.length;l<u;l++)ke(e[l],s,l,r,o);s.length>e.length&&F(s,"length",e.length);return}const a=Object.keys(e);for(let l=0,u=a.length;l<u;l++)ke(e[a[l]],s,a[l],r,o);const c=Object.keys(s);for(let l=0,u=c.length;l<u;l++)e[c[l]]===void 0&&F(s,c[l],void 0)}function Bc(e,t={}){const{merge:n,key:r="id"}=t,o=se(e);return s=>{if(!Z(s)||!Z(o))return o;const i=ke(o,{[Ht]:s},Ht,n,r);return i===void 0?s:i}}const yt=new WeakMap,or={get(e,t){if(t===Le)return e;const n=e[t];let r;return Z(n)?yt.get(n)||(yt.set(n,r=new Proxy(n,or)),r):n},set(e,t,n){return F(e,t,se(n)),!0},deleteProperty(e,t){return F(e,t,void 0,!0),!0}};function Uc(e){return t=>{if(Z(t)){let n;(n=yt.get(t))||yt.set(t,n=new Proxy(t,or)),e(n)}return t}}function ln(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Bo(e){e=e.substr(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ye(e){if(typeof e!="string")return e;if(e.charAt(0)==="#")return ye(Bo(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error("MUI: Unsupported `%s` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). "+e);const r=e.substring(t+1,e.length-1);let o,s;if(n==="color"){if(o=r.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].substr(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error("MUI: unsupported `%s` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020. "+s)}else o=r.split(",");return{type:n,values:o.map(i=>parseFloat(i)),colorSpace:s}}function Mt(e){const{type:t,colorSpace:n}=e,{values:r}=e;let o;return t.indexOf("rgb")!==-1?o=r.map((s,i)=>i<3?parseInt(s.toString(),10):s).join(","):t.indexOf("hsl")!==-1&&(o=r.map((s,i)=>i===1||i===2?`${s}%`:s).join(",")),t.indexOf("color")!==-1?o=`${n} ${r.join(" ")}`:o=`${r.join(", ")}`,`${t}(${o})`}function Uo(e){const t=ye(e),{values:n}=t,r=n[0],o=n[1]/100,s=n[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+r/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(c+="a",l.push(n[3])),Mt({type:c,values:l})}function On(e){const{type:t,values:n}=ye(e);let r=t==="hsl"?ye(Uo(e)).values:n;return r=r.map(o=>(t!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function _o(e,t){const n=On(e),r=On(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _c(e,t){let{type:n,values:r}=ye(e);return t=ln(t),(n==="rgb"||n==="hsl")&&(n+="a"),n==="color"?r[3]=`/${t}`:r[3]=t,Mt({type:n,values:r})}function jo(e,t){const n=ye(e);if(t=ln(t),n.type.indexOf("hsl")!==-1)n.values[2]*=1-t;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)n.values[r]*=1-t;return Mt(n)}function Vo(e,t){const n=ye(e);if(t=ln(t),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*t;else if(n.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)n.values[r]+=(255-n.values[r])*t;else if(n.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)n.values[r]+=(1-n.values[r])*t;return Mt(n)}const Wo={xs:0,sm:600,md:900,lg:1200,xl:1536};function zo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints;return t.reduce((i,a,c)=>(i={...i,...s.up(s.keys[c],n(t[c]))},i),{})}if(typeof t=="object"){const s=r.breakpoints;return Object.keys(t).reduce((a,c)=>{if(Object.keys(s.values||Wo).indexOf(c)!==-1)a={...a,...s.up(c,n(t[c],c))};else{const l=c;a[l]=t[l]}return a},{})}return n(t)}const Ko={cleanupStyles:!0},Ho=Ne(Ko),be={black:"#000",white:"#fff"},Me={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ee={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ie={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Te={300:"#4fc3f7",400:"#29b6f6",700:"#0288d1",800:"#0277bd",900:"#01579b"},Pe={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ke={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function We(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function qo(e,t){for(const n of t){const r=e[n];delete e[n],e[n]=r}}function un(e,t,n={clone:!0}){const r=n.clone?{...e}:e,o=n.sortKeys?[]:void 0;return We(e)&&We(t)&&(Object.keys(t).forEach(s=>{if(s==="__proto__")return;o&&o.push(s);let i,a;We(i=t[s])&&s in e&&We(a=e[s])?r[s]=un(a,i,n):i!==void 0&&(r[s]=i)}),o&&qo(r,o)),r}function Gt(e){if(Array.isArray(e)){const t=[];for(const n of e)t.push(Gt(n));return t}else if(We(e)){const t={};for(const n in e)n!=="__proto__"&&(t[n]=Gt(e[n]));return t}else return e}function Ze(e,...t){for(const n of t)un(e,Gt(n),{clone:!1});return e}const Jo=()=>({text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:be.white,default:be.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}),Xo={primary:{main:Ie[700],light:Ie[400],dark:Ie[800]},secondary:{main:Ee[500],light:Ee[300],dark:Ee[700]},error:{main:Me[700],light:Me[400],dark:Me[800]},info:{main:Te[700],light:Te[800],dark:Te[900]},success:{main:Pe[800],light:Pe[500],dark:Pe[900]},warning:{main:"#ED6C02",light:Ke[500],dark:Ke[900]}},Yo=()=>({text:{primary:be.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:be.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}),Zo={primary:{main:Ie[200],light:Ie[50],dark:Ie[400]},secondary:{main:Ee[200],light:Ee[50],dark:Ee[400]},error:{main:Me[500],light:Me[300],dark:Me[700]},info:{main:Te[400],light:Te[300],dark:Te[700]},success:{main:Pe[400],light:Pe[300],dark:Pe[700]},warning:{main:Ke[400],light:Ke[300],dark:Ke[700]}},Qo={light:Jo,dark:Yo};function sr(e,t){return _o(e,be.white)>=t?be.white:"rgba(0, 0, 0, 0.87)"}function vn(e,t,n,r){const o=typeof r=="number"?r:r.light,s=typeof r=="number"?r*1.5:r.dark;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vo(e.main,o):t==="dark"&&(e.dark=jo(e.main,s)))}function es(e){const t={...e.color},n=e.mainShade??500;return!e.color.main&&e.color[n]&&(t.main=e.color[n]),vn(t,"light",e.lightShade??300,e.tonalOffset),vn(t,"dark",e.darkShade??700,e.tonalOffset),t.contrastText||(t.contrastText=sr(t.main,e.contrastThreshold)),t}const ts=()=>({mode:"light",tonalOffset:.2,contrastThreshold:3,grey:Go,common:be});function ns(e){const t=["error","info","primary","secondary","success","warning"],n=ts(),r={...Ze({},n,Qo[(e==null?void 0:e.mode)??n.mode](),e),isColorName(s){return t.includes(s)},getColorObject(s){return r[s]},getColor(s){return r.mode==="light"?r[s].light:r[s].dark},augmentColor(s){return es({...s,tonalOffset:r.tonalOffset,contrastThreshold:r.contrastThreshold})},getContrastText(s){return sr(s,r.contrastThreshold)}},o=s=>r.mode==="light"?Xo[s]:Zo[s];return r.primary=r.augmentColor({color:r.primary||o("primary")}),r.secondary=r.augmentColor({color:r.secondary||o("secondary"),mainShade:"A400",lightShade:"A200",darkShade:"A700"}),r.error=r.augmentColor({color:r.error||o("error")}),r.warning=r.augmentColor({color:r.warning||o("warning")}),r.info=r.augmentColor({color:r.info||o("info")}),r.success=r.augmentColor({color:r.success||o("success")}),r}const rs={};function os(e){return{...Ze({},rs,e??{})}}function ss(e,t=void 0,n={}){return{toolbar:{minHeight:56,[`${e.up("xs")} and (orientation: landscape)`]:{minHeight:48},[e.up("sm")]:{minHeight:64}},...n}}const Rt={},is=.2,as=.14,cs=.12;function k(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${is})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${as})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cs})`].join(",")}const ls=[()=>"none",()=>k(0,2,1,-1,0,1,1,0,0,1,3,0),()=>k(0,3,1,-2,0,2,2,0,0,1,5,0),()=>k(0,3,3,-2,0,3,4,0,0,1,8,0),()=>k(0,2,4,-1,0,4,5,0,0,1,10,0),()=>k(0,3,5,-1,0,5,8,0,0,1,14,0),()=>k(0,3,5,-1,0,6,10,0,0,1,18,0),()=>k(0,4,5,-2,0,7,10,1,0,2,16,1),()=>k(0,5,5,-3,0,8,10,1,0,3,14,2),()=>k(0,5,6,-3,0,9,12,1,0,3,16,2),()=>k(0,6,6,-3,0,10,14,1,0,4,18,3),()=>k(0,6,7,-4,0,11,15,1,0,4,20,3),()=>k(0,7,8,-4,0,12,17,2,0,5,22,4),()=>k(0,7,8,-4,0,13,19,2,0,5,24,4),()=>k(0,7,9,-4,0,14,21,2,0,5,26,4),()=>k(0,8,9,-5,0,15,22,2,0,6,28,5),()=>k(0,8,10,-5,0,16,24,2,0,6,30,5),()=>k(0,8,11,-5,0,17,26,2,0,6,32,5),()=>k(0,9,11,-5,0,18,28,2,0,7,34,6),()=>k(0,9,12,-6,0,19,29,2,0,7,36,6),()=>k(0,10,13,-6,0,20,31,3,0,8,38,7),()=>k(0,10,13,-6,0,21,33,3,0,8,40,7),()=>k(0,10,14,-6,0,22,35,3,0,8,42,7),()=>k(0,11,14,-7,0,23,36,3,0,9,44,8),()=>k(0,11,15,-7,0,24,38,3,0,9,46,8)];function us(){return new Proxy([],{get:(e,t)=>typeof t!="string"||isNaN(Number(t))?e[t]:t in Rt?Rt[t]:Rt[t]=ls[t]()})}const ds={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kn(e){return`${Math.round(e)}ms`}function hs(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function gs(e){const t={...ds,...e.easing},n={...fs,...e.duration};return{getAutoHeightDuration:hs,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:c=0,...l}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:kn(i)} ${a} ${typeof c=="string"?c:kn(c)}`).join(",")},...e,easing:t,duration:n}}const _={light:300,regular:400,medium:500},st={fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,htmlFontSize:16,h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},subtitle1:{},subtitle2:{},body1:{},body2:{},button:{},caption:{},overline:{},fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700};function ms(e){return Math.round(e*1e5)/1e5}function j(e,t,n,r,o,s){return{fontFamily:e.fontFamily,fontWeight:t,fontSize:e.pxToRem(n),lineHeight:`${r}`,letterSpacing:`${ms(o/n)}em`,...s?{textTransform:"uppercase"}:{}}}function ps(e={}){const t={fontFamily:e.fontFamily??st.fontFamily,fontSize:e.fontSize??st.fontSize,htmlFontSize:(e==null?void 0:e.htmlFontSize)??st.htmlFontSize,pxToRem:n=>{const r=t.fontSize/14;return`${n/t.htmlFontSize*r}rem`}};return Ze(st,t,{h1:j(t,_.light,96,1.167,-1.5),h2:j(t,_.light,60,1.2,-.5),h3:j(t,_.regular,48,1.167,0),h4:j(t,_.regular,34,1.235,.25),h5:j(t,_.regular,24,1.334,0),h6:j(t,_.medium,20,1.6,.15),subtitle1:j(t,_.regular,16,1.75,.15),subtitle2:j(t,_.medium,14,1.57,.1),body1:j(t,_.regular,16,1.5,.15),body2:j(t,_.regular,14,1.43,.15),button:j(t,_.medium,14,1.75,.4,!0),caption:j(t,_.regular,12,1.66,.4),overline:j(t,_.regular,12,2.66,1,!0)},e)}const ys={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bs(e){return{...Ze({},ys,e)}}function Nt(e,t,n="px"){let r;if(e==="up")r=`(min-width:${t}${n})`;else if(e==="down")r=`(max-width:${t}${n})`;else if(e==="between"){const[o,s]=t;r=`(max-width:${o}${n}) and (min-width:${s}${n})`}else throw new Error(`Invalid comparator: ${e}`);return`@media ${r}`}const ws={columns:12,keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},unit:"px"};function ir(e){const t={...ws,...e??{},up:(n,r)=>{const o=Nt("up",t.resolve(n));return r?{[o]:r}:o},down:(n,r)=>{const o=Nt("down",t.resolve(n));return r?{[o]:r}:o},between:(n,r)=>{const o=Nt("between",[t.resolve(n[0]),t.resolve(n[1])]);return r?{[o]:r}:o},resolve:n=>typeof n=="number"?n:t.values[n]};return t}function ar(e){return typeof e=="function"?e:(...n)=>n.map(r=>typeof r=="number"?`${r*(e??8)}px`:r).join(" ")}const Cs={borderRadius:4};function cr(e){return{...Ze({},Cs,e)}}function lr(e={}){const t={direction:"ltr",...e};function n(r,o){const s=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,...typeof s=="function"?{get:s}:{value:o({[r]:s})}})}return n("breakpoints",r=>ir(r.breakpoints)),n("components",r=>os(r.components)),n("palette",r=>ns(r.palette)),n("shape",r=>cr(r.shape)),n("spacing",r=>ar(r.spacing)),n("typography",r=>ps(r.typography)),n("shadows",()=>us()),n("transitions",()=>gs({})),n("zIndex",r=>bs(r.zIndex)),n("mixins",()=>ss(t.breakpoints)),t}function ur(e){let t;return function(){return t||(t=e()),t}}const Ss=ur(lr);let dr;dr=Ne({});const Et=dr;function xs(e){return{direction:"ltr",shadows:void 0,transitions:void 0,components:void 0,palette:void 0,typography:void 0,zIndex:void 0,mixins:void 0,...e,breakpoints:ir(e==null?void 0:e.breakpoints),shape:cr(e==null?void 0:e.shape),spacing:ar(e==null?void 0:e.spacing)}}const Os=ur(xs);function vs(e){for(const t in e)return!1;return!0}function dn(e=Os,t=Et){const n=Ye(t);if(typeof n=="function")return new Proxy({},{get:(r,o)=>n()[o]});if(vs(n)&&e)return typeof e=="function"?e():e;if(!n)throw new Error("Theme is not defined");return n}function fr(e=Ss){return dn(e,Et)}function ks(e){return dn(e,Et)}function $s(e){var s,i;const t=[],n=typeof e.propDefaults=="function"?e.propDefaults({set:a=>a,inProps:e.props}):e.propDefaults,o=(i=(s=ks().components)==null?void 0:s[e.name])==null?void 0:i.defaultProps;return n&&t.push(n),o&&t.push(o),t.length?Gn(...t,e.props):e.props}function As(e){return ue(Et.Provider,{get value(){return e.theme},get children(){return e.children}})}function Ms(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function Es(e,t){switch(typeof e){case"function":return Object.assign(e,{[oo]:!0}),Ge(()=>e(t));case"string":const n=qn.has(e),r=P.context?Yn():Ms(e,n);return Xn(r,t,n),r}}function hr(e,t){const n=L(e);return L(()=>Es(n(),t))}function jc(e){const[t,n]=$t(e,["$component"]);return hr(()=>t.$component,n)}function Is(e){const t=e.reduce((n,r)=>("name"in r&&(n[`--${r.name}`]="0"),un(n,r,{clone:!1,sortKeys:!0}),n),{});return delete t.name,t}function gr(e){return e.startsWith("--")}function Ts(e){return e.startsWith("__")}function mr(e){return/[^a-z-]/i.test(e)&&!gr(e)}function pr(e){return e.startsWith("@global")}function qt(e){return e.startsWith("@media")}function yr(e){return e.startsWith("@keyframes")}function $n(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function An(e,t,n=[],r={}){const o=e.split(",").map(s=>(s=s.trim(),s.includes("&")?s:`& ${s}`));return bt(t,(n.length?n:[""]).flatMap(s=>o.map(i=>i.replace(/&/g,s).trim())),{...r})}function Mn(e,t){if(!t)return $n(e);let n=t.get(e);return n||(t.set(e,n=$n(e)),n)}function bt(e,t=[],n={}){const r=[],o=[];for(let i in e){const a=e[i];if(!Ts(i))if(pr(i))for(const c in a)o.push(...An(c,a[c],[],n));else if(qt(i))o.push(...bt(a,t,{...n,sublevel:!0}).map(c=>`${i} {
2
2
  ${c}
3
3
  }`));else if(gr(i))a!=null&&r.push(`${i}: ${a};`);else if(yr(i)){const c=[];for(const l in a)c.push(...bt(a[l],[/^\d+$/.test(l)?`${l}%`:l],{...n,sublevel:!0}));o.push(`${i} {
4
4
  ${c.join(`
@@ -23,4 +23,4 @@ ${a}
23
23
  `),n=[],r=[];for(const o of t)o.startsWith("---")||o.startsWith("+++")||o.startsWith("diff --git")||ac.test(o)||(o.startsWith("-")&&!o.startsWith("---")?n.push(o.slice(1)):o.startsWith("+")&&!o.startsWith("+++")?r.push(o.slice(1)):o.startsWith(" ")?(n.push(o.slice(1)),r.push(o.slice(1))):o===""?(n.push(""),r.push("")):(n.push(o),r.push(o)));for(;n.length>0&&n[n.length-1]==="";)n.pop();for(;r.length>0&&r[r.length-1]==="";)r.pop();return{before:n.join(`
24
24
  `),after:r.join(`
25
25
  `)}}const dc="0.52.2",nn=`https://cdn.jsdelivr.net/npm/monaco-editor@${dc}/min/vs`,J="/monaco/vs";let ft=null;function fc(e,t){return new Promise((n,r)=>{const o=setTimeout(()=>r(new Error("timeout")),t);e.then(s=>{clearTimeout(o),n(s)}).catch(s=>{clearTimeout(o),r(s)})})}async function hc(){if(typeof fetch>"u")return!1;try{const e=new AbortController,t=fetch(`${nn}/loader.js`,{method:"HEAD",signal:e.signal}),n=await fc(t,1200);return e.abort(),n.ok}catch{return!1}}function gc(){return typeof document>"u"||document.querySelector('script[data-monaco-loader="true"]')?Promise.resolve():new Promise((t,n)=>{const r=document.createElement("script");r.dataset.monacoLoader="true",r.src=`${J}/loader.js`,r.async=!0,r.onload=()=>t(),r.onerror=()=>n(new Error("Failed to load Monaco AMD loader")),document.head.appendChild(r)})}function mc(){if(typeof document>"u"||document.querySelector('link[data-monaco-editor-css="true"]'))return;const t=document.createElement("link");t.rel="stylesheet",t.href=`${J}/editor/editor.main.css`,t.dataset.monacoEditorCss="true",document.head.appendChild(t)}function pc(){const e=globalThis,t=e.MonacoEnvironment??{},n="/monaco.worker.js";e.MonacoEnvironment={...t,getWorkerUrl(r,o){return n}}}function Xr(){const e=globalThis.require;if(!e)throw new Error("Monaco AMD loader is not available");return e}function yc(){const t=Xr().config;if(!t)throw new Error("require.config is not available");return t}function rn(e){const t=Xr();return new Promise((n,r)=>{t(e,(...o)=>n(o),o=>r(o))})}function bc(e){const t=String(e||"plaintext");return!t||t==="plaintext"?null:t==="typescript"||t==="javascript"?"vs/language/typescript/monaco.contribution":t==="json"?"vs/language/json/monaco.contribution":t==="css"||t==="scss"||t==="less"?"vs/language/css/monaco.contribution":t==="html"?"vs/language/html/monaco.contribution":t==="toml"?"vs/basic-languages/toml/toml":`vs/basic-languages/${t}/${t}`}const zn=new Set,zt=new Map;async function Yr(e){const t=bc(e);if(!t||zn.has(t))return;const n=zt.get(t);if(n)return n;const r=(async()=>{let o=!1;try{await rn([t]),o=!0}catch{}finally{o&&zn.add(t),zt.delete(t)}})();return zt.set(t,r),r}async function Zr(){return ft||(ft=(async()=>{await gc(),pc(),mc();const e=await hc(),t=yc(),n={vs:J};e&&(n["vs/basic-languages"]=`${nn}/basic-languages`,n["vs/language"]=`${nn}/language`,n["vs/basic-languages/python"]=`${J}/basic-languages/python`,n["vs/basic-languages/markdown"]=`${J}/basic-languages/markdown`,n["vs/basic-languages/cpp"]=`${J}/basic-languages/cpp`,n["vs/basic-languages/kotlin"]=`${J}/basic-languages/kotlin`,n["vs/language/typescript"]=`${J}/language/typescript`,n["vs/language/html"]=`${J}/language/html`,n["vs/language/json"]=`${J}/language/json`,n["vs/language/css"]=`${J}/language/css`),t({paths:n,ignoreDuplicateModules:["vs/editor/editor.main"]});const[r]=await rn(["vs/editor/editor.main"]);return await rn(["vs/basic-languages/monaco.contribution"]).catch(()=>[]),globalThis.monaco??r})(),ft)}const wc=5,ae=new Map;function Cc(e,t){ae.delete(e),ae.set(e,t)}function Sc(){for(;ae.size>wc;){const e=ae.keys().next().value;if(!e)return;const t=ae.get(e);ae.delete(e);try{t==null||t.model.dispose()}catch{}}}function on(e){const t=ae.get(e.cacheKey);if(t)return Cc(e.cacheKey,t),t.model.getValue()!==e.value&&t.model.setValue(e.value),t.model;const n=e.monaco.Uri.parse(`opencode://model/${encodeURIComponent(e.cacheKey)}`),r=e.monaco.editor.createModel(e.value,"plaintext",n),o={model:r};return ae.set(e.cacheKey,o),Sc(),r}let ht=null;function xc(e){var o;if(ht)return ht;const t=new Map,n=new Map,r=typeof((o=e==null?void 0:e.languages)==null?void 0:o.getLanguages)=="function"?e.languages.getLanguages():[];if(Array.isArray(r))for(const s of r){const i=typeof(s==null?void 0:s.id)=="string"?s.id:null;if(!i)continue;const a=Array.isArray(s==null?void 0:s.filenames)?s.filenames:[];for(const l of a)typeof l=="string"&&(t.has(l)||t.set(l,i));const c=Array.isArray(s==null?void 0:s.extensions)?s.extensions:[];for(const l of c)typeof l=="string"&&(n.has(l)||n.set(l,i))}return ht={fileNameToId:t,extToId:n},ht}function Oc(e){return e===".gitignore"||e===".gitattributes"||e===".gitmodules"||e==="Makefile"||e.startsWith("Makefile.")?"shell":null}function Qr(e,t){const n=String(t||"").trim(),r=n.split("/").pop()||n,o=Oc(r);if(o)return o;const s=xc(e),i=s.fileNameToId.get(r);if(i)return i;const a=r.lastIndexOf(".");if(a>0){const c=r.slice(a),l=s.extToId.get(c);if(l)return l}return"plaintext"}var vc=sn("<div class=monaco-viewer><div class=git-change-context-overlay>"),kc=sn("<div class=git-change-context-widget-host><button type=button class=git-change-context-widget>+");function vt(e){return e?e.split(`
26
- `).length:1}function kt(e){return String(Math.max(1,e)).length}function $c(e){const t=vt(e.before),n=vt(e.after),r=kt(t),o=kt(n),s=Math.max(r,o),i=Math.max(0,s-2),a=Math.max(2,r),c=Math.max(2,o),l=Math.max(0,s-3);return{diffEditorLineNumbersMinChars:Math.max(a,c),originalLineNumbersMinChars:a,modifiedLineNumbersMinChars:c,lineDecorationsWidth:6+i*2+l*2}}function Ac(e){const t=vt(e.before),n=vt(e.after),r=kt(t),o=kt(n),s=Math.max(r,o),i=Math.max(0,s-2),a=Math.max(2,r),c=Math.max(2,o),l=Math.max(0,s-3);return{diffEditorLineNumbersMinChars:Math.max(a,c),originalLineNumbersMinChars:a,modifiedLineNumbersMinChars:c,lineDecorationsWidth:8+i*2+l}}function Mc(e){const{isDark:t}=Jr();let n,r=null,o=null,s=null;const[i,a]=M(!1),[c,l]=M(null),[u,d]=M(null),[h,m]=M(!1),[p,C]=M(null),b=L(()=>e.patch!==void 0&&e.patch!==null?uc(e.patch):{before:e.before??"",after:e.after??""}),I=()=>{try{r==null||r.setModel(null)}catch{}try{r==null||r.dispose()}catch{}r=null},R=()=>{n&&(n.style.removeProperty("--split-original-line-number-width"),n.style.removeProperty("--split-original-delete-sign-left"),n.style.removeProperty("--split-original-gutter-width"))},D=g=>{if(n){if(s!==null&&typeof window<"u"&&(window.cancelAnimationFrame(s),s=null),g.viewMode!=="split"||typeof window>"u"){R();return}s=window.requestAnimationFrame(()=>{if(s=null,!n)return;const w=n.querySelector(".editor.original .line-numbers"),v=(w==null?void 0:w.getBoundingClientRect().width)??0,x=v>0?v:Math.max(12,g.originalLineNumbersMinChars*6);n.style.setProperty("--split-original-line-number-width",`${x}px`),n.style.setProperty("--split-original-delete-sign-left",`${x}px`),n.style.setProperty("--split-original-gutter-width",`${x+g.lineDecorationsWidth}px`)})}},G=()=>{var g;return((g=r==null?void 0:r.getModifiedEditor)==null?void 0:g.call(r))??null},tt=()=>{const g=u();if(g)return g;if(h()&&c())return{startLine:c(),endLine:c()};const w=c();return w?{startLine:w,endLine:w}:null},U=()=>{var x,O,A,S;const g=G(),w=n;if(!g||!w)return;const v=tt();if(!v){C(null);return}try{const E=(x=g.getDomNode)==null?void 0:x.call(g);if(!E){C(null);return}const N=E.querySelector(".margin"),q=E.querySelector(".monaco-scrollable-element.editor-scrollable"),fe=((O=g.getTopForLineNumber)==null?void 0:O.call(g,v.startLine))??0,xe=((A=g.getScrollTop)==null?void 0:A.call(g))??0,nt=Number(((S=g.getOption)==null?void 0:S.call(g,o.editor.EditorOption.lineHeight))??18),Ue=E.getBoundingClientRect(),he=w.getBoundingClientRect(),rt=Ue.left-he.left+((N==null?void 0:N.offsetWidth)??(q==null?void 0:q.offsetLeft)??0),eo=Ue.top-he.top+(fe-xe)+nt/2;C({top:eo,left:rt})}catch{C(null)}};return At(()=>{let g=!1;(async()=>(o=await Zr(),!g&&(!n||!o||(o.editor.setTheme(t()?"vs-dark":"vs"),r=o.editor.createDiffEditor(n,{readOnly:!0,automaticLayout:!0,renderSideBySide:!0,renderSideBySideInlineBreakpoint:0,renderMarginRevertIcon:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,renderWhitespace:"selection",fontSize:13,wordWrap:e.wordWrap==="on"?"on":"off",glyphMargin:!1,folding:!1,lineNumbersMinChars:4,lineDecorationsWidth:12,diffAlgorithm:"legacy",maxComputationTime:1e4}),a(!0),U()))))(),le(()=>{g=!0,s!==null&&typeof window<"u"&&(window.cancelAnimationFrame(s),s=null),R(),a(!1),I()})}),X(()=>{!i()||!o||!r||o.editor.setTheme(t()?"vs-dark":"vs")}),X(()=>{n&&(n.dataset.viewMode=e.viewMode==="split"?"split":"unified")}),X(()=>{var v;if(!i()||!o||!r)return;const g=(v=r.getModifiedEditor)==null?void 0:v.call(r);if(!(g!=null&&g.onDidChangeCursorSelection))return;const w=g.onDidChangeCursorSelection(x=>{var A;const O=x==null?void 0:x.selection;if(!O||(A=O.isEmpty)!=null&&A.call(O)){d(null),U();return}d({startLine:Math.min(O.startLineNumber,O.endLineNumber),endLine:Math.max(O.startLineNumber,O.endLineNumber)}),U()});le(()=>{var x;try{(x=w==null?void 0:w.dispose)==null||x.call(w)}catch{}})}),X(()=>{var O;if(!i()||!o||!r)return;const g=G();if(!(g!=null&&g.onMouseMove)||!(g!=null&&g.onMouseLeave)||!(g!=null&&g.onMouseDown))return;const w=g.onMouseMove(A=>{var E,N;const S=(N=(E=A==null?void 0:A.target)==null?void 0:E.position)==null?void 0:N.lineNumber;l(typeof S=="number"?S:null),U()}),v=g.onMouseLeave(()=>{h()||l(null),U()}),x=(O=g.onDidScrollChange)==null?void 0:O.call(g,()=>{U()});le(()=>{var A,S,E;try{(A=w==null?void 0:w.dispose)==null||A.call(w),(S=v==null?void 0:v.dispose)==null||S.call(v),(E=x==null?void 0:x.dispose)==null||E.call(x)}catch{}})}),X(()=>{if(!i()||!o||!r)return;tt()||C(null),U()}),X(()=>{var fe,xe,nt,Ue,he,rt;if(!i()||!o||!r)return;const g=e.viewMode==="unified"?"unified":"split",w=e.contextMode==="collapsed"?"collapsed":"expanded",v=e.wordWrap==="on"?"on":"off",{before:x,after:O}=b(),A=g==="unified"?$c({before:x,after:O}):Ac({before:x,after:O}),{diffEditorLineNumbersMinChars:S,originalLineNumbersMinChars:E,modifiedLineNumbersMinChars:N,lineDecorationsWidth:q}=A;r.updateOptions({renderSideBySide:g==="split",renderSideBySideInlineBreakpoint:0,renderIndicators:!0,lineNumbersMinChars:S,lineDecorationsWidth:q,hideUnchangedRegions:w==="collapsed"?{enabled:!0}:{enabled:!1},wordWrap:v});try{(nt=(xe=(fe=r.getOriginalEditor)==null?void 0:fe.call(r))==null?void 0:xe.updateOptions)==null||nt.call(xe,{wordWrap:v,lineNumbersMinChars:E,lineDecorationsWidth:q})}catch{}try{(rt=(he=(Ue=r.getModifiedEditor)==null?void 0:Ue.call(r))==null?void 0:he.updateOptions)==null||rt.call(he,{wordWrap:v,lineNumbersMinChars:N,lineDecorationsWidth:q})}catch{}D({viewMode:g,originalLineNumbersMinChars:E,lineDecorationsWidth:q})}),X(()=>{if(!i()||!o||!r)return;const g=Qr(o,e.path),{before:w,after:v}=b(),x=`${e.scopeKey}:diff:${e.path}:before`,O=`${e.scopeKey}:diff:${e.path}:after`,A=on({monaco:o,cacheKey:x,value:w}),S=on({monaco:o,cacheKey:O,value:v});r.setModel({original:A,modified:S}),Yr(g).then(()=>{try{o.editor.setModelLanguage(A,g),o.editor.setModelLanguage(S,g)}catch{}})}),(()=>{var g=vc(),w=g.firstChild,v=n;return typeof v=="function"?an(v,g):n=g,pt(w,ue(ao,{get when(){return p()},children:x=>(()=>{var O=kc(),A=O.firstChild;return O.addEventListener("mouseleave",()=>{m(!1),U()}),O.addEventListener("mouseenter",()=>{m(!0),U()}),A.$$click=S=>{var N;S.preventDefault(),S.stopPropagation();const E=tt();E&&((N=e.onRequestInsertContext)==null||N.call(e,E))},A.$$mousedown=S=>{S.preventDefault(),S.stopPropagation()},ce(S=>{var E=`${x().top}px`,N=`${x().left}px`,q=e.insertContextLabel??"Add git change context to prompt",fe=e.insertContextLabel??"Add git change context to prompt";return E!==S.e&&wn(O,"top",S.e=E),N!==S.t&&wn(O,"left",S.t=N),q!==S.a&&Je(A,"aria-label",S.a=q),fe!==S.o&&Je(A,"title",S.o=fe),S},{e:void 0,t:void 0,a:void 0,o:void 0}),O})()})),g})()}Jn(["mousedown","click"]);const ol=Object.freeze(Object.defineProperty({__proto__:null,MonacoDiffViewer:Mc},Symbol.toStringTag,{value:"Module"}));var Ec=sn("<div class=monaco-viewer>");function Ic(e){const{isDark:t}=Jr();let n,r=null,o=null;const[s,i]=M(!1),a=()=>{try{r==null||r.setModel(null)}catch{}try{r==null||r.dispose()}catch{}r=null},c=()=>{!r||!e.onSave||e.onSave(r.getValue())};return At(()=>{let l=!1;(async()=>(o=await Zr(),!l&&(!n||!o||(o.editor.setTheme(t()?"vs-dark":"vs"),r=o.editor.create(n,{value:"",language:"plaintext",readOnly:!1,automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"off",renderWhitespace:"selection",fontSize:13}),r.addCommand(o.KeyMod.CtrlCmd|o.KeyCode.KeyS,c),r.onDidChangeModelContent(()=>{e.onContentChange&&e.onContentChange(r.getValue())}),i(!0)))))(),le(()=>{l=!0,i(!1),a()})}),X(()=>{!s()||!o||!r||o.editor.setTheme(t()?"vs-dark":"vs")}),X(()=>{if(!s()||!o||!r)return;const l=Qr(o,e.path),u=`${e.scopeKey}:file:${e.path}`,d=on({monaco:o,cacheKey:u,value:e.content});r.setModel(d),Yr(l).then(()=>{try{o.editor.setModelLanguage(d,l)}catch{}})}),(()=>{var l=Ec(),u=n;return typeof u=="function"?an(u,l):n=l,l})()}const sl=Object.freeze(Object.defineProperty({__proto__:null,MonacoFileViewer:Ic},Symbol.toStringTag,{value:"Module"}));export{Rr as $,xa as A,ka as B,V as C,Rc as D,Xc as E,Lt as F,Jc as G,_c as H,Gr as I,di as J,Vc as K,Gc as L,gi as M,$r as N,jc as O,Fc as P,zc as Q,_s as R,Kc as S,Wc as T,qc as U,No as V,Hc as W,Vo as X,jo as Y,Jr as Z,rl as _,xo as a,Fr as a0,Yc as a1,va as a2,$a as a3,aa as a4,Qc as a5,el as a6,Y as a7,Dc as a8,Zc as a9,nl as aa,tl as ab,lc as ac,ol as ad,sl as ae,Xn as b,Nc as c,Je as d,fr as e,Jn as f,wn as g,Oo as h,pt as i,ee as j,Ce as k,Va as l,bo as m,vo as n,Wt as o,Uc as p,_a as q,re as r,ko as s,sn as t,an as u,Bc as v,qi as w,jn as x,Se as y,Ua as z};
26
+ `).length:1}function kt(e){return String(Math.max(1,e)).length}function $c(e){const t=vt(e.before),n=vt(e.after),r=kt(t),o=kt(n),s=Math.max(r,o),i=Math.max(0,s-2),a=Math.max(2,r),c=Math.max(2,o),l=Math.max(0,s-3);return{diffEditorLineNumbersMinChars:Math.max(a,c),originalLineNumbersMinChars:a,modifiedLineNumbersMinChars:c,lineDecorationsWidth:6+i*2+l*2}}function Ac(e){const t=vt(e.before),n=vt(e.after),r=kt(t),o=kt(n),s=Math.max(r,o),i=Math.max(0,s-2),a=Math.max(2,r),c=Math.max(2,o),l=Math.max(0,s-3);return{diffEditorLineNumbersMinChars:Math.max(a,c),originalLineNumbersMinChars:a,modifiedLineNumbersMinChars:c,lineDecorationsWidth:8+i*2+l}}function Mc(e){const{isDark:t}=Jr();let n,r=null,o=null,s=null;const[i,a]=M(!1),[c,l]=M(null),[u,d]=M(null),[h,m]=M(!1),[p,C]=M(null),b=L(()=>e.patch!==void 0&&e.patch!==null?uc(e.patch):{before:e.before??"",after:e.after??""}),I=()=>{try{r==null||r.setModel(null)}catch{}try{r==null||r.dispose()}catch{}r=null},R=()=>{n&&(n.style.removeProperty("--split-original-line-number-width"),n.style.removeProperty("--split-original-delete-sign-left"),n.style.removeProperty("--split-original-gutter-width"))},D=g=>{if(n){if(s!==null&&typeof window<"u"&&(window.cancelAnimationFrame(s),s=null),g.viewMode!=="split"||typeof window>"u"){R();return}s=window.requestAnimationFrame(()=>{if(s=null,!n)return;const w=n.querySelector(".editor.original .line-numbers"),v=(w==null?void 0:w.getBoundingClientRect().width)??0,x=v>0?v:Math.max(12,g.originalLineNumbersMinChars*6);n.style.setProperty("--split-original-line-number-width",`${x}px`),n.style.setProperty("--split-original-delete-sign-left",`${x}px`),n.style.setProperty("--split-original-gutter-width",`${x+g.lineDecorationsWidth}px`)})}},G=()=>{var g;return((g=r==null?void 0:r.getModifiedEditor)==null?void 0:g.call(r))??null},tt=()=>{const g=u();if(g)return g;if(h()&&c())return{startLine:c(),endLine:c()};const w=c();return w?{startLine:w,endLine:w}:null},U=()=>{var x,O,A,S;const g=G(),w=n;if(!g||!w)return;const v=tt();if(!v){C(null);return}try{const E=(x=g.getDomNode)==null?void 0:x.call(g);if(!E){C(null);return}const N=E.querySelector(".margin"),q=E.querySelector(".monaco-scrollable-element.editor-scrollable"),fe=((O=g.getTopForLineNumber)==null?void 0:O.call(g,v.startLine))??0,xe=((A=g.getScrollTop)==null?void 0:A.call(g))??0,nt=Number(((S=g.getOption)==null?void 0:S.call(g,o.editor.EditorOption.lineHeight))??18),Ue=E.getBoundingClientRect(),he=w.getBoundingClientRect(),rt=Ue.left-he.left+((N==null?void 0:N.offsetWidth)??(q==null?void 0:q.offsetLeft)??0),eo=Ue.top-he.top+(fe-xe)+nt/2;C({top:eo,left:rt})}catch{C(null)}};return At(()=>{let g=!1;(async()=>(o=await Zr(),!g&&(!n||!o||(o.editor.setTheme(t()?"vs-dark":"vs"),r=o.editor.createDiffEditor(n,{readOnly:!0,automaticLayout:!0,renderSideBySide:!0,renderSideBySideInlineBreakpoint:0,renderMarginRevertIcon:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,renderWhitespace:"selection",fontSize:13,wordWrap:e.wordWrap==="on"?"on":"off",glyphMargin:!1,folding:!1,lineNumbersMinChars:4,lineDecorationsWidth:12,diffAlgorithm:"legacy",maxComputationTime:1e4}),a(!0),U()))))(),le(()=>{g=!0,s!==null&&typeof window<"u"&&(window.cancelAnimationFrame(s),s=null),R(),a(!1),I()})}),X(()=>{!i()||!o||!r||o.editor.setTheme(t()?"vs-dark":"vs")}),X(()=>{n&&(n.dataset.viewMode=e.viewMode==="split"?"split":"unified")}),X(()=>{var v;if(!i()||!o||!r)return;const g=(v=r.getModifiedEditor)==null?void 0:v.call(r);if(!(g!=null&&g.onDidChangeCursorSelection))return;const w=g.onDidChangeCursorSelection(x=>{var A;const O=x==null?void 0:x.selection;if(!O||(A=O.isEmpty)!=null&&A.call(O)){d(null),U();return}d({startLine:Math.min(O.startLineNumber,O.endLineNumber),endLine:Math.max(O.startLineNumber,O.endLineNumber)}),U()});le(()=>{var x;try{(x=w==null?void 0:w.dispose)==null||x.call(w)}catch{}})}),X(()=>{var O;if(!i()||!o||!r)return;const g=G();if(!(g!=null&&g.onMouseMove)||!(g!=null&&g.onMouseLeave)||!(g!=null&&g.onMouseDown))return;const w=g.onMouseMove(A=>{var E,N;const S=(N=(E=A==null?void 0:A.target)==null?void 0:E.position)==null?void 0:N.lineNumber;l(typeof S=="number"?S:null),U()}),v=g.onMouseLeave(()=>{h()||l(null),U()}),x=(O=g.onDidScrollChange)==null?void 0:O.call(g,()=>{U()});le(()=>{var A,S,E;try{(A=w==null?void 0:w.dispose)==null||A.call(w),(S=v==null?void 0:v.dispose)==null||S.call(v),(E=x==null?void 0:x.dispose)==null||E.call(x)}catch{}})}),X(()=>{if(!i()||!o||!r)return;tt()||C(null),U()}),X(()=>{var fe,xe,nt,Ue,he,rt;if(!i()||!o||!r)return;const g=e.viewMode==="unified"?"unified":"split",w=e.contextMode==="collapsed"?"collapsed":"expanded",v=e.wordWrap==="on"?"on":"off",{before:x,after:O}=b(),A=g==="unified"?$c({before:x,after:O}):Ac({before:x,after:O}),{diffEditorLineNumbersMinChars:S,originalLineNumbersMinChars:E,modifiedLineNumbersMinChars:N,lineDecorationsWidth:q}=A;r.updateOptions({renderSideBySide:g==="split",renderSideBySideInlineBreakpoint:0,renderIndicators:!0,lineNumbersMinChars:S,lineDecorationsWidth:q,hideUnchangedRegions:w==="collapsed"?{enabled:!0}:{enabled:!1},wordWrap:v});try{(nt=(xe=(fe=r.getOriginalEditor)==null?void 0:fe.call(r))==null?void 0:xe.updateOptions)==null||nt.call(xe,{wordWrap:v,lineNumbersMinChars:E,lineDecorationsWidth:q})}catch{}try{(rt=(he=(Ue=r.getModifiedEditor)==null?void 0:Ue.call(r))==null?void 0:he.updateOptions)==null||rt.call(he,{wordWrap:v,lineNumbersMinChars:N,lineDecorationsWidth:q})}catch{}D({viewMode:g,originalLineNumbersMinChars:E,lineDecorationsWidth:q})}),X(()=>{if(!i()||!o||!r)return;const g=Qr(o,e.path),{before:w,after:v}=b(),x=`${e.scopeKey}:diff:${e.path}:before`,O=`${e.scopeKey}:diff:${e.path}:after`,A=on({monaco:o,cacheKey:x,value:w}),S=on({monaco:o,cacheKey:O,value:v});r.setModel({original:A,modified:S}),Yr(g).then(()=>{try{o.editor.setModelLanguage(A,g),o.editor.setModelLanguage(S,g)}catch{}})}),(()=>{var g=vc(),w=g.firstChild,v=n;return typeof v=="function"?an(v,g):n=g,pt(w,ue(ao,{get when(){return p()},children:x=>(()=>{var O=kc(),A=O.firstChild;return O.addEventListener("mouseleave",()=>{m(!1),U()}),O.addEventListener("mouseenter",()=>{m(!0),U()}),A.$$click=S=>{var N;S.preventDefault(),S.stopPropagation();const E=tt();E&&((N=e.onRequestInsertContext)==null||N.call(e,E))},A.$$mousedown=S=>{S.preventDefault(),S.stopPropagation()},ce(S=>{var E=`${x().top}px`,N=`${x().left}px`,q=e.insertContextLabel??"Add git change context to prompt",fe=e.insertContextLabel??"Add git change context to prompt";return E!==S.e&&wn(O,"top",S.e=E),N!==S.t&&wn(O,"left",S.t=N),q!==S.a&&Je(A,"aria-label",S.a=q),fe!==S.o&&Je(A,"title",S.o=fe),S},{e:void 0,t:void 0,a:void 0,o:void 0}),O})()})),g})()}Jn(["mousedown","click"]);const ol=Object.freeze(Object.defineProperty({__proto__:null,MonacoDiffViewer:Mc},Symbol.toStringTag,{value:"Module"}));var Ec=sn("<div class=monaco-viewer>");function Ic(e){const{isDark:t}=Jr();let n,r=null,o=null;const[s,i]=M(!1),a=()=>{try{r==null||r.setModel(null)}catch{}try{r==null||r.dispose()}catch{}r=null},c=()=>{!r||!e.onSave||e.onSave(r.getValue())};return At(()=>{let l=!1;(async()=>(o=await Zr(),!l&&(!n||!o||(o.editor.setTheme(t()?"vs-dark":"vs"),r=o.editor.create(n,{value:"",language:"plaintext",readOnly:!1,automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"off",renderWhitespace:"selection",fontSize:13}),r.addCommand(o.KeyMod.CtrlCmd|o.KeyCode.KeyS,c),r.onDidChangeModelContent(()=>{e.onContentChange&&e.onContentChange(r.getValue())}),i(!0)))))(),le(()=>{l=!0,i(!1),a()})}),X(()=>{!s()||!o||!r||o.editor.setTheme(t()?"vs-dark":"vs")}),X(()=>{if(!s()||!o||!r)return;const l=Qr(o,e.path),u=`${e.scopeKey}:file:${e.path}`,d=on({monaco:o,cacheKey:u,value:e.content});r.setModel(d),Yr(l).then(()=>{try{o.editor.setModelLanguage(d,l)}catch{}})}),(()=>{var l=Ec(),u=n;return typeof u=="function"?an(u,l):n=l,l})()}const sl=Object.freeze(Object.defineProperty({__proto__:null,MonacoFileViewer:Ic},Symbol.toStringTag,{value:"Module"}));export{jo as $,jn as A,Se as B,Ua as C,Rc as D,Xc as E,xa as F,ka as G,V as H,Lt as I,Jc as J,_c as K,Gr as L,di as M,Vc as N,Gc as O,Fc as P,gi as Q,$r as R,jc as S,zc as T,_s as U,Kc as V,Wc as W,qc as X,No as Y,Hc as Z,Vo as _,ee as a,rl as a0,Rr as a1,Fr as a2,Yc as a3,va as a4,$a as a5,aa as a6,Qc as a7,el as a8,Y as a9,Zc as aa,nl as ab,tl as ac,ol as ad,sl as ae,Oo as b,xo as c,Jn as d,wn as e,Va as f,Ce as g,Jr as h,pt as i,Nc as j,ko as k,Xn as l,bo as m,lc as n,fr as o,Uc as p,vo as q,Dc as r,Je as s,sn as t,an as u,Wt as v,_a as w,re as x,Bc as y,qi as z};
@@ -1 +1 @@
1
- import{t as u,i as d,d as $,a as S}from"./monaco-viewer-DnczYBfh.js";import{n as f,S as A,a as b,F as w}from"./git-diff-vendor-CSgooKT_.js";import{r as F}from"./main-ByuKWHRz.js";import{t as i,u as z}from"./index--0EL0_Tu.js";var P=u("<div class=tool-call-todo-empty>"),R=u("<div class=tool-call-todo-region><div class=tool-call-todos role=list>"),k=u("<span>"),B=u("<div class=tool-call-todo-item role=listitem><span class=tool-call-todo-checkbox></span><div class=tool-call-todo-body><div class=tool-call-todo-heading><span class=tool-call-todo-text>");function E(t){return t==="completed"||t==="in_progress"||t==="cancelled"?t:"pending"}function y(t){if(!t)return[];const{metadata:e}=F(t),o=Array.isArray(e.todos)?e.todos:[],m=[];for(let n=0;n<o.length;n++){const r=o[n],s=typeof(r==null?void 0:r.content)=="string"?r.content.trim():"";if(!s)continue;const c=E(r.status),a=typeof(r==null?void 0:r.id)=="string"&&r.id.length>0?r.id:`${n}-${s}`;m.push({id:a,content:s,status:c})}return m}function T(t){return t.reduce((e,o)=>(e.total+=1,e[o.status]=(e[o.status]||0)+1,e),{total:0,pending:0,in_progress:0,completed:0,cancelled:0})}function G(t,e){switch(e){case"completed":return t("toolCall.renderer.todo.status.completed");case"in_progress":return t("toolCall.renderer.todo.status.inProgress");case"cancelled":return t("toolCall.renderer.todo.status.cancelled");default:return t("toolCall.renderer.todo.status.pending")}}function I(t){const{t:e}=z(),o=y(t.state);return T(o).total===0?(()=>{var n=P();return d(n,()=>t.emptyLabel??e("toolCall.renderer.todo.empty")),n})():(()=>{var n=R(),r=n.firstChild;return d(r,f(w,{each:o,children:s=>{const c=G(e,s.status);return(()=>{var a=B(),g=a.firstChild,L=g.nextSibling,p=L.firstChild,x=p.firstChild;return $(g,"aria-label",c),d(x,()=>s.content),d(p,f(A,{get when(){return t.showStatusLabel!==!1},get children(){var l=k();return d(l,c),b(()=>S(l,`tool-call-todo-status tool-call-todo-status-${s.status}`)),l}}),null),b(l=>{var v=s.status==="completed",h=s.status==="cancelled",C=s.status==="in_progress",_=s.status;return v!==l.e&&a.classList.toggle("tool-call-todo-item-completed",l.e=v),h!==l.t&&a.classList.toggle("tool-call-todo-item-cancelled",l.t=h),C!==l.a&&a.classList.toggle("tool-call-todo-item-active",l.a=C),_!==l.o&&$(g,"data-status",l.o=_),l},{e:void 0,t:void 0,a:void 0,o:void 0}),a})()}})),n})()}function N(t){if(!t)return i("toolCall.renderer.todo.title.plan");const e=y(t);if(t.status!=="completed"||e.length===0)return i("toolCall.renderer.todo.title.plan");const o=T(e);return o.pending===o.total?i("toolCall.renderer.todo.title.creating"):o.completed===o.total?i("toolCall.renderer.todo.title.completing"):i("toolCall.renderer.todo.title.updating")}const H={tools:["todowrite","todoread"],getAction:()=>i("toolCall.renderer.action.planning"),getTitle({toolState:t}){return N(t())},renderBody({toolState:t}){const e=t();return e?f(I,{state:e}):null}};export{I as T,H as t};
1
+ import{t as u,i as d,s as $,c as S}from"./monaco-viewer-OXO07Mos.js";import{n as f,S as A,a as b,F as w}from"./git-diff-vendor-DaSE45SW.js";import{r as F}from"./main-y4WbiJBN.js";import{t as i,u as z}from"./index-BWhMWtCP.js";var P=u("<div class=tool-call-todo-empty>"),R=u("<div class=tool-call-todo-region><div class=tool-call-todos role=list>"),k=u("<span>"),B=u("<div class=tool-call-todo-item role=listitem><span class=tool-call-todo-checkbox></span><div class=tool-call-todo-body><div class=tool-call-todo-heading><span class=tool-call-todo-text>");function E(t){return t==="completed"||t==="in_progress"||t==="cancelled"?t:"pending"}function y(t){if(!t)return[];const{metadata:e}=F(t),o=Array.isArray(e.todos)?e.todos:[],m=[];for(let n=0;n<o.length;n++){const r=o[n],s=typeof(r==null?void 0:r.content)=="string"?r.content.trim():"";if(!s)continue;const c=E(r.status),a=typeof(r==null?void 0:r.id)=="string"&&r.id.length>0?r.id:`${n}-${s}`;m.push({id:a,content:s,status:c})}return m}function T(t){return t.reduce((e,o)=>(e.total+=1,e[o.status]=(e[o.status]||0)+1,e),{total:0,pending:0,in_progress:0,completed:0,cancelled:0})}function G(t,e){switch(e){case"completed":return t("toolCall.renderer.todo.status.completed");case"in_progress":return t("toolCall.renderer.todo.status.inProgress");case"cancelled":return t("toolCall.renderer.todo.status.cancelled");default:return t("toolCall.renderer.todo.status.pending")}}function I(t){const{t:e}=z(),o=y(t.state);return T(o).total===0?(()=>{var n=P();return d(n,()=>t.emptyLabel??e("toolCall.renderer.todo.empty")),n})():(()=>{var n=R(),r=n.firstChild;return d(r,f(w,{each:o,children:s=>{const c=G(e,s.status);return(()=>{var a=B(),g=a.firstChild,L=g.nextSibling,p=L.firstChild,x=p.firstChild;return $(g,"aria-label",c),d(x,()=>s.content),d(p,f(A,{get when(){return t.showStatusLabel!==!1},get children(){var l=k();return d(l,c),b(()=>S(l,`tool-call-todo-status tool-call-todo-status-${s.status}`)),l}}),null),b(l=>{var v=s.status==="completed",h=s.status==="cancelled",C=s.status==="in_progress",_=s.status;return v!==l.e&&a.classList.toggle("tool-call-todo-item-completed",l.e=v),h!==l.t&&a.classList.toggle("tool-call-todo-item-cancelled",l.t=h),C!==l.a&&a.classList.toggle("tool-call-todo-item-active",l.a=C),_!==l.o&&$(g,"data-status",l.o=_),l},{e:void 0,t:void 0,a:void 0,o:void 0}),a})()}})),n})()}function N(t){if(!t)return i("toolCall.renderer.todo.title.plan");const e=y(t);if(t.status!=="completed"||e.length===0)return i("toolCall.renderer.todo.title.plan");const o=T(e);return o.pending===o.total?i("toolCall.renderer.todo.title.creating"):o.completed===o.total?i("toolCall.renderer.todo.title.completing"):i("toolCall.renderer.todo.title.updating")}const H={tools:["todowrite","todoread"],getAction:()=>i("toolCall.renderer.action.planning"),getTitle({toolState:t}){return N(t())},renderBody({toolState:t}){const e=t();return e?f(I,{state:e}):null}};export{I as T,H as t};