ruru
Version:
Grafast-flavoured GraphiQL distribution
2 lines • 2.62 kB
JavaScript
export const __webpack_id__=8549;export const __webpack_ids__=[8549];export const __webpack_modules__={19729:(t,e,n)=>{n.d(e,{Fd:()=>u,Gy:()=>c,Pz:()=>g,Yf:()=>h,lR:()=>m,zy:()=>d});var i=n(22573),r=n(32293),o=n(35184),s=n(28976),a=n(4968);const c=(0,o.u1)("themeService");function h(t){return{id:t}}function g(t){switch(t){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"},l=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.vl}onColorThemeChange(t){return this.themingParticipants.push(t),this.onThemingParticipantAddedEmitter.fire(t),(0,r.s)(()=>{const e=this.themingParticipants.indexOf(t);this.themingParticipants.splice(e,1)})}getThemingParticipants(){return this.themingParticipants}};function d(t){return l.onColorThemeChange(t)}s.O.add(u.ThemingContribution,l);class m extends r.jG{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(){}}},22519:(t,e,n)=>{n.d(e,{x:()=>i});class i{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),i=this.getFontStyle(t);let r=`color: ${e[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let o="";return 4&i&&(o+=" underline"),8&i&&(o+=" line-through"),o&&(r+=`text-decoration:${o};`),r}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)}}}},44301:(t,e,n)=>{function i(t){let e=0,n=0,i=0,r=0;for(let o=0,s=t.length;o<s;o++){const a=t.charCodeAt(o);13===a?(0===e&&(n=o),e++,o+1<s&&10===t.charCodeAt(o+1)?(r|=2,o++):r|=3,i=o+1):10===a&&(r|=1,0===e&&(n=o),e++,i=o+1)}return 0===e&&(n=t.length),[e,n,t.length-i,r]}n.d(e,{W:()=>i})},49471:(t,e,n)=>{n.d(e,{L:()=>i});const i=(0,n(35184).u1)("languageService")}};
//# sourceMappingURL=8549.js.map