UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines 2.84 kB
export const __webpack_esm_id__=8549;export const __webpack_esm_ids__=[8549];export const __webpack_esm_modules__={44301(t,e,n){function r(t){let e=0,n=0,r=0,i=0;for(let o=0,a=t.length;o<a;o++){const s=t.charCodeAt(o);13===s?(0===e&&(n=o),e++,o+1<a&&10===t.charCodeAt(o+1)?(i|=2,o++):i|=3,r=o+1):10===s&&(i|=1,0===e&&(n=o),e++,r=o+1)}return 0===e&&(n=t.length),[e,n,t.length-r,i]}n.r(e),n.d(e,{countEOL:()=>r})},22519(t,e,n){n.r(e),n.d(e,{TokenMetadata:()=>r});class r{static getLanguageId(t){return(255&t)>>>0}static getTokenType(t){return(768&t)>>>8}static containsBalancedBrackets(t){return!!(1024&t)}static getFontStyle(t){return(30720&t)>>>11}static getForeground(t){return(16744448&t)>>>15}static getBackground(t){return(4278190080&t)>>>24}static getClassNameFromMetadata(t){let e="mtk"+this.getForeground(t);const n=this.getFontStyle(t);return 1&n&&(e+=" mtki"),2&n&&(e+=" mtkb"),4&n&&(e+=" mtku"),8&n&&(e+=" mtks"),e}static getInlineStyleFromMetadata(t,e){const n=this.getForeground(t),r=this.getFontStyle(t);let i=`color: ${e[n]};`;1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;");let o="";return 4&r&&(o+=" underline"),8&r&&(o+=" line-through"),o&&(i+=`text-decoration:${o};`),i}static getPresentationFromMetadata(t){const e=this.getForeground(t),n=this.getFontStyle(t);return{foreground:e,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},49471(t,e,n){n.r(e),n.d(e,{ILanguageService:()=>r});const r=(0,n(35184).createDecorator)("languageService")},19729(t,e,n){n.r(e),n.d(e,{Extensions:()=>l,IThemeService:()=>c,Themable:()=>d,getThemeTypeSelector:()=>g,registerThemingParticipant:()=>u,themeColorFromId:()=>h});var r=n(22573),i=n(32293),o=n(35184),a=n(28976),s=n(4968);const c=(0,o.createDecorator)("themeService");function h(t){return{id:t}}function g(t){switch(t){case s.ColorScheme.DARK:return"vs-dark";case s.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case s.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"},m=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Emitter}onColorThemeChange(t){return this.themingParticipants.push(t),this.onThemingParticipantAddedEmitter.fire(t),(0,i.toDisposable)(()=>{const e=this.themingParticipants.indexOf(t);this.themingParticipants.splice(e,1)})}getThemingParticipants(){return this.themingParticipants}};function u(t){return m.onColorThemeChange(t)}a.Registry.add(l.ThemingContribution,m);class d extends i.Disposable{constructor(t){super(),this.themeService=t,this.theme=t.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(t){this.theme=t,this.updateStyles()}updateStyles(){}}}}; //# sourceMappingURL=8549.js.map