@pierre/diffs1.6.41.3 MB
Shown as plain text from the published tarball, after apm checked it against the version's checksum. Nothing in it runs on this page.
var e=Object.defineProperty,t=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},r,i,a=t(()=>{(()=>{try{return process.env.NODE_ENV===`development`}catch{return!1}})(),r={dark:`pierre-dark`,light:`pierre-light`},i={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},{...i},Object.freeze({fromStart:0,fromEnd:0}),Object.freeze([])}),o,s,c,l=t(()=>{o=new Map,s=new Map,c=new Set});function u(e,t){for(let n of Array.isArray(e)?e:[e]){let e=o.get(n.name);e??(e=n,o.set(n.name,e)),t.attachLanguages([e]),c.add(e.name)}}var d=t(()=>{l()});function f(e){return e??g??`shiki-js`}function p(e){if(g!=null&&g!==e)throw Error(`Cannot load the "${e}" highlighter while "${g}" is in use. Only one highlighter type can be active at a time; dispose every "${g}" instance (disposeHighlighter() disposes the shared one) before switching.`)}function m(e){p(e),g=e,_++}function h(){_--,_===0&&(g=void 0)}var g,_,v,y=t(()=>{a(),_=0,v=class extends Error{constructor(){super(`Highlighter is disposed`),this.name=`HighlighterDisposedError`}}});function b(e){return typeof e==`object`&&e&&`default`in e?e.default:e}var x=t(()=>{});function S(e={}){let t=new Map,n=new Map,r=new Map,i=0;function a(e,n){if(t.has(e))throw new C(e);t.set(e,n)}function o(e,n){return!t.has(e)&&(t.set(e,n),!0)}function s(e){return t.has(e)}function c(a){let o=n.get(a);if(o!==void 0)return Promise.resolve(o);let s=r.get(a);if(s!==void 0)return s;let c=t.get(a);if(c===void 0&&e.fallbackLoader===void 0)return Promise.reject(new w(a));let l=i,u=Promise.resolve().then(()=>c===void 0?e.fallbackLoader?.(a):c()).then(async t=>{if(t===void 0)throw new w(a);let o=b(t),s=e.normalizeTheme===void 0?o:await e.normalizeTheme(o,a);return l===i&&n.set(a,s),r.get(a)===u&&r.delete(a),s}).catch(e=>{throw r.get(a)===u&&r.delete(a),e});return r.set(a,u),u}function l(e){return Promise.all(e.map(e=>c(e)))}function u(e,t){n.set(e,t)}function d(e){for(let[t,n]of e)u(t,n)}function f(e){return n.get(e)}function p(e){let t=[];for(let r of e){let e=n.get(r);if(e===void 0)throw new ee(r);t.push(e)}return t}function m(e){return n.has(e)}function h(e){for(let t of e)if(!n.has(t))return!1;return!0}function g(e){let t=n.get(e);return t===void 0?c(e):t}function _(){i++,n.clear(),r.clear()}return{clearResolvedThemes:_,getResolvedOrResolveTheme:g,getResolvedTheme:f,getResolvedThemes:p,hasRegisteredTheme:s,hasResolvedTheme:m,hasResolvedThemes:h,registerTheme:a,registerThemeIfAbsent:o,resolveTheme:c,resolveThemes:l,seedResolvedTheme:u,seedResolvedThemes:d}}var C,w,ee,te=t(()=>{x(),C=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},w=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},ee=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}}}),ne=t(()=>{te()}),re=t(()=>{}),ie,ae,oe,se,ce,le,ue,de=t(()=>{ie=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,oe=Object.getOwnPropertyNames,se=Object.prototype.hasOwnProperty,ce=(e,t)=>{let n={};for(var r in e)ie(n,r,{get:e[r],enumerable:!0});return t||ie(n,Symbol.toStringTag,{value:`Module`}),n},le=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=oe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!se.call(e,s)&&s!==n&&ie(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ae(t,s))||r.enumerable});return e},ue=(e,t,n)=>(le(e,t,`default`),n&&le(n,t,`default`))}),T,fe=t(()=>{T=class extends Error{constructor(e){super(e),this.name=`ShikiError`}}});function pe(e){return me(e)}function me(e){return Array.isArray(e)?he(e):e instanceof RegExp?e:typeof e==`object`?ge(e):e}function he(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=me(e[n]);return t}function ge(e){let t={};for(let n in e)t[n]=me(e[n]);return t}function _e(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ve(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`… line truncated, 32.1 kB in all
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Pt=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ft=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Pt(e,8),this._embeddedLanguagesMatcher=new It(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Pt(0,0);_getBasicScopeAttributes=new nt(e=>new Pt(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},It=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Se(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},typeof process<`u`&&process.env.VSCODE_TEXTMATE_DEBUG,Lt=!1,Rt=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}},zt=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}},Bt=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Ft(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=$e(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=ke(e,Ze);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Xe(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Xe(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Re(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[ze(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=$e(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=At.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Ht.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults()… line truncated, 4.3 kB in all
`;let a=this.createOnigString(e),o=a.content.length,s=new Wt(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Be(this,a,i,0,t,s,!0,r);return Me(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}},Vt=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=it.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new it(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new it(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}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 r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),D.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Ht=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Vt.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(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.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(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,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(){return{ruleId:ze(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=Vt.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Re(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Vt.fromExtension(r,n.contentNameScopesList)… line truncated, 51.4 kB in all
\f\r &/=>`.split(``),`
\f\r "&'/=>\``.split(``)],[`\0
\f\r "&'/<=>`.split(``),`\0
\f\r "&'/<=>\``.split(``)]],unquoted:[[`
\f\r &>`.split(``),`\0
\f\r "&'<=>\``.split(``)],[`\0
\f\r "&'<=>\``.split(``),`\0
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]}});function ua(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:si(e.value,Object.assign({},r.settings.characterReferences,{subset:da}))}var da,fa=t(()=>{li(),da=[`<`,`&`]});function pa(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ua(e,t,n,r)}var ma=t(()=>{fa()});function ha(e,t,n,r){return r.all(e)}var ga=t(()=>{});function _a(e){throw Error("Expected node, not `"+e+"`")}function va(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var ya,ba=t(()=>{jr(),mi(),gi(),la(),ma(),ga(),fa(),ya=kr(`type`,{invalid:_a,unknown:va,handlers:{comment:ui,doctype:hi,element:aa,raw:pa,root:ha,text:ua}})});function xa(e,t){let n=t||wa,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Sa,all:Ca,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ln,characterReferences:n.characterReferences||Ta,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Dr:Er,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Sa(e,t,n){return ya(e,t,n,this)}function Ca(e){let t=[],n=e&&e.children||Ea,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var wa,Ta,Ea,Da=t(()=>{Rn(),Or(),ba(),wa={},Ta={},Ea=[]}),Oa=t(()=>{Da()});function ka(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(ao)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(ao);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Aa(e){let t=nn(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function ja(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Ma(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?ja(e,t):e})):e}function Na(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Pa(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&oo.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Pa(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&E.Italic&&(t[`font-style`]=`italic`),e.fontStyl… line truncated, 14.7 kB in all
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=Fa(a.htmlStyle||Pa(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&un(m,r),m}function $a(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&E.Underline||i.fontStyle&E.Strikethrough));o&&ho.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function eo(e){return e.map(e=>e.flatMap(e=>{if(ho.test(e.content))return e;let t=e.content.match(go);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function to(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=Fa(e.htmlStyle||Pa(e)),i=Fa(n.htmlStyle||Pa(n)),a=e.fontStyle&&(e.fontStyle&E.Underline||e.fontStyle&E.Strikethrough),o=n.fontStyle&&(n.fontStyle&E.Underline||n.fontStyle&E.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}function no(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Za(e,t,n),codeToTokens:(t,n)=>Ya(e,t,n)},i=_o(Za(e,t,n,r));for(let e of za(n))i=e.postprocess?.call(r,i,n)||i;return i}async function ro(e){let t=await ln(e);return{getLastGrammarState:(...e)=>hn(t,...e),codeToTokensBase:(e,n)=>Ja(t,e,n),codeToTokensWithThemes:(e,n)=>Cn(t,e,n),codeToTokens:(e,n)=>Ya(t,e,n),codeToHast:(e,n)=>Za(t,e,n),codeToHtml:(e,n)=>no(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function io(e={}){let{name:t=`css-variables`,variablePrefix:n=`--shiki-`,fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:`dark`,colors:{"editor.foreground":i(`foreground`),"editor.background":i(`background`),"terminal.ansiBlack":i(`ansi-black`),"terminal.ansiRed":i(`ansi-red`),"terminal.ansiGreen":i(`ansi-green`),"terminal.ansiYellow":i(`ansi-yellow`),"terminal.ansiBlue":i(`ansi-blue`),"terminal.ansiMagenta":i(`ansi-magenta`),"terminal.ansiCyan":i(`ansi-cyan`),"terminal.ansiWhite":i(`ansi-white`),"terminal.ansiBrightBlack":i(`ansi-bright-black`),"terminal.ansiBrightRed":i(`ansi-bright-red`),"terminal.ansiBrightGreen":i(`ansi-bright-green`),"terminal.ansiBrightYellow":i(`ansi-bright-yellow`),"terminal.ansiBrightBlue":i(`ansi-bright-blue`),"terminal.ansiBrightMagenta":i(`ansi-bright-magenta`),"terminal.ansiBrightCyan":i(`ansi-bright-cyan`),"terminal.ansiBrightWhite":i(`ansi-bright-white`)},tokenColors:[{scope:[`keyword.operator.accessor`,`meta.group.braces.round.function.arguments`,`meta.template.expression`,`markup.fenced_code meta.embedded.block`],settings:{foreground:i(`foreground`)}},{scope:`emphasis`,settings:{fontStyle:`italic`}},{scope:[`strong`,`markup.heading… line truncated, 19.6 kB in all
`,p),m=r<0?e.length:r;r>p&&e.charCodeAt(r-1)===13&&m--;let h=s>0&&m-p>=s;for(;p<m;){f>=0&&f<p&&(f=e.indexOf(`\x1B`,p));let r=f>=0&&f<m?f:m,o=r,s;if(r<m){Os.lastIndex=r;let t=Os.exec(e);t===null?o=++r:(o=Os.lastIndex,t[2]===`m`&&!(t[1].charCodeAt(0)>=60)&&(s=t[1]))}if(r>p&&h)u===void 0?(u=$o(e,p,r,0,t,n,a),c.push(u)):u.content+=e.slice(p,r);else if(r>p){if(l===void 0){let{fg:e,bg:r,flags:a}=i,o=`${e},${r},${a}`;if(l=i.styles.get(o),l===void 0){let s=((a&Ss)===0?0:1)|((a&bs)===0?0:2)|((a&Cs)===0?0:4)|((a&Ts)===0?0:8),c=t.map(t=>{let n=e<0?t.fg:vs(t,e),i=r<0?void 0:vs(t,r);return(a&ws)!==0&&(i=n,n=r<0?t.bg:vs(t,r)),(a&xs)!==0&&n!==void 0&&(n=n.startsWith(`#`)?n.length===9?n.slice(0,7)+Math.round(parseInt(n.slice(7),16)/2).toString(16).padStart(2,`0`):`${n}80`:`color-mix(in srgb, ${n} 50%, transparent)`),[n,i]});if(t[0].role===`single`){let[e,t]=c[0];l=t===void 0?{color:e,fontStyle:s}:{color:e,bgColor:t,fontStyle:s}}else{let e=[];s&1&&e.push([`font-style`,`italic`]),s&2&&e.push([`font-weight`,`bold`]),s&12&&e.push([`text-decoration`,(s&12)==12?`underline line-through`:s&4?`underline`:`line-through`]);let r={};if(t[0].role===`light-dark`){let[[t,n],[i,a]]=c,o=t??`currentcolor`,s=i??`currentcolor`;if(r.color=o===s?o:`light-dark(${o}, ${s})`,n!==void 0||a!==void 0){let e=n??`transparent`,t=a??`transparent`;r[`background-color`]=e===t?e:`light-dark(${e}, ${t})`}for(let[t,n]of e)r[t]=n}else for(let i=0;i<t.length;i++){let[a,o]=c[i],s=t[i].role==="default",l=`${n}${t[i].color}`;r[s?`color`:l]=a??`inherit`,o!==void 0&&(r[s?`background-color`:`${l}-bg`]=o);for(let[t,n]of e)r[s?t:`${l}-${t}`]=n}l={htmlStyle:r}}i.styles.set(o,l)}}u!==void 0&&d===l?u.content+=e.slice(p,r):(u={content:e.slice(p,r),offset:p+a,...l},d=l,c.push(u))}if(s!==void 0){let e=s.split(`;`);for(let t=0;t<e.length;t++){let n=Number(e[t]);if(n===0)i.fg=-1,i.bg=-1,i.flags=0;else if(n<10)i.flags|=Es[n]??0;else if(n>20&&n<30)i.flags&=~((Es[n-20]??0)|(n===22?bs:0));else if(n>=30&&n<38)i.fg=n-30;else if(n===39)i.fg=-1;else if(n>=40&&n<48)i.bg=n-40;else if(n===49)i.bg=-1;else if(n>=90&&n<98)i.fg=n-82;else if(n>=100&&n<108)i.bg=n-92;else if(n===38||n===48){let r=e[++t],a=-1;if(r===`5`){let n=Number(e[++t]);Number.isInteger(n)&&n<256&&(a=n)}else if(r===`2`){let n=Number(e[t+1]),r=Number(e[t+2]),i=Number(e[t+3]);t+=3,n>=0&&r>=0&&i>=0&&(a=16777216|Math.min(n,255)<<16|Math.min(r,255)<<8|Math.min(i,255))}a>=0&&(n===38?i.fg=a:i.bg=a)}}l=void 0}p=o}if(o.push(c),r<0)return o;p=r+1,c=[],u=void 0}}var bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As=t(()=>{gs(),bs=1,xs=2,Ss=4,Cs=8,ws=16,Ts=32,Es=[0,bs,xs,Ss,Cs,0,0,ws,0,Ts],Ds=[0,95,135,175,215,255],Os=/\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b\n]*(?:\x07|\x1b\\)|[ -/]*[0-~])/y,ks=class{fg=-1;bg=-1;flags=0;styles=new Map}}),js,Ms=t(()=>{js={plain:0,plaintext:0,text:0,txt:0,abap:1,ada:2,adb:2,ads:2,"angular-html":3,apache:4,apacheconf:4,htaccess:4,apex:5,applescript:6,adoc:7,asciidoc:7,asm:8,assembly:8,mips:8,mipsasm:8,riscv:8,s:8,astro:9,awk:10,bash:11,sh:11,shell:11,shellscript:11,shellsession:11,zsh:11,bat:12,batch:12,batchfile:12,cmd:12,dos:12,bib:13,bibtex:13,bicep:14,blade:15,c:16,h:16,c3:17,clj:18,cljc:18,cljs:18,clojure:18,edn:18,cmake:19,cbl:20,cob:20,cobol:20,codeowners:21,codeql:22,ql:22,coffee:23,coffeescript:23,coq:24,rocq:24,"c++":25,cc:25,cpp:25,cxx:25,hh:25,hpp:25,hxx:25,"c#":26,cs:26,csharp:26,css:27,postcss:27,qss:27,csv:28,cu:29,cuda:29,cuh:29,cql:30,cypher:30,d:31,dart:32,dax:33,diff:34,"git-commit":34,"git-rebase":34,patch:34,containerfile:35,docker:35,dockerfile:35,dotenv:36,env:36,elixir:37,ex:37,exs:37,elm:38,erb:39,erl:40,erlang:40,hrl:40,fish:41,f03:42,f08:42,f90:42,f95:42,fortran:42,"fortran-free-form":42,f:43,f77:43,for:43,"fortran-fixed-form":43,"f#":44,fs:44,fsharp:44,fsi:44,fsx:44,gdresource:45,"godot-resource":45,tres:45,tscn:45,gd:46,gdscript:46,gdshader:47,gdshaderinc:47,"godot-shader":47,cucumber:48,feature:48,gherkin:48,gleam:49,comp:50,frag:50,geom:50,glsl:50,vert:50,gnuplot:51,gp:51,go:52,golang:52,gql:53,graphql:53,groq:54,gradle:55,groovy:55,gsh:55,gvy:55,gy:55,nextflow:55,"nextflow-groovy":55,nf:55,hack:56,ha… line truncated, 8.3 kB in all
`,t+1),l+=s.charCodeAt(t-1)===13?`\r
`:`
`);for(let{content:t,htmlStyle:n}of c[e]){let e=``;for(let t in n)e+=`${e===``?``:`;`}${t}:${n[t]}`;l+=`<span style="${Po(e)}">${t.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`)}</span>`}}return Bs.encode(`${l}</code></pre>`)}let r=Ns(t.lang),i,a,o=0;if(t.themes!=null){let e=Qo(t);a=ns(e,n),o=2,a===void 0&&(a=rs(e,n),o=4)}else{let e=Io(t.theme,n);i=e.table,a=e.htmlOpeners,a!==void 0&&(o=4)}let s=this.writeInput(e);if(a!==void 0){this.#o(s+a.length+96);let e=Ws+s+47&-16;this.buffer.set(a,e),this.dv.setUint32(14,e,!0),this.dv.setUint32(18,a.length,!0)}else if(i===void 0){this.#r!==n&&(this.#i=Bs.encode(Po(n)),this.#r=n);let e=this.#i;this.#o(s+e.length+96);let t=Ws+s+47&-16;this.buffer.set(e,t),this.dv.setUint32(14,t,!0),this.dv.setUint32(18,e.length,!0),o=1}else this.#n!==i&&(this.buffer.set(i,Us),this.buffer.fill(0,Us+i.length,448),this.#n=i),o=0;this.#a(r,o,s);let c=this.dv.getUint32(6,!0),l=this.dv.getUint32(10,!0);return this.buffer.subarray(c,c+l)}tokenizeLineRecords(e,t,n){this.#a(e,3,t,n);let r=this.dv.getUint32(6,!0),i=this.dv.getUint32(10,!0);return new Uint32Array(this.buffer.buffer,r,i>>2)}codeToTokens(e,t){let n=Fs(e);typeof e!=`string`&&(n.includes(`�`)||e===this.memory.buffer||e instanceof Uint8Array&&e.buffer===this.memory.buffer)&&(e=n);let r=Qo(t),i=t.cssVariablePrefix??`--hls-`;return{tokens:_s(t.lang)?ys(n,r,i,t.tokenizeMaxLineLength):as(n,this.tokenizeLineRecords(Ns(t.lang),this.writeInput(e)),r,i,t.tokenizeMaxLineLength),...os(r,i)}}#o(e){let t=Math.ceil((Ws+e)/Hs);t>this.pageN&&(this.memory.grow(t-this.pageN),this.bindMemory())}#s(e,t,n){this.bindMemory();let r=this.buffer,i;if(i=t===2?(r[e]&31)<<6|r[e+1]&63:t===3?(r[e]&15)<<12|(r[e+1]&63)<<6|r[e+2]&63:(r[e]&7)<<18|(r[e+1]&63)<<12|(r[e+2]&63)<<6|r[e+3]&63,i>1114111)return 0;if(i>65535||i>=55296&&i<=57343)return+!!Gs[n>>1].test(String.fromCodePoint(i));Ks??=new Uint8Array(65536);let a=Ks[i]>>n&3;if(a!==0)return a-1;let o=Gs[n>>1].test(String.fromCharCode(i));return Ks[i]|=(o?2:1)<<n,+!!o}bindMemory(){this.buffer.buffer!==this.memory.buffer&&(this.pageN=this.memory.buffer.byteLength/Hs,this.buffer=new Uint8Array(this.memory.buffer),this.dv=new DataView(this.memory.buffer))}},TransformStream});function $s(e){if(!oc.test(e))return ic.encode(e);let t=new Uint8Array(e.length*3),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i<128)t[n++]=i;else if(i<2048)t[n++]=192|i>>6,t[n++]=128|i&63;else{if(i>=55296&&i<56320){let a=e.charCodeAt(r+1);if(a>=56320&&a<57344){let e=65536+(i-55296<<10)+(a-56320);t[n++]=240|e>>18,t[n++]=128|e>>12&63,t[n++]=128|e>>6&63,t[n++]=128|e&63,r++;continue}}t[n++]=224|i>>12,t[n++]=128|i>>6&63,t[n++]=128|i&63}}return t.subarray(0,n)}function ec(e,t){let n=Array(t),r=0,i=0;for(;i<e.length;){let t=e[i];if(t<128)n[r++]=t,i+=1;else if(t<224)n[r++]=(t&31)<<6|e[i+1]&63,i+=2;else if(t<240)n[r++]=(t&15)<<12|(e[i+1]&63)<<6|e[i+2]&63,i+=3;else{let a=(t&7)<<18|(e[i+1]&63)<<12|(e[i+2]&63)<<6|e[i+3]&63;n[r++]=55296+(a-65536>>10),n[r++]=56320+(a-65536&1023),i+=4}}let a=``;for(let e=0;e<r;e+=4096)a+=String.fromCharCode(...n.slice(e,Math.min(e+4096,r)));return a}function tc(e){if(e!==void 0){if(!Array.isArray(e)||e.length!==2||!Number.isInteger(e[0])||!Number.isInteger(e[1])||e[0]<0||e[1]<e[0])throw TypeError(`renderRange must be [startLine, endLine] with 0 <= startLine <= endLine`);return e}}function nc(e,t){let n=e;t?n.ref?.():n.unref?.()}function rc(e){let t=e&3;return t===0?``:t===2?`\r
`:e&16?`\r`:`
`}var ic,ac,oc,sc,cc=t(()=>{Yo(),gs(),As(),Qs(),ic=new TextEncoder,ac=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),oc=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]/,sc=class e{#e;#t;#n;#r;#i;#a;#o=0;#s=0;#c;#l=0;#u;#d=!1;#f=!1;constructor(t){this.#t=_s(t.lang)?0:Ns(t.lang),this.#n=Qo(t),this.#r=t.cssVariablePrefix??`--hls-`,this.#i=t.tokenizeMaxLineLength??0,this.#a=t.onDeferTokenize;let n=tc(t.renderRange);this.#e=e.#p(t.code??``,this.#t),this.#v(this.#e,this.#h,n)}static#p(e,t){let n=new Js(Ls()),r=n.instance.exports,i=$s(e),a=r.liveStage(i.length);return n.bindMemory(),n.buffer.set(i,a),r.liveInitDoc(a,i.length,t),n.bindMemory(),n}#m(){let e=this.#e;if(e==null)throw Error(`tokenizer is disposed`);return e}get#h(){return this.#m().instance.exports}get revision(){return this.#m(),this.#o}get lineCount(){return this.#m(),this.#h.liveLineCount()}get pendingTokenization(){return this.#m(),this.#u!==void 0||this.#h.liveStats(9)!==0}flush(e){let t=this.#m();e!==void 0&&tc([0,e]);let n=this.#h;this.#d=!1;let r=++this.#s,i=Math.min(e??n.liveLineCount(),n.liveLineCount());try{this.#x(t,n,i,1/0)}finally{r===this.#s&&this.#e===t&&!this.#d&&this.pendingTokenization&&this.#y(r)}}pause(){this.#m(),!this.#d&&(this.#d=!0,this.#s+=1)}resume(){this.#m(),this.#d&&(this.#d=!1,this.pendingTokenization&&this.#y(this.#s))}dispose(){this.#e!=null&&(this.#s+=1,this.#e=void 0,this.#u=void 0,this.#c!==void 0&&(this.#c.port1.close(),this.#c.port2.close(),this.#c=void 0))}getLineLength(e){this.#m();let t=this.#h;return this.#C(e,t),t.liveLineLen(e)}getLineText(e){let t=this.#m(),n=this.#h;return this.#C(e,n),this.#g(t,n,e)}getText(){let e=this.#m(),t=this.#h,n=t.liveLineCount(),r=``;for(let i=0;i<n;i++)r+=this.#g(e,t,i),r+=rc(t.liveLineFlags(i));return r}#g(e,t,n){let r=t.liveLineTextPtr(n),i=t.liveLineByteLen(n);if(i===0)return``;let a=e.buffer.subarray(r,r+i);try{return ac.decode(a)}catch{return ec(a,t.liveLineLen(n))}}getLineRecords(e){let t=this.#m(),n=this.#h;this.#C(e,n);let r=n.liveLineTokCount(e),i=!!(n.liveLineFlags(e)&4);return{revision:this.#o,format:i?`wide32`:`packed24`,data:new Uint32Array(t.memory.buffer,r===0?0:n.liveLineTokPtr(e),i?r*2:r)}}getLineTokens(e){let t=this.#m(),n=this.#h;this.#C(e,n);let r=this.#g(t,n,e),i=this.#i;if(i>0&&r.length>=i)return{tokens:[$o(r,0,r.length,0,this.#n,this.#r)],bracketIgnoredRanges:[]};let a=n.liveLineTokCount(e),o=!!(n.liveLineFlags(e)&4),s=n.liveLineTokPtr(e),c=new Uint32Array(t.memory.buffer,a===0?0:s,o?a*2:a),l=[],u=[],d=0;for(let e=0;e<a;e++){let t=o?c[e*2]:c[e]&16777215,n=o?c[e*2+1]:c[e]>>>24;if(t>d){if(l.push($o(r,d,t,n,this.#n,this.#r)),cs[n]!==0){let e=u[u.length-1];e!==void 0&&e[1]>=d?e[1]=t:u.push([d,t])}d=t}}return l.length===0&&r.length>0&&l.push($o(r,0,r.length,0,this.#n,this.#r)),{tokens:l,bracketIgnoredRanges:u}}applyEdits(e,t){let n=this.#m(),r=this.#h;this.#_();let i=tc(t?.renderRange),a=this.#w(e,n,r),o=r.liveLineCount();if(a.length===0)return this.resume(),{revision:this.#o,previousLineCount:o,lineCount:o,lineChanges:[],lines:new Map};this.#s+=1,this.#d=!1,this.#f=!0;try{this.#E(n,r,a),this.#o+=1;let e=this.#v(n,r,i);return this.#S(n,r,o,e)}finally{this.#f=!1}}reset(t,n){this.#m(),this.#_();let r=tc(n?.renderRange);if(typeof t!=`string`)throw TypeError(`code must be a string`);this.#s+=1,this.#d=!1;let i=this.#h.liveLineCount();this.#u=void 0;let a=e.#p(t,this.#t);this.#e=a;let o=this.#h;this.#o+=1,this.#f=!0;let s;try{s=this.#v(a,o,r)}finally{this.#f=!1}let c=o.liveLineCount();return{revision:this.#o,previousLineCount:i,lineCount:c,lineChanges:[{oldStartLine:0,oldEndLine:i,newStartLine:0,newEndLine:c}],lines:s}}#_(){if(this.#f)throw Error(`applyEdits and reset cannot be called from onDeferTokenize during an update; use pause, flush, or the reads instead`)}#v(e,t,n){if(n===void 0)return t.liveRun(2147483647),e.bindMemory(),new Map;let r=this.#s,i=n[0]>=t.liveLineCount()?0:Math.min(n[1],t.liveLineCount());try{return this.#x(e,t,i,performance.now()+1,n)}finally{r===this.#s&&this.#e===e&&!this.#d&&this.pendingTokenization&&this.#y(r)}}#y(e){if(typeo… line truncated, 444.6 kB in all
`)),e}var Ic=t(()=>{Pc()});function Lc(e,t,n,{retain:r=!0}={}){let i=!1,a;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){if(i)return a;let o=n();return r?(a=o,i=!0,Object.getOwnPropertyDescriptor(e,t)?.configurable===!0&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:a}),a):o},set(n){if(Object.getOwnPropertyDescriptor(e,t)?.configurable===!0)Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n});else if(Object.isFrozen(e))throw TypeError(`Cannot assign to read only array index '${t}'`);else a=n,i=!0}})}var Rc=t(()=>{});function zc(e,t=!1){let{htmlStyle:n}=e;if(n!=null){let e=t?Bc.get(n):void 0;if(e==null){e=``;for(let t in n)e+=`${e===``?``:`;`}${t}:${n[t]}`;t&&Bc.set(n,e)}return e}let r=e.color==null?``:`color:${e.color}`;if(e.bgColor!=null&&(r+=`;background-color:${e.bgColor}`),e.fontStyle!=null){e.fontStyle&1&&(r+=`;font-style:italic`),e.fontStyle&2&&(r+=`;font-weight:bold`);let t=!!(e.fontStyle&4),n=!!(e.fontStyle&8);(t||n)&&(r+=`;text-decoration:${t?`underline`:``}${t&&n?` `:``}${n?`line-through`:``}`)}return r.replace(/^;/,``)}var Bc,Vc=t(()=>{Bc=new WeakMap});function Hc(e){let t=Uc(e);if(t!=null)return t;let n=Kc,r=[],i=[],a,o=()=>{if(i.length===0||a==null){i=[],a=void 0;return}if(i.length===1){let e=i[0];if(e?.type===`element`){Gc(e,a);for(let t of e.children)Wc(t)}else Wc(e);r.push(e),i=[],a=void 0;return}for(let e of i)Wc(e);r.push(Nc({tagName:`span`,properties:{"data-char":a},children:i})),i=[],a=void 0},s=e=>{if(e!==Kc){if(e===qc){n=qc;return}if(n===Kc){n=e;return}n!==e&&(n=qc)}};for(let t of e.children){let e=t.type===`element`?Hc(t):Kc;if(s(e),typeof e!=`number`){o(),r.push(t);continue}a!=null&&a!==e&&o(),a??=e,i.push(t)}return o(),e.children=r,n}function Uc(e){let t=e.properties[`data-char`];if(typeof t==`number`)return t}function Wc(e){if(e.type===`element`){e.properties[`data-char`]=void 0;for(let t of e.children)Wc(t)}}function Gc(e,t){e.properties[`data-char`]=t}var Kc,qc,Jc=t(()=>{Pc(),Kc=Symbol(`no-token`),qc=Symbol(`multiple-tokens`)});function Yc(e,{state:t,lazyLineAST:n=!1,cacheHtmlStyles:r=!1,useTokenTransformer:i=!1,mergeWhitespaces:a=`always`,decorations:o=[],lineOffsets:s=[]}){let c;for(let t of o){let n=c??=new Map,r={...t,start:$c(t.start,s),end:$c(t.end,s)},i=Math.min(r.end.line,e.length-1);for(let e=r.start.line;e<=i;e++){let t=n.get(e);t??n.set(e,t=[]),t.push(r)}}let l=(e,n)=>{let o;if(i||a!==`never`){let t=``,n=0;for(let r=0;r<e.length;r++){let a=e[r];if(i){let t=a.content.trim();if(t!==``&&t!==a.content){o??=e.slice(0,r);let n=a.content.indexOf(t);n>0&&o.push({content:a.content.slice(0,n),offset:a.offset}),o.push({...a,content:t,offset:a.offset+n});let i=n+t.length;i<a.content.length&&o.push({content:a.content.slice(i),offset:a.offset+i});continue}}else{let i=!!((a.fontStyle??0)&12);if(!i&&/^\s+$/.test(a.content)&&r<e.length-1){o??=e.slice(0,r),t===``&&(n=a.offset),t+=a.content;continue}t!==``&&o!=null&&(i?o.push({content:t,offset:n}):a={...a,content:t+a.content,offset:n},t=``)}o?.push(a)}}o??=e;let s={type:`element`,tagName:t==null?`span`:`div`,properties:t==null?{class:`line`}:{},children:[]},l=c?.get(n),u=l==null?Xc(s,o,i,r):Zc(s,o,l,n,i,r);return i&&u===0&&s.children.push({type:`element`,tagName:`br`,properties:{},children:[]}),i&&l!=null&&Hc(s),t==null?s:Fc(s,n+1,t)};if(!n)return e.map(l);let u=Array(e.length);for(let t=0;t<e.length;t++){let n=e[t];Lc(u,t,()=>l(n,t))}return u}function Xc(e,t,n,r){let i=0;for(let a of t)a.content!==``&&(e.children.push(Qc(a,zc(a,r),a.content,i,n)),i+=a.content.length);return i}function Zc(e,t,n,r,i,a){n.length>1&&n.sort((e,t)=>e.start.line===t.start.line?e.start.character===t.start.character?e.end.line===t.end.line?t.end.character-e.end.character:t.end.line-e.end.line:e.start.character-t.start.character:e.start.line-t.start.line);let o=t.reduce((e,t)=>e+t.content.length,0),s=[];for(let e=0;e<n.length;e++){let t=n[e],i={decoration:t,order:e,from:t.start.line===r?t.start.character:0,to:t.end.line===r?t.end.character:o};s.push({position:Math.max(0,Math.min(i.from,o)),range:i,start:!0}… line truncated, 5.6 kB in all
`);t!==-1;t=e.indexOf(`
`,t+1))i.push(t+1);let a={type:`element`,tagName:`code`,properties:{},children:[]},o=Yc(t.tokens,{decorations:n.decorations,mergeWhitespaces:n.mergeWhitespaces,lineOffsets:i,cacheHtmlStyles:r});for(let e=0;e<o.length;e++)e>0&&a.children.push({type:`text`,value:`
`}),a.children.push(o[e]);return mc({type:`root`,children:[{type:`element`,tagName:`pre`,properties:{class:`diffs`,style:t.rootStyle===!1?void 0:t.rootStyle??[t.fg==null?``:`color:${t.fg}`,t.bg==null?``:`background-color:${t.bg}`].filter(Boolean).join(`;`),tabIndex:0},children:[a]}]})}var nl=t(()=>{jc(),el()}),rl,il=t(()=>{nl(),y(),rl=class{name;themeResolver;disposed=!1;constructor(e,t){this.name=e,this.themeResolver=t,m(e)}codeToHtml(e,t){return tl(e,this.codeToTokens(e,t),t,this.name===`highlights`)}get isDisposed(){return this.disposed}dispose(){this.disposed||(this.disposed=!0,this.releaseResources(),h())}assertNotDisposed(){if(this.disposed)throw new v}}});function R(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}var al=t(()=>{}),ol,sl=t(()=>{pc(),al(),ol=class{options;resolveOptions;#e;#t;#n=!1;#r;#i=!1;#a;#o;constructor(e,t){this.options=e,this.resolveOptions=t,this.#t=e.textDocument.version,this.#e=this.#s()}#s(){return new sc({...this.resolveOptions({lang:this.options.textDocument.languageId,theme:this.options.theme,cssVariablePrefix:R(`token`),tokenizeMaxLineLength:this.options.tokenizeMaxLineLength??1e3}),code:this.options.textDocument.getText(),renderRange:[0,0],onDeferTokenize:e=>this.#c(e)})}#c(e){let t=this.#a;if(t!=null){for(let[n,r]of e)t.set(n,r);return}let n=this.#r;if(n!=null){for(let t of e.keys())t>=n[0]&&t<n[1]&&e.delete(t);if(e.size===0)return}this.options.onDeferTokenize(e)}#l(e){let t=this.#o;if(t!=null){for(let[n,r]of e)t.set(n,r);return}this.#o=e,queueMicrotask(()=>{let e=this.#o;this.#o=void 0,e!=null&&e.size>0&&!this.#n&&this.options.onDeferTokenize(e)})}tokenize(e,t,n=!1){let r=this.options.textDocument,i=Math.min(t?.startingLine??0,r.lineCount),a=Math.min(i+(t?.totalLines??1/0),r.lineCount),o=Math.max(i,e.startLine);this.#i=!1;let s;if(this.#t!==r.version)this.#o=void 0,s=this.#u(e,[i,a]).lines,this.#t=r.version;else if(this.#e.lineCount!==r.lineCount)this.#o=void 0,s=this.#e.reset(r.getText(),{renderRange:[i,a]}).lines;else{if(s=new Map,this.#d(s,o,a),this.#o!=null)for(let e of s.keys())this.#o.delete(e);return s}return(e.lineDelta===0?e.changedLineChanges?.some(([,,e])=>e!==0)??!1:!n)&&this.#d(s,o,a),s}#u(e,t){let n=this.options.textDocument,r={renderRange:t};if(Math.abs(n.version-this.#t)===1&&e.changes.length>0&&this.#e.lineCount===e.previousLineCount)try{let t=this.#e.applyEdits(e.changes.map(({range:e,text:t})=>({range:e,newText:t})),r);if(this.#e.lineCount===n.lineCount)return t}catch(e){if(!(e instanceof RangeError))throw e}return this.#e.reset(n.getText(),r)}#d(e,t,n){this.#r=[t,n];try{this.#e.flush(n)}finally{this.#r=void 0}for(let r=t;r<n;r++){if(e.has(r))continue;let{tokens:t}=this.#e.getLineTokens(r);e.set(r,t.length===0?[[0,``,``]]:t.map(e=>[e.offset,e.color??``,e.content]))}}setTheme(e){e!==this.options.theme&&(this.options.theme=e,this.#e.dispose(),this.#o=void 0,this.#i=!1,this.#t=this.options.textDocument.version,this.#e=this.#s())}getStringCommentRegexpRangesInLine(e){let t=this.options.textDocument;if(this.options.matchBrackets===!1||e<0||e>=t.lineCount)return null;let n=new Map;this.#a=n;try{(this.#t!==t.version||this.#e.lineCount!==t.lineCount)&&(this.#o=void 0,this.#e.reset(t.getText(),{renderRange:[e,e+1]}),this.#t=t.version),this.#e.flush(e+1)}finally{this.#a=void 0,this.#i&&this.#e.pause()}return n.size>0&&this.#l(n),this.#e.getLineTokens(e).bracketIgnoredRanges}prebuildStateStack(){}stopBackgroundTokenize(){this.pauseBackgroundTokenize()}pauseBackgroundTokenize(){this.#i=!0,this.#e.pause()}resumeBackgroundTokenize(){this.#i=!1,this.#e.resume()}dispose(){this.#n=!0,this.#o=void 0,this.#e.dispose()}}});function cl(e,t){for(let n of t)e.push(n)}var ll=t(()=>{}),ul,dl=t(()=>{ul=class{disposed=!1;stableOffset=0;unstable=[];pendingCarriageReturn=``;enqueue(e){this.assertActive(),e=this.pendingCarriageReturn+e,this.pendingCarriageReturn=e.endsWith(`\r`)?`\r`:``,this.pendingCarriageReturn!==``&&(e=e.slice(0,-1));let t=this.unstable.length,n=[],{unstable:r,tailLength:i}=this.tokenizeChunk(e,n);return this.pendingCarriageReturn!==``&&r.push({content:`\r`,offset:this.s… line truncated, 634.2 kB in all
This file is 1.3 MB, over the 1.0 MB the full view shows, so apm shows the lines around the cited one. Lines longer than 4 kB are cut.