@neuralnomads/codenomad-dev 0.13.3-dev-20260402-e82e529a → 0.13.3-dev-20260402-19a4c3df

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 (46) hide show
  1. package/dist/config/schema.js +1 -0
  2. package/dist/server/http-server.js +2 -0
  3. package/dist/server/routes/remote-servers.js +142 -0
  4. package/dist/settings/migrate.js +5 -0
  5. package/dist/settings/service.js +64 -4
  6. package/dist/workspaces/manager.js +2 -0
  7. package/dist/workspaces/runtime.js +2 -1
  8. package/package.json +1 -1
  9. package/public/assets/{ChangesTab-CR9-DiDp.js → ChangesTab-CmUh1lD6.js} +2 -2
  10. package/public/assets/{DiffToolbar-DDj2or5F.js → DiffToolbar-BO2mraG6.js} +1 -1
  11. package/public/assets/{FilesTab-WqNou6Ai.js → FilesTab-eqP9iJFz.js} +2 -2
  12. package/public/assets/{GitChangesTab-BwmFurGu.js → GitChangesTab-DyQyRmoO.js} +2 -2
  13. package/public/assets/{SplitFilePanel-Dh1S3Bx7.js → SplitFilePanel-DvXBnKhO.js} +1 -1
  14. package/public/assets/{StatusTab-B87q8a9A.js → StatusTab-B2B6v-Eg.js} +1 -1
  15. package/public/assets/{bundle-full-Cpu11oec.js → bundle-full-CWbff1l0.js} +1 -1
  16. package/public/assets/{diff-viewer-DRA-UVaP.js → diff-viewer-D0a6LOK6.js} +1 -1
  17. package/public/assets/index-BTg3IYTI.js +1 -0
  18. package/public/assets/{index-D7RpN-Kf.js → index-C9VkLCt-.js} +1 -1
  19. package/public/assets/index-CY6GNG9A.js +1 -0
  20. package/public/assets/index-CfoVNw2d.js +2 -0
  21. package/public/assets/index-DHqgtrcH.js +1 -0
  22. package/public/assets/index-DPhIvE8c.js +1 -0
  23. package/public/assets/{index-BjSF6wzm.js → index-Dl_aI0rQ.js} +1 -1
  24. package/public/assets/index-Wj66Yen3.js +1 -0
  25. package/public/assets/{index-DcG1bjdf.css → index-Y07FhVRK.css} +1 -1
  26. package/public/assets/index-vxahkr1I.js +1 -0
  27. package/public/assets/{loading-D50lUPVl.js → loading-BMaruoBO.js} +1 -1
  28. package/public/assets/main-CH4aDUD4.js +56 -0
  29. package/public/assets/{markdown-BtGnYmbv.js → markdown-2ayBrByq.js} +3 -3
  30. package/public/assets/monaco-viewer-DUhWC7BI.js +15 -0
  31. package/public/assets/{todo-CshHqPz5.js → todo-D5pIlYqO.js} +1 -1
  32. package/public/assets/{tool-call-LDmo-9Rl.js → tool-call-BuEF2-g9.js} +3 -3
  33. package/public/assets/{unified-picker-C-C3Oz_t.js → unified-picker-C-OVvqSd.js} +1 -1
  34. package/public/assets/{wrap-text-Dr6EjY_H.js → wrap-text-DD_eCVvu.js} +1 -1
  35. package/public/index.html +4 -4
  36. package/public/loading.html +4 -4
  37. package/public/sw.js +1 -1
  38. package/public/assets/index-BaoXz6VG.js +0 -1
  39. package/public/assets/index-BgujSDdi.js +0 -1
  40. package/public/assets/index-CRtA_Run.js +0 -2
  41. package/public/assets/index-D7BEMtle.js +0 -1
  42. package/public/assets/index-DeriVoYn.js +0 -1
  43. package/public/assets/index-Dgk0HDM-.js +0 -1
  44. package/public/assets/index-q3ssEM4m.js +0 -1
  45. package/public/assets/main-CEwS0Qyy.js +0 -56
  46. package/public/assets/monaco-viewer-UU9TfOpS.js +0 -15
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BUKiar2Z.js","assets/tex-Cppo0RY3.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-WgofotgN.js","assets/csharp-CX12Zw3r.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-CCoi5OLL.js","assets/vue-html-DAAvJJDi.js","assets/vue-vine-_Ih-lPRR.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
- var Ln=Object.defineProperty;var Pn=(r,e,t)=>e in r?Ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var f=(r,e,t)=>Pn(r,typeof e!="symbol"?e+"":e,t);import{_ as l}from"./index-CRtA_Run.js";import"./git-diff-vendor-CAv-4upN.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-UU9TfOpS.js";let k=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function kn(r){return nt(r)}function nt(r){return Array.isArray(r)?In(r):r instanceof RegExp?r:typeof r=="object"?wn(r):r}function In(r){let e=[];for(let t=0,n=r.length;t<n;t++)e[t]=nt(r[t]);return e}function wn(r){let e={};for(let t in r)e[t]=nt(r[t]);return e}function Vt(r,...e){return e.forEach(t=>{for(let n in t)r[n]=t[n]}),r}function Mt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?Mt(r.substring(0,r.length-1)):r.substr(~e+1)}var Me=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,pe=class{static hasCaptures(r){return r===null?!1:(Me.lastIndex=0,Me.test(r))}static replaceCaptures(r,e,t){return r.replace(Me,(n,i,o,s)=>{let c=t[parseInt(i||o,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function Bt(r,e){return r<e?-1:r>e?1:0}function Gt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let i=0;i<t;i++){let o=Bt(r[i],e[i]);if(o!==0)return o}return 0}return t-n}function pt(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function jt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var $t=class{constructor(r){f(this,"cache",new Map);this.fn=r}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},be=class{constructor(r,e,t){f(this,"_cachedMatchRoot",new $t(r=>this._root.match(r)));this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Dn(r),e)}static createFromParsedTheme(r,e){return xn(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,n=this._cachedMatchRoot.get(e).find(i=>On(r.parent,i.parentScopes));return n?new Ut(n.fontStyle,n.foreground,n.background):null}},Be=class ye{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new ye(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new ye(t,e[n]);return t}push(e){return new ye(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function On(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let n=e[t],i=!1;if(n===">"){if(t===e.length-1)return!1;n=e[++t],i=!0}for(;r&&!Cn(r.scopeName,n);){if(i)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Cn(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Ut=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Dn(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],n=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),c=d.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let d=s.settings.fontStyle.split(" ");for(let h=0,p=d.length;h<p;h++)switch(d[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&pt(s.settings.foreground)&&(u=s.settings.foreground);let m=null;typeof s.settings.background=="string"&&pt(s.settings.background)&&(m=s.settings.background);for(let d=0,h=c.length;d<h;d++){let _=c[d].trim().split(" "),b=_[_.length-1],v=null;_.length>1&&(v=_.slice(0,_.length-1),v.reverse()),t[n++]=new Nn(b,v,i,a,u,m)}}return t}var Nn=class{constructor(r,e,t,n,i,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}},N=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(N||{});function xn(r,e){r.sort((a,u)=>{let m=Bt(a.scope,u.scope);return m!==0||(m=Gt(a.parentScopes,u.parentScopes),m!==0)?m:a.index-u.index});let t=0,n="#000000",i="#ffffff";for(;r.length>=1&&r[0].scope==="";){let a=r.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let o=new Vn(e),s=new Ut(t,o.getId(n),o.getId(i)),c=new Bn(new Fe(0,null,-1,0,0),[]);for(let a=0,u=r.length;a<u;a++){let m=r[a];c.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new be(o,s,c)}var Vn=class{constructor(r){f(this,"_isFrozen");f(this,"_lastColorId");f(this,"_id2color");f(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Mn=Object.freeze([]),Fe=class Ht{constructor(e,t,n,i,o){f(this,"scopeDepth");f(this,"parentScopes");f(this,"fontStyle");f(this,"foreground");f(this,"background");this.scopeDepth=e,this.parentScopes=t||Mn,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Ht(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Bn=class ze{constructor(e,t=[],n={}){f(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,t.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=t.parentScopes.length);){const o=t.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(ze._cmpBySpecificity),t}insert(e,t,n,i,o,s){if(t===""){this._doInsertHere(e,n,i,o,s);return}let c=t.indexOf("."),a,u;c===-1?(a=t,u=""):(a=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(a)?m=this._children[a]:(m=new ze(this._mainRule.clone(),Fe.cloneArr(this._rulesWithParentScopes)),this._children[a]=m),m.insert(e+1,u,n,i,o,s)}_doInsertHere(e,t,n,i,o){if(t===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let a=this._rulesWithParentScopes[s];if(Gt(a.parentScopes,t)===0){a.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Fe(e,t,n,i,o))}},Q=class B{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=B.getLanguageId(e),n=B.getTokenType(e),i=B.getFontStyle(e),o=B.getForeground(e),s=B.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,n,i,o,s,c){let a=B.getLanguageId(e),u=B.getTokenType(e),m=B.containsBalancedBrackets(e)?1:0,d=B.getFontStyle(e),h=B.getForeground(e),p=B.getBackground(e);return t!==0&&(a=t),n!==8&&(u=n),i!==null&&(m=i?1:0),o!==-1&&(d=o),s!==0&&(h=s),c!==0&&(p=c),(a<<0|u<<8|m<<10|d<<11|h<<15|p<<24)>>>0}};function Re(r,e){const t=[],n=Gn(r);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(t.push({matcher:u,priority:a}),i!==",")break;i=n.next()}return t;function o(){if(i==="-"){i=n.next();const a=o();return u=>!!a&&!a(u)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(ft(i)){const a=[];do a.push(i),i=n.next();while(ft(i));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return m=>a.every(d=>d(m))}function c(){const a=[];let u=s();for(;u&&(a.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return m=>a.some(d=>d(m))}}function ft(r){return!!r&&!!r.match(/[\w\.:]+/)}function Gn(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function Wt(r){typeof r.dispose=="function"&&r.dispose()}var oe=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},jn=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},$n=class{constructor(){f(this,"_references",[]);f(this,"_seenReferenceKeys",new Set);f(this,"visitedRule",new Set)}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Un=class{constructor(r,e){f(this,"seenFullScopeRequests",new Set);f(this,"seenPartialScopeRequests",new Set);f(this,"Q");this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new oe(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new $n;for(const t of r)Hn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof oe){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Hn(r,e,t,n){const i=t.lookup(r.scopeName);if(!i){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);r instanceof oe?Ee({baseGrammar:o,selfGrammar:i},n):qe(r.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=t.injections(r.scopeName);if(s)for(const c of s)n.add(new oe(c))}function qe(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];Te([n],e,t)}}function Ee(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&Te(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&Te(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function Te(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const i=n.repository?Vt({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Te(n.patterns,{...e,repository:i},t);const o=n.include;if(!o)continue;const s=Ft(o);switch(s.kind){case 0:Ee({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ee(e,t);break;case 2:qe(s.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};s.kind===4?qe(s.ruleName,a,t):Ee(a,t)}else s.kind===4?t.add(new jn(s.scopeName,s.ruleName)):t.add(new oe(s.scopeName));break}}}var Wn=class{constructor(){f(this,"kind",0)}},Fn=class{constructor(){f(this,"kind",1)}},zn=class{constructor(r){f(this,"kind",2);this.ruleName=r}},qn=class{constructor(r){f(this,"kind",3);this.scopeName=r}},Kn=class{constructor(r,e){f(this,"kind",4);this.scopeName=r,this.ruleName=e}};function Ft(r){if(r==="$base")return new Wn;if(r==="$self")return new Fn;const e=r.indexOf("#");if(e===-1)return new qn(r);if(e===0)return new zn(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new Kn(t,n)}}var Yn=/\\(\d+)/,_t=/\\(\d+)/g,Jn=-1,zt=-2;var de=class{constructor(r,e,t,n){f(this,"$location");f(this,"id");f(this,"_nameIsCapturing");f(this,"_name");f(this,"_contentNameIsCapturing");f(this,"_contentName");this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=pe.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=pe.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${Mt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:pe.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:pe.replaceCaptures(this._contentName,r,e)}},Xn=class extends de{constructor(e,t,n,i,o){super(e,t,n,i);f(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},Qn=class extends de{constructor(e,t,n,i,o){super(e,t,n,null);f(this,"_match");f(this,"captures");f(this,"_cachedCompiledPatterns");this._match=new se(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ae,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},gt=class extends de{constructor(e,t,n,i,o){super(e,t,n,i);f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ae,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ke=class extends de{constructor(e,t,n,i,o,s,c,a,u,m){super(e,t,n,i);f(this,"_begin");f(this,"beginCaptures");f(this,"_end");f(this,"endHasBackReferences");f(this,"endCaptures");f(this,"applyEndPatternLast");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this._begin=new se(o,this.id),this.beginCaptures=s,this._end=new se(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ae;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ae=class extends de{constructor(e,t,n,i,o,s,c,a,u){super(e,t,n,i);f(this,"_begin");f(this,"beginCaptures");f(this,"whileCaptures");f(this,"_while");f(this,"whileHasBackReferences");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");f(this,"_cachedCompiledWhilePatterns");this._begin=new se(o,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new se(c,zt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ae;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ae,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},qt=class D{static createCaptureRule(e,t,n,i,o){return e.registerRule(s=>new Xn(t,s,n,i,o))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new Qn(e.$vscodeTextmateLocation,e.id,e.name,e.match,D._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=Vt({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new gt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,D._compilePatterns(o,t,n))}return e.while?new Ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,D._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,D._compileCaptures(e.whileCaptures||e.captures,t,n),D._compilePatterns(e.patterns,t,n)):new Ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,D._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,D._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,D._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let a=0;e[s].patterns&&(a=D.getCompiledRuleId(e[s],t,n)),i[c]=D.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return i}static _compilePatterns(e,t,n){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const c=e[o];let a=-1;if(c.include){const u=Ft(c.include);switch(u.kind){case 0:case 1:a=D.getCompiledRuleId(n[c.include],t,n);break;case 2:let m=n[u.ruleName];m&&(a=D.getCompiledRuleId(m,t,n));break;case 3:case 4:const d=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(d,n);if(p)if(h){let _=p.repository[h];_&&(a=D.getCompiledRuleId(_,t,p.repository))}else a=D.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=D.getCompiledRuleId(c,t,n);if(a!==-1){const u=t.getRule(a);let m=!1;if((u instanceof gt||u instanceof Ke||u instanceof Ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},se=class Kt{constructor(e,t){f(this,"source");f(this,"ruleId");f(this,"hasAnchor");f(this,"hasBackReferences");f(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],s=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const u=e.charAt(c+1);u==="z"?(o.push(e.substring(i,c)),o.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Yn.test(this.source):this.hasBackReferences=!1}clone(){return new Kt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=t.map(i=>e.substring(i.start,i.end));return _t.lastIndex=0,this.source.replace(_t,(i,o)=>jt(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],n=[],i=[],o,s,c,a;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),e[o]=c,t[o]=c,n[o]=c,i[o]=c,c==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="￿",t[o+1]="￿",n[o+1]="A",i[o+1]="A"):a==="G"?(e[o+1]="￿",t[o+1]="G",n[o+1]="￿",i[o+1]="G"):(e[o+1]=a,t[o+1]=a,n[o+1]=a,i[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ae=class{constructor(){f(this,"_items");f(this,"_hasAnchors");f(this,"_cached");f(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new yt(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let n=this._items.map(i=>i.resolveAnchors(e,t));return new yt(r,n,this._items.map(i=>i.ruleId))}},yt=class{constructor(r,e,t){f(this,"scanner");this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
2
+ var Ln=Object.defineProperty;var Pn=(r,e,t)=>e in r?Ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var f=(r,e,t)=>Pn(r,typeof e!="symbol"?e+"":e,t);import{_ as l}from"./index-CfoVNw2d.js";import"./git-diff-vendor-CAv-4upN.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-DUhWC7BI.js";let k=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function kn(r){return nt(r)}function nt(r){return Array.isArray(r)?In(r):r instanceof RegExp?r:typeof r=="object"?wn(r):r}function In(r){let e=[];for(let t=0,n=r.length;t<n;t++)e[t]=nt(r[t]);return e}function wn(r){let e={};for(let t in r)e[t]=nt(r[t]);return e}function Vt(r,...e){return e.forEach(t=>{for(let n in t)r[n]=t[n]}),r}function Mt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?Mt(r.substring(0,r.length-1)):r.substr(~e+1)}var Me=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,pe=class{static hasCaptures(r){return r===null?!1:(Me.lastIndex=0,Me.test(r))}static replaceCaptures(r,e,t){return r.replace(Me,(n,i,o,s)=>{let c=t[parseInt(i||o,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function Bt(r,e){return r<e?-1:r>e?1:0}function Gt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let i=0;i<t;i++){let o=Bt(r[i],e[i]);if(o!==0)return o}return 0}return t-n}function pt(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function jt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var $t=class{constructor(r){f(this,"cache",new Map);this.fn=r}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},be=class{constructor(r,e,t){f(this,"_cachedMatchRoot",new $t(r=>this._root.match(r)));this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Dn(r),e)}static createFromParsedTheme(r,e){return xn(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,n=this._cachedMatchRoot.get(e).find(i=>On(r.parent,i.parentScopes));return n?new Ut(n.fontStyle,n.foreground,n.background):null}},Be=class ye{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new ye(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new ye(t,e[n]);return t}push(e){return new ye(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function On(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let n=e[t],i=!1;if(n===">"){if(t===e.length-1)return!1;n=e[++t],i=!0}for(;r&&!Cn(r.scopeName,n);){if(i)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Cn(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Ut=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Dn(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],n=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),c=d.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let d=s.settings.fontStyle.split(" ");for(let h=0,p=d.length;h<p;h++)switch(d[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&pt(s.settings.foreground)&&(u=s.settings.foreground);let m=null;typeof s.settings.background=="string"&&pt(s.settings.background)&&(m=s.settings.background);for(let d=0,h=c.length;d<h;d++){let _=c[d].trim().split(" "),b=_[_.length-1],v=null;_.length>1&&(v=_.slice(0,_.length-1),v.reverse()),t[n++]=new Nn(b,v,i,a,u,m)}}return t}var Nn=class{constructor(r,e,t,n,i,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}},N=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(N||{});function xn(r,e){r.sort((a,u)=>{let m=Bt(a.scope,u.scope);return m!==0||(m=Gt(a.parentScopes,u.parentScopes),m!==0)?m:a.index-u.index});let t=0,n="#000000",i="#ffffff";for(;r.length>=1&&r[0].scope==="";){let a=r.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let o=new Vn(e),s=new Ut(t,o.getId(n),o.getId(i)),c=new Bn(new Fe(0,null,-1,0,0),[]);for(let a=0,u=r.length;a<u;a++){let m=r[a];c.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new be(o,s,c)}var Vn=class{constructor(r){f(this,"_isFrozen");f(this,"_lastColorId");f(this,"_id2color");f(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Mn=Object.freeze([]),Fe=class Ht{constructor(e,t,n,i,o){f(this,"scopeDepth");f(this,"parentScopes");f(this,"fontStyle");f(this,"foreground");f(this,"background");this.scopeDepth=e,this.parentScopes=t||Mn,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Ht(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Bn=class ze{constructor(e,t=[],n={}){f(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,t.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=t.parentScopes.length);){const o=t.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(ze._cmpBySpecificity),t}insert(e,t,n,i,o,s){if(t===""){this._doInsertHere(e,n,i,o,s);return}let c=t.indexOf("."),a,u;c===-1?(a=t,u=""):(a=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(a)?m=this._children[a]:(m=new ze(this._mainRule.clone(),Fe.cloneArr(this._rulesWithParentScopes)),this._children[a]=m),m.insert(e+1,u,n,i,o,s)}_doInsertHere(e,t,n,i,o){if(t===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let a=this._rulesWithParentScopes[s];if(Gt(a.parentScopes,t)===0){a.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Fe(e,t,n,i,o))}},Q=class B{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=B.getLanguageId(e),n=B.getTokenType(e),i=B.getFontStyle(e),o=B.getForeground(e),s=B.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,n,i,o,s,c){let a=B.getLanguageId(e),u=B.getTokenType(e),m=B.containsBalancedBrackets(e)?1:0,d=B.getFontStyle(e),h=B.getForeground(e),p=B.getBackground(e);return t!==0&&(a=t),n!==8&&(u=n),i!==null&&(m=i?1:0),o!==-1&&(d=o),s!==0&&(h=s),c!==0&&(p=c),(a<<0|u<<8|m<<10|d<<11|h<<15|p<<24)>>>0}};function Re(r,e){const t=[],n=Gn(r);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(t.push({matcher:u,priority:a}),i!==",")break;i=n.next()}return t;function o(){if(i==="-"){i=n.next();const a=o();return u=>!!a&&!a(u)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(ft(i)){const a=[];do a.push(i),i=n.next();while(ft(i));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return m=>a.every(d=>d(m))}function c(){const a=[];let u=s();for(;u&&(a.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return m=>a.some(d=>d(m))}}function ft(r){return!!r&&!!r.match(/[\w\.:]+/)}function Gn(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function Wt(r){typeof r.dispose=="function"&&r.dispose()}var oe=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},jn=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},$n=class{constructor(){f(this,"_references",[]);f(this,"_seenReferenceKeys",new Set);f(this,"visitedRule",new Set)}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Un=class{constructor(r,e){f(this,"seenFullScopeRequests",new Set);f(this,"seenPartialScopeRequests",new Set);f(this,"Q");this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new oe(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new $n;for(const t of r)Hn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof oe){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Hn(r,e,t,n){const i=t.lookup(r.scopeName);if(!i){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);r instanceof oe?Ee({baseGrammar:o,selfGrammar:i},n):qe(r.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=t.injections(r.scopeName);if(s)for(const c of s)n.add(new oe(c))}function qe(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];Te([n],e,t)}}function Ee(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&Te(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&Te(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function Te(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const i=n.repository?Vt({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Te(n.patterns,{...e,repository:i},t);const o=n.include;if(!o)continue;const s=Ft(o);switch(s.kind){case 0:Ee({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ee(e,t);break;case 2:qe(s.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};s.kind===4?qe(s.ruleName,a,t):Ee(a,t)}else s.kind===4?t.add(new jn(s.scopeName,s.ruleName)):t.add(new oe(s.scopeName));break}}}var Wn=class{constructor(){f(this,"kind",0)}},Fn=class{constructor(){f(this,"kind",1)}},zn=class{constructor(r){f(this,"kind",2);this.ruleName=r}},qn=class{constructor(r){f(this,"kind",3);this.scopeName=r}},Kn=class{constructor(r,e){f(this,"kind",4);this.scopeName=r,this.ruleName=e}};function Ft(r){if(r==="$base")return new Wn;if(r==="$self")return new Fn;const e=r.indexOf("#");if(e===-1)return new qn(r);if(e===0)return new zn(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new Kn(t,n)}}var Yn=/\\(\d+)/,_t=/\\(\d+)/g,Jn=-1,zt=-2;var de=class{constructor(r,e,t,n){f(this,"$location");f(this,"id");f(this,"_nameIsCapturing");f(this,"_name");f(this,"_contentNameIsCapturing");f(this,"_contentName");this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=pe.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=pe.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${Mt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:pe.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:pe.replaceCaptures(this._contentName,r,e)}},Xn=class extends de{constructor(e,t,n,i,o){super(e,t,n,i);f(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},Qn=class extends de{constructor(e,t,n,i,o){super(e,t,n,null);f(this,"_match");f(this,"captures");f(this,"_cachedCompiledPatterns");this._match=new se(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ae,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},gt=class extends de{constructor(e,t,n,i,o){super(e,t,n,i);f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ae,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ke=class extends de{constructor(e,t,n,i,o,s,c,a,u,m){super(e,t,n,i);f(this,"_begin");f(this,"beginCaptures");f(this,"_end");f(this,"endHasBackReferences");f(this,"endCaptures");f(this,"applyEndPatternLast");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this._begin=new se(o,this.id),this.beginCaptures=s,this._end=new se(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ae;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ae=class extends de{constructor(e,t,n,i,o,s,c,a,u){super(e,t,n,i);f(this,"_begin");f(this,"beginCaptures");f(this,"whileCaptures");f(this,"_while");f(this,"whileHasBackReferences");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");f(this,"_cachedCompiledWhilePatterns");this._begin=new se(o,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new se(c,zt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ae;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ae,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},qt=class D{static createCaptureRule(e,t,n,i,o){return e.registerRule(s=>new Xn(t,s,n,i,o))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new Qn(e.$vscodeTextmateLocation,e.id,e.name,e.match,D._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=Vt({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new gt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,D._compilePatterns(o,t,n))}return e.while?new Ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,D._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,D._compileCaptures(e.whileCaptures||e.captures,t,n),D._compilePatterns(e.patterns,t,n)):new Ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,D._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,D._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,D._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let a=0;e[s].patterns&&(a=D.getCompiledRuleId(e[s],t,n)),i[c]=D.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return i}static _compilePatterns(e,t,n){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const c=e[o];let a=-1;if(c.include){const u=Ft(c.include);switch(u.kind){case 0:case 1:a=D.getCompiledRuleId(n[c.include],t,n);break;case 2:let m=n[u.ruleName];m&&(a=D.getCompiledRuleId(m,t,n));break;case 3:case 4:const d=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(d,n);if(p)if(h){let _=p.repository[h];_&&(a=D.getCompiledRuleId(_,t,p.repository))}else a=D.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=D.getCompiledRuleId(c,t,n);if(a!==-1){const u=t.getRule(a);let m=!1;if((u instanceof gt||u instanceof Ke||u instanceof Ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},se=class Kt{constructor(e,t){f(this,"source");f(this,"ruleId");f(this,"hasAnchor");f(this,"hasBackReferences");f(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],s=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const u=e.charAt(c+1);u==="z"?(o.push(e.substring(i,c)),o.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Yn.test(this.source):this.hasBackReferences=!1}clone(){return new Kt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=t.map(i=>e.substring(i.start,i.end));return _t.lastIndex=0,this.source.replace(_t,(i,o)=>jt(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],n=[],i=[],o,s,c,a;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),e[o]=c,t[o]=c,n[o]=c,i[o]=c,c==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="￿",t[o+1]="￿",n[o+1]="A",i[o+1]="A"):a==="G"?(e[o+1]="￿",t[o+1]="G",n[o+1]="￿",i[o+1]="G"):(e[o+1]=a,t[o+1]=a,n[o+1]=a,i[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ae=class{constructor(){f(this,"_items");f(this,"_hasAnchors");f(this,"_cached");f(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new yt(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let n=this._items.map(i=>i.resolveAnchors(e,t));return new yt(r,n,this._items.map(i=>i.ruleId))}},yt=class{constructor(r,e,t){f(this,"scanner");this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
3
3
  `)}findNextMatchSync(r,e,t){const n=this.scanner.findNextMatchSync(r,e,t);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Ge=class{constructor(r,e){this.languageId=r,this.tokenType=e}},W,Zn=(W=class{constructor(e,t){f(this,"_defaultAttributes");f(this,"_embeddedLanguagesMatcher");f(this,"_getBasicScopeAttributes",new $t(e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Ge(t,n)}));this._defaultAttributes=new Ge(e,8),this._embeddedLanguagesMatcher=new er(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?W._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(W.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},f(W,"_NULL_SCOPE_METADATA",new Ge(0,0)),f(W,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),W),er=class{constructor(r){f(this,"values");f(this,"scopesRegExp");if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,n])=>jt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Et=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function Yt(r,e,t,n,i,o,s,c){const a=e.content.length;let u=!1,m=-1;if(s){const p=tr(r,e,t,n,i,o);i=p.stack,n=p.linePos,t=p.isFirstLine,m=p.anchorPosition}const d=Date.now();for(;!u;){if(c!==0&&Date.now()-d>c)return new Et(i,!0);h()}return new Et(i,!1);function h(){const p=nr(r,e,t,n,i,m);if(!p){o.produce(i,a),u=!0;return}const _=p.captureIndices,b=p.matchedRuleId,v=_&&_.length>0?_[0].end>n:!1;if(b===Jn){const y=i.getRule(r);o.produce(i,_[0].start),i=i.withContentNameScopesList(i.nameScopesList),re(r,e,t,i,o,y.endCaptures,_),o.produce(i,_[0].end);const E=i;if(i=i.parent,m=E.getAnchorPos(),!v&&E.getEnterPos()===n){i=E,o.produce(i,a),u=!0;return}}else{const y=r.getRule(b);o.produce(i,_[0].start);const E=i,R=y.getName(e.content,_),A=i.contentNameScopesList.pushAttributed(R,r);if(i=i.push(b,n,m,_[0].end===a,null,A,A),y instanceof Ke){const L=y;re(r,e,t,i,o,L.beginCaptures,_),o.produce(i,_[0].end),m=_[0].end;const x=L.getContentName(e.content,_),O=A.pushAttributed(x,r);if(i=i.withContentNameScopesList(O),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,_))),!v&&E.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(y instanceof Ae){const L=y;re(r,e,t,i,o,L.beginCaptures,_),o.produce(i,_[0].end),m=_[0].end;const x=L.getContentName(e.content,_),O=A.pushAttributed(x,r);if(i=i.withContentNameScopesList(O),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,_))),!v&&E.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(re(r,e,t,i,o,y.captures,_),o.produce(i,_[0].end),i=i.pop(),!v){i=i.safePop(),o.produce(i,a),u=!0;return}}_[0].end>n&&(n=_[0].end,t=!1)}}function tr(r,e,t,n,i,o){let s=i.beginRuleCapturedEOL?0:-1;const c=[];for(let a=i;a;a=a.pop()){const u=a.getRule(r);u instanceof Ae&&c.push({rule:u,stack:a})}for(let a=c.pop();a;a=c.pop()){const{ruleScanner:u,findOptions:m}=or(a.rule,r,a.stack.endRule,t,n===s),d=u.findNextMatchSync(e,n,m);if(d){if(d.ruleId!==zt){i=a.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(a.stack,d.captureIndices[0].start),re(r,e,t,a.stack,o,a.rule.whileCaptures,d.captureIndices),o.produce(a.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,t=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:t}}function nr(r,e,t,n,i,o){const s=rr(r,e,t,n,i,o),c=r.getInjections();if(c.length===0)return s;const a=ir(c,r,e,t,n,i,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,m=a.captureIndices[0].start;return m<u||a.priorityMatch&&m===u?a:s}function rr(r,e,t,n,i,o){const s=i.getRule(r),{ruleScanner:c,findOptions:a}=Jt(s,r,i.endRule,t,n===o),u=c.findNextMatchSync(e,n,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function ir(r,e,t,n,i,o,s){let c=Number.MAX_VALUE,a=null,u,m=0;const d=o.contentNameScopesList.getScopeNames();for(let h=0,p=r.length;h<p;h++){const _=r[h];if(!_.matcher(d))continue;const b=e.getRule(_.ruleId),{ruleScanner:v,findOptions:y}=Jt(b,e,null,n,i===s),E=v.findNextMatchSync(t,i,y);if(!E)continue;const R=E.captureIndices[0].start;if(!(R>=c)&&(c=R,a=E.captureIndices,u=E.ruleId,m=_.priority,c===i))break}return a?{priorityMatch:m===-1,captureIndices:a,matchedRuleId:u}:null}function Jt(r,e,t,n,i){return{ruleScanner:r.compileAG(e,t,n,i),findOptions:0}}function or(r,e,t,n,i){return{ruleScanner:r.compileWhileAG(e,t,n,i),findOptions:0}}function re(r,e,t,n,i,o,s){if(o.length===0)return;const c=e.content,a=Math.min(o.length,s.length),u=[],m=s[0].end;for(let d=0;d<a;d++){const h=o[d];if(h===null)continue;const p=s[d];if(p.length===0)continue;if(p.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,p.start):i.produce(n,p.start),h.retokenizeCapturedWithRuleId){const b=h.getName(c,s),v=n.contentNameScopesList.pushAttributed(b,r),y=h.getContentName(c,s),E=v.pushAttributed(y,r),R=n.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,v,E),A=r.createOnigString(c.substring(0,p.end));Yt(r,A,t&&p.start===0,p.start,R,i,!1,0),Wt(A);continue}const _=h.getName(c,s);if(_!==null){const v=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(_,r);u.push(new sr(v,p.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var sr=class{constructor(r,e){f(this,"scopes");f(this,"endPos");this.scopes=r,this.endPos=e}};function ar(r,e,t,n,i,o,s,c){return new cr(r,e,t,n,i,o,s,c)}function vt(r,e,t,n,i){const o=Re(e,Se),s=qt.getCompiledRuleId(t,n,i.repository);for(const c of o)r.push({debugSelector:e,matcher:c.matcher,ruleId:s,grammar:i,priority:c.priority})}function Se(r,e){if(e.length<r.length)return!1;let t=0;return r.every(n=>{for(let i=t;i<e.length;i++)if(lr(e[i],n))return t=i+1,!0;return!1})}function lr(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var cr=class{constructor(r,e,t,n,i,o,s,c){f(this,"_rootId");f(this,"_lastRuleId");f(this,"_ruleId2desc");f(this,"_includedGrammars");f(this,"_grammarRepository");f(this,"_grammar");f(this,"_injections");f(this,"_basicScopeAttributesProvider");f(this,"_tokenTypeMatchers");if(this._rootScopeName=r,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new Zn(t,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=bt(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const u=Re(a,Se);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:i[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],t=this._rootScopeName,n=r.lookup(t);if(n){const i=n.injections;if(i)for(let s in i)vt(e,s,i[s],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach(s=>{const c=this.getExternalGrammar(s);if(c){const a=c.injectionSelector;a&&vt(e,a,c,this,c)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=bt(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const n=this._tokenize(r,e,!1,t);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(r,e,t=0){const n=this._tokenize(r,e,!0,t);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(r,e,t,n){this._rootId===-1&&(this._rootId=qt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Ye.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),d=Q.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),h=this.getRule(this._rootId).getName(null,null);let p;h?p=ie.createRootAndLookUpScopeName(h,d,this):p=ie.createRoot("unknown",d),e=new Ye(null,this._rootId,-1,-1,!1,null,p,p)}else i=!1,e.reset();r=r+`
4
4
  `;const o=this.createOnigString(r),s=o.content.length,c=new dr(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Yt(this,o,i,0,e,c,!0,n);return Wt(o),{lineLength:s,lineTokens:c,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function bt(r,e){return r=kn(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var ie=class j{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,i=(e==null?void 0:e.scopePath)??null;for(const o of t)i=Be.push(i,o.scopeNames),n=new j(n,i,o.encodedTokenAttributes);return n}static createRoot(e,t){return new j(null,new Be(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const i=n.getMetadataForScope(e),o=new Be(null,e),s=n.themeProvider.themeMatch(o),c=j.mergeAttributes(t,i,s);return new j(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return j.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let i=-1,o=0,s=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,s=n.backgroundId),Q.set(e,t.languageId,t.tokenType,null,i,o,s)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return j._pushAttributed(this,e,t);const n=e.split(/ /g);let i=this;for(const o of n)i=j._pushAttributed(i,o,t);return i}static _pushAttributed(e,t,n){const i=n.getMetadataForScope(t),o=e.scopePath.push(t),s=n.themeProvider.themeMatch(o),c=j.mergeAttributes(e.tokenAttributes,i,s);return new j(e,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===e?t.reverse():void 0}},G,Ye=(G=class{constructor(e,t,n,i,o,s,c,a){f(this,"_stackElementBrand");f(this,"_enterPos");f(this,"_anchorPos");f(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return e===null?!1:G._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ie.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){G._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,i,o,s,c){return new G(this,e,t,n,i,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,i;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new G(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=ie.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new G(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,ie.fromExtension(n,t.contentNameScopesList))}},f(G,"NULL",new G(null,0,0,0,!1,null,null,null)),G),ur=class{constructor(r,e){f(this,"balancedBracketScopes");f(this,"unbalancedBracketScopes");f(this,"allowAny",!1);this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Re(t,Se).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Re(t,Se).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},dr=class{constructor(r,e,t,n){f(this,"_emitBinaryTokens");f(this,"_lineText");f(this,"_tokens");f(this,"_binaryTokens");f(this,"_lastTokenEndIndex");f(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){var n;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(r==null?void 0:r.tokenAttributes)??0,o=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(r==null?void 0:r.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(i=Q.set(i,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(i=Q.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const t=(r==null?void 0:r.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)t[n]=this._binaryTokens[n];return t}},mr=class{constructor(r,e){f(this,"_grammars",new Map);f(this,"_rawGrammars",new Map);f(this,"_injectionGrammars",new Map);f(this,"_theme");this._onigLib=e,this._theme=r}dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,n,i){if(!this._grammars.has(r)){let o=this._rawGrammars.get(r);if(!o)return null;this._grammars.set(r,ar(r,o,e,t,n,i,this,this._onigLib))}return this._grammars.get(r)}},hr=class{constructor(e){f(this,"_options");f(this,"_syncRegistry");f(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new mr(be.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(be.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ur(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,o){const s=new Un(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,o)}},Je=Ye.NULL;const pr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class me{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}me.prototype.normal={};me.prototype.property={};me.prototype.space=void 0;function Xt(r,e){const t={},n={};for(const i of r)Object.assign(t,i.property),Object.assign(n,i.normal);return new me(t,n,e)}function Xe(r){return r.toLowerCase()}class V{constructor(e,t){this.attribute=t,this.property=e}}V.prototype.attribute="";V.prototype.booleanish=!1;V.prototype.boolean=!1;V.prototype.commaOrSpaceSeparated=!1;V.prototype.commaSeparated=!1;V.prototype.defined=!1;V.prototype.mustUseProperty=!1;V.prototype.number=!1;V.prototype.overloadedBoolean=!1;V.prototype.property="";V.prototype.spaceSeparated=!1;V.prototype.space=void 0;let fr=0;const T=q(),P=q(),Qe=q(),g=q(),S=q(),J=q(),M=q();function q(){return 2**++fr}const Ze=Object.freeze(Object.defineProperty({__proto__:null,boolean:T,booleanish:P,commaOrSpaceSeparated:M,commaSeparated:J,number:g,overloadedBoolean:Qe,spaceSeparated:S},Symbol.toStringTag,{value:"Module"})),je=Object.keys(Ze);class rt extends V{constructor(e,t,n,i){let o=-1;if(super(e,t),Rt(this,"space",i),typeof n=="number")for(;++o<je.length;){const s=je[o];Rt(this,je[o],(n&Ze[s])===Ze[s])}}}rt.prototype.defined=!0;function Rt(r,e,t){t&&(r[e]=t)}function Z(r){const e={},t={};for(const[n,i]of Object.entries(r.properties)){const o=new rt(n,r.transform(r.attributes||{},n),i,r.space);r.mustUseProperty&&r.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,t[Xe(n)]=n,t[Xe(o.attribute)]=n}return new me(e,t,r.space)}const Qt=Z({properties:{ariaActiveDescendant:null,ariaAtomic:P,ariaAutoComplete:null,ariaBusy:P,ariaChecked:P,ariaColCount:g,ariaColIndex:g,ariaColSpan:g,ariaControls:S,ariaCurrent:null,ariaDescribedBy:S,ariaDetails:null,ariaDisabled:P,ariaDropEffect:S,ariaErrorMessage:null,ariaExpanded:P,ariaFlowTo:S,ariaGrabbed:P,ariaHasPopup:null,ariaHidden:P,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:S,ariaLevel:g,ariaLive:null,ariaModal:P,ariaMultiLine:P,ariaMultiSelectable:P,ariaOrientation:null,ariaOwns:S,ariaPlaceholder:null,ariaPosInSet:g,ariaPressed:P,ariaReadOnly:P,ariaRelevant:null,ariaRequired:P,ariaRoleDescription:S,ariaRowCount:g,ariaRowIndex:g,ariaRowSpan:g,ariaSelected:P,ariaSetSize:g,ariaSort:null,ariaValueMax:g,ariaValueMin:g,ariaValueNow:g,ariaValueText:null,role:null},transform(r,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Zt(r,e){return e in r?r[e]:e}function en(r,e){return Zt(r,e.toLowerCase())}const _r=Z({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:J,acceptCharset:S,accessKey:S,action:null,allow:null,allowFullScreen:T,allowPaymentRequest:T,allowUserMedia:T,alt:null,as:null,async:T,autoCapitalize:null,autoComplete:S,autoFocus:T,autoPlay:T,blocking:S,capture:null,charSet:null,checked:T,cite:null,className:S,cols:g,colSpan:null,content:null,contentEditable:P,controls:T,controlsList:S,coords:g|J,crossOrigin:null,data:null,dateTime:null,decoding:null,default:T,defer:T,dir:null,dirName:null,disabled:T,download:Qe,draggable:P,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:T,formTarget:null,headers:S,height:g,hidden:Qe,high:g,href:null,hrefLang:null,htmlFor:S,httpEquiv:S,id:null,imageSizes:null,imageSrcSet:null,inert:T,inputMode:null,integrity:null,is:null,isMap:T,itemId:null,itemProp:S,itemRef:S,itemScope:T,itemType:S,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:T,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:T,muted:T,name:null,nonce:null,noModule:T,noValidate:T,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:T,optimum:g,pattern:null,ping:S,placeholder:null,playsInline:T,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:T,referrerPolicy:null,rel:S,required:T,reversed:T,rows:g,rowSpan:g,sandbox:S,scope:null,scoped:T,seamless:T,selected:T,shadowRootClonable:T,shadowRootDelegatesFocus:T,shadowRootMode:null,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:P,src:null,srcDoc:null,srcLang:null,srcSet:null,start:g,step:null,style:null,tabIndex:g,target:null,title:null,translate:null,type:null,typeMustMatch:T,useMap:null,value:P,width:g,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:S,axis:null,background:null,bgColor:null,border:g,borderColor:null,bottomMargin:g,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:T,declare:T,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:T,noHref:T,noShade:T,noWrap:T,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:P,standby:null,summary:null,text:null,topMargin:g,valueType:null,version:null,vAlign:null,vLink:null,vSpace:g,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:T,disableRemotePlayback:T,prefix:null,property:null,results:g,security:null,unselectable:null},space:"html",transform:en}),gr=Z({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:M,accentHeight:g,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:g,amplitude:g,arabicForm:null,ascent:g,attributeName:null,attributeType:null,azimuth:g,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:g,by:null,calcMode:null,capHeight:g,className:S,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:g,diffuseConstant:g,direction:null,display:null,dur:null,divisor:g,dominantBaseline:null,download:T,dx:null,dy:null,edgeMode:null,editable:null,elevation:g,enableBackground:null,end:null,event:null,exponent:g,externalResourcesRequired:null,fill:null,fillOpacity:g,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:J,g2:J,glyphName:J,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:g,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:g,horizOriginX:g,horizOriginY:g,id:null,ideographic:g,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:g,k:g,k1:g,k2:g,k3:g,k4:g,kernelMatrix:M,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:g,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:g,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:g,overlineThickness:g,paintOrder:null,panose1:null,path:null,pathLength:g,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:S,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:g,pointsAtY:g,pointsAtZ:g,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:M,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:M,rev:M,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:M,requiredFeatures:M,requiredFonts:M,requiredFormats:M,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:g,specularExponent:g,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:g,strikethroughThickness:g,string:null,stroke:null,strokeDashArray:M,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:g,strokeOpacity:g,strokeWidth:null,style:null,surfaceScale:g,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:M,tabIndex:g,tableValues:null,target:null,targetX:g,targetY:g,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:M,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:g,underlineThickness:g,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:g,values:null,vAlphabetic:g,vMathematical:g,vectorEffect:null,vHanging:g,vIdeographic:g,version:null,vertAdvY:g,vertOriginX:g,vertOriginY:g,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:g,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zt}),tn=Z({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(r,e){return"xlink:"+e.slice(5).toLowerCase()}}),nn=Z({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:en}),rn=Z({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(r,e){return"xml:"+e.slice(3).toLowerCase()}}),yr=/[A-Z]/g,Tt=/-[a-z]/g,Er=/^data[-\w.:]+$/i;function vr(r,e){const t=Xe(e);let n=e,i=V;if(t in r.normal)return r.property[r.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Er.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Tt,Rr);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Tt.test(o)){let s=o.replace(yr,br);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=rt}return new i(n,e)}function br(r){return"-"+r.toLowerCase()}function Rr(r){return r.charAt(1).toUpperCase()}const Tr=Xt([Qt,_r,tn,nn,rn],"html"),on=Xt([Qt,gr,tn,nn,rn],"svg"),At={}.hasOwnProperty;function Ar(r,e){const t=e||{};function n(i,...o){let s=n.invalid;const c=n.handlers;if(i&&At.call(i,r)){const a=String(i[r]);s=At.call(c,a)?c[a]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}const Sr=/["&'<>`]/g,Lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kr=/[|\\{}()[\]^$+*?.]/g,St=new WeakMap;function Ir(r,e){if(r=r.replace(e.subset?wr(e.subset):Sr,n),e.subset||e.escapeOnly)return r;return r.replace(Lr,t).replace(Pr,n);function t(i,o,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function n(i,o,s){return e.format(i.charCodeAt(0),s.charCodeAt(o+1),e)}}function wr(r){let e=St.get(r);return e||(e=Or(r),St.set(r,e)),e}function Or(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(kr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Cr=/[\dA-Fa-f]/;function Dr(r,e,t){const n="&#x"+r.toString(16).toUpperCase();return t&&e&&!Cr.test(String.fromCharCode(e))?n:n+";"}const Nr=/\d/;function xr(r,e,t){const n="&#"+String(r);return t&&e&&!Nr.test(String.fromCharCode(e))?n:n+";"}const Vr=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],$e={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Mr=["cent","copy","divide","gt","lt","not","para","times"],sn={}.hasOwnProperty,et={};let fe;for(fe in $e)sn.call($e,fe)&&(et[$e[fe]]=fe);const Br=/[^\dA-Za-z]/;function Gr(r,e,t,n){const i=String.fromCharCode(r);if(sn.call(et,i)){const o=et[i],s="&"+o;return t&&Vr.includes(o)&&!Mr.includes(o)&&(!n||e&&e!==61&&Br.test(String.fromCharCode(e)))?s:s+";"}return""}function jr(r,e,t){let n=Dr(r,e,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=Gr(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=xr(r,e,t.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!t.useShortestReferences||i.length<n.length)?i:n}function X(r,e){return Ir(r,Object.assign({format:jr},e))}const $r=/^>|^->|<!--|-->|--!>|<!-$/g,Ur=[">"],Hr=["<",">"];function Wr(r,e,t,n){return n.settings.bogusComments?"<?"+X(r.value,Object.assign({},n.settings.characterReferences,{subset:Ur}))+">":"<!--"+r.value.replace($r,i)+"-->";function i(o){return X(o,Object.assign({},n.settings.characterReferences,{subset:Hr}))}}function Fr(r,e,t,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Lt(r,e){const t=String(r);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=t.indexOf(e);for(;i!==-1;)n++,i=t.indexOf(e,i+e.length);return n}function zr(r,e){const t=e||{};return(r[r.length-1]===""?[...r,""]:r).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function qr(r){return r.join(" ").trim()}const Kr=/[ \t\n\f\r]/g;function it(r){return typeof r=="object"?r.type==="text"?Pt(r.value):!1:Pt(r)}function Pt(r){return r.replace(Kr,"")===""}const w=ln(1),an=ln(-1),Yr=[];function ln(r){return e;function e(t,n,i){const o=t?t.children:Yr;let s=(n||0)+r,c=o[s];if(!i)for(;c&&it(c);)s+=r,c=o[s];return c}}const Jr={}.hasOwnProperty;function cn(r){return e;function e(t,n,i){return Jr.call(r,t.tagName)&&r[t.tagName](t,n,i)}}const ot=cn({body:Qr,caption:Ue,colgroup:Ue,dd:ni,dt:ti,head:Ue,html:Xr,li:ei,optgroup:ri,option:ii,p:Zr,rp:kt,rt:kt,tbody:si,td:It,tfoot:ai,th:It,thead:oi,tr:li});function Ue(r,e,t){const n=w(t,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&it(n.value.charAt(0)))}function Xr(r,e,t){const n=w(t,e);return!n||n.type!=="comment"}function Qr(r,e,t){const n=w(t,e);return!n||n.type!=="comment"}function Zr(r,e,t){const n=w(t,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function ei(r,e,t){const n=w(t,e);return!n||n.type==="element"&&n.tagName==="li"}function ti(r,e,t){const n=w(t,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function ni(r,e,t){const n=w(t,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function kt(r,e,t){const n=w(t,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function ri(r,e,t){const n=w(t,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function ii(r,e,t){const n=w(t,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function oi(r,e,t){const n=w(t,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function si(r,e,t){const n=w(t,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function ai(r,e,t){return!w(t,e)}function li(r,e,t){const n=w(t,e);return!n||n.type==="element"&&n.tagName==="tr"}function It(r,e,t){const n=w(t,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const ci=cn({body:mi,colgroup:hi,head:di,html:ui,tbody:pi});function ui(r){const e=w(r,-1);return!e||e.type!=="comment"}function di(r){const e=new Set;for(const n of r.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const t=r.children[0];return!t||t.type==="element"}function mi(r){const e=w(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&it(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function hi(r,e,t){const n=an(t,e),i=w(r,-1,!0);return t&&n&&n.type==="element"&&n.tagName==="colgroup"&&ot(n,t.children.indexOf(n),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function pi(r,e,t){const n=an(t,e),i=w(r,-1);return t&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ot(n,t.children.indexOf(n),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const _e={name:[[`
5
5
  \f\r &/=>`.split(""),`
@@ -1 +1 @@
1
- import{t as b,i as x,u as E,m as _,k as V}from"./monaco-viewer-UU9TfOpS.js";import{c as L,b as B,n as p,a as F,S as T,E as D,D as z,C as $,G}from"./git-diff-vendor-CAv-4upN.js";import{an as U,ao as N,ap as K}from"./main-CEwS0Qyy.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./index-CRtA_Run.js";var q=b("<div>"),O=b("<div class=tool-call-diff-viewer>"),P=b("<pre class=tool-call-diff-fallback>");const j=V("session");G();function I(e,s,o){const a=window.getComputedStyle(o),i=document.createElement("span");i.textContent=s||"",i.style.position="absolute",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.display="inline-block",i.style.width="auto",i.style.maxWidth="none",i.style.whiteSpace="nowrap",i.style.fontFamily=a.fontFamily,i.style.fontSize=a.fontSize,i.style.fontWeight=a.fontWeight,i.style.fontStyle=a.fontStyle,i.style.letterSpacing=a.letterSpacing,i.style.fontVariant=a.fontVariant,i.style.textTransform=a.textTransform,i.style.lineHeight=a.lineHeight,e.appendChild(i);const f=Math.ceil(i.getBoundingClientRect().width);return i.remove(),f}function M(e,s,o=40){const a=s.reduce((l,n)=>Math.max(l,I(e,n.text,n.source)),0),i=s.reduce((l,n)=>Math.max(l,n.text.length),1),f=Math.round(i*7+4);return Math.max(2,Math.min(o,a>0?a+2:f))}function J(e,s){const o=e.querySelector(".unified-diff-table-wrapper"),a=e.querySelector(".unified-diff-table"),i=e.querySelector(".unified-diff-table-num-col"),f=e.querySelectorAll(".diff-line-num"),l=e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper"),n=[];a&&(s?(a.classList.add("table-fixed"),a.style.tableLayout="fixed",a.style.width="100%",a.style.minWidth="100%"):(a.classList.remove("table-fixed"),a.style.tableLayout="auto",a.style.width="max-content",a.style.minWidth="100%")),f.forEach(r=>{var v,k;const c=r.querySelector("[data-line-old-num]"),m=r.querySelector("[data-line-new-num]"),W=r.querySelector(".shrink-0"),S=r.querySelector(":scope > .flex"),C=r.querySelector(":scope > .tool-call-diff-compact-line-number"),y=((v=c==null?void 0:c.textContent)==null?void 0:v.trim())??"",w=((k=m==null?void 0:m.textContent)==null?void 0:k.trim())??"",H=w.length>0&&w!=="0",R=y.length>0&&y!=="0",g=H?w:R?y:w||y;S&&(S.style.display="none"),W&&(W.style.display="none"),c&&(c.style.display="none",c.style.width="auto"),m&&(m.style.display="none",m.style.width="auto"),r.style.paddingLeft="1px",r.style.paddingRight="1px",r.style.textAlign="left";const u=C??document.createElement("span");u.className="tool-call-diff-compact-line-number",u.textContent=g,u.setAttribute("aria-hidden",g?"false":"true"),C||r.appendChild(u),n.push({gutter:r,label:u,text:g})});const t=M(e,n.map(r=>({text:r.text,source:r.label}))),d=`${t}px`,h=`${Math.max(8,t-10)}px`;o&&(o.style.setProperty("--diff-aside-width",h),o.style.setProperty("--diff-aside-width--",h)),i&&(i.style.width=d),n.forEach(({gutter:r,label:c})=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,c.style.width="auto",c.style.maxWidth="none"}),l.forEach(r=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,r.style.paddingLeft="0",r.style.paddingRight="0"})}function Q(e){const s=e.querySelector(".old-diff-table-wrapper"),o=e.querySelector(".new-diff-table-wrapper"),a=Array.from(e.querySelectorAll(".diff-line-old-num, .diff-line-new-num")),i=Array.from(e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper")),f=a.map(t=>({cell:t,span:t.querySelector("[data-line-num]")})).filter(t=>!!t.span),n=`${M(e,f.map(({span:t})=>{var d;return{text:((d=t.textContent)==null?void 0:d.trim())??"",source:t}}),64)}px`;[s,o].forEach(t=>{t&&t.style.setProperty("--diff-aside-width",n)}),a.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="2px",t.style.paddingRight="2px",t.style.textAlign="left",t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),f.forEach(({span:t})=>{t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),i.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="0",t.style.paddingRight="0"})}function A(e,s,o=!1){if(s==="unified"){J(e,o);return}s==="split"&&Q(e)}function ne(e){const s=L(()=>{const f=U(e.diffText);if(!f)return null;const l=N(e.filePath)||"text",n=e.filePath||"diff";return{oldFile:{fileName:n,fileLang:l},newFile:{fileName:n,fileLang:l},hunks:[f]}});let o,a;const i=L(()=>s()?`${e.theme}|${e.mode}|${e.wrap?"wrap":"nowrap"}|${e.diffText}`:"");return B(()=>{var n;if(e.cachedHtml){o&&A(o,e.mode,!!e.wrap),(n=e.onRendered)==null||n.call(e);return}const l=i();l&&o&&a!==l&&requestAnimationFrame(()=>{var d;if(!o)return;A(o,e.mode,!!e.wrap);const t=o.innerHTML;t&&(a=l,e.cacheEntryParams&&K(e.cacheEntryParams,{text:e.diffText,html:t,theme:e.theme,mode:e.mode,wrap:e.wrap}),(d=e.onRendered)==null||d.call(e))})}),(()=>{var f=O();return x(f,p(T,{get when(){return e.cachedHtml},get fallback(){return(()=>{var l=q(),n=o;return typeof n=="function"?E(n,l):o=l,x(l,p(T,{get when(){return s()},get fallback(){return(()=>{var t=P();return x(t,()=>e.diffText),t})()},children:t=>p(D,{fallback:d=>(j.warn("Failed to render diff view",d),(()=>{var h=P();return x(h,()=>e.diffText),h})()),get children(){return p(z,{get data(){return t()},get diffViewMode(){return _(()=>e.mode==="split")()?$.Split:$.Unified},get diffViewTheme(){return e.theme},diffViewHighlight:!0,get diffViewWrap(){return!!e.wrap},diffViewFontSize:13})}})})),l})()},get children(){var l=q(),n=o;return typeof n=="function"?E(n,l):o=l,F(()=>l.innerHTML=e.cachedHtml),l}})),f})()}export{ne as ToolCallDiffViewer};
1
+ import{t as b,i as x,u as E,m as _,k as V}from"./monaco-viewer-DUhWC7BI.js";import{c as L,b as B,n as p,a as F,S as T,E as D,D as z,C as $,G}from"./git-diff-vendor-CAv-4upN.js";import{an as U,ao as N,ap as K}from"./main-CH4aDUD4.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./index-CfoVNw2d.js";var q=b("<div>"),O=b("<div class=tool-call-diff-viewer>"),P=b("<pre class=tool-call-diff-fallback>");const j=V("session");G();function I(e,s,o){const a=window.getComputedStyle(o),i=document.createElement("span");i.textContent=s||"",i.style.position="absolute",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.display="inline-block",i.style.width="auto",i.style.maxWidth="none",i.style.whiteSpace="nowrap",i.style.fontFamily=a.fontFamily,i.style.fontSize=a.fontSize,i.style.fontWeight=a.fontWeight,i.style.fontStyle=a.fontStyle,i.style.letterSpacing=a.letterSpacing,i.style.fontVariant=a.fontVariant,i.style.textTransform=a.textTransform,i.style.lineHeight=a.lineHeight,e.appendChild(i);const f=Math.ceil(i.getBoundingClientRect().width);return i.remove(),f}function M(e,s,o=40){const a=s.reduce((l,n)=>Math.max(l,I(e,n.text,n.source)),0),i=s.reduce((l,n)=>Math.max(l,n.text.length),1),f=Math.round(i*7+4);return Math.max(2,Math.min(o,a>0?a+2:f))}function J(e,s){const o=e.querySelector(".unified-diff-table-wrapper"),a=e.querySelector(".unified-diff-table"),i=e.querySelector(".unified-diff-table-num-col"),f=e.querySelectorAll(".diff-line-num"),l=e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper"),n=[];a&&(s?(a.classList.add("table-fixed"),a.style.tableLayout="fixed",a.style.width="100%",a.style.minWidth="100%"):(a.classList.remove("table-fixed"),a.style.tableLayout="auto",a.style.width="max-content",a.style.minWidth="100%")),f.forEach(r=>{var v,k;const c=r.querySelector("[data-line-old-num]"),m=r.querySelector("[data-line-new-num]"),W=r.querySelector(".shrink-0"),S=r.querySelector(":scope > .flex"),C=r.querySelector(":scope > .tool-call-diff-compact-line-number"),y=((v=c==null?void 0:c.textContent)==null?void 0:v.trim())??"",w=((k=m==null?void 0:m.textContent)==null?void 0:k.trim())??"",H=w.length>0&&w!=="0",R=y.length>0&&y!=="0",g=H?w:R?y:w||y;S&&(S.style.display="none"),W&&(W.style.display="none"),c&&(c.style.display="none",c.style.width="auto"),m&&(m.style.display="none",m.style.width="auto"),r.style.paddingLeft="1px",r.style.paddingRight="1px",r.style.textAlign="left";const u=C??document.createElement("span");u.className="tool-call-diff-compact-line-number",u.textContent=g,u.setAttribute("aria-hidden",g?"false":"true"),C||r.appendChild(u),n.push({gutter:r,label:u,text:g})});const t=M(e,n.map(r=>({text:r.text,source:r.label}))),d=`${t}px`,h=`${Math.max(8,t-10)}px`;o&&(o.style.setProperty("--diff-aside-width",h),o.style.setProperty("--diff-aside-width--",h)),i&&(i.style.width=d),n.forEach(({gutter:r,label:c})=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,c.style.width="auto",c.style.maxWidth="none"}),l.forEach(r=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,r.style.paddingLeft="0",r.style.paddingRight="0"})}function Q(e){const s=e.querySelector(".old-diff-table-wrapper"),o=e.querySelector(".new-diff-table-wrapper"),a=Array.from(e.querySelectorAll(".diff-line-old-num, .diff-line-new-num")),i=Array.from(e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper")),f=a.map(t=>({cell:t,span:t.querySelector("[data-line-num]")})).filter(t=>!!t.span),n=`${M(e,f.map(({span:t})=>{var d;return{text:((d=t.textContent)==null?void 0:d.trim())??"",source:t}}),64)}px`;[s,o].forEach(t=>{t&&t.style.setProperty("--diff-aside-width",n)}),a.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="2px",t.style.paddingRight="2px",t.style.textAlign="left",t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),f.forEach(({span:t})=>{t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),i.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="0",t.style.paddingRight="0"})}function A(e,s,o=!1){if(s==="unified"){J(e,o);return}s==="split"&&Q(e)}function ne(e){const s=L(()=>{const f=U(e.diffText);if(!f)return null;const l=N(e.filePath)||"text",n=e.filePath||"diff";return{oldFile:{fileName:n,fileLang:l},newFile:{fileName:n,fileLang:l},hunks:[f]}});let o,a;const i=L(()=>s()?`${e.theme}|${e.mode}|${e.wrap?"wrap":"nowrap"}|${e.diffText}`:"");return B(()=>{var n;if(e.cachedHtml){o&&A(o,e.mode,!!e.wrap),(n=e.onRendered)==null||n.call(e);return}const l=i();l&&o&&a!==l&&requestAnimationFrame(()=>{var d;if(!o)return;A(o,e.mode,!!e.wrap);const t=o.innerHTML;t&&(a=l,e.cacheEntryParams&&K(e.cacheEntryParams,{text:e.diffText,html:t,theme:e.theme,mode:e.mode,wrap:e.wrap}),(d=e.onRendered)==null||d.call(e))})}),(()=>{var f=O();return x(f,p(T,{get when(){return e.cachedHtml},get fallback(){return(()=>{var l=q(),n=o;return typeof n=="function"?E(n,l):o=l,x(l,p(T,{get when(){return s()},get fallback(){return(()=>{var t=P();return x(t,()=>e.diffText),t})()},children:t=>p(D,{fallback:d=>(j.warn("Failed to render diff view",d),(()=>{var h=P();return x(h,()=>e.diffText),h})()),get children(){return p(z,{get data(){return t()},get diffViewMode(){return _(()=>e.mode==="split")()?$.Split:$.Unified},get diffViewTheme(){return e.theme},diffViewHighlight:!0,get diffViewWrap(){return!!e.wrap},diffViewFontSize:13})}})})),l})()},get children(){var l=q(),n=o;return typeof n=="function"?E(n,l):o=l,F(()=>l.innerHTML=e.cachedHtml),l}})),f})()}export{ne as ToolCallDiffViewer};
@@ -0,0 +1 @@
1
+ import{m as e}from"./index-CfoVNw2d.js";import"./git-diff-vendor-CAv-4upN.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-DUhWC7BI.js";const s={"advancedSettings.title":"Расширенные настройки","advancedSettings.environmentVariables.title":"Переменные окружения","advancedSettings.environmentVariables.subtitle":"Применяются при запуске нового экземпляра OpenCode","advancedSettings.actions.close":"Закрыть"},t={"app.launchError.title":"Не удалось запустить OpenCode","app.launchError.description":"Не удалось запустить выбранный бинарник OpenCode. Просмотрите вывод ошибки ниже или выберите другой бинарник в настройках OpenCode.","app.launchError.binaryPathLabel":"Путь к бинарнику","app.launchError.errorOutputLabel":"Вывод ошибки","app.launchError.openAdvancedSettings":"Открыть настройки OpenCode","app.launchError.close":"Закрыть","app.launchError.closeTitle":"Закрыть (Esc)","app.launchError.fallbackMessage":"Не удалось запустить рабочее пространство","app.stopInstance.confirmMessage":"Остановить экземпляр OpenCode? Это остановит сервер.","app.stopInstance.title":"Остановить экземпляр","app.stopInstance.confirmLabel":"Остановить","app.stopInstance.cancelLabel":"Оставить запущенным","emptyState.logoAlt":"Логотип CodeNomad","emptyState.brandTitle":"CodeNomad","emptyState.tagline":"Выберите папку, чтобы начать писать код с AI","emptyState.actions.selectFolder":"Выбрать папку","emptyState.actions.selecting":"Выбор…","emptyState.keyboardShortcut":"Горячая клавиша: {shortcut}","emptyState.examples":"Примеры: {example}","emptyState.multipleInstances":"Можно иметь несколько экземпляров одной и той же папки","releases.upgradeRequired.title":"Требуется обновление","releases.upgradeRequired.message.withVersion":"Обновите CodeNomad до версии {version}, чтобы использовать последний UI.","releases.upgradeRequired.message.noVersion":"Обновите CodeNomad, чтобы использовать последний UI.","releases.upgradeRequired.action.getUpdate":"Получить обновление","releases.uiUpdated.title":"UI обновлён","releases.uiUpdated.message":"UI теперь обновлён до {version}.","releases.devUpdateAvailable.title":"Доступна dev-сборка","releases.devUpdateAvailable.message":"Доступна новая dev-сборка: {version}.","releases.devUpdateAvailable.action":"Открыть релиз"},o={"commandPalette.title":"Палитра команд","commandPalette.description":"Поиск и запуск команд","commandPalette.searchPlaceholder":"Введите команду или начните поиск…","commandPalette.empty":'Команды по запросу "{query}" не найдены',"commandPalette.category.customCommands":"Пользовательские команды","commandPalette.category.instance":"Экземпляр","commandPalette.category.session":"Сессия","commandPalette.category.agentModel":"Агент и модель","commandPalette.category.inputFocus":"Ввод и фокус","commandPalette.category.system":"Система","commandPalette.category.other":"Другое","commands.newInstance.label":"Новый экземпляр","commands.newInstance.description":"Открыть выбор папки для создания нового экземпляра","commands.newInstance.keywords":"папка, проект, рабочее пространство","commands.closeInstance.label":"Закрыть экземпляр","commands.closeInstance.description":"Остановить сервер текущего экземпляра","commands.closeInstance.keywords":"остановить, выйти, закрыть","commands.nextInstance.label":"Следующий экземпляр","commands.nextInstance.description":"Переключиться на следующую вкладку экземпляра","commands.nextInstance.keywords":"переключить, навигация","commands.previousInstance.label":"Предыдущий экземпляр","commands.previousInstance.description":"Переключиться на предыдущую вкладку экземпляра","commands.previousInstance.keywords":"переключить, навигация","commands.newSession.label":"Новая сессия","commands.newSession.description":"Создать новую родительскую сессию","commands.newSession.keywords":"создать, начать","commands.closeSession.label":"Закрыть сессию","commands.closeSession.description":"Закрыть текущую родительскую сессию","commands.closeSession.keywords":"закрыть, остановить","commands.scrubSessions.label":"Очистить сессии","commands.scrubSessions.description":"Удалить пустые сессии, завершенные сессии субагентов и лишние форкнутые сессии.","commands.scrubSessions.keywords":"очистка, пустые, сессии, удалить, убрать","commands.instanceInfo.label":"Информация об экземпляре","commands.instanceInfo.description":"Открыть обзор экземпляра с логами и статусом","commands.instanceInfo.keywords":"информация, логи, консоль, вывод","commands.nextSession.label":"Следующая сессия","commands.nextSession.description":"Переключиться на следующую вкладку сессии","commands.nextSession.keywords":"переключить, навигация","commands.previousSession.label":"Предыдущая сессия","commands.previousSession.description":"Переключиться на предыдущую вкладку сессии","commands.previousSession.keywords":"переключить, навигация","commands.compactSession.label":"Компактировать сессию","commands.compactSession.description":"Суммировать и компактировать текущую сессию","commands.compactSession.keywords":"суммировать, сжать","commands.compactSession.errorFallback":"Не удалось компактировать сессию","commands.compactSession.alert.title":"Компактация не удалась","commands.compactSession.alert.message":"Компактация не удалась: {message}","commands.undoLastMessage.label":"Отменить последнее сообщение","commands.undoLastMessage.description":"Откатить последнее сообщение","commands.undoLastMessage.keywords":"откат, отмена","commands.undoLastMessage.none.title":"Нечего отменять","commands.undoLastMessage.none.message":"Нечего отменять","commands.undoLastMessage.failed.title":"Не удалось отменить","commands.undoLastMessage.failed.message":"Не удалось откатить сообщение","commands.openModelSelector.label":"Открыть выбор модели","commands.openModelSelector.description":"Выбрать другую модель","commands.openModelSelector.keywords":"модель, llm, ai","commands.selectModelVariant.label":"Выбрать вариант модели","commands.selectModelVariant.description":"Выбрать интенсивность размышлений для текущей модели","commands.selectModelVariant.keywords":"вариант, thinking, reasoning, интенсивность","commands.openAgentSelector.label":"Открыть выбор агента","commands.openAgentSelector.description":"Выбрать другого агента","commands.openAgentSelector.keywords":"агент, режим","commands.clearInput.label":"Очистить ввод","commands.clearInput.description":"Очистить поле prompt","commands.clearInput.keywords":"очистить, сброс","commands.promptSubmitShortcut.label.default":"Enter: Новая строка, Cmd/Ctrl+Enter: Отправить промпт","commands.promptSubmitShortcut.label.swapped":"Enter: Отправить промпт, Cmd/Ctrl+Enter: Новая строка","commands.promptSubmitShortcut.description":"Поменять местами Enter и Cmd/Ctrl+Enter в поле ввода промпта","commands.promptSubmitShortcut.keywords":"enter, отправить, новая строка, сочетание, cmd, ctrl, промпт","commands.thinkingBlocks.label.show":"Показать размышления","commands.thinkingBlocks.label.hide":"Скрыть размышления","commands.thinkingBlocks.description":"Показать или скрыть секции размышлений ИИ","commands.thinkingBlocks.keywords":"thinking, reasoning, переключить, показать, скрыть","commands.timelineToolCalls.label.show":"Показать Tool Calls в таймлайне","commands.timelineToolCalls.label.hide":"Скрыть Tool Calls в таймлайне","commands.timelineToolCalls.description":"Переключить отображение вызовов инструментов в таймлайне сообщений","commands.timelineToolCalls.keywords":"таймлайн, tool, переключить","commands.keyboardShortcutHints.label.show":"Показать подсказки сочетаний","commands.keyboardShortcutHints.label.hide":"Скрыть подсказки сочетаний","commands.keyboardShortcutHints.description":"Показать или скрыть подсказки сочетаний клавиш в интерфейсе","commands.keyboardShortcutHints.description.disabledWeb":"Отключено в WebUI (подсказки всегда скрыты)","commands.keyboardShortcutHints.keywords":"shortcut, shortcuts, keyboard, keybind, подсказки","commands.common.expanded":"Развернуто","commands.common.collapsed":"Свернуто","commands.common.visible":"Видимо","commands.common.hidden":"Скрыто","commands.common.enabled":"Включено","commands.common.disabled":"Выключено","commands.thinkingBlocksDefault.label":"Вид размышлений: {state}","commands.thinkingBlocksDefault.description":"Свернуть / Развернуть секции размышлений ИИ, когда они показаны","commands.thinkingBlocksDefault.keywords":"thinking, reasoning, развернуть, свернуть, по умолчанию","commands.diffViewSplit.label":"Раздельный просмотр diff","commands.diffViewSplit.description":"Показывать diff вызовов инструментов рядом","commands.diffViewSplit.keywords":"diff, split, просмотр","commands.diffViewUnified.label":"Единый просмотр diff","commands.diffViewUnified.description":"Показывать diff вызовов инструментов в одну колонку","commands.diffViewUnified.keywords":"diff, unified, просмотр","commands.toolOutputsDefault.label":"Выводы инструментов по умолчанию · {state}","commands.toolOutputsDefault.description":"Переключить, разворачивать ли выводы инструментов по умолчанию","commands.toolOutputsDefault.keywords":"tool, output, развернуть, свернуть","commands.diagnosticsDefault.label":"Диагностика по умолчанию · {state}","commands.diagnosticsDefault.description":"Переключить, разворачивать ли вывод диагностики по умолчанию","commands.diagnosticsDefault.keywords":"diagnostics, развернуть, свернуть","commands.toolInputsVisibility.label":"Видимость входных данных инструмента · {state}","commands.toolInputsVisibility.description":"Установить видимость аргументов входа вызовов инструментов по умолчанию","commands.toolInputsVisibility.keywords":"инструмент, вход, аргументы, видимость, скрыть, показать, раскрыть, свернуть, tool, inputs, arguments, visibility, hide, show, expand, collapse","commands.tokenUsageDisplay.label":"Отображение token-статистики · {state}","commands.tokenUsageDisplay.description":"Показать или скрыть статистику token и стоимости для сообщений ассистента","commands.tokenUsageDisplay.keywords":"token, usage, cost, статистика","commands.autoCleanupBlankSessions.label":"Авто-очистка пустых сессий · {state}","commands.autoCleanupBlankSessions.description":"Автоматически очищать пустые сессии при создании новых","commands.autoCleanupBlankSessions.keywords":"auto, cleanup, пустые, сессии, переключить","commands.showHelp.label":"Показать справку","commands.showHelp.description":"Показать горячие клавиши и справку","commands.showHelp.keywords":"горячие клавиши, справка","commands.custom.argumentsPrompt.message":"Аргументы для /{name}","commands.custom.argumentsPrompt.title":"Пользовательская команда","commands.custom.argumentsPrompt.inputLabel":"Аргументы","commands.custom.argumentsPrompt.inputPlaceholder":"например: foo bar","commands.custom.argumentsPrompt.confirmLabel":"Запустить","commands.custom.argumentsPrompt.cancelLabel":"Отмена","commands.custom.argumentsPrompt.openFailed.message":"Не удалось открыть prompt аргументов.","commands.custom.argumentsPrompt.openFailed.title":"Аргументы команды","commands.custom.entries.descriptionFallback":"Пользовательская команда","commands.custom.sessionRequired.message":"Выберите сессию перед запуском пользовательской команды.","commands.custom.sessionRequired.title":"Требуется сессия","commands.custom.runFailed.message":"Не удалось запустить пользовательскую команду. Проверьте консоль для подробностей.","commands.custom.runFailed.title":"Команда не выполнена","unifiedPicker.loading.searching":"Поиск…","unifiedPicker.loading.loadingWorkspace":"Загрузка рабочего пространства…","unifiedPicker.title.command":"Выберите команду","unifiedPicker.title.mention":"Выберите агента или файл","unifiedPicker.empty":"Ничего не найдено","unifiedPicker.sections.commands":"КОМАНДЫ","unifiedPicker.sections.agents":"АГЕНТЫ","unifiedPicker.sections.files":"ФАЙЛЫ","unifiedPicker.badge.subagent":"субагент","unifiedPicker.footer.navigate":"навигация","unifiedPicker.footer.select":"выбрать","unifiedPicker.footer.close":"закрыть"},i={"alertDialog.fallbackTitle.info":"Внимание","alertDialog.fallbackTitle.warning":"Пожалуйста, проверьте","alertDialog.fallbackTitle.error":"Что-то пошло не так","alertDialog.actions.confirm":"Подтвердить","alertDialog.actions.run":"Запустить","alertDialog.actions.ok":"ОК","alertDialog.actions.cancel":"Отмена","alertDialog.prompt.inputLabel":"Ввод","backgroundProcessOutputDialog.title":"Фоновый вывод","backgroundProcessOutputDialog.actions.close":"Закрыть","backgroundProcessOutputDialog.loading":"Загрузка вывода…","backgroundProcessOutputDialog.truncatedNotice":"Вывод обрезан для отображения.","backgroundProcessOutputDialog.loadErrorFallback":"Не удалось загрузить вывод."},n={"directoryBrowser.defaultDescription":"Просматривайте папки в пределах настроенного корня рабочего пространства.","directoryBrowser.close":"Закрыть","directoryBrowser.currentFolder":"Текущая папка","directoryBrowser.selectCurrent":"Выбрать текущую","directoryBrowser.newFolder":"Новая папка","directoryBrowser.creating":"Создание…","directoryBrowser.loadingFolders":"Загрузка папок…","directoryBrowser.noFolders":"Папки недоступны.","directoryBrowser.upOneLevel":"На уровень выше","directoryBrowser.select":"Выбрать","directoryBrowser.load.errorFallback":"Не удалось загрузить файловую систему","directoryBrowser.createFolder.promptMessage":"Создайте новую папку в текущем каталоге.","directoryBrowser.createFolder.title":"Новая папка","directoryBrowser.createFolder.inputLabel":"Имя папки","directoryBrowser.createFolder.inputPlaceholder":"например my-new-project","directoryBrowser.createFolder.confirmLabel":"Создать","directoryBrowser.createFolder.cancelLabel":"Отмена","directoryBrowser.createFolder.invalidNameMessage":"Введите одно имя папки.","directoryBrowser.createFolder.invalidNameDetail":"Имя папки не может содержать слэши, '..' или '~'.","directoryBrowser.createFolder.errorFallback":"Не удалось создать папку","filesystemBrowser.descriptionFallback":"Найдите путь в пределах настроенного корня рабочего пространства.","filesystemBrowser.rootLabel":"Корень: {root}","filesystemBrowser.actions.close":"Закрыть","filesystemBrowser.actions.retry":"Повторить","filesystemBrowser.actions.select":"Выбрать","filesystemBrowser.filterLabel":"Фильтр","filesystemBrowser.search.placeholder.directories":"Поиск папок","filesystemBrowser.search.placeholder.files":"Поиск файлов","filesystemBrowser.currentFolder.label":"Текущая папка","filesystemBrowser.currentFolder.selectCurrent":"Выбрать текущую","filesystemBrowser.loading.filesystem":"файловую систему","filesystemBrowser.loading.workspaceRoot":"корень рабочего пространства","filesystemBrowser.loading.loadingWithPath":"Загрузка {path}…","filesystemBrowser.empty.noEntries":"Ничего не найдено.","filesystemBrowser.navigation.upOneLevel":"На уровень выше","filesystemBrowser.hints.navigate":"Навигация","filesystemBrowser.hints.select":"Выбрать","filesystemBrowser.hints.close":"Закрыть","filesystemBrowser.errors.loadFilesystemFallback":"Не удалось загрузить файловую систему","filesystemBrowser.errors.openDirectoryFallback":"Не удалось открыть каталог"},a={"folderSelection.language.ariaLabel":"Язык","folderSelection.logoAlt":"Логотип CodeNomad","folderSelection.tagline":"Выберите папку, чтобы начать писать код с AI","folderSelection.links.github":"GitHub CodeNomad","folderSelection.links.githubStars":"Звезды GitHub CodeNomad","folderSelection.links.discord":"Discord CodeNomad","folderSelection.empty.title":"Нет недавних папок","folderSelection.empty.description":"Выберите папку, чтобы начать","folderSelection.recent.title":"Недавние папки","folderSelection.recent.subtitle.one":"Доступна {count} папка","folderSelection.recent.subtitle.other":"Доступно {count} папок","folderSelection.recent.remove":"Убрать из недавних","folderSelection.browse.title":"Выбрать папку","folderSelection.browse.subtitle":"Выберите любую папку на компьютере","folderSelection.browse.button":"Обзор папок","folderSelection.browse.buttonOpening":"Открытие…","folderSelection.actions.title":"Открыть папку или подключить сервер","folderSelection.actions.subtitle":"Откройте локальную папку или подключитесь к серверу CodeNomad","folderSelection.actions.connectButton":"Подключить сервер CodeNomad","folderSelection.advancedSettings":"Расширенные настройки","folderSelection.opencode":"OpenCode","folderSelection.hints.navigate":"Навигация","folderSelection.hints.select":"Выбрать","folderSelection.hints.remove":"Убрать","folderSelection.hints.browse":"Обзор","folderSelection.loading.title":"Запуск экземпляра…","folderSelection.loading.subtitle":"Подождите, пока мы подготовим рабочее пространство.","folderSelection.drop.title":"Перетащите папку, чтобы открыть ее","folderSelection.drop.subtitle":"Запустите новый экземпляр в перетащенной папке.","folderSelection.drop.invalidTitle":"Не удалось открыть перетащенный элемент","folderSelection.drop.invalidMessage":"Перетащите папку, чтобы запустить новый экземпляр.","folderSelection.dialog.title":"Выберите рабочее пространство","folderSelection.dialog.description":"Выберите рабочее пространство, чтобы начать писать код.","folderSelection.tabs.local":"Локальные папки","folderSelection.tabs.servers":"Серверы","folderSelection.servers.title":"Сохраненные серверы","folderSelection.servers.subtitle":"Откройте сохраненный удаленный сервер CodeNomad в новом окне","folderSelection.servers.count":"{count} серверов","folderSelection.servers.empty.title":"Нет сохраненных серверов","folderSelection.servers.empty.description":"Добавьте удаленный сервер, чтобы быстро подключаться к нему с этого устройства","folderSelection.servers.connectTitle":"Подключиться к серверу","folderSelection.servers.connectSubtitle":"Сохраните удаленный сервер CodeNomad и откройте его в новом окне","folderSelection.servers.connectButton":"Подключиться к серверу","folderSelection.servers.remove":"Удалить сохраненный сервер","folderSelection.servers.skipTls":"Самоподписанный TLS","folderSelection.servers.errorTitle":"Ошибка удаленного подключения","folderSelection.servers.dialog.title":"Подключиться к серверу","folderSelection.servers.dialog.description":"Добавьте удаленный сервер CodeNomad и при желании сразу откройте его.","folderSelection.servers.dialog.name":"Имя сервера","folderSelection.servers.dialog.namePlaceholder":"Продакшн сервер","folderSelection.servers.dialog.url":"URL сервера","folderSelection.servers.dialog.urlPlaceholder":"https://server.example.com","folderSelection.servers.dialog.skipTls":"Пропустить проверку TLS для самоподписанных сертификатов.","folderSelection.servers.dialog.cancel":"Отмена","folderSelection.servers.dialog.save":"Сохранить","folderSelection.servers.dialog.connect":"Подключиться","folderSelection.servers.dialog.connecting":"Подключение...","folderSelection.servers.dialog.errorRequired":"Имя сервера и URL обязательны.","folderSelection.servers.dialog.errorConnect":"Не удалось подключиться к удаленному серверу."},l={"instanceTabs.new.title":"Новый экземпляр (Cmd/Ctrl+N)","instanceTabs.new.ariaLabel":"Новый экземпляр","instanceTabs.remote.title":"Удаленное подключение","instanceTabs.remote.ariaLabel":"Удаленное подключение","instanceInfo.title":"Информация об экземпляре","instanceInfo.labels.folder":"Папка","instanceInfo.labels.project":"Проект","instanceInfo.labels.versionControl":"Система контроля версий","instanceInfo.labels.opencodeVersion":"Версия OpenCode","instanceInfo.labels.binaryPath":"Путь к бинарнику","instanceInfo.labels.environmentVariables":"Переменные окружения ({count})","instanceInfo.loading":"Загрузка…","instanceInfo.server.title":"Сервер","instanceInfo.server.port":"Порт:","instanceInfo.server.pid":"PID:","instanceInfo.server.status":"Статус:","instanceTab.status.permission":"Ожидание разрешения","instanceTab.status.compacting":"Компактация","instanceTab.status.working":"Работает","instanceTab.status.idle":"Простой","instanceTab.status.ariaLabel":"Статус экземпляра: {status}","instanceTab.actions.close.ariaLabel":"Закрыть экземпляр","instanceShell.leftPanel.sessionsTitle":"Сессии","instanceShell.leftPanel.instanceInfo":"Информация об экземпляре","instanceShell.leftDrawer.pin":"Закрепить левую панель","instanceShell.leftDrawer.unpin":"Открепить левую панель","instanceShell.leftDrawer.toggle.pinned":"Левая панель закреплена","instanceShell.leftDrawer.toggle.open":"Открыть левую панель","instanceShell.leftDrawer.toggle.close":"Закрыть левую панель","instanceShell.rightDrawer.pin":"Закрепить правую панель","instanceShell.rightDrawer.unpin":"Открепить правую панель","instanceShell.rightDrawer.toggle.pinned":"Правая панель закреплена","instanceShell.rightDrawer.toggle.open":"Открыть правую панель","instanceShell.rightDrawer.toggle.close":"Закрыть правую панель","instanceShell.fullscreen.enter":"Полный экран","instanceShell.fullscreen.exit":"Выйти из полного экрана","instanceShell.metrics.usedLabel":"Использовано","instanceShell.metrics.availableLabel":"Доступно","instanceShell.commandPalette.openAriaLabel":"Открыть палитру команд","instanceShell.commandPalette.button":"Палитра команд","instanceShell.connection.ariaLabel":"Соединение {status}","instanceShell.connection.connected":"Подключено","instanceShell.connection.connecting":"Подключение…","instanceShell.connection.disconnected":"Отключено","instanceShell.connection.unknown":"Неизвестно","instanceWelcome.shortcuts.newSession":"Новая сессия","instanceWelcome.empty.title":"Нет предыдущих сессий","instanceWelcome.empty.description":"Создайте новую сессию ниже, чтобы начать","instanceWelcome.loading.title":"Загрузка сессий","instanceWelcome.loading.description":"Получаем ваши предыдущие сессии…","instanceWelcome.resume.title":"Продолжить сессию","instanceWelcome.resume.subtitle.one":"{count} сессия доступна","instanceWelcome.resume.subtitle.other":"{count} сессий доступно","instanceWelcome.session.untitled":"Сессия без названия","instanceWelcome.new.title":"Начать новую сессию","instanceWelcome.new.subtitle":"Мы автоматически используем последнего агента/модель","instanceWelcome.new.createButton":"Создать сессию","instanceWelcome.overlay.close":"Закрыть","instanceWelcome.actions.viewInstanceInfo":"Показать информацию об экземпляре","instanceWelcome.actions.renameTitle":"Переименовать сессию","instanceWelcome.actions.deleteTitle":"Удалить сессию","instanceWelcome.hints.navigate":"Навигация","instanceWelcome.hints.jump":"Перейти","instanceWelcome.hints.firstLast":"Первый/последний","instanceWelcome.hints.resume":"Продолжить","instanceWelcome.hints.delete":"Удалить","instanceWelcome.toasts.renameError":"Не удалось переименовать сессию","instanceDisconnected.title":"Экземпляр отключен","instanceDisconnected.folderFallback":"это рабочее пространство","instanceDisconnected.reasonFallback":"Сервер перестал отвечать","instanceDisconnected.description":"{folder} больше недоступно. Закройте вкладку, чтобы продолжить работу.","instanceDisconnected.details.title":"Подробности","instanceDisconnected.details.folderLabel":"Папка:","instanceDisconnected.actions.closeInstance":"Закрыть экземпляр","instanceShell.empty.title":"Сессия не выбрана","instanceShell.empty.description":"Выберите сессию, чтобы просмотреть сообщения","instanceShell.rightPanel.title":"Панель состояния","instanceShell.rightPanel.tabs.changes":"Изменения","instanceShell.rightPanel.tabs.gitChanges":"Изменения Git","instanceShell.rightPanel.tabs.files":"Файлы","instanceShell.rightPanel.tabs.status":"Статус","instanceShell.rightPanel.tabs.ariaLabel":"Вкладки правой панели","instanceShell.rightPanel.actions.refresh":"Обновить","instanceShell.rightPanel.actions.save":"Сохранить (Ctrl+S)","instanceShell.rightPanel.actions.saveConfirm.message":'Сохранить изменения в "{path}" перед переключением?',"instanceShell.rightPanel.actions.saveConfirm.confirmLabel":"Сохранить","instanceShell.rightPanel.actions.saveConfirm.cancelLabel":"Отменить изменения","instanceShell.rightPanel.actions.conflict.message":"Файл был изменён агентом. Перезаписать изменения агента?","instanceShell.rightPanel.actions.conflict.confirmLabel":"Перезаписать","instanceShell.rightPanel.actions.conflict.cancelLabel":"Отмена","instanceShell.rightPanel.actions.refreshDirty.message":"Файл имеет несохранённые изменения. Обновление отменит ваши правки. Продолжить?","instanceShell.rightPanel.actions.refreshDirty.confirmLabel":"Обновить","instanceShell.rightPanel.actions.refreshDirty.cancelLabel":"Отмена","instanceShell.rightPanel.toast.saveSuccess":"Файл успешно сохранён","instanceShell.rightPanel.toast.saveError":"Не удалось сохранить файл","instanceShell.rightPanel.sections.yoloMode":"Режим Yolo","instanceShell.rightPanel.sections.yoloMode.tooltip":"Автоматически одобряет запросы разрешений для текущей сессии. Включайте только если доверяете запускаемым инструментам.","instanceShell.rightPanel.sections.sessionChanges":"Изменения сессии","instanceShell.rightPanel.sections.sessionChanges.tooltip":"Файлы, измененные в текущей сессии. Показывает добавления и удаления для каждого файла.","instanceShell.rightPanel.sections.plan":"План","instanceShell.rightPanel.sections.plan.tooltip":"Дорожная карта агента для этой сессии. Отслеживает задачи и их статус выполнения.","instanceShell.rightPanel.sections.backgroundProcesses":"Фоновые оболочки","instanceShell.rightPanel.sections.backgroundProcesses.tooltip":"Долгоработающие процессы, запущенные агентом. Вы можете следить за их выводом, останавливать или завершать их.","instanceShell.rightPanel.sections.mcp":"MCP-серверы","instanceShell.rightPanel.sections.mcp.tooltip":"Серверы протокола Model Context Protocol, расширяющие возможности агента внешними инструментами.","instanceShell.rightPanel.sections.lsp":"LSP-серверы","instanceShell.rightPanel.sections.lsp.tooltip":"Серверы протокола Language Server Protocol, обеспечивающие интеллектуальную поддержку кода и диагностику.","instanceShell.rightPanel.sections.plugins":"Плагины","instanceShell.rightPanel.sections.plugins.tooltip":"Плагины, настраивающие поведение интерфейса и сервера, добавляющие функции поверх MCP и LSP.","instanceShell.sessionChanges.noSessionSelected":"Выберите сессию, чтобы просмотреть изменения.","instanceShell.sessionChanges.loading":"Загрузка изменений...","instanceShell.sessionChanges.empty":"Пока нет изменений.","instanceShell.sessionChanges.filesChanged":"Изменено файлов: {count}","instanceShell.sessionChanges.actions.show":"Показать изменения","instanceShell.gitChanges.loading":"Загрузка изменений Git...","instanceShell.gitChanges.empty":"Изменений Git пока нет.","instanceShell.gitChanges.deleted":"Удалено","instanceShell.filesShell.fileListTitle":"Список файлов","instanceShell.filesShell.mobileSelectorLabel":"Выбрать файл","instanceShell.filesShell.mobileSelectorEmpty":"Выберите файл","instanceShell.filesShell.viewerTitle":"Просмотр изменений","instanceShell.filesShell.viewerPlaceholder":"Подробный рендер изменений будет добавлен на следующем этапе.","instanceShell.filesShell.viewerEmpty":"Файл не выбран.","instanceShell.plan.noSessionSelected":"Выберите сессию, чтобы просмотреть план.","instanceShell.plan.empty":"Пока ничего не запланировано.","instanceShell.yoloMode.noSessionSelected":"Выберите сессию, чтобы настроить режим Yolo.","instanceShell.yoloMode.title":"Режим Yolo","instanceShell.yoloMode.description":"Автоматически одобряет запросы разрешений для этой сессии. По умолчанию выключен.","instanceShell.yoloMode.badge":"Yolo","instanceShell.yoloMode.badgeAriaLabel":"Режим Yolo включен","instanceShell.backgroundProcesses.empty":"Нет фоновых процессов.","instanceShell.backgroundProcesses.status":"Статус: {status}","instanceShell.backgroundProcesses.output":"Вывод: {sizeKb}KB","instanceShell.backgroundProcesses.actions.output":"Вывод","instanceShell.backgroundProcesses.actions.stop":"Остановить","instanceShell.backgroundProcesses.actions.terminate":"Завершить","versionPill.appWithVersion":"Приложение {version}","versionPill.ui":"UI","versionPill.uiWithVersion":"UI {version}","versionPill.source":" ({source})","opencodeBinarySelector.title":"Бинарник OpenCode","opencodeBinarySelector.subtitle":"Выберите, какой исполняемый файл OpenCode запускать","opencodeBinarySelector.customPath.placeholder":"Введите путь к бинарнику opencode…","opencodeBinarySelector.actions.add":"Добавить","opencodeBinarySelector.actions.browse":"Выбрать бинарник…","opencodeBinarySelector.actions.removeTitle":"Удалить бинарник","opencodeBinarySelector.badge.systemPath":"Использовать бинарник из системного PATH","opencodeBinarySelector.status.checkingVersions":"Проверка версий…","opencodeBinarySelector.status.checking":"Проверка…","opencodeBinarySelector.dialog.title":"Выберите бинарник OpenCode","opencodeBinarySelector.dialog.description":"Просматривайте файлы, доступные через CLI-сервер.","opencodeBinarySelector.validation.invalidBinary":"Неверный бинарник OpenCode","opencodeBinarySelector.validation.alreadyValidating":"Проверка уже выполняется","opencodeBinarySelector.display.systemPath":"{name} (system PATH)","opencodeBinarySelector.versionLabel":"v{version}"},r={"loadingScreen.logoAlt":"Логотип CodeNomad","loadingScreen.status.issue":"Возникла проблема","loadingScreen.actions.showAnother":"Показать другое","loadingScreen.errors.missingRoot":"Корневой элемент загрузки не найден","loadingScreen.phrases.neurons":"Разогреваем нейроны AI…","loadingScreen.phrases.daydreaming":"Убеждаем AI перестать мечтать…","loadingScreen.phrases.goggles":"Полируем кодовые очки AI…","loadingScreen.phrases.reorganizingFiles":"Просим AI перестать реорганизовывать ваши файлы…","loadingScreen.phrases.coffee":"Подкармливаем AI дополнительным кофе…","loadingScreen.phrases.nodeModules":"Учимся не удалять node_modules (снова)…","loadingScreen.phrases.actNatural":"Просим AI вести себя естественно до вашего прихода…","loadingScreen.phrases.rewritingHistory":"Просим AI перестать переписывать историю…","loadingScreen.phrases.stretch":"Даем AI размяться перед кодинг-спринтом…","loadingScreen.phrases.keyboardControl":"Убеждаем AI вернуть вам управление клавиатурой…"},c={"logsView.title":"Логи сервера","logsView.actions.show":"Показать логи сервера","logsView.actions.hide":"Скрыть логи сервера","logsView.envVars.title":"Переменные окружения ({count})","logsView.paused.title":"Логи сервера приостановлены","logsView.paused.description":"Включите стриминг, чтобы наблюдать за активностью сервера OpenCode.","logsView.empty.waiting":"Ожидание вывода сервера…","logsView.scrollToBottom":"Прокрутить вниз","infoView.logs.title":"Логи сервера","infoView.logs.actions.show":"Показать логи сервера","infoView.logs.actions.hide":"Скрыть логи сервера","infoView.logs.paused.title":"Логи сервера приостановлены","infoView.logs.paused.description":"Включите стриминг, чтобы наблюдать за активностью сервера OpenCode.","infoView.logs.empty.waiting":"Ожидание вывода сервера…","infoView.logs.scrollToBottom":"Прокрутить вниз","infoView.dispose.actions.dispose":"Сбросить инстанс","infoView.dispose.actions.disposing":"Сброс...","infoView.dispose.confirm.title":"Сбросить инстанс?","infoView.dispose.confirm.message":"Это очистит кэш состояния проекта для этого каталога и перезагрузит инстанс.","infoView.dispose.confirm.confirmLabel":"Сбросить","infoView.dispose.confirm.cancelLabel":"Отмена","infoView.dispose.toast.success":"Инстанс сброшен. Перезагрузка...","infoView.dispose.toast.error":"Не удалось сбросить инстанс."},d={"markdown.codeBlock.copy.label":"Копировать","markdown.codeBlock.copy.copied":"Скопировано!","markdown.codeBlock.copy.failed":"Не удалось","markdown.copy":"Копировать"},m={"messageListHeader.sidebar.openSessionListAriaLabel":"Открыть список сессий","messageListHeader.metrics.usedLabel":"Использовано","messageListHeader.metrics.availableLabel":"Доступно","messageListHeader.commandPalette.ariaLabel":"Открыть палитру команд","messageListHeader.commandPalette.button":"Палитра команд","messageListHeader.connection.connected":"Подключено","messageListHeader.connection.connecting":"Подключение…","messageListHeader.connection.disconnected":"Отключено","messageSection.empty.logoAlt":"Логотип CodeNomad","messageSection.empty.brandTitle":"CodeNomad","messageSection.empty.title":"Начните разговор","messageSection.empty.description":"Введите сообщение ниже или откройте палитру команд:","messageSection.empty.tips.commandPalette":"Палитра команд","messageSection.empty.tips.askAboutCodebase":"Спросите о своей кодовой базе","messageSection.empty.tips.attachFilesPrefix":"Прикрепляйте файлы через","messageSection.loading.messages":"Загрузка сообщений…","messageSection.scroll.toFirstAriaLabel":"Прокрутить к первому сообщению","messageSection.scroll.toLatestAriaLabel":"Прокрутить к последнему сообщению","messageSection.quote.addAsQuote":"Добавить как цитату","messageSection.quote.addAsCode":"Добавить как код","messageSection.quote.copy":"Копировать","messageSection.quote.copied":"Скопировано!","messageSection.quote.copyFailed":"Не удалось скопировать","messageTimeline.ariaLabel":"Таймлайн сообщений","messageTimeline.segment.user.label":"Вы","messageTimeline.segment.assistant.label":"Асс.","messageTimeline.segment.compaction.label":"Компактация","messageTimeline.tool.fallbackLabel":"Вызов инструмента","messageTimeline.tooltip.userFallback":"Сообщение пользователя","messageTimeline.tooltip.assistantFallback":"Ответ ассистента","messageTimeline.tooltip.compaction.auto":"Автокомпактация","messageTimeline.tooltip.compaction.manual":"Компактация пользователем","messageTimeline.text.filePrefix":"[Файл] {filename}","messageTimeline.text.attachment":"Вложение","messageBlock.tool.header":"Вызов инструмента","messageBlock.tool.unknown":"неизвестно","messageBlock.tool.goToSession.label":"Перейти к сессии","messageBlock.tool.goToSession.title":"Перейти к сессии","messageBlock.tool.goToSession.unavailableTitle":"Сессия пока недоступна","messageBlock.tool.deletePart.label":"Удалить часть","messageBlock.tool.deletePart.deleting":"Удаление...","messageBlock.tool.deletePart.title":"Удалить этот вывод инструмента","messageBlock.tool.deletePart.failed.title":"Ошибка удаления","messageBlock.tool.deletePart.failed.message":"Не удалось удалить вывод инструмента","messageBlock.compaction.ariaLabel":"Компактация сессии","messageBlock.compaction.autoLabel":"Сессия автоматически компактирована","messageBlock.compaction.manualLabel":"Сессия компактирована вами","messageBlock.usage.input":"Ввод","messageBlock.usage.output":"Вывод","messageBlock.usage.reasoning":"Рассуждения","messageBlock.usage.cacheRead":"Чтение кэша","messageBlock.usage.cacheWrite":"Запись кэша","messageBlock.usage.cost":"Стоимость","messageBlock.step.agentLabel":"Агент: {agent}","messageBlock.step.modelLabel":"Модель: {model}","messageBlock.reasoning.thinkingLabel":"Размышления","messageBlock.reasoning.expandAriaLabel":"Развернуть размышления","messageBlock.reasoning.collapseAriaLabel":"Свернуть размышления","messageBlock.reasoning.indicator.hide":"Скрыть","messageBlock.reasoning.indicator.view":"Показать","messageBlock.reasoning.detailsAriaLabel":"Детали рассуждений","codeBlockInline.actions.copy":"Копировать","codeBlockInline.actions.copied":"Скопировано!","messageItem.speaker.you":"Вы","messageItem.speaker.assistant":"Ассистент","messageItem.actions.revert":"Откатить","messageItem.actions.revertTitle":"Отменить изменения до этого места (удалит сообщения)","messageItem.actions.fork":"Форк","messageItem.actions.forkTitle":"Форкнуть от этого сообщения","messageItem.actions.copy":"Копировать","messageItem.actions.copyTitle":"Копировать сообщение","messageItem.actions.copied":"Скопировано!","messageItem.actions.speak":"Озвучить сообщение","messageItem.actions.generatingSpeech":"Генерация аудио","messageItem.actions.stopSpeech":"Остановить воспроизведение","messageItem.actions.speak.error.title":"Не удалось воспроизвести речь","messageItem.actions.speak.error.unsupported":"В этом браузере воспроизведение речи не поддерживается.","messageItem.actions.speak.error.unavailable":"Воспроизведение речи недоступно, пока не настроены голосовые параметры.","messageItem.actions.speak.error.generate":"Не удалось сгенерировать аудио для этого сообщения.","messageItem.actions.deleteMessage":"Удалить сообщение (без отката изменений)","messageItem.actions.deleteMessagesUpTo":"Удалить сообщения до этого места (без отката изменений)","messageItem.actions.deletingMessage":"Удаление...","messageItem.actions.deleteMessageFailedTitle":"Ошибка удаления","messageItem.actions.deleteMessageFailedMessage":"Не удалось удалить сообщение","messageItem.selection.checkboxAriaLabel":"Выбрать сообщение для удаления","messageSection.bulkDelete.toolbarAriaLabel":"Выбранные элементы ({count})","messageSection.bulkDelete.deleteSelectedTitle":"Удалить выбранные элементы","messageSection.bulkDelete.selectAllTitle":"Выбрать все сообщения","messageSection.bulkDelete.moreOptionsTitle":"Больше настроек","messageSection.bulkDelete.selectionModeLabel":"Выбор","messageSection.bulkDelete.selectionModeAll":"Все","messageSection.bulkDelete.selectionModeTools":"Только инструменты","messageSection.bulkDelete.selectionHint.toggle":"Выбрать элемент","messageSection.bulkDelete.selectionHint.range":"Выбрать диапазон","messageSection.bulkDelete.selectionHint.clear":"Очистить выбор","messageSection.bulkDelete.cancelTitle":"Отменить выбор","messageSection.bulkDelete.failedTitle":"Ошибка удаления","messageSection.bulkDelete.failedMessage":"Не удалось удалить выбранные элементы","messageItem.status.queued":"В ОЧЕРЕДИ","messageItem.status.generating":"Генерация…","messageItem.status.sending":"Отправка…","messageItem.status.failedToSend":"Не удалось отправить сообщение","messagePart.actions.delete":"Удалить часть","messagePart.actions.deleting":"Удаление...","messagePart.actions.deleteTitle":"Удалить этот элемент","messagePart.actions.deleteFailedTitle":"Ошибка удаления","messagePart.actions.deleteFailedMessage":"Не удалось удалить элемент","messageItem.attachment.defaultName":"вложение","messageItem.attachment.downloadAriaLabel":"Скачать {name}","messageItem.agentMeta.agentLabel":"Агент: {agent}","messageItem.agentMeta.modelLabel":"Модель: {model}","messageItem.errors.authenticationFallback":"Ошибка аутентификации","messageItem.errors.outputLengthExceeded":"Превышена длина вывода сообщения","messageItem.errors.requestAborted":"Запрос был прерван","messageItem.errors.unknownFallback":"Произошла неизвестная ошибка","attachmentChip.removeAriaLabel":"Удалить вложение","expandButton.toggleAriaLabel":"Переключить высоту поля ввода","promptInput.placeholder.shell":"Выполнить команду shell (Esc для выхода)…","promptInput.placeholder.default":"Введите сообщение, @file, @agent или вставьте изображения и текст…","promptInput.hints.shell.exit":"чтобы выйти из режима shell","promptInput.hints.shell.enable":"Режим shell","promptInput.hints.commands":"Команды","promptInput.history.previousAriaLabel":"Предыдущий prompt","promptInput.history.nextAriaLabel":"Следующий prompt","promptInput.overlay.newLine":"Новая строка","promptInput.overlay.send":"Отправить","promptInput.overlay.filesAgents":"Файлы/агенты","promptInput.overlay.history":"История","promptInput.overlay.attachments":"• прикреплено файлов: {count}","promptInput.overlay.shellModeActive":"Режим shell активен","promptInput.overlay.press":"Нажмите","promptInput.overlay.againToAbort":"еще раз, чтобы прервать сессию","promptInput.stopSession.ariaLabel":"Остановить сессию","promptInput.stopSession.title":"Остановить сессию","promptInput.clear.ariaLabel":"Очистить текст prompt","promptInput.clear.title":"Очистить текст prompt","promptInput.send.ariaLabel":"Отправить сообщение","promptInput.send.errorFallback":"Не удалось отправить сообщение","promptInput.send.errorTitle":"Не удалось отправить","promptInput.conversationMode.enable.title":"Включить режим разговора","promptInput.conversationMode.disable.title":"Выключить режим разговора","promptInput.conversationMode.error.title":"Сбой озвучивания разговора","promptInput.conversationMode.error.message":"Не удалось продолжить озвучивание ответов ассистента.","promptInput.voiceInput.start.title":"Начать голосовой ввод","promptInput.voiceInput.stop.title":"Остановить запись и расшифровать","promptInput.voiceInput.transcribing.title":"Идёт расшифровка аудио","promptInput.voiceInput.error.title":"Сбой голосового ввода","promptInput.voiceInput.error.permission":"Для записи голосового ввода требуется доступ к микрофону.","promptInput.voiceInput.error.permissionDenied":"macOS запретила доступ к микрофону.","promptInput.voiceInput.error.unsupported":"Голосовой ввод не поддерживается в этом браузере.","promptInput.voiceInput.error.transcribe":"Не удалось расшифровать записанное аудио."},p={"remoteAccess.eyebrow":"Удаленная передача управления","remoteAccess.title":"Подключитесь к CodeNomad удаленно","remoteAccess.subtitle":"Используйте адреса ниже, чтобы открыть CodeNomad с другого устройства.","remoteAccess.close":"Закрыть удаленный доступ","remoteAccess.refresh":"Обновить","remoteAccess.sections.listeningMode.label":"Режим прослушивания","remoteAccess.sections.listeningMode.help":"Разрешайте или ограничивайте удаленную передачу управления, привязываясь ко всем интерфейсам или только к localhost.","remoteAccess.toggle.on":"Вкл","remoteAccess.toggle.off":"Выкл","remoteAccess.toggle.title":"Разрешить подключения с других IP","remoteAccess.toggle.caption.all":"Привязка к 0.0.0.0","remoteAccess.toggle.caption.local":"Привязка к 127.0.0.1","remoteAccess.toggle.note":"Изменение требует перезапуска и временно остановит все активные экземпляры. Поделитесь адресами ниже после перезапуска сервера.","remoteAccess.listeningMode.restartConfirm.message":"Перезапустить, чтобы применить режим прослушивания? Это остановит все запущенные экземпляры.","remoteAccess.listeningMode.restartConfirm.title.all":"Открыть для других устройств","remoteAccess.listeningMode.restartConfirm.title.local":"Ограничить этим устройством","remoteAccess.listeningMode.restartConfirm.confirmLabel":"Перезапустить сейчас","remoteAccess.listeningMode.restartConfirm.cancelLabel":"Отмена","remoteAccess.restart.errorManual":"Не удалось перезапустить автоматически. Перезапустите приложение, чтобы применить изменение.","remoteAccess.sections.serverPassword.label":"Пароль сервера","remoteAccess.sections.serverPassword.help":"Для удаленной передачи управления требуется пароль. Установите запоминающийся пароль, чтобы разрешить вход с других устройств.","remoteAccess.authStatus.unavailable":"Статус аутентификации недоступен.","remoteAccess.username":"Имя пользователя: {username}","remoteAccess.password.status.set":"Для удаленного доступа установлен пароль.","remoteAccess.password.status.unset":"Пока не установлен запоминающийся пароль. Установите его, чтобы разрешить вход при удаленной передаче управления.","remoteAccess.password.actions.cancel":"Отмена","remoteAccess.password.actions.change":"Изменить пароль","remoteAccess.password.actions.set":"Установить пароль","remoteAccess.password.form.newPassword":"Новый пароль","remoteAccess.password.form.confirmPassword":"Подтвердите пароль","remoteAccess.password.form.placeholder":"Не менее 8 символов","remoteAccess.password.error.tooShort":"Пароль должен быть не короче 8 символов.","remoteAccess.password.error.mismatch":"Пароли не совпадают.","remoteAccess.password.save.saving":"Сохранение…","remoteAccess.password.save.label":"Сохранить пароль","remoteAccess.sections.addresses.label":"Доступные адреса","remoteAccess.sections.addresses.help":"Откройте или отсканируйте с другой машины, чтобы передать управление.","remoteAccess.addresses.loading":"Загрузка адресов…","remoteAccess.addresses.none":"Пока нет доступных адресов.","remoteAccess.addresses.actions.showOther":"Показать еще {count} адресов","remoteAccess.addresses.actions.hideOther":"Скрыть остальные адреса","remoteAccess.address.scope.network":"Сеть","remoteAccess.address.scope.loopback":"Loopback","remoteAccess.address.scope.internal":"Внутренний","remoteAccess.address.open":"Открыть","remoteAccess.address.showQr":"Показать QR","remoteAccess.address.hideQr":"Скрыть QR","remoteAccess.address.qrAlt":"QR для {url}"},g={"sessionPicker.title":"OpenCode • {folder}","sessionPicker.empty.noPrevious":"Нет предыдущих сессий","sessionPicker.resume.title":"Продолжить сессию ({count}):","sessionPicker.session.untitled":"Без названия","sessionPicker.divider.or":"или","sessionPicker.new.title":"Начать новую сессию:","sessionPicker.agents.loading":"Загрузка агентов…","sessionPicker.actions.creating":"Создание…","sessionPicker.actions.createSession":"Создать сессию","sessionPicker.actions.cancel":"Отмена","sessionList.header.title":"Сессии","sessionList.session.untitled":"Без названия","sessionList.status.working":"Работает","sessionList.status.compacting":"Компактация","sessionList.status.idle":"Простой","sessionList.status.retrying":"Повтор","sessionList.status.retryingIn":"Повтор через {seconds}с","sessionList.status.retryTooltip":"{message} (Попытка {attempt})","sessionList.status.retryToast":"{countdown}: {message} (Попытка {attempt})","sessionList.status.needsPermission":"Требуется разрешение","sessionList.status.needsInput":"Требуется ввод","sessionList.expand.collapseAriaLabel":"Свернуть сессию","sessionList.expand.expandAriaLabel":"Развернуть сессию","sessionList.expand.collapseTitle":"Свернуть","sessionList.expand.expandTitle":"Развернуть","sessionList.actions.newSession.ariaLabel":"Новая сессия","sessionList.actions.newSession.title":"Новая сессия","sessionList.actions.copyId.ariaLabel":"Скопировать ID сессии","sessionList.actions.copyId.title":"Скопировать ID сессии","sessionList.actions.reload.ariaLabel":"Обновить сессию","sessionList.actions.reload.title":"Обновить сессию","sessionList.actions.rename.ariaLabel":"Переименовать сессию","sessionList.actions.rename.title":"Переименовать сессию","sessionList.actions.delete.ariaLabel":"Удалить сессию","sessionList.actions.delete.title":"Удалить сессию","sessionList.copyId.success":"ID сессии скопирован","sessionList.copyId.error":"Не удалось скопировать ID сессии","sessionList.reload.error":"Не удалось обновить сессию","sessionList.delete.error":"Не удалось удалить сессию","sessionList.delete.title":"Удалить сессию","sessionList.delete.confirmMessage":'Удалить "{label}"? Это действие нельзя отменить.',"sessionList.delete.confirmLabel":"Удалить","sessionList.delete.cancelLabel":"Отмена","sessionList.rename.error":"Не удалось переименовать сессию","sessionList.filter.placeholder":"Поиск сессий…","sessionList.filter.ariaLabel":"Поиск сессий","sessionList.selection.selectAllLabel":"Выбрать все","sessionList.selection.selectAllAriaLabel":"Выбрать все сессии","sessionList.selection.clearLabel":"Очистить","sessionList.selection.clearAriaLabel":"Очистить выбор","sessionList.selection.checkboxAriaLabel":"Выбрать сессию","sessionList.bulkDelete.button":"Удалить {count}","sessionList.bulkDelete.ariaLabel":"Удалить {count} выбранных сессий","sessionList.bulkDelete.title":"Удалить сессии","sessionList.bulkDelete.confirmMessage":"Удалить {count} выбранных сессий? Это действие нельзя отменить.","sessionList.bulkDelete.confirmLabel":"Удалить","sessionList.bulkDelete.cancelLabel":"Отмена","sessionList.bulkDelete.error":"Не удалось удалить {count} сессий","sessionRenameDialog.title":"Переименовать сессию","sessionRenameDialog.description.withLabel":'Обновите название для "{label}".',"sessionRenameDialog.description.default":"Установите новое название для этой сессии.","sessionRenameDialog.input.label":"Название сессии","sessionRenameDialog.input.placeholder":"Введите название сессии","sessionRenameDialog.actions.cancel":"Отмена","sessionRenameDialog.actions.rename":"Переименовать","sessionRenameDialog.actions.renaming":"Переименование…","sessionView.fallback.sessionNotFound":"Сессия не найдена","sessionView.alerts.abortFailed.message":"Не удалось остановить сессию","sessionView.alerts.abortFailed.title":"Не удалось остановить","sessionView.alerts.revertFailed.message":"Не удалось откатиться к сообщению","sessionView.alerts.revertFailed.title":"Не удалось откатиться","sessionView.alerts.deleteUpToFailed.message":"Не удалось удалить сообщения","sessionView.alerts.deleteUpToFailed.title":"Ошибка удаления","sessionView.alerts.forkFailed.message":"Не удалось форкнуть сессию","sessionView.alerts.forkFailed.title":"Не удалось форкнуть","sessionView.attachments.expandPastedTextAriaLabel":"Развернуть вставленный текст","sessionView.attachments.insertPastedTextTitle":"Вставить вставленный текст","sessionView.attachments.removeAriaLabel":"Удалить вложение","sessionEvents.sessionCompactedToast":"Сессия {label} была компактирована","sessionEvents.sessionError.unknown":"Неизвестная ошибка","sessionEvents.sessionError.title":"Ошибка сессии","sessionEvents.sessionError.message":"Ошибка: {message}","sessionState.cleanup.deepConfirm.message":"Эта очистка может быть медленной и может удалить сессии, которые вы не хотели удалять. Вы уверены?","sessionState.cleanup.deepConfirm.title":"Глубокая очистка сессий","sessionState.cleanup.deepConfirm.detail":"Глубокая очистка сессий удалит все сессии без сообщений, уберет завершенные сессии субагентов и очистит неиспользуемые форки сессий.","sessionState.cleanup.deepConfirm.confirmLabel":"Продолжить","sessionState.cleanup.deepConfirm.cancelLabel":"Отмена","sessionState.cleanup.toast.one":"Удалена {count} пустая сессия","sessionState.cleanup.toast.other":"Удалено {count} пустых сессий"},u={"instanceServiceStatus.sections.lsp":"LSP-серверы","instanceServiceStatus.sections.mcp":"MCP-серверы","instanceServiceStatus.sections.plugins":"Плагины","instanceServiceStatus.lsp.loading":"Загрузка LSP-серверов…","instanceServiceStatus.lsp.empty":"LSP-серверы не обнаружены.","instanceServiceStatus.lsp.status.connected":"Подключено","instanceServiceStatus.lsp.status.error":"Ошибка","instanceServiceStatus.mcp.loading":"Загрузка MCP-серверов…","instanceServiceStatus.mcp.empty":"MCP-серверы не обнаружены.","instanceServiceStatus.mcp.toggleAriaLabel":"Переключить MCP-сервер {name}","instanceServiceStatus.plugins.loading":"Загрузка плагинов…","instanceServiceStatus.plugins.empty":"Плагины не настроены.","permissionBanner.pendingRequests.one":"{count} ожидающий запрос","permissionBanner.pendingRequests.other":"{count} ожидающих запросов","permissionBanner.detail.permission.one":"{count} разрешение","permissionBanner.detail.permission.other":"{count} разрешений","permissionBanner.detail.question.one":"{count} вопрос","permissionBanner.detail.question.other":"{count} вопросов","permissionBanner.detail.wrapper":" ({detail})","agentSelector.placeholder":"Выберите агента…","agentSelector.badge.subagent":"субагент","agentSelector.none":"Нет","agentSelector.trigger.primary":"Агент: {agent}","modelSelector.placeholder.search":"Поиск моделей…","modelSelector.none":"Нет","modelSelector.trigger.primary":"Модель: {model}","modelSelector.favoritesOnly.toggle.ariaLabel":"Только избранное","modelSelector.favoritesOnly.showAll":"Показать все модели","modelSelector.favorite.add":"Добавить в избранное","modelSelector.favorite.remove":"Удалить из избранного","thinkingSelector.variant.default":"По умолчанию","thinkingSelector.label":"Размышления: {variant}","envEditor.title":"Переменные окружения","envEditor.count.one":"({count} переменная)","envEditor.count.other":"({count} переменных)","envEditor.fields.name.placeholder":"Имя переменной","envEditor.fields.name.readOnlyTitle":"Имя переменной (только чтение)","envEditor.fields.value.placeholder":"Значение переменной","envEditor.actions.remove.title":"Удалить переменную","envEditor.actions.add.title":"Добавить переменную","envEditor.empty":"Переменные окружения не настроены. Добавьте переменные выше, чтобы настроить окружение OpenCode.","envEditor.help":"Эти переменные будут доступны в окружении OpenCode при запуске экземпляров.","contextUsagePanel.headings.tokens":"Tokens","contextUsagePanel.headings.context":"Контекст","contextUsagePanel.labels.input":"Ввод","contextUsagePanel.labels.output":"Вывод","contextUsagePanel.labels.cost":"Стоимость","contextUsagePanel.labels.used":"Использовано","contextUsagePanel.labels.available":"Доступно","contextUsagePanel.unavailable":"--","settings.title":"Settings","settings.navigationAriaLabel":"Settings sections","settings.close":"Close settings","settings.content.eyebrow":"Workspace preferences","settings.open.title":"Open settings","settings.open.ariaLabel":"Open settings","settings.nav.appearance":"Appearance","settings.nav.notifications":"Notifications","settings.nav.remote":"Remote Access","settings.nav.speech":"Speech","settings.nav.opencode":"OpenCode","settings.scope.device":"This device","settings.scope.server":"Server setting","settings.common.enabled":"Enabled","settings.common.disabled":"Отключено","settings.section.appearance.title":"Appearance","settings.section.appearance.subtitle":"Adjust how the app looks on this device.","settings.appearance.theme.title":"Theme","settings.appearance.theme.subtitle":"Choose the color mode used throughout the app.","settings.appearance.theme.option.system":"Match your operating system setting","settings.appearance.theme.option.light":"Use the light appearance","settings.appearance.theme.option.dark":"Use the dark appearance","settings.section.notifications.title":"Notifications","settings.section.notifications.subtitle":"Control OS-level notifications for session activity.","settings.notifications.permission.granted":"Granted","settings.notifications.permission.denied":"Denied","settings.notifications.permission.default":"Not granted","settings.notifications.permission.unsupported":"Unsupported","settings.notifications.messages.unsupportedEnvironment":"OS notifications are not supported in this environment.","settings.notifications.messages.permissionDenied":"Notification permission denied. Enable notifications in your system or browser settings.","settings.notifications.messages.permissionNotGranted":"Notification permission not granted.","settings.notifications.messages.unsupportedGeneral":"Notifications are not supported in this environment.","settings.notifications.messages.permissionGranted":"Permission granted. You can now enable notifications.","settings.notifications.messages.permissionRequestDenied":"Permission denied. You may need to enable notifications in your system or browser settings.","settings.notifications.sessionStatus.title":"Session status notifications","settings.notifications.sessionStatus.subtitle":"Receive alerts when sessions need your attention.","settings.notifications.enable.title":"Enable notifications","settings.notifications.enable.permission":"Permission: {permission}","settings.notifications.requestPermission.title":"Request permission","settings.notifications.requestPermission.subtitle":"Allow the app to send notifications on this device.","settings.notifications.requestPermission.action":"Request","settings.notifications.allowVisible.title":"Notify when the app is focused","settings.notifications.allowVisible.subtitle":"Keep alerts enabled even while this window is visible.","settings.notifications.unsupportedNote":"Notifications are not supported in this environment. The notifications control stays disabled.","settings.notifications.events.title":"Notify me when","settings.notifications.events.subtitle":"Choose which session events should send alerts.","settings.notifications.events.needsInput":"Session needs input","settings.notifications.events.idle":"Session becomes idle","settings.notifications.status.enabled":"Notifications enabled","settings.notifications.status.disabled":"Notifications disabled","settings.notifications.status.unsupported":"Notifications unsupported","settings.section.remote.title":"Remote Access","settings.section.remote.subtitle":"Review how this server is exposed on your network and secure access credentials.","settings.section.opencode.title":"OpenCode","settings.section.opencode.subtitle":"Choose the OpenCode binary and environment used for new instances.","settings.opencode.runtime.title":"Runtime","settings.opencode.runtime.subtitle":"Configure which OpenCode binary new instances launch with.","settings.opencode.logLevel.title":"Уровень логирования OpenCode","settings.opencode.logLevel.subtitle":"Задайте уровень логирования, используемый при запуске новых экземпляров OpenCode.","settings.opencode.logLevel.selector.title":"Подробность логов","settings.opencode.logLevel.selector.subtitle":"Выберите, сколько логов должны выводить новые экземпляры OpenCode.","settings.opencode.logLevel.option.debug":"Отладка","settings.opencode.logLevel.option.info":"Информация","settings.opencode.logLevel.option.warn":"Предупреждение","settings.opencode.logLevel.option.error":"Ошибка","settings.appearance.behavior.title":"Взаимодействие","settings.appearance.behavior.subtitle":"Значения по умолчанию для сообщений, диффов и ввода.","settings.behavior.keyboardHints.title":"Подсказки сочетаний клавиш","settings.behavior.keyboardHints.subtitle":"Показывать подсказки сочетаний клавиш по всему интерфейсу.","settings.behavior.thinking.title":"Разделы размышлений","settings.behavior.thinking.subtitle":"Показывать или скрывать разделы размышлений ИИ в сообщениях.","settings.behavior.thinkingDefault.title":"Размышления по умолчанию","settings.behavior.thinkingDefault.subtitle":"Выберите, начинать ли разделы размышлений развернутыми или свернутыми.","settings.behavior.timelineTools.title":"Вызовы инструментов в таймлайне","settings.behavior.timelineTools.subtitle":"Показывать или скрывать записи вызовов инструментов в таймлайне сообщений.","settings.behavior.diffView.title":"Вид диффа","settings.behavior.diffView.subtitle":"Выберите, как отображаются диффы вызовов инструментов.","settings.behavior.diffView.option.split":"Раздельный","settings.behavior.diffView.option.unified":"Единый","settings.behavior.toolOutputsDefault.title":"Выводы инструментов по умолчанию","settings.behavior.toolOutputsDefault.subtitle":"Выберите, начинать ли выводы инструментов развернутыми или свернутыми.","settings.behavior.diagnosticsDefault.title":"Диагностика по умолчанию","settings.behavior.diagnosticsDefault.subtitle":"Выберите, начинать ли вывод диагностики развернутым или свернутым.","settings.behavior.toolInputsVisibility.title":"Видимость входных данных инструмента","settings.behavior.toolInputsVisibility.subtitle":"Задайте видимость по умолчанию для входных аргументов вызовов инструментов.","settings.behavior.usageMetrics.title":"Метрики использования токенов","settings.behavior.usageMetrics.subtitle":"Показывать или скрывать статистику токенов и стоимости в сообщениях ассистента.","settings.behavior.autoCleanup.title":"Автоочистка пустых сессий","settings.behavior.autoCleanup.subtitle":"Автоматически очищать пустые сессии при создании новых.","settings.behavior.promptVoiceInput.title":"Prompt voice input","settings.behavior.promptVoiceInput.subtitle":"Show the microphone control for speech-to-text prompt input when speech is configured.","settings.behavior.promptSubmit.title":"Enter для отправки","settings.behavior.promptSubmit.subtitle":"Enter отправляет; Cmd/Ctrl+Enter вставляет новую строку.","settings.speech.title":"Речь","settings.speech.subtitle":"Настройте преобразование речи в текст сейчас и подготовьте основу для синтеза речи в будущих функциях.","settings.speech.provider.title":"Провайдер","settings.speech.provider.subtitle":"Речевые запросы используют серверный речевой адаптер.","settings.speech.provider.openaiCompatible":"OpenAI-compatible","settings.speech.status.loading":"Проверка конфигурации...","settings.speech.status.configured":"Настроено","settings.speech.status.missing":"Отсутствует API-ключ","settings.speech.status.error":"Речевой сервис недоступен","settings.speech.apiKey.title":"API key","settings.speech.apiKey.subtitle":"Используется для речевых запросов, управляемых CodeNomad.","settings.speech.apiKey.placeholder":"Введите новый API-ключ","settings.speech.apiKey.storedNote":"Сохранённый API-ключ скрыт. Введите новое значение, чтобы заменить его, или оставьте поле пустым, чтобы сохранить текущий ключ.","settings.speech.apiKey.clearAction":"Удалить сохранённый ключ","settings.speech.apiKey.clearPending":"Сохранённый API-ключ будет удалён после сохранения.","settings.speech.baseUrl.title":"Base URL","settings.speech.baseUrl.subtitle":"Необязательная переопределяющая ссылка для речевых endpoint'ов, совместимых с OpenAI.","settings.speech.baseUrl.placeholder":"https://api.openai.com/v1","settings.speech.sttModel.title":"Модель распознавания","settings.speech.sttModel.subtitle":"Модель, используемая для преобразования голосового ввода в тексте запроса.","settings.speech.ttsModel.title":"Речевая модель","settings.speech.ttsModel.subtitle":"Модель синтеза речи по умолчанию, зарезервированная для будущих функций воспроизведения.","settings.speech.ttsVoice.title":"Голос по умолчанию","settings.speech.ttsVoice.subtitle":"Голос синтеза речи по умолчанию, зарезервированный для будущих функций воспроизведения.","settings.speech.playbackMode.title":"Режим воспроизведения","settings.speech.playbackMode.subtitle":"Выберите, начинать ли воспроизведение TTS во время поступления аудио или только после полной генерации файла.","settings.speech.playbackMode.streaming":"Потоковый","settings.speech.playbackMode.buffered":"Буферизованный","settings.speech.ttsFormat.title":"Формат вывода","settings.speech.ttsFormat.subtitle":"Выберите аудиоформат для синтезированной речи. Поддержка потокового режима зависит от провайдера и браузера.","settings.speech.help":"Голосовой ввод появляется, когда распознавание речи настроено и поддерживается. Для воспроизведения сообщений используются выбранные здесь режим и формат TTS.","settings.speech.compatibility.streamingUnavailable":"Текущая конфигурация голосового провайдера не заявляет поддержку потокового TTS. Переключите режим воспроизведения на buffered, если хотите, чтобы воспроизведение работало уже сейчас.","settings.speech.compatibility.browserStreamingUnavailable":"Ваш текущий браузер не может воспроизводить потоково выбранный формат TTS. Выберите buffered-воспроизведение или переключитесь на другой формат.","settings.speech.compatibility.runtimeNote":"В режиме streaming по-прежнему доступны все форматы. Некоторые сочетания браузера и провайдера все равно могут завершаться ошибкой во время воспроизведения.","settings.speech.testPlayback.action":"Проверить воспроизведение","settings.speech.testPlayback.generating":"Генерация примера","settings.speech.testPlayback.stop":"Остановить пример","settings.speech.testPlayback.sample":"Спасибо, что используете CodeNomad, ваши настройки речи работают нормально.","settings.speech.testPlayback.note":"Тест сразу использует текущие режим и формат. Сначала сохраните изменения API key, Base URL, модели или голоса, если хотите проверить и их.","settings.speech.save.action":"Сохранить","settings.speech.save.saving":"Сохранение...","settings.speech.save.saved":"Сохранено","settings.speech.save.unsaved":"Есть несохранённые изменения","settings.speech.save.error":"Не удалось сохранить"},h={"time.relative.justNow":"только что","time.relative.daysAgoShort":"{count}д назад","time.relative.hoursAgoShort":"{count}ч назад","time.relative.minutesAgoShort":"{count}м назад"},b={"toolCall.pending.waitingToRun":"Ожидание запуска…","toolCall.error.label":"Ошибка:","toolCall.header.copyTitle":"Copy tool call title","toolCall.header.copyAriaLabel":"Copy tool call title","toolCall.header.showInputTitle":"Show Tool Arguments","toolCall.header.showInputAriaLabel":"Show Tool Arguments","toolCall.header.hideInputTitle":"Hide Tool Arguments","toolCall.header.hideInputAriaLabel":"Hide Tool Arguments","toolCall.io.input":"Tool Input","toolCall.io.output":"Tool Output","toolCall.diff.label":"Diff","toolCall.diff.label.withPath":"Diff · {path}","toolCall.diff.viewMode.ariaLabel":"Режим просмотра diff","toolCall.diff.viewMode.split":"Раздельный","toolCall.diff.viewMode.unified":"Единый","toolCall.diff.switchToSplit":"Переключить на раздельный вид","toolCall.diff.switchToUnified":"Переключить на единый вид","toolCall.diff.enableWordWrap":"Включить перенос слов","toolCall.diff.disableWordWrap":"Выключить перенос слов","toolCall.diff.copyPatch":"Скопировать patch","toolCall.diagnostics.title":"Диагностика","toolCall.diagnostics.ariaLabel":"Диагностика","toolCall.diagnostics.ariaLabel.withLabel":"Диагностика {label}","toolCall.diagnostics.severity.error.short":"ERR","toolCall.diagnostics.severity.warning.short":"WARN","toolCall.diagnostics.severity.info.short":"INFO","toolCall.renderer.toolName.shell":"Shell","toolCall.renderer.toolName.fetch":"Fetch","toolCall.renderer.toolName.invalid":"Неверный","toolCall.renderer.toolName.plan":"План","toolCall.renderer.toolName.applyPatch":"Применить патч","toolCall.renderer.action.working":"Выполняется…","toolCall.renderer.action.writingCommand":"Запись команды…","toolCall.renderer.action.preparingEdit":"Подготовка правки…","toolCall.renderer.action.readingFile":"Чтение файла…","toolCall.renderer.action.preparingWrite":"Подготовка записи…","toolCall.renderer.action.preparingPatch":"Подготовка патча…","toolCall.renderer.action.planning":"Планирование…","toolCall.renderer.action.fetchingFromWeb":"Получение из интернета…","toolCall.renderer.action.findingFiles":"Поиск файлов…","toolCall.renderer.action.searchingContent":"Поиск по содержимому…","toolCall.renderer.action.listingDirectory":"Просмотр каталога…","toolCall.renderer.bash.title.timeout":"Таймаут: {timeout}","toolCall.renderer.read.detail.offset":"Смещение: {offset}","toolCall.renderer.read.detail.limit":"Лимит: {limit}","toolCall.renderer.todo.empty":"Пока нет пунктов плана.","toolCall.renderer.todo.status.pending":"Ожидает","toolCall.renderer.todo.status.inProgress":"В процессе","toolCall.renderer.todo.status.completed":"Завершено","toolCall.renderer.todo.status.cancelled":"Отменено","toolCall.renderer.todo.title.plan":"План","toolCall.renderer.todo.title.creating":"Создание плана","toolCall.renderer.todo.title.completing":"Завершение плана","toolCall.renderer.todo.title.updating":"Обновление плана","toolCall.permission.status.required":"Требуется разрешение","toolCall.permission.status.queued":"Разрешение в очереди","toolCall.permission.requestedDiff.label":"Запрошенный diff","toolCall.permission.requestedDiff.withPath":"Запрошенный diff · {path}","toolCall.permission.queuedText":"Ожидание предыдущих ответов по разрешениям.","toolCall.permission.actions.allowOnce":"Разрешить один раз","toolCall.permission.actions.alwaysAllow":"Всегда разрешать","toolCall.permission.actions.deny":"Запретить","toolCall.permission.shortcuts.allowOnce":"Разрешить один раз","toolCall.permission.shortcuts.alwaysAllow":"Всегда разрешать","toolCall.permission.shortcuts.deny":"Запретить","toolCall.permission.errors.unableToUpdate":"Не удалось обновить разрешение","permissionApproval.title":"Запросы","permissionApproval.empty":"Нет ожидающих запросов.","permissionApproval.kind.permission":"Разрешение","permissionApproval.kind.question":"Вопрос","permissionApproval.questionCount.one":"{count} вопрос","permissionApproval.questionCount.other":"{count} вопросов","permissionApproval.status.active":"Активно","permissionApproval.actions.closeAriaLabel":"Закрыть","permissionApproval.actions.goToSession":"Перейти к сессии","permissionApproval.actions.loadingSession":"Загрузка…","permissionApproval.actions.loadSession":"Загрузить сессию","permissionApproval.actions.allowOnce":"Разрешить один раз","permissionApproval.actions.alwaysAllow":"Всегда разрешать","permissionApproval.actions.deny":"Запретить","permissionApproval.fallbackHint":"Загрузите сессию для получения подробностей.","permissionApproval.errors.unableToUpdatePermission":"Не удалось обновить разрешение","toolCall.question.status.required":"Требуется ответ","toolCall.question.status.queued":"Вопрос в очереди","toolCall.question.status.questions":"Вопросы","toolCall.question.action.awaitingAnswers":"Ожидание ответов…","toolCall.question.title.questions":"Вопросы","toolCall.question.title.askingQuestions":"Задаем вопросы","toolCall.question.type.one":"Вопрос","toolCall.question.type.other":"Вопросы","toolCall.question.number":"В{number}:","toolCall.question.multiple":"Несколько","toolCall.question.custom.title":"Введите свой ответ","toolCall.question.custom.label":"Свой ответ","toolCall.question.custom.placeholder":"Введите свой ответ","toolCall.question.actions.submit":"Отправить","toolCall.question.actions.dismiss":"Скрыть","toolCall.question.shortcuts.submit":"Отправить","toolCall.question.shortcuts.dismiss":"Скрыть","toolCall.question.queuedText":"Ожидание предыдущих ответов.","toolCall.question.validation.answerAll":"Ответьте на все вопросы перед отправкой.","toolCall.question.errors.unableToReply":"Не удалось ответить","toolCall.question.errors.unableToDismiss":"Не удалось скрыть","toolCall.task.action.delegating":"Делегирование…","toolCall.task.sections.prompt":"Prompt","toolCall.task.sections.steps":"Шаги","toolCall.task.sections.output":"Вывод","toolCall.task.steps.count":"{count} шагов","toolCall.task.meta.agentModel":"Агент: {agent} • Модель: {model}","toolCall.task.meta.agent":"Агент: {agent}","toolCall.task.meta.model":"Модель: {model}","toolCall.status.pending":"В ожидании","toolCall.status.running":"Выполняется","toolCall.status.completed":"Завершено","toolCall.status.error":"Ошибка","toolCall.status.unknown":"Неизвестно","toolCall.applyPatch.action.preparing":"Подготовка apply_patch…","toolCall.applyPatch.title.withFileCount.one":"{tool} ({count} файл)","toolCall.applyPatch.title.withFileCount.other":"{tool} ({count} файлов)","toolCall.applyPatch.fileFallback":"Файл {number}"},k=e(a,s,r,h,t,i,n,l,c,g,m,b,d,u,p,o);export{k as ruMessages};
@@ -1 +1 @@
1
- import{i,c as f}from"./index-CRtA_Run.js";import"./git-diff-vendor-CAv-4upN.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-UU9TfOpS.js";var o;(function(n){n.Year="year",n.Month="month",n.TwoWeeks="twoWeeks",n.Week="week",n.Day="day",n.Hour="hour",n.Minute="minute",n.Second="second"})(o||(o={}));class g{static at(t,e=!1,a=!1){return{at:{date:t,repeating:e,allowWhileIdle:a},interval:void 0,every:void 0}}static interval(t,e=!1){return{at:void 0,interval:{interval:t,allowWhileIdle:e},every:void 0}}static every(t,e,a=!1){return{at:void 0,interval:void 0,every:{interval:t,count:e,allowWhileIdle:a}}}}var c;(function(n){n[n.None=0]="None",n[n.Min=1]="Min",n[n.Low=2]="Low",n[n.Default=3]="Default",n[n.High=4]="High"})(c||(c={}));var r;(function(n){n[n.Secret=-1]="Secret",n[n.Private=0]="Private",n[n.Public=1]="Public"})(r||(r={}));async function v(){return window.Notification.permission!=="default"?await Promise.resolve(window.Notification.permission==="granted"):await i("plugin:notification|is_permission_granted")}async function p(){return await window.Notification.requestPermission()}function y(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}async function m(n){await i("plugin:notification|register_action_types",{types:n})}async function P(){return await i("plugin:notification|get_pending")}async function _(n){await i("plugin:notification|cancel",{notifications:n})}async function N(){await i("plugin:notification|cancel")}async function h(){return await i("plugin:notification|get_active")}async function A(n){await i("plugin:notification|remove_active",{notifications:n})}async function k(){await i("plugin:notification|remove_active")}async function M(n){await i("plugin:notification|create_channel",{...n})}async function C(n){await i("plugin:notification|delete_channel",{id:n})}async function D(){return await i("plugin:notification|listChannels")}async function H(n){return await f("notification","notification",n)}async function L(n){return await f("notification","actionPerformed",n)}export{c as Importance,g as Schedule,o as ScheduleEvery,r as Visibility,h as active,_ as cancel,N as cancelAll,D as channels,M as createChannel,v as isPermissionGranted,L as onAction,H as onNotificationReceived,P as pending,m as registerActionTypes,A as removeActive,k as removeAllActive,C as removeChannel,p as requestPermission,y as sendNotification};
1
+ import{i,c as f}from"./index-CfoVNw2d.js";import"./git-diff-vendor-CAv-4upN.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-DUhWC7BI.js";var o;(function(n){n.Year="year",n.Month="month",n.TwoWeeks="twoWeeks",n.Week="week",n.Day="day",n.Hour="hour",n.Minute="minute",n.Second="second"})(o||(o={}));class g{static at(t,e=!1,a=!1){return{at:{date:t,repeating:e,allowWhileIdle:a},interval:void 0,every:void 0}}static interval(t,e=!1){return{at:void 0,interval:{interval:t,allowWhileIdle:e},every:void 0}}static every(t,e,a=!1){return{at:void 0,interval:void 0,every:{interval:t,count:e,allowWhileIdle:a}}}}var c;(function(n){n[n.None=0]="None",n[n.Min=1]="Min",n[n.Low=2]="Low",n[n.Default=3]="Default",n[n.High=4]="High"})(c||(c={}));var r;(function(n){n[n.Secret=-1]="Secret",n[n.Private=0]="Private",n[n.Public=1]="Public"})(r||(r={}));async function v(){return window.Notification.permission!=="default"?await Promise.resolve(window.Notification.permission==="granted"):await i("plugin:notification|is_permission_granted")}async function p(){return await window.Notification.requestPermission()}function y(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}async function m(n){await i("plugin:notification|register_action_types",{types:n})}async function P(){return await i("plugin:notification|get_pending")}async function _(n){await i("plugin:notification|cancel",{notifications:n})}async function N(){await i("plugin:notification|cancel")}async function h(){return await i("plugin:notification|get_active")}async function A(n){await i("plugin:notification|remove_active",{notifications:n})}async function k(){await i("plugin:notification|remove_active")}async function M(n){await i("plugin:notification|create_channel",{...n})}async function C(n){await i("plugin:notification|delete_channel",{id:n})}async function D(){return await i("plugin:notification|listChannels")}async function H(n){return await f("notification","notification",n)}async function L(n){return await f("notification","actionPerformed",n)}export{c as Importance,g as Schedule,o as ScheduleEvery,r as Visibility,h as active,_ as cancel,N as cancelAll,D as channels,M as createChannel,v as isPermissionGranted,L as onAction,H as onNotificationReceived,P as pending,m as registerActionTypes,A as removeActive,k as removeAllActive,C as removeChannel,p as requestPermission,y as sendNotification};