document-model 2.14.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/browser/cjs/document-model.js +2 -2
  2. package/dist/browser/cjs/document.js +3 -3
  3. package/dist/browser/cjs/index.js +2 -2
  4. package/dist/browser/cjs/internal/{creators-c2maywyy.js → creators-DJg3Kd1P.js} +353 -2
  5. package/dist/browser/cjs/internal/creators-DJg3Kd1P.js.map +1 -0
  6. package/dist/browser/cjs/internal/{index-DeM7OezK.js → index-CGExio27.js} +3 -3
  7. package/dist/browser/cjs/internal/{index-DeM7OezK.js.map → index-CGExio27.js.map} +1 -1
  8. package/dist/browser/cjs/internal/{index-DDUYrJUg.js → index-CQg4iLBq.js} +4 -4
  9. package/dist/browser/cjs/internal/index-CQg4iLBq.js.map +1 -0
  10. package/dist/{node/cjs/internal/index-Cdxqd-qQ.js → browser/cjs/internal/index-DcdJY5J3.js} +2 -2
  11. package/dist/browser/cjs/internal/index-DcdJY5J3.js.map +1 -0
  12. package/dist/browser/cjs/internal/{object-WukT1Feq.js → object-C3OfcOUa.js} +2 -2
  13. package/dist/browser/cjs/internal/{object-WukT1Feq.js.map → object-C3OfcOUa.js.map} +1 -1
  14. package/dist/browser/cjs/utils.js +1 -1
  15. package/dist/browser/es/document-model.js +2 -2
  16. package/dist/browser/es/document.js +3 -3
  17. package/dist/browser/es/index.js +2 -2
  18. package/dist/browser/es/internal/{creators-CkhiX4CP.js → creators-Dir4K_-h.js} +353 -2
  19. package/dist/browser/es/internal/creators-Dir4K_-h.js.map +1 -0
  20. package/dist/browser/es/internal/{index-CHpkSkeZ.js → index-BxCiP58y.js} +2 -2
  21. package/dist/browser/es/internal/index-BxCiP58y.js.map +1 -0
  22. package/dist/browser/es/internal/{index-BRVlDkPn.js → index-HlkIVQZ6.js} +3 -3
  23. package/dist/browser/es/internal/{index-BRVlDkPn.js.map → index-HlkIVQZ6.js.map} +1 -1
  24. package/dist/browser/es/internal/{index-uWY5kwkt.js → index-qYp7hG3r.js} +4 -4
  25. package/dist/browser/es/internal/index-qYp7hG3r.js.map +1 -0
  26. package/dist/browser/es/internal/{object-CJHsId9H.js → object-CzFSgK3q.js} +2 -2
  27. package/dist/browser/es/internal/{object-CJHsId9H.js.map → object-CzFSgK3q.js.map} +1 -1
  28. package/dist/browser/es/utils.js +1 -1
  29. package/dist/browser/src/document/schema/zod.d.ts +9 -27
  30. package/dist/browser/src/document/schema/zod.d.ts.map +1 -1
  31. package/dist/node/cjs/document-model.js +2 -2
  32. package/dist/node/cjs/document.js +3 -3
  33. package/dist/node/cjs/index.js +2 -2
  34. package/dist/node/cjs/internal/{creators-B5g3rJKI.js → creators-ZpkFlacS.js} +353 -2
  35. package/dist/node/cjs/internal/creators-ZpkFlacS.js.map +1 -0
  36. package/dist/{browser/cjs/internal/index-CTDPLYkV.js → node/cjs/internal/index-B9N2GsMZ.js} +2 -2
  37. package/dist/node/cjs/internal/index-B9N2GsMZ.js.map +1 -0
  38. package/dist/node/cjs/internal/{index-DHkzUhZg.js → index-ClITlWIV.js} +4 -4
  39. package/dist/node/cjs/internal/index-ClITlWIV.js.map +1 -0
  40. package/dist/node/cjs/internal/{index-CYhNqyfA.js → index-DVgdtYs7.js} +3 -3
  41. package/dist/node/cjs/internal/{index-CYhNqyfA.js.map → index-DVgdtYs7.js.map} +1 -1
  42. package/dist/node/cjs/internal/{object-CpAsa3Oe.js → object-DVKEoARn.js} +2 -2
  43. package/dist/node/cjs/internal/{object-CpAsa3Oe.js.map → object-DVKEoARn.js.map} +1 -1
  44. package/dist/node/cjs/utils.js +1 -1
  45. package/dist/node/es/document-model.js +2 -2
  46. package/dist/node/es/document.js +3 -3
  47. package/dist/node/es/index.js +2 -2
  48. package/dist/node/es/internal/{creators-B6tCK8Ir.js → creators-0lHfLHX0.js} +353 -2
  49. package/dist/node/es/internal/creators-0lHfLHX0.js.map +1 -0
  50. package/dist/node/es/internal/{index-CJxdcyKO.js → index-BOhJLvSm.js} +2 -2
  51. package/dist/node/es/internal/index-BOhJLvSm.js.map +1 -0
  52. package/dist/node/es/internal/{index-dVqoH-Pd.js → index-CxWihLAA.js} +3 -3
  53. package/dist/node/es/internal/{index-dVqoH-Pd.js.map → index-CxWihLAA.js.map} +1 -1
  54. package/dist/node/es/internal/{index-mUxH6TbI.js → index-bxdb71Hw.js} +4 -4
  55. package/dist/node/es/internal/index-bxdb71Hw.js.map +1 -0
  56. package/dist/node/es/internal/{object-Bj_Xyrvk.js → object-Bl-LmXHF.js} +2 -2
  57. package/dist/node/es/internal/{object-Bj_Xyrvk.js.map → object-Bl-LmXHF.js.map} +1 -1
  58. package/dist/node/es/utils.js +1 -1
  59. package/dist/node/src/document/schema/zod.d.ts +9 -27
  60. package/dist/node/src/document/schema/zod.d.ts.map +1 -1
  61. package/package.json +1 -1
  62. package/dist/browser/cjs/internal/creators-c2maywyy.js.map +0 -1
  63. package/dist/browser/cjs/internal/index-CTDPLYkV.js.map +0 -1
  64. package/dist/browser/cjs/internal/index-DDUYrJUg.js.map +0 -1
  65. package/dist/browser/es/internal/creators-CkhiX4CP.js.map +0 -1
  66. package/dist/browser/es/internal/index-CHpkSkeZ.js.map +0 -1
  67. package/dist/browser/es/internal/index-uWY5kwkt.js.map +0 -1
  68. package/dist/node/cjs/internal/creators-B5g3rJKI.js.map +0 -1
  69. package/dist/node/cjs/internal/index-Cdxqd-qQ.js.map +0 -1
  70. package/dist/node/cjs/internal/index-DHkzUhZg.js.map +0 -1
  71. package/dist/node/es/internal/creators-B6tCK8Ir.js.map +0 -1
  72. package/dist/node/es/internal/index-CJxdcyKO.js.map +0 -1
  73. package/dist/node/es/internal/index-mUxH6TbI.js.map +0 -1
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  require("mutative");
6
- const creators = require("./creators-B5g3rJKI.js");
6
+ const creators = require("./creators-ZpkFlacS.js");
7
7
  class BaseDocument {
8
8
  /**
9
9
  * Constructs a BaseDocument instance with an initial state.
@@ -180,4 +180,4 @@ function applyMixins(derivedCtor, constructors) {
180
180
  }
181
181
  exports.BaseDocument = BaseDocument;
182
182
  exports.applyMixins = applyMixins;
183
- //# sourceMappingURL=object-CpAsa3Oe.js.map
183
+ //# sourceMappingURL=object-DVKEoARn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"object-CpAsa3Oe.js","sources":["../../../../src/document/object.ts"],"sourcesContent":["import { loadState, prune, redo, setName, undo } from \"./actions\";\nimport type { BaseAction } from \"./actions/types\";\nimport type { SignalDispatch } from \"./signal\";\nimport type {\n Action,\n AttachmentRef,\n Document,\n ExtendedState,\n OperationScope,\n Reducer,\n ReducerOptions,\n} from \"./types\";\nimport { loadFromFile, readOnly, saveToFile } from \"./utils\";\n\n/**\n * This is an abstract class representing a document and provides methods\n * for creating and manipulating documents.\n * @typeparam T - The type of data stored in the document.\n * @typeparam A - The type of action the document can take.\n */\nexport abstract class BaseDocument<T, A extends Action, L = unknown> {\n protected _document: Document<T, A, L>;\n private _reducer: Reducer<T, A, L>;\n private _signalDispatch?: SignalDispatch;\n\n /**\n * Constructs a BaseDocument instance with an initial state.\n * @param reducer - The reducer function that updates the state.\n * @param document - The initial state of the document.\n */\n constructor(\n reducer: Reducer<T, A, L>,\n document: Document<T, A, L>,\n signalDispatch?: SignalDispatch,\n ) {\n this._reducer = reducer;\n this._document = document;\n this._signalDispatch = signalDispatch;\n }\n\n /**\n * Dispatches an action to update the state of the document.\n * @param action - The action to dispatch.\n * @returns The Document instance.\n */\n protected dispatch(action: A | BaseAction, options?: ReducerOptions) {\n this._document = this._reducer(\n this._document,\n action,\n this._signalDispatch,\n options,\n );\n return this;\n }\n\n /**\n * Saves the state of the document to a file.\n * @param path - The file path where the state should be saved.\n * @param extension - The file extension to use when saving the state.\n * @returns The file path where the state was saved.\n */\n protected saveToFile(path: string, extension: string, name?: string) {\n return saveToFile(this._document, path, extension, name);\n }\n\n /**\n * Loads the state of the document from a file.\n * @param path - The file path where the state is stored.\n */\n async loadFromFile(path: string) {\n this._document = await loadFromFile<T, A, L>(path, this._reducer);\n }\n\n /**\n * Loads the state of the document from a file and returns it.\n * @param path - The file path where the state is stored.\n * @param reducer - The reducer function that updates the state.\n * @returns The state of the document.\n */\n protected static async stateFromFile<T, A extends Action, L>(\n path: string,\n reducer: Reducer<T, A, L>,\n ) {\n const state = await loadFromFile<T, A, L>(path, reducer);\n return state;\n }\n\n /**\n * Gets the current state of the document.\n */\n get state() {\n return readOnly(this._document.state);\n }\n\n /**\n * Gets the list of operations performed on the document.\n */\n get operations() {\n return readOnly(this._document.operations);\n }\n\n /**\n * Gets the name of the document.\n */\n get name() {\n return this._document.name;\n }\n\n /**\n * Gets the type of document.\n */\n get documentType() {\n return this._document.documentType;\n }\n\n /**\n * Gets the timestamp of the date the document was created.\n */\n get created() {\n return this._document.created;\n }\n\n /**\n * Gets the timestamp of the date the document was last modified.\n */\n get lastModified() {\n return this._document.lastModified;\n }\n\n /**\n * Gets the global revision number of the document.\n */\n get revision() {\n return this._document.revision.global;\n }\n\n getRevision(scope: OperationScope) {\n return this._document.revision[scope];\n }\n\n /**\n * Gets the initial state of the document.\n */\n get initialState() {\n return readOnly(this._document.initialState);\n }\n\n /**\n * Returns the current document as an object\n */\n public toDocument() {\n return readOnly(this._document);\n }\n\n /**\n * Gets the attachment associated with the given key.\n * @param attachment - The key of the attachment to retrieve.\n */\n public getAttachment(attachment: AttachmentRef) {\n return this._document.attachments[attachment];\n }\n\n /**\n * Sets the name of the document.\n * @param name - The new name of the document.\n */\n public setName(name: string) {\n this.dispatch(setName(name));\n return this;\n }\n\n /**\n * Reverts a number of actions from the document.\n * @param count - The number of actions to revert.\n */\n public undo(count: number) {\n this.dispatch(undo(count));\n return this;\n }\n\n /**\n * Reapplies a number of actions to the document.\n * @param count - The number of actions to reapply.\n */\n public redo(count: number) {\n this.dispatch(redo(count));\n return this;\n }\n /**\n * Removes a range of operations from the document.\n * @param start - The starting index of the range to remove.\n * @param end - The ending index of the range to remove.\n */\n public prune(start?: number | undefined, end?: number | undefined) {\n this.dispatch(prune(start, end));\n return this;\n }\n\n /**\n * Loads a document state and a set of operations.\n * @param state - The state to load.\n * @param operations - The operations to apply to the document.\n */\n public loadState(\n state: Pick<ExtendedState<T, L>, \"state\" | \"name\">,\n operations: number,\n ) {\n this.dispatch(loadState(state, operations));\n return this;\n }\n}\n/**\n * Applies multiple mixins to a base class.\n * Used to have separate mixins to group methods by actions.\n *\n * @remarks\n * {@link https://www.typescriptlang.org/docs/handbook/mixins.html#alternative-pattern}\n *\n * @param derivedCtor - The class to apply the mixins to.\n * @param constructors - The constructors of the mixins.\n */\n\nexport function applyMixins(derivedCtor: any, constructors: any[]) {\n constructors.forEach((baseCtor) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {\n Object.defineProperty(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n derivedCtor.prototype,\n name,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n Object.getOwnPropertyDescriptor(baseCtor.prototype, name) ||\n Object.create(null),\n );\n });\n });\n}\n"],"names":["saveToFile","loadFromFile","readOnly","setName","undo","redo","prune","loadState"],"mappings":"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"}
1
+ {"version":3,"file":"object-DVKEoARn.js","sources":["../../../../src/document/object.ts"],"sourcesContent":["import { loadState, prune, redo, setName, undo } from \"./actions\";\nimport type { BaseAction } from \"./actions/types\";\nimport type { SignalDispatch } from \"./signal\";\nimport type {\n Action,\n AttachmentRef,\n Document,\n ExtendedState,\n OperationScope,\n Reducer,\n ReducerOptions,\n} from \"./types\";\nimport { loadFromFile, readOnly, saveToFile } from \"./utils\";\n\n/**\n * This is an abstract class representing a document and provides methods\n * for creating and manipulating documents.\n * @typeparam T - The type of data stored in the document.\n * @typeparam A - The type of action the document can take.\n */\nexport abstract class BaseDocument<T, A extends Action, L = unknown> {\n protected _document: Document<T, A, L>;\n private _reducer: Reducer<T, A, L>;\n private _signalDispatch?: SignalDispatch;\n\n /**\n * Constructs a BaseDocument instance with an initial state.\n * @param reducer - The reducer function that updates the state.\n * @param document - The initial state of the document.\n */\n constructor(\n reducer: Reducer<T, A, L>,\n document: Document<T, A, L>,\n signalDispatch?: SignalDispatch,\n ) {\n this._reducer = reducer;\n this._document = document;\n this._signalDispatch = signalDispatch;\n }\n\n /**\n * Dispatches an action to update the state of the document.\n * @param action - The action to dispatch.\n * @returns The Document instance.\n */\n protected dispatch(action: A | BaseAction, options?: ReducerOptions) {\n this._document = this._reducer(\n this._document,\n action,\n this._signalDispatch,\n options,\n );\n return this;\n }\n\n /**\n * Saves the state of the document to a file.\n * @param path - The file path where the state should be saved.\n * @param extension - The file extension to use when saving the state.\n * @returns The file path where the state was saved.\n */\n protected saveToFile(path: string, extension: string, name?: string) {\n return saveToFile(this._document, path, extension, name);\n }\n\n /**\n * Loads the state of the document from a file.\n * @param path - The file path where the state is stored.\n */\n async loadFromFile(path: string) {\n this._document = await loadFromFile<T, A, L>(path, this._reducer);\n }\n\n /**\n * Loads the state of the document from a file and returns it.\n * @param path - The file path where the state is stored.\n * @param reducer - The reducer function that updates the state.\n * @returns The state of the document.\n */\n protected static async stateFromFile<T, A extends Action, L>(\n path: string,\n reducer: Reducer<T, A, L>,\n ) {\n const state = await loadFromFile<T, A, L>(path, reducer);\n return state;\n }\n\n /**\n * Gets the current state of the document.\n */\n get state() {\n return readOnly(this._document.state);\n }\n\n /**\n * Gets the list of operations performed on the document.\n */\n get operations() {\n return readOnly(this._document.operations);\n }\n\n /**\n * Gets the name of the document.\n */\n get name() {\n return this._document.name;\n }\n\n /**\n * Gets the type of document.\n */\n get documentType() {\n return this._document.documentType;\n }\n\n /**\n * Gets the timestamp of the date the document was created.\n */\n get created() {\n return this._document.created;\n }\n\n /**\n * Gets the timestamp of the date the document was last modified.\n */\n get lastModified() {\n return this._document.lastModified;\n }\n\n /**\n * Gets the global revision number of the document.\n */\n get revision() {\n return this._document.revision.global;\n }\n\n getRevision(scope: OperationScope) {\n return this._document.revision[scope];\n }\n\n /**\n * Gets the initial state of the document.\n */\n get initialState() {\n return readOnly(this._document.initialState);\n }\n\n /**\n * Returns the current document as an object\n */\n public toDocument() {\n return readOnly(this._document);\n }\n\n /**\n * Gets the attachment associated with the given key.\n * @param attachment - The key of the attachment to retrieve.\n */\n public getAttachment(attachment: AttachmentRef) {\n return this._document.attachments[attachment];\n }\n\n /**\n * Sets the name of the document.\n * @param name - The new name of the document.\n */\n public setName(name: string) {\n this.dispatch(setName(name));\n return this;\n }\n\n /**\n * Reverts a number of actions from the document.\n * @param count - The number of actions to revert.\n */\n public undo(count: number) {\n this.dispatch(undo(count));\n return this;\n }\n\n /**\n * Reapplies a number of actions to the document.\n * @param count - The number of actions to reapply.\n */\n public redo(count: number) {\n this.dispatch(redo(count));\n return this;\n }\n /**\n * Removes a range of operations from the document.\n * @param start - The starting index of the range to remove.\n * @param end - The ending index of the range to remove.\n */\n public prune(start?: number | undefined, end?: number | undefined) {\n this.dispatch(prune(start, end));\n return this;\n }\n\n /**\n * Loads a document state and a set of operations.\n * @param state - The state to load.\n * @param operations - The operations to apply to the document.\n */\n public loadState(\n state: Pick<ExtendedState<T, L>, \"state\" | \"name\">,\n operations: number,\n ) {\n this.dispatch(loadState(state, operations));\n return this;\n }\n}\n/**\n * Applies multiple mixins to a base class.\n * Used to have separate mixins to group methods by actions.\n *\n * @remarks\n * {@link https://www.typescriptlang.org/docs/handbook/mixins.html#alternative-pattern}\n *\n * @param derivedCtor - The class to apply the mixins to.\n * @param constructors - The constructors of the mixins.\n */\n\nexport function applyMixins(derivedCtor: any, constructors: any[]) {\n constructors.forEach((baseCtor) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {\n Object.defineProperty(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n derivedCtor.prototype,\n name,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n Object.getOwnPropertyDescriptor(baseCtor.prototype, name) ||\n Object.create(null),\n );\n });\n });\n}\n"],"names":["saveToFile","loadFromFile","readOnly","setName","undo","redo","prune","loadState"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const creators = require("./internal/creators-B5g3rJKI.js");
3
+ const creators = require("./internal/creators-ZpkFlacS.js");
4
4
  exports.InvalidActionInputError = creators.InvalidActionInputError;
5
5
  exports.InvalidActionInputZodError = creators.InvalidActionInputZodError;
6
6
  exports.ab2hex = creators.ab2hex;
@@ -1,4 +1,4 @@
1
- import "./internal/creators-B6tCK8Ir.js";
1
+ import "./internal/creators-0lHfLHX0.js";
2
2
  import "mutative";
3
3
  import "zod";
4
4
  import "jszip";
@@ -6,7 +6,7 @@ import "node:crypto";
6
6
  import "node:fs";
7
7
  import "node:https";
8
8
  import "node:path";
9
- import { b, a, c, d, m, r, u, v, g, h, f, e, z } from "./internal/index-dVqoH-Pd.js";
9
+ import { b, a, c, d, m, r, u, v, g, h, f, e, z } from "./internal/index-CxWihLAA.js";
10
10
  export {
11
11
  b as Document,
12
12
  a as DocumentModel,
@@ -1,6 +1,6 @@
1
- import { B, g, m, p, u, h, z } from "./internal/creators-B6tCK8Ir.js";
2
- import { B as B2, a } from "./internal/object-Bj_Xyrvk.js";
3
- import { i } from "./internal/index-CJxdcyKO.js";
1
+ import { B, g, m, p, u, h, z } from "./internal/creators-0lHfLHX0.js";
2
+ import { B as B2, a } from "./internal/object-Bl-LmXHF.js";
3
+ import { i } from "./internal/index-BOhJLvSm.js";
4
4
  export {
5
5
  B2 as BaseDocument,
6
6
  B as actions,
@@ -1,5 +1,5 @@
1
- import { D as Document } from "./internal/index-mUxH6TbI.js";
2
- import { D as DocumentModel } from "./internal/index-dVqoH-Pd.js";
1
+ import { D as Document } from "./internal/index-bxdb71Hw.js";
2
+ import { D as DocumentModel } from "./internal/index-CxWihLAA.js";
3
3
  const DocumentModels = {
4
4
  "powerhouse/document": Document,
5
5
  "powerhouse/document-model": DocumentModel
@@ -903,7 +903,358 @@ class InvalidActionInputZodError extends InvalidActionInputError {
903
903
  this.name = "InvalidActionInputZodError";
904
904
  }
905
905
  }
906
- const types = { "application/andrew-inset": ["ez"], "application/appinstaller": ["appinstaller"], "application/applixware": ["aw"], "application/appx": ["appx"], "application/appxbundle": ["appxbundle"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/automationml-aml+xml": ["aml"], "application/automationml-amlx+zip": ["amlx"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cpl+xml": ["cpl"], "application/cu-seeme": ["cu"], "application/cwl": ["cwl"], "application/dash+xml": ["mpd"], "application/dash-patch+xml": ["mpp"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdf": ["fdf"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["*js"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/media-policy-dataset+xml": ["mpf"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["*mp4", "*mpg4", "mp4s", "m4p"], "application/msix": ["msix"], "application/msixbundle": ["msixbundle"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-keys": ["asc"], "application/pgp-signature": ["sig", "*asc"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/sql": ["sql"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/watcherinfo+xml": ["wif"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xfdf": ["xfdf"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/aac": ["adts", "aac"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avci": ["avci"], "image/avcs": ["avcs"], "image/avif": ["avif"], "image/bmp": ["bmp", "dib"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/dpx": ["dpx"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm", "jpgm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/jt": ["jt"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/prc": ["prc"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/u3d": ["u3d"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/javascript": ["js", "mjs"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["md", "markdown"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/wgsl": ["wgsl"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "*jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] };
906
+ const types = {
907
+ "application/andrew-inset": ["ez"],
908
+ "application/appinstaller": ["appinstaller"],
909
+ "application/applixware": ["aw"],
910
+ "application/appx": ["appx"],
911
+ "application/appxbundle": ["appxbundle"],
912
+ "application/atom+xml": ["atom"],
913
+ "application/atomcat+xml": ["atomcat"],
914
+ "application/atomdeleted+xml": ["atomdeleted"],
915
+ "application/atomsvc+xml": ["atomsvc"],
916
+ "application/atsc-dwd+xml": ["dwd"],
917
+ "application/atsc-held+xml": ["held"],
918
+ "application/atsc-rsat+xml": ["rsat"],
919
+ "application/automationml-aml+xml": ["aml"],
920
+ "application/automationml-amlx+zip": ["amlx"],
921
+ "application/bdoc": ["bdoc"],
922
+ "application/calendar+xml": ["xcs"],
923
+ "application/ccxml+xml": ["ccxml"],
924
+ "application/cdfx+xml": ["cdfx"],
925
+ "application/cdmi-capability": ["cdmia"],
926
+ "application/cdmi-container": ["cdmic"],
927
+ "application/cdmi-domain": ["cdmid"],
928
+ "application/cdmi-object": ["cdmio"],
929
+ "application/cdmi-queue": ["cdmiq"],
930
+ "application/cpl+xml": ["cpl"],
931
+ "application/cu-seeme": ["cu"],
932
+ "application/cwl": ["cwl"],
933
+ "application/dash+xml": ["mpd"],
934
+ "application/dash-patch+xml": ["mpp"],
935
+ "application/davmount+xml": ["davmount"],
936
+ "application/docbook+xml": ["dbk"],
937
+ "application/dssc+der": ["dssc"],
938
+ "application/dssc+xml": ["xdssc"],
939
+ "application/ecmascript": ["ecma"],
940
+ "application/emma+xml": ["emma"],
941
+ "application/emotionml+xml": ["emotionml"],
942
+ "application/epub+zip": ["epub"],
943
+ "application/exi": ["exi"],
944
+ "application/express": ["exp"],
945
+ "application/fdf": ["fdf"],
946
+ "application/fdt+xml": ["fdt"],
947
+ "application/font-tdpfr": ["pfr"],
948
+ "application/geo+json": ["geojson"],
949
+ "application/gml+xml": ["gml"],
950
+ "application/gpx+xml": ["gpx"],
951
+ "application/gxf": ["gxf"],
952
+ "application/gzip": ["gz"],
953
+ "application/hjson": ["hjson"],
954
+ "application/hyperstudio": ["stk"],
955
+ "application/inkml+xml": ["ink", "inkml"],
956
+ "application/ipfix": ["ipfix"],
957
+ "application/its+xml": ["its"],
958
+ "application/java-archive": ["jar", "war", "ear"],
959
+ "application/java-serialized-object": ["ser"],
960
+ "application/java-vm": ["class"],
961
+ "application/javascript": ["*js"],
962
+ "application/json": ["json", "map"],
963
+ "application/json5": ["json5"],
964
+ "application/jsonml+json": ["jsonml"],
965
+ "application/ld+json": ["jsonld"],
966
+ "application/lgr+xml": ["lgr"],
967
+ "application/lost+xml": ["lostxml"],
968
+ "application/mac-binhex40": ["hqx"],
969
+ "application/mac-compactpro": ["cpt"],
970
+ "application/mads+xml": ["mads"],
971
+ "application/manifest+json": ["webmanifest"],
972
+ "application/marc": ["mrc"],
973
+ "application/marcxml+xml": ["mrcx"],
974
+ "application/mathematica": ["ma", "nb", "mb"],
975
+ "application/mathml+xml": ["mathml"],
976
+ "application/mbox": ["mbox"],
977
+ "application/media-policy-dataset+xml": ["mpf"],
978
+ "application/mediaservercontrol+xml": ["mscml"],
979
+ "application/metalink+xml": ["metalink"],
980
+ "application/metalink4+xml": ["meta4"],
981
+ "application/mets+xml": ["mets"],
982
+ "application/mmt-aei+xml": ["maei"],
983
+ "application/mmt-usd+xml": ["musd"],
984
+ "application/mods+xml": ["mods"],
985
+ "application/mp21": ["m21", "mp21"],
986
+ "application/mp4": ["*mp4", "*mpg4", "mp4s", "m4p"],
987
+ "application/msix": ["msix"],
988
+ "application/msixbundle": ["msixbundle"],
989
+ "application/msword": ["doc", "dot"],
990
+ "application/mxf": ["mxf"],
991
+ "application/n-quads": ["nq"],
992
+ "application/n-triples": ["nt"],
993
+ "application/node": ["cjs"],
994
+ "application/octet-stream": [
995
+ "bin",
996
+ "dms",
997
+ "lrf",
998
+ "mar",
999
+ "so",
1000
+ "dist",
1001
+ "distz",
1002
+ "pkg",
1003
+ "bpk",
1004
+ "dump",
1005
+ "elc",
1006
+ "deploy",
1007
+ "exe",
1008
+ "dll",
1009
+ "deb",
1010
+ "dmg",
1011
+ "iso",
1012
+ "img",
1013
+ "msi",
1014
+ "msp",
1015
+ "msm",
1016
+ "buffer"
1017
+ ],
1018
+ "application/oda": ["oda"],
1019
+ "application/oebps-package+xml": ["opf"],
1020
+ "application/ogg": ["ogx"],
1021
+ "application/omdoc+xml": ["omdoc"],
1022
+ "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"],
1023
+ "application/oxps": ["oxps"],
1024
+ "application/p2p-overlay+xml": ["relo"],
1025
+ "application/patch-ops-error+xml": ["xer"],
1026
+ "application/pdf": ["pdf"],
1027
+ "application/pgp-encrypted": ["pgp"],
1028
+ "application/pgp-keys": ["asc"],
1029
+ "application/pgp-signature": ["sig", "*asc"],
1030
+ "application/pics-rules": ["prf"],
1031
+ "application/pkcs10": ["p10"],
1032
+ "application/pkcs7-mime": ["p7m", "p7c"],
1033
+ "application/pkcs7-signature": ["p7s"],
1034
+ "application/pkcs8": ["p8"],
1035
+ "application/pkix-attr-cert": ["ac"],
1036
+ "application/pkix-cert": ["cer"],
1037
+ "application/pkix-crl": ["crl"],
1038
+ "application/pkix-pkipath": ["pkipath"],
1039
+ "application/pkixcmp": ["pki"],
1040
+ "application/pls+xml": ["pls"],
1041
+ "application/postscript": ["ai", "eps", "ps"],
1042
+ "application/provenance+xml": ["provx"],
1043
+ "application/pskc+xml": ["pskcxml"],
1044
+ "application/raml+yaml": ["raml"],
1045
+ "application/rdf+xml": ["rdf", "owl"],
1046
+ "application/reginfo+xml": ["rif"],
1047
+ "application/relax-ng-compact-syntax": ["rnc"],
1048
+ "application/resource-lists+xml": ["rl"],
1049
+ "application/resource-lists-diff+xml": ["rld"],
1050
+ "application/rls-services+xml": ["rs"],
1051
+ "application/route-apd+xml": ["rapd"],
1052
+ "application/route-s-tsid+xml": ["sls"],
1053
+ "application/route-usd+xml": ["rusd"],
1054
+ "application/rpki-ghostbusters": ["gbr"],
1055
+ "application/rpki-manifest": ["mft"],
1056
+ "application/rpki-roa": ["roa"],
1057
+ "application/rsd+xml": ["rsd"],
1058
+ "application/rss+xml": ["rss"],
1059
+ "application/rtf": ["rtf"],
1060
+ "application/sbml+xml": ["sbml"],
1061
+ "application/scvp-cv-request": ["scq"],
1062
+ "application/scvp-cv-response": ["scs"],
1063
+ "application/scvp-vp-request": ["spq"],
1064
+ "application/scvp-vp-response": ["spp"],
1065
+ "application/sdp": ["sdp"],
1066
+ "application/senml+xml": ["senmlx"],
1067
+ "application/sensml+xml": ["sensmlx"],
1068
+ "application/set-payment-initiation": ["setpay"],
1069
+ "application/set-registration-initiation": ["setreg"],
1070
+ "application/shf+xml": ["shf"],
1071
+ "application/sieve": ["siv", "sieve"],
1072
+ "application/smil+xml": ["smi", "smil"],
1073
+ "application/sparql-query": ["rq"],
1074
+ "application/sparql-results+xml": ["srx"],
1075
+ "application/sql": ["sql"],
1076
+ "application/srgs": ["gram"],
1077
+ "application/srgs+xml": ["grxml"],
1078
+ "application/sru+xml": ["sru"],
1079
+ "application/ssdl+xml": ["ssdl"],
1080
+ "application/ssml+xml": ["ssml"],
1081
+ "application/swid+xml": ["swidtag"],
1082
+ "application/tei+xml": ["tei", "teicorpus"],
1083
+ "application/thraud+xml": ["tfi"],
1084
+ "application/timestamped-data": ["tsd"],
1085
+ "application/toml": ["toml"],
1086
+ "application/trig": ["trig"],
1087
+ "application/ttml+xml": ["ttml"],
1088
+ "application/ubjson": ["ubj"],
1089
+ "application/urc-ressheet+xml": ["rsheet"],
1090
+ "application/urc-targetdesc+xml": ["td"],
1091
+ "application/voicexml+xml": ["vxml"],
1092
+ "application/wasm": ["wasm"],
1093
+ "application/watcherinfo+xml": ["wif"],
1094
+ "application/widget": ["wgt"],
1095
+ "application/winhlp": ["hlp"],
1096
+ "application/wsdl+xml": ["wsdl"],
1097
+ "application/wspolicy+xml": ["wspolicy"],
1098
+ "application/xaml+xml": ["xaml"],
1099
+ "application/xcap-att+xml": ["xav"],
1100
+ "application/xcap-caps+xml": ["xca"],
1101
+ "application/xcap-diff+xml": ["xdf"],
1102
+ "application/xcap-el+xml": ["xel"],
1103
+ "application/xcap-ns+xml": ["xns"],
1104
+ "application/xenc+xml": ["xenc"],
1105
+ "application/xfdf": ["xfdf"],
1106
+ "application/xhtml+xml": ["xhtml", "xht"],
1107
+ "application/xliff+xml": ["xlf"],
1108
+ "application/xml": ["xml", "xsl", "xsd", "rng"],
1109
+ "application/xml-dtd": ["dtd"],
1110
+ "application/xop+xml": ["xop"],
1111
+ "application/xproc+xml": ["xpl"],
1112
+ "application/xslt+xml": ["*xsl", "xslt"],
1113
+ "application/xspf+xml": ["xspf"],
1114
+ "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"],
1115
+ "application/yang": ["yang"],
1116
+ "application/yin+xml": ["yin"],
1117
+ "application/zip": ["zip"],
1118
+ "audio/3gpp": ["*3gpp"],
1119
+ "audio/aac": ["adts", "aac"],
1120
+ "audio/adpcm": ["adp"],
1121
+ "audio/amr": ["amr"],
1122
+ "audio/basic": ["au", "snd"],
1123
+ "audio/midi": ["mid", "midi", "kar", "rmi"],
1124
+ "audio/mobile-xmf": ["mxmf"],
1125
+ "audio/mp3": ["*mp3"],
1126
+ "audio/mp4": ["m4a", "mp4a"],
1127
+ "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
1128
+ "audio/ogg": ["oga", "ogg", "spx", "opus"],
1129
+ "audio/s3m": ["s3m"],
1130
+ "audio/silk": ["sil"],
1131
+ "audio/wav": ["wav"],
1132
+ "audio/wave": ["*wav"],
1133
+ "audio/webm": ["weba"],
1134
+ "audio/xm": ["xm"],
1135
+ "font/collection": ["ttc"],
1136
+ "font/otf": ["otf"],
1137
+ "font/ttf": ["ttf"],
1138
+ "font/woff": ["woff"],
1139
+ "font/woff2": ["woff2"],
1140
+ "image/aces": ["exr"],
1141
+ "image/apng": ["apng"],
1142
+ "image/avci": ["avci"],
1143
+ "image/avcs": ["avcs"],
1144
+ "image/avif": ["avif"],
1145
+ "image/bmp": ["bmp", "dib"],
1146
+ "image/cgm": ["cgm"],
1147
+ "image/dicom-rle": ["drle"],
1148
+ "image/dpx": ["dpx"],
1149
+ "image/emf": ["emf"],
1150
+ "image/fits": ["fits"],
1151
+ "image/g3fax": ["g3"],
1152
+ "image/gif": ["gif"],
1153
+ "image/heic": ["heic"],
1154
+ "image/heic-sequence": ["heics"],
1155
+ "image/heif": ["heif"],
1156
+ "image/heif-sequence": ["heifs"],
1157
+ "image/hej2k": ["hej2"],
1158
+ "image/hsj2": ["hsj2"],
1159
+ "image/ief": ["ief"],
1160
+ "image/jls": ["jls"],
1161
+ "image/jp2": ["jp2", "jpg2"],
1162
+ "image/jpeg": ["jpeg", "jpg", "jpe"],
1163
+ "image/jph": ["jph"],
1164
+ "image/jphc": ["jhc"],
1165
+ "image/jpm": ["jpm", "jpgm"],
1166
+ "image/jpx": ["jpx", "jpf"],
1167
+ "image/jxl": ["jxl"],
1168
+ "image/jxr": ["jxr"],
1169
+ "image/jxra": ["jxra"],
1170
+ "image/jxrs": ["jxrs"],
1171
+ "image/jxs": ["jxs"],
1172
+ "image/jxsc": ["jxsc"],
1173
+ "image/jxsi": ["jxsi"],
1174
+ "image/jxss": ["jxss"],
1175
+ "image/ktx": ["ktx"],
1176
+ "image/ktx2": ["ktx2"],
1177
+ "image/png": ["png"],
1178
+ "image/sgi": ["sgi"],
1179
+ "image/svg+xml": ["svg", "svgz"],
1180
+ "image/t38": ["t38"],
1181
+ "image/tiff": ["tif", "tiff"],
1182
+ "image/tiff-fx": ["tfx"],
1183
+ "image/webp": ["webp"],
1184
+ "image/wmf": ["wmf"],
1185
+ "message/disposition-notification": ["disposition-notification"],
1186
+ "message/global": ["u8msg"],
1187
+ "message/global-delivery-status": ["u8dsn"],
1188
+ "message/global-disposition-notification": ["u8mdn"],
1189
+ "message/global-headers": ["u8hdr"],
1190
+ "message/rfc822": ["eml", "mime"],
1191
+ "model/3mf": ["3mf"],
1192
+ "model/gltf+json": ["gltf"],
1193
+ "model/gltf-binary": ["glb"],
1194
+ "model/iges": ["igs", "iges"],
1195
+ "model/jt": ["jt"],
1196
+ "model/mesh": ["msh", "mesh", "silo"],
1197
+ "model/mtl": ["mtl"],
1198
+ "model/obj": ["obj"],
1199
+ "model/prc": ["prc"],
1200
+ "model/step+xml": ["stpx"],
1201
+ "model/step+zip": ["stpz"],
1202
+ "model/step-xml+zip": ["stpxz"],
1203
+ "model/stl": ["stl"],
1204
+ "model/u3d": ["u3d"],
1205
+ "model/vrml": ["wrl", "vrml"],
1206
+ "model/x3d+binary": ["*x3db", "x3dbz"],
1207
+ "model/x3d+fastinfoset": ["x3db"],
1208
+ "model/x3d+vrml": ["*x3dv", "x3dvz"],
1209
+ "model/x3d+xml": ["x3d", "x3dz"],
1210
+ "model/x3d-vrml": ["x3dv"],
1211
+ "text/cache-manifest": ["appcache", "manifest"],
1212
+ "text/calendar": ["ics", "ifb"],
1213
+ "text/coffeescript": ["coffee", "litcoffee"],
1214
+ "text/css": ["css"],
1215
+ "text/csv": ["csv"],
1216
+ "text/html": ["html", "htm", "shtml"],
1217
+ "text/jade": ["jade"],
1218
+ "text/javascript": ["js", "mjs"],
1219
+ "text/jsx": ["jsx"],
1220
+ "text/less": ["less"],
1221
+ "text/markdown": ["md", "markdown"],
1222
+ "text/mathml": ["mml"],
1223
+ "text/mdx": ["mdx"],
1224
+ "text/n3": ["n3"],
1225
+ "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"],
1226
+ "text/richtext": ["rtx"],
1227
+ "text/rtf": ["*rtf"],
1228
+ "text/sgml": ["sgml", "sgm"],
1229
+ "text/shex": ["shex"],
1230
+ "text/slim": ["slim", "slm"],
1231
+ "text/spdx": ["spdx"],
1232
+ "text/stylus": ["stylus", "styl"],
1233
+ "text/tab-separated-values": ["tsv"],
1234
+ "text/troff": ["t", "tr", "roff", "man", "me", "ms"],
1235
+ "text/turtle": ["ttl"],
1236
+ "text/uri-list": ["uri", "uris", "urls"],
1237
+ "text/vcard": ["vcard"],
1238
+ "text/vtt": ["vtt"],
1239
+ "text/wgsl": ["wgsl"],
1240
+ "text/xml": ["*xml"],
1241
+ "text/yaml": ["yaml", "yml"],
1242
+ "video/3gpp": ["3gp", "3gpp"],
1243
+ "video/3gpp2": ["3g2"],
1244
+ "video/h261": ["h261"],
1245
+ "video/h263": ["h263"],
1246
+ "video/h264": ["h264"],
1247
+ "video/iso.segment": ["m4s"],
1248
+ "video/jpeg": ["jpgv"],
1249
+ "video/jpm": ["*jpm", "*jpgm"],
1250
+ "video/mj2": ["mj2", "mjp2"],
1251
+ "video/mp2t": ["ts", "m2t", "m2ts", "mts"],
1252
+ "video/mp4": ["mp4", "mp4v", "mpg4"],
1253
+ "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"],
1254
+ "video/ogg": ["ogv"],
1255
+ "video/quicktime": ["qt", "mov"],
1256
+ "video/webm": ["webm"]
1257
+ };
907
1258
  Object.freeze(types);
908
1259
  var __classPrivateFieldGet = function(receiver, state, kind, f) {
909
1260
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
@@ -2331,4 +2682,4 @@ export {
2331
2682
  buildOperationSignatureParams as y,
2332
2683
  zod as z
2333
2684
  };
2334
- //# sourceMappingURL=creators-B6tCK8Ir.js.map
2685
+ //# sourceMappingURL=creators-0lHfLHX0.js.map