(function (global) {
  global.ARQ = global.ARQ || {};
  ARQ.EVENTS = {
    PROJECT_LOADED: 'arq:projectLoaded',
    PROJECT_SAVED: 'arq:projectSaved',
    SHEET_CHANGED: 'arq:sheetChanged',
    LAYER_CHANGED: 'arq:layerChanged',
    VIEWPORT_CHANGED: 'arq:viewportChanged',
    HISTORY_CHANGED: 'arq:historyChanged',
    TOOL_CHANGED: 'arq:toolChanged',
    DIRTY: 'arq:dirty',
    TOAST: 'arq:toast',
    ROUTE: 'arq:route',
    OP_STARTED: 'arq:opStarted',
    OP_STEP: 'arq:opStep',
    OP_SUCCESS: 'arq:opSuccess',
    OP_ERROR: 'arq:opError',
    OP_CANCELLED: 'arq:opCancelled',
    AI_GATE_CHANGED: 'arq:aiGateChanged',
    SELECTION_CHANGED: 'arq:selectionChanged',
  };
  ARQ.STORAGE_KEYS = {
    UI_PREFS: 'arq_ui_prefs_v1',
  };
  ARQ.PROTECTED_PREFIXES = ['.config', '.system'];
  ARQ.MAX_IMAGE_IMPORT_MB = 12;
})(typeof window !== 'undefined' ? window : this);
