declare var window ; ( ( ( ) => { if ( typeof globalThis === "object" ) return ; try { Object . defineProperty ( Object . prototype , "__magic__" , { get ( ) { return this ; } , configurable : true } ) ; __magic__ . globalThis = __magic__ ; if ( typeof globalThis === "undefined" ) { window . globalThis = window ; } delete Object . prototype . __magic__ ; } catch ( error ) { window . globalThis = window ; } } ) ( ) ) ; if ( typeof process === "undefined" || process . browser ) { globalThis . TypeScript = globalThis . TypeScript || { } ; globalThis . TypeScript . Services = globalThis . TypeScript . Services || { } ; globalThis . TypeScript . Services . TypeScriptServicesFactory = ts . TypeScriptServicesFactory ; globalThis . toolsVersion = ts . versionMajorMinor ; }