/* kitchenSink.js A small, all-in-one snippet to test editor features: syntax highlighting, linting, intellisense, formatting, folding, and quick fixes. TODO: add real API calls; FIXME: handle rate limiting.*//** @typedef {{ id: string, name: string, createdAt: Date }} User */const VERSION = "1.0.0";const FLAGS = Object.freeze({ debug: true, noisy: false });let unusedVar = 42; // intentional: triggers “unused variable” warnings in many linters// Simple tagged template to test template literal highlightingfunction t(strings, ...vals) { return strings.reduce((acc, s, i) => acc + s + (vals[i] ?? ""), "");}// Regex testconst emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/i;// Custom errorclass AppError extends Error { constructor(message, code = "APP_ERR") { super(message); this.name = "AppError"; this.code = code; }}// Class with private field, static, getter, and method chainingclass UserStore { #items = new Map(); // id -> User static fromArray(arr = []) { cons