wcz-test 7.0.1 → 7.1.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 (64) hide show
  1. package/dist/DialogsContext-8xfQ3X-k.js +285 -0
  2. package/dist/DialogsContext-8xfQ3X-k.js.map +1 -0
  3. package/dist/{DialogsHooks-BZUdpDVJ.js → DialogsHooks-BXfwbYWP.js} +14 -14
  4. package/dist/{DialogsHooks-BZUdpDVJ.js.map → DialogsHooks-BXfwbYWP.js.map} +1 -1
  5. package/dist/FileMeta-CDQ1BQUH.js +21 -0
  6. package/dist/FileMeta-CDQ1BQUH.js.map +1 -0
  7. package/dist/RouterListItemButton-DrW6M53Y.js +17 -0
  8. package/dist/{RouterListItemButton-C_jUvB6C.js.map → RouterListItemButton-DrW6M53Y.js.map} +1 -1
  9. package/dist/components.js +1158 -1132
  10. package/dist/components.js.map +1 -1
  11. package/dist/hooks.d.ts +3 -0
  12. package/dist/hooks.js +466 -421
  13. package/dist/hooks.js.map +1 -1
  14. package/dist/index-DchOf6FV.js +2756 -0
  15. package/dist/index-DchOf6FV.js.map +1 -0
  16. package/dist/{index-Y_pgyGkL.js → index-De6Lo0ff.js} +531 -603
  17. package/dist/index-De6Lo0ff.js.map +1 -0
  18. package/dist/index.js +830 -665
  19. package/dist/index.js.map +1 -1
  20. package/dist/models.d.ts +0 -3
  21. package/dist/models.js +2 -2
  22. package/dist/query.d.ts +8 -0
  23. package/dist/query.js +6 -0
  24. package/dist/query.js.map +1 -0
  25. package/dist/utils-Dttzp8un.js +10879 -0
  26. package/dist/utils-Dttzp8un.js.map +1 -0
  27. package/dist/utils.d.ts +3 -0
  28. package/dist/utils.js +271 -8
  29. package/dist/utils.js.map +1 -1
  30. package/dist/vite.js +53 -26
  31. package/dist/vite.js.map +1 -1
  32. package/package.json +6 -10
  33. package/dist/ApprovalStatus-lESbUD_x.js +0 -7
  34. package/dist/ApprovalStatus-lESbUD_x.js.map +0 -1
  35. package/dist/DialogsContext-CGAKEKKW.js +0 -546
  36. package/dist/DialogsContext-CGAKEKKW.js.map +0 -1
  37. package/dist/FileHooks-CstZ4QII.js +0 -2699
  38. package/dist/FileHooks-CstZ4QII.js.map +0 -1
  39. package/dist/FileMeta-Bzeo3ie9.js +0 -18
  40. package/dist/FileMeta-Bzeo3ie9.js.map +0 -1
  41. package/dist/GraphQueries-BOAnio_H.js +0 -28021
  42. package/dist/GraphQueries-BOAnio_H.js.map +0 -1
  43. package/dist/RouterListItemButton-C_jUvB6C.js +0 -18
  44. package/dist/auth.d.ts +0 -14
  45. package/dist/auth.js +0 -38
  46. package/dist/auth.js.map +0 -1
  47. package/dist/bun-sqlite-dialect-z0b9N0QU.js +0 -143
  48. package/dist/bun-sqlite-dialect-z0b9N0QU.js.map +0 -1
  49. package/dist/compiler-runtime-BNHg76kC.js +0 -37
  50. package/dist/compiler-runtime-BNHg76kC.js.map +0 -1
  51. package/dist/index-Biz5inV2.js +0 -268
  52. package/dist/index-Biz5inV2.js.map +0 -1
  53. package/dist/index-C8xwvJpf.js +0 -159
  54. package/dist/index-C8xwvJpf.js.map +0 -1
  55. package/dist/index-CbycwLQM.js +0 -227
  56. package/dist/index-CbycwLQM.js.map +0 -1
  57. package/dist/index-Y_pgyGkL.js.map +0 -1
  58. package/dist/node-sqlite-dialect-CfkKTzbw.js +0 -143
  59. package/dist/node-sqlite-dialect-CfkKTzbw.js.map +0 -1
  60. package/dist/queries.d.ts +0 -95
  61. package/dist/queries.js +0 -567
  62. package/dist/queries.js.map +0 -1
  63. package/dist/utils-araYIHAE.js +0 -81
  64. package/dist/utils-araYIHAE.js.map +0 -1
@@ -1,18 +0,0 @@
1
- import { j as r } from "./DialogsContext-CGAKEKKW.js";
2
- import { c as i } from "./compiler-runtime-BNHg76kC.js";
3
- import { ListItemButton as s } from "@mui/material";
4
- import { createLink as c } from "@tanstack/react-router";
5
- import f from "react";
6
- const u = f.forwardRef(function(t, o) {
7
- const n = i.c(3);
8
- let m;
9
- return n[0] !== t || n[1] !== o ? (m = /* @__PURE__ */ r.jsx(s, { ref: o, component: "a", ...t }), n[0] = t, n[1] = o, n[2] = m) : m = n[2], m;
10
- }), a = c(u), C = (e) => {
11
- const t = i.c(2);
12
- let o;
13
- return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(a, { ...e }), t[0] = e, t[1] = o) : o = t[1], o;
14
- };
15
- export {
16
- C as R
17
- };
18
- //# sourceMappingURL=RouterListItemButton-C_jUvB6C.js.map
package/dist/auth.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { authenticationMiddleware } from '../lib/auth/middleware';
2
- import { authorizationMiddleware } from '../lib/auth/middleware';
3
- import { getAccessToken } from '../lib/auth/authFn';
4
- import { getSession } from '../lib/auth/authFn';
5
-
6
- export { authenticationMiddleware }
7
-
8
- export { authorizationMiddleware }
9
-
10
- export { getAccessToken }
11
-
12
- export { getSession }
13
-
14
- export { }
package/dist/auth.js DELETED
@@ -1,38 +0,0 @@
1
- import { a as i } from "./GraphQueries-BOAnio_H.js";
2
- import { b as p, g as l } from "./GraphQueries-BOAnio_H.js";
3
- import { createMiddleware as o, json as a } from "@tanstack/react-start";
4
- import { getRequestHeaders as n } from "@tanstack/react-start/server";
5
- const c = o().server(async ({
6
- next: s
7
- }) => {
8
- const e = n(), t = await i.api.getSession({
9
- headers: e
10
- });
11
- if (!t) throw a({
12
- message: "Session not found"
13
- }, {
14
- status: 401
15
- });
16
- return await s({
17
- context: {
18
- session: t
19
- }
20
- });
21
- }), w = (s) => o().middleware([c]).server(async ({
22
- context: e,
23
- next: t
24
- }) => {
25
- if (!s.some((r) => e.session.user.groups.includes(r))) throw a({
26
- message: `User ${e.session.user.name} is not in allowed groups: ${s.join(", ")}`
27
- }, {
28
- status: 403
29
- });
30
- return await t();
31
- });
32
- export {
33
- c as authenticationMiddleware,
34
- w as authorizationMiddleware,
35
- p as getAccessToken,
36
- l as getSession
37
- };
38
- //# sourceMappingURL=auth.js.map
package/dist/auth.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sources":["../src/lib/auth/middleware.ts"],"sourcesContent":["import { createMiddleware, json } from \"@tanstack/react-start\";\r\nimport { getRequestHeaders } from \"@tanstack/react-start/server\";\r\nimport { auth } from \"./auth\";\r\n\r\nexport const authenticationMiddleware = createMiddleware()\r\n .server(async ({ next }) => {\r\n const headers = getRequestHeaders();\r\n const session = await auth.api.getSession({ headers });\r\n if (!session) throw json({ message: \"Session not found\" }, { status: 401 });\r\n return await next({ context: { session } });\r\n });\r\n\r\nexport const authorizationMiddleware = (allowedGroups: Array<string>) => createMiddleware()\r\n .middleware([authenticationMiddleware])\r\n .server(async ({ context, next }) => {\r\n const hasAccess = allowedGroups.some((group) => context.session.user.groups.includes(group));\r\n if (!hasAccess) throw json({ message: `User ${context.session.user.name} is not in allowed groups: ${allowedGroups.join(\", \")}` }, { status: 403 });\r\n return await next();\r\n });\r\n"],"names":["authenticationMiddleware","createMiddleware","server","next","headers","getRequestHeaders","session","auth","api","getSession","json","message","status","context","authorizationMiddleware","allowedGroups","middleware","some","group","user","groups","includes","name","join"],"mappings":";;;;AAIO,MAAMA,IAA2BC,IACnCC,OAAO,OAAO;AAAA,EAAEC,MAAAA;AAAK,MAAM;AACxB,QAAMC,IAAUC,EAAAA,GACVC,IAAU,MAAMC,EAAKC,IAAIC,WAAW;AAAA,IAAEL,SAAAA;AAAAA,EAAAA,CAAS;AACrD,MAAI,CAACE,EAAS,OAAMI,EAAK;AAAA,IAAEC,SAAS;AAAA,EAAA,GAAuB;AAAA,IAAEC,QAAQ;AAAA,EAAA,CAAK;AAC1E,SAAO,MAAMT,EAAK;AAAA,IAAEU,SAAS;AAAA,MAAEP,SAAAA;AAAAA,IAAAA;AAAAA,EAAQ,CAAG;AAC9C,CAAC,GAEQQ,IAA0BA,CAACC,MAAiCd,EAAAA,EACpEe,WAAW,CAAChB,CAAwB,CAAC,EACrCE,OAAO,OAAO;AAAA,EAAEW,SAAAA;AAAAA,EAASV,MAAAA;AAAK,MAAM;AAEjC,MAAI,CADcY,EAAcE,KAAMC,CAAAA,MAAUL,EAAQP,QAAQa,KAAKC,OAAOC,SAASH,CAAK,CAAC,EAC3E,OAAMR,EAAK;AAAA,IAAEC,SAAS,QAAQE,EAAQP,QAAQa,KAAKG,IAAI,8BAA8BP,EAAcQ,KAAK,IAAI,CAAC;AAAA,EAAA,GAAM;AAAA,IAAEX,QAAQ;AAAA,EAAA,CAAK;AAClJ,SAAO,MAAMT,EAAAA;AACjB,CAAC;"}
@@ -1,143 +0,0 @@
1
- import { C as s, D as n, f as i, h as o, s as c } from "./GraphQueries-BOAnio_H.js";
2
- var l = class {
3
- get supportsCreateIfNotExists() {
4
- return !0;
5
- }
6
- get supportsTransactionalDdl() {
7
- return !1;
8
- }
9
- get supportsReturning() {
10
- return !0;
11
- }
12
- async acquireMigrationLock() {
13
- }
14
- async releaseMigrationLock() {
15
- }
16
- get supportsOutput() {
17
- return !0;
18
- }
19
- }, u = class {
20
- #e;
21
- #t = new h();
22
- #r;
23
- #a;
24
- constructor(e) {
25
- this.#e = { ...e };
26
- }
27
- async init() {
28
- this.#r = this.#e.database, this.#a = new m(this.#r), this.#e.onCreateConnection && await this.#e.onCreateConnection(this.#a);
29
- }
30
- async acquireConnection() {
31
- return await this.#t.lock(), this.#a;
32
- }
33
- async beginTransaction(e) {
34
- await e.executeQuery(s.raw("begin"));
35
- }
36
- async commitTransaction(e) {
37
- await e.executeQuery(s.raw("commit"));
38
- }
39
- async rollbackTransaction(e) {
40
- await e.executeQuery(s.raw("rollback"));
41
- }
42
- async releaseConnection() {
43
- this.#t.unlock();
44
- }
45
- async destroy() {
46
- this.#r?.close();
47
- }
48
- }, m = class {
49
- #e;
50
- constructor(e) {
51
- this.#e = e;
52
- }
53
- executeQuery(e) {
54
- const { sql: r, parameters: a } = e, t = this.#e.prepare(r);
55
- return Promise.resolve({ rows: t.all(a) });
56
- }
57
- async *streamQuery() {
58
- throw new Error("Streaming query is not supported by SQLite driver.");
59
- }
60
- }, h = class {
61
- #e;
62
- #t;
63
- async lock() {
64
- for (; this.#e; ) await this.#e;
65
- this.#e = new Promise((e) => {
66
- this.#t = e;
67
- });
68
- }
69
- unlock() {
70
- const e = this.#t;
71
- this.#e = void 0, this.#t = void 0, e?.();
72
- }
73
- }, p = class {
74
- #e;
75
- constructor(e) {
76
- this.#e = e;
77
- }
78
- async getSchemas() {
79
- return [];
80
- }
81
- async getTables(e = { withInternalKyselyTables: !1 }) {
82
- let r = this.#e.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
83
- e.withInternalKyselyTables || (r = r.where("name", "!=", i).where("name", "!=", o));
84
- const a = await r.execute();
85
- return Promise.all(a.map(({ name: t }) => this.#t(t)));
86
- }
87
- async getMetadata(e) {
88
- return { tables: await this.getTables(e) };
89
- }
90
- async #t(e) {
91
- const r = this.#e, a = (await r.selectFrom("sqlite_master").where("name", "=", e).select("sql").$castTo().execute())[0]?.sql?.split(/[\(\),]/)?.find((t) => t.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
92
- return {
93
- name: e,
94
- columns: (await r.selectFrom(c`pragma_table_info(${e})`.as("table_info")).select([
95
- "name",
96
- "type",
97
- "notnull",
98
- "dflt_value"
99
- ]).execute()).map((t) => ({
100
- name: t.name,
101
- dataType: t.type,
102
- isNullable: !t.notnull,
103
- isAutoIncrementing: t.name === a,
104
- hasDefaultValue: t.dflt_value != null
105
- })),
106
- isView: !0
107
- };
108
- }
109
- }, y = class extends n {
110
- getCurrentParameterPlaceholder() {
111
- return "?";
112
- }
113
- getLeftIdentifierWrapper() {
114
- return '"';
115
- }
116
- getRightIdentifierWrapper() {
117
- return '"';
118
- }
119
- getAutoIncrement() {
120
- return "autoincrement";
121
- }
122
- }, d = class {
123
- #e;
124
- constructor(e) {
125
- this.#e = { ...e };
126
- }
127
- createDriver() {
128
- return new u(this.#e);
129
- }
130
- createQueryCompiler() {
131
- return new y();
132
- }
133
- createAdapter() {
134
- return new l();
135
- }
136
- createIntrospector(e) {
137
- return new p(e);
138
- }
139
- };
140
- export {
141
- d as BunSqliteDialect
142
- };
143
- //# sourceMappingURL=bun-sqlite-dialect-z0b9N0QU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bun-sqlite-dialect-z0b9N0QU.js","sources":["../node_modules/better-auth/dist/adapters/kysely-adapter/bun-sqlite-dialect.mjs"],"sourcesContent":["import { CompiledQuery, DEFAULT_MIGRATION_LOCK_TABLE, DEFAULT_MIGRATION_TABLE, DefaultQueryCompiler, sql } from \"kysely\";\n\n//#region src/adapters/kysely-adapter/bun-sqlite-dialect.ts\nvar BunSqliteAdapter = class {\n\tget supportsCreateIfNotExists() {\n\t\treturn true;\n\t}\n\tget supportsTransactionalDdl() {\n\t\treturn false;\n\t}\n\tget supportsReturning() {\n\t\treturn true;\n\t}\n\tasync acquireMigrationLock() {}\n\tasync releaseMigrationLock() {}\n\tget supportsOutput() {\n\t\treturn true;\n\t}\n};\nvar BunSqliteDriver = class {\n\t#config;\n\t#connectionMutex = new ConnectionMutex();\n\t#db;\n\t#connection;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tasync init() {\n\t\tthis.#db = this.#config.database;\n\t\tthis.#connection = new BunSqliteConnection(this.#db);\n\t\tif (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);\n\t}\n\tasync acquireConnection() {\n\t\tawait this.#connectionMutex.lock();\n\t\treturn this.#connection;\n\t}\n\tasync beginTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"begin\"));\n\t}\n\tasync commitTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"commit\"));\n\t}\n\tasync rollbackTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"rollback\"));\n\t}\n\tasync releaseConnection() {\n\t\tthis.#connectionMutex.unlock();\n\t}\n\tasync destroy() {\n\t\tthis.#db?.close();\n\t}\n};\nvar BunSqliteConnection = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\texecuteQuery(compiledQuery) {\n\t\tconst { sql: sql$1, parameters } = compiledQuery;\n\t\tconst stmt = this.#db.prepare(sql$1);\n\t\treturn Promise.resolve({ rows: stmt.all(parameters) });\n\t}\n\tasync *streamQuery() {\n\t\tthrow new Error(\"Streaming query is not supported by SQLite driver.\");\n\t}\n};\nvar ConnectionMutex = class {\n\t#promise;\n\t#resolve;\n\tasync lock() {\n\t\twhile (this.#promise) await this.#promise;\n\t\tthis.#promise = new Promise((resolve) => {\n\t\t\tthis.#resolve = resolve;\n\t\t});\n\t}\n\tunlock() {\n\t\tconst resolve = this.#resolve;\n\t\tthis.#promise = void 0;\n\t\tthis.#resolve = void 0;\n\t\tresolve?.();\n\t}\n};\nvar BunSqliteIntrospector = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\tasync getSchemas() {\n\t\treturn [];\n\t}\n\tasync getTables(options = { withInternalKyselyTables: false }) {\n\t\tlet query = this.#db.selectFrom(\"sqlite_schema\").where(\"type\", \"=\", \"table\").where(\"name\", \"not like\", \"sqlite_%\").select(\"name\").$castTo();\n\t\tif (!options.withInternalKyselyTables) query = query.where(\"name\", \"!=\", DEFAULT_MIGRATION_TABLE).where(\"name\", \"!=\", DEFAULT_MIGRATION_LOCK_TABLE);\n\t\tconst tables = await query.execute();\n\t\treturn Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));\n\t}\n\tasync getMetadata(options) {\n\t\treturn { tables: await this.getTables(options) };\n\t}\n\tasync #getTableMetadata(table) {\n\t\tconst db = this.#db;\n\t\tconst autoIncrementCol = (await db.selectFrom(\"sqlite_master\").where(\"name\", \"=\", table).select(\"sql\").$castTo().execute())[0]?.sql?.split(/[\\(\\),]/)?.find((it) => it.toLowerCase().includes(\"autoincrement\"))?.split(/\\s+/)?.[0]?.replace(/[\"`]/g, \"\");\n\t\treturn {\n\t\t\tname: table,\n\t\t\tcolumns: (await db.selectFrom(sql`pragma_table_info(${table})`.as(\"table_info\")).select([\n\t\t\t\t\"name\",\n\t\t\t\t\"type\",\n\t\t\t\t\"notnull\",\n\t\t\t\t\"dflt_value\"\n\t\t\t]).execute()).map((col) => ({\n\t\t\t\tname: col.name,\n\t\t\t\tdataType: col.type,\n\t\t\t\tisNullable: !col.notnull,\n\t\t\t\tisAutoIncrementing: col.name === autoIncrementCol,\n\t\t\t\thasDefaultValue: col.dflt_value != null\n\t\t\t})),\n\t\t\tisView: true\n\t\t};\n\t}\n};\nvar BunSqliteQueryCompiler = class extends DefaultQueryCompiler {\n\tgetCurrentParameterPlaceholder() {\n\t\treturn \"?\";\n\t}\n\tgetLeftIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetRightIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetAutoIncrement() {\n\t\treturn \"autoincrement\";\n\t}\n};\nvar BunSqliteDialect = class {\n\t#config;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tcreateDriver() {\n\t\treturn new BunSqliteDriver(this.#config);\n\t}\n\tcreateQueryCompiler() {\n\t\treturn new BunSqliteQueryCompiler();\n\t}\n\tcreateAdapter() {\n\t\treturn new BunSqliteAdapter();\n\t}\n\tcreateIntrospector(db) {\n\t\treturn new BunSqliteIntrospector(db);\n\t}\n};\n\n//#endregion\nexport { BunSqliteDialect };\n//# sourceMappingURL=bun-sqlite-dialect.mjs.map"],"names":["BunSqliteAdapter","BunSqliteDriver","#config","#connectionMutex","ConnectionMutex","#db","#connection","config","BunSqliteConnection","connection","CompiledQuery","db","compiledQuery","sql$1","parameters","stmt","#promise","#resolve","resolve","BunSqliteIntrospector","options","query","DEFAULT_MIGRATION_TABLE","DEFAULT_MIGRATION_LOCK_TABLE","tables","name","#getTableMetadata","table","autoIncrementCol","it","sql","col","BunSqliteQueryCompiler","DefaultQueryCompiler","BunSqliteDialect"],"mappings":";AAGA,IAAIA,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EAAsB;AAAA,EAClC;AAAA,EACA,gBAAgB;AACf,WAAO,IAAIhC,EAAgB;AAAA,EAC5B;AAAA,EACA,mBAAmBW,GAAI;AACtB,WAAO,IAAIQ,EAAsBR,CAAE;AAAA,EACpC;AACD;","x_google_ignoreList":[0]}
@@ -1,37 +0,0 @@
1
- import p from "react";
2
- var e = { exports: {} }, t = {};
3
- var a;
4
- function s() {
5
- if (a) return t;
6
- a = 1;
7
- var o = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
- return t.c = function(r) {
9
- return o.H.useMemoCache(r);
10
- }, t;
11
- }
12
- var n = {};
13
- var u;
14
- function m() {
15
- return u || (u = 1, process.env.NODE_ENV !== "production" && (function() {
16
- var o = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
17
- n.c = function(r) {
18
- var i = o.H;
19
- return i === null && console.error(
20
- `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
21
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
22
- 2. You might be breaking the Rules of Hooks
23
- 3. You might have more than one copy of React in the same app
24
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
25
- ), i.useMemoCache(r);
26
- };
27
- })()), n;
28
- }
29
- var c;
30
- function l() {
31
- return c || (c = 1, process.env.NODE_ENV === "production" ? e.exports = s() : e.exports = m()), e.exports;
32
- }
33
- var _ = l();
34
- export {
35
- _ as c
36
- };
37
- //# sourceMappingURL=compiler-runtime-BNHg76kC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compiler-runtime-BNHg76kC.js","sources":["../node_modules/react/cjs/react-compiler-runtime.production.js","../node_modules/react/cjs/react-compiler-runtime.development.js","../node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"names":["ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1"],"mappings":";;;;;;AAWA,MAAIA,IACFC,EAAiB;AACnB,SAAAC,EAAA,IAAY,SAAUC,GAAM;AAC1B,WAAOH,EAAqB,EAAE,aAAaG,CAAI;AAAA,EACjD;;;;;sBCJiB,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,QAAIH,IACFC,EAAiB;AACnB,IAAAG,EAAA,IAAY,SAAUD,GAAM;AAC1B,UAAIE,IAAaL,EAAqB;AACtC,aAASK,MAAT,QACE,QAAQ;AAAA,QACN;AAAA;AAAA;AAAA;AAAA;AAAA,SAEGA,EAAW,aAAaF,CAAI;AAAA,IACzC;AAAA,EACA,GAAG;;;;sBCdC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBL,EAAA,IAEjBK,EAAA,UAAiBC,EAAA;;;","x_google_ignoreList":[0,1,2]}
@@ -1,268 +0,0 @@
1
- const u = "0123456789abcdef";
2
- class o {
3
- /** @param bytes - The 16-byte byte array representation. */
4
- constructor(e) {
5
- this.bytes = e;
6
- }
7
- /**
8
- * Creates an object from the internal representation, a 16-byte byte array
9
- * containing the binary UUID representation in the big-endian byte order.
10
- *
11
- * This method does NOT shallow-copy the argument, and thus the created object
12
- * holds the reference to the underlying buffer.
13
- *
14
- * @throws TypeError if the length of the argument is not 16.
15
- */
16
- static ofInner(e) {
17
- if (e.length !== 16)
18
- throw new TypeError("not 128-bit length");
19
- return new o(e);
20
- }
21
- /**
22
- * Builds a byte array from UUIDv7 field values.
23
- *
24
- * @param unixTsMs - A 48-bit `unix_ts_ms` field value.
25
- * @param randA - A 12-bit `rand_a` field value.
26
- * @param randBHi - The higher 30 bits of 62-bit `rand_b` field value.
27
- * @param randBLo - The lower 32 bits of 62-bit `rand_b` field value.
28
- * @throws RangeError if any field value is out of the specified range.
29
- */
30
- static fromFieldsV7(e, t, n, i) {
31
- if (!Number.isInteger(e) || !Number.isInteger(t) || !Number.isInteger(n) || !Number.isInteger(i) || e < 0 || t < 0 || n < 0 || i < 0 || e > 281474976710655 || t > 4095 || n > 1073741823 || i > 4294967295)
32
- throw new RangeError("invalid field value");
33
- const r = new Uint8Array(16);
34
- return r[0] = e / 2 ** 40, r[1] = e / 2 ** 32, r[2] = e / 2 ** 24, r[3] = e / 2 ** 16, r[4] = e / 2 ** 8, r[5] = e, r[6] = 112 | t >>> 8, r[7] = t, r[8] = 128 | n >>> 24, r[9] = n >>> 16, r[10] = n >>> 8, r[11] = n, r[12] = i >>> 24, r[13] = i >>> 16, r[14] = i >>> 8, r[15] = i, new o(r);
35
- }
36
- /**
37
- * Builds a byte array from a string representation.
38
- *
39
- * This method accepts the following formats:
40
- *
41
- * - 32-digit hexadecimal format without hyphens: `0189dcd553117d408db09496a2eef37b`
42
- * - 8-4-4-4-12 hyphenated format: `0189dcd5-5311-7d40-8db0-9496a2eef37b`
43
- * - Hyphenated format with surrounding braces: `{0189dcd5-5311-7d40-8db0-9496a2eef37b}`
44
- * - RFC 9562 URN format: `urn:uuid:0189dcd5-5311-7d40-8db0-9496a2eef37b`
45
- *
46
- * Leading and trailing whitespaces represents an error.
47
- *
48
- * @throws SyntaxError if the argument could not parse as a valid UUID string.
49
- */
50
- static parse(e) {
51
- var t, n, i, r;
52
- let a;
53
- switch (e.length) {
54
- case 32:
55
- a = (t = /^[0-9a-f]{32}$/i.exec(e)) === null || t === void 0 ? void 0 : t[0];
56
- break;
57
- case 36:
58
- a = (n = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(e)) === null || n === void 0 ? void 0 : n.slice(1, 6).join("");
59
- break;
60
- case 38:
61
- a = (i = /^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(e)) === null || i === void 0 ? void 0 : i.slice(1, 6).join("");
62
- break;
63
- case 45:
64
- a = (r = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(e)) === null || r === void 0 ? void 0 : r.slice(1, 6).join("");
65
- break;
66
- }
67
- if (a) {
68
- const f = new Uint8Array(16);
69
- for (let s = 0; s < 16; s += 4) {
70
- const h = parseInt(a.substring(2 * s, 2 * s + 8), 16);
71
- f[s + 0] = h >>> 24, f[s + 1] = h >>> 16, f[s + 2] = h >>> 8, f[s + 3] = h;
72
- }
73
- return new o(f);
74
- } else
75
- throw new SyntaxError("could not parse UUID string");
76
- }
77
- /**
78
- * @returns The 8-4-4-4-12 canonical hexadecimal string representation
79
- * (`0189dcd5-5311-7d40-8db0-9496a2eef37b`).
80
- */
81
- toString() {
82
- let e = "";
83
- for (let t = 0; t < this.bytes.length; t++)
84
- e += u.charAt(this.bytes[t] >>> 4), e += u.charAt(this.bytes[t] & 15), (t === 3 || t === 5 || t === 7 || t === 9) && (e += "-");
85
- return e;
86
- }
87
- /**
88
- * @returns The 32-digit hexadecimal representation without hyphens
89
- * (`0189dcd553117d408db09496a2eef37b`).
90
- */
91
- toHex() {
92
- let e = "";
93
- for (let t = 0; t < this.bytes.length; t++)
94
- e += u.charAt(this.bytes[t] >>> 4), e += u.charAt(this.bytes[t] & 15);
95
- return e;
96
- }
97
- /** @returns The 8-4-4-4-12 canonical hexadecimal string representation. */
98
- toJSON() {
99
- return this.toString();
100
- }
101
- /**
102
- * Reports the variant field value of the UUID or, if appropriate, "NIL" or
103
- * "MAX".
104
- *
105
- * For convenience, this method reports "NIL" or "MAX" if `this` represents
106
- * the Nil or Max UUID, although the Nil and Max UUIDs are technically
107
- * subsumed under the variants `0b0` and `0b111`, respectively.
108
- */
109
- getVariant() {
110
- const e = this.bytes[8] >>> 4;
111
- if (e < 0)
112
- throw new Error("unreachable");
113
- if (e <= 7)
114
- return this.bytes.every((t) => t === 0) ? "NIL" : "VAR_0";
115
- if (e <= 11)
116
- return "VAR_10";
117
- if (e <= 13)
118
- return "VAR_110";
119
- if (e <= 15)
120
- return this.bytes.every((t) => t === 255) ? "MAX" : "VAR_RESERVED";
121
- throw new Error("unreachable");
122
- }
123
- /**
124
- * Returns the version field value of the UUID or `undefined` if the UUID does
125
- * not have the variant field value of `0b10`.
126
- */
127
- getVersion() {
128
- return this.getVariant() === "VAR_10" ? this.bytes[6] >>> 4 : void 0;
129
- }
130
- /** Creates an object from `this`. */
131
- clone() {
132
- return new o(this.bytes.slice(0));
133
- }
134
- /** Returns true if `this` is equivalent to `other`. */
135
- equals(e) {
136
- return this.compareTo(e) === 0;
137
- }
138
- /**
139
- * Returns a negative integer, zero, or positive integer if `this` is less
140
- * than, equal to, or greater than `other`, respectively.
141
- */
142
- compareTo(e) {
143
- for (let t = 0; t < 16; t++) {
144
- const n = this.bytes[t] - e.bytes[t];
145
- if (n !== 0)
146
- return Math.sign(n);
147
- }
148
- return 0;
149
- }
150
- }
151
- class b {
152
- /**
153
- * Creates a generator object with the default random number generator, or
154
- * with the specified one if passed as an argument. The specified random
155
- * number generator should be cryptographically strong and securely seeded.
156
- */
157
- constructor(e) {
158
- this.timestamp_biased = 0, this.counter = 0, this.random = e ?? g();
159
- }
160
- /**
161
- * Generates a new UUIDv7 object from the current timestamp, or resets the
162
- * generator upon significant timestamp rollback.
163
- *
164
- * This method returns a monotonically increasing UUID by reusing the previous
165
- * timestamp even if the up-to-date timestamp is smaller than the immediately
166
- * preceding UUID's. However, when such a clock rollback is considered
167
- * significant (i.e., by more than ten seconds), this method resets the
168
- * generator and returns a new UUID based on the given timestamp, breaking the
169
- * increasing order of UUIDs.
170
- *
171
- * See {@link generateOrAbort} for the other mode of generation and
172
- * {@link generateOrResetCore} for the low-level primitive.
173
- */
174
- generate() {
175
- return this.generateOrResetCore(Date.now(), 1e4);
176
- }
177
- /**
178
- * Generates a new UUIDv7 object from the current timestamp, or returns
179
- * `undefined` upon significant timestamp rollback.
180
- *
181
- * This method returns a monotonically increasing UUID by reusing the previous
182
- * timestamp even if the up-to-date timestamp is smaller than the immediately
183
- * preceding UUID's. However, when such a clock rollback is considered
184
- * significant (i.e., by more than ten seconds), this method aborts and
185
- * returns `undefined` immediately.
186
- *
187
- * See {@link generate} for the other mode of generation and
188
- * {@link generateOrAbortCore} for the low-level primitive.
189
- */
190
- generateOrAbort() {
191
- return this.generateOrAbortCore(Date.now(), 1e4);
192
- }
193
- /**
194
- * Generates a new UUIDv7 object from the `unixTsMs` passed, or resets the
195
- * generator upon significant timestamp rollback.
196
- *
197
- * This method is equivalent to {@link generate} except that it takes a custom
198
- * timestamp and clock rollback allowance.
199
- *
200
- * @param rollbackAllowance - The amount of `unixTsMs` rollback that is
201
- * considered significant. A suggested value is `10_000` (milliseconds).
202
- * @throws RangeError if `unixTsMs` is not a 48-bit unsigned integer.
203
- */
204
- generateOrResetCore(e, t) {
205
- let n = this.generateOrAbortCore(e, t);
206
- return n === void 0 && (this.timestamp_biased = 0, n = this.generateOrAbortCore(e, t)), n;
207
- }
208
- /**
209
- * Generates a new UUIDv7 object from the `unixTsMs` passed, or returns
210
- * `undefined` upon significant timestamp rollback.
211
- *
212
- * This method is equivalent to {@link generateOrAbort} except that it takes a
213
- * custom timestamp and clock rollback allowance.
214
- *
215
- * @param rollbackAllowance - The amount of `unixTsMs` rollback that is
216
- * considered significant. A suggested value is `10_000` (milliseconds).
217
- * @throws RangeError if `unixTsMs` is not a 48-bit unsigned integer.
218
- */
219
- generateOrAbortCore(e, t) {
220
- if (!Number.isInteger(e) || e < 0 || e > 281474976710655)
221
- throw new RangeError("`unixTsMs` must be a 48-bit unsigned integer");
222
- if (t < 0 || t > 281474976710655)
223
- throw new RangeError("`rollbackAllowance` out of reasonable range");
224
- if (e++, e > this.timestamp_biased)
225
- this.timestamp_biased = e, this.resetCounter();
226
- else if (e + t >= this.timestamp_biased)
227
- this.counter++, this.counter > 4398046511103 && (this.timestamp_biased++, this.resetCounter());
228
- else
229
- return;
230
- return o.fromFieldsV7(this.timestamp_biased - 1, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());
231
- }
232
- /** Initializes the counter at a 42-bit random integer. */
233
- resetCounter() {
234
- this.counter = this.random.nextUint32() * 1024 + (this.random.nextUint32() & 1023);
235
- }
236
- /**
237
- * Generates a new UUIDv4 object utilizing the random number generator inside.
238
- *
239
- * @internal
240
- */
241
- generateV4() {
242
- const e = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);
243
- return e[6] = 64 | e[6] >>> 4, e[8] = 128 | e[8] >>> 2, o.ofInner(e);
244
- }
245
- }
246
- const g = () => {
247
- if (typeof crypto < "u" && typeof crypto.getRandomValues < "u")
248
- return new d();
249
- if (typeof UUIDV7_DENY_WEAK_RNG < "u" && UUIDV7_DENY_WEAK_RNG)
250
- throw new Error("no cryptographically strong RNG available");
251
- return {
252
- nextUint32: () => Math.trunc(Math.random() * 65536) * 65536 + Math.trunc(Math.random() * 65536)
253
- };
254
- };
255
- class d {
256
- constructor() {
257
- this.buffer = new Uint32Array(8), this.cursor = 65535;
258
- }
259
- nextUint32() {
260
- return this.cursor >= this.buffer.length && (crypto.getRandomValues(this.buffer), this.cursor = 0), this.buffer[this.cursor++];
261
- }
262
- }
263
- let c;
264
- const y = () => m().toString(), m = () => (c || (c = new b())).generate();
265
- export {
266
- y as u
267
- };
268
- //# sourceMappingURL=index-Biz5inV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Biz5inV2.js","sources":["../node_modules/uuidv7/dist/index.js"],"sourcesContent":["/**\n * uuidv7: A JavaScript implementation of UUID version 7\n *\n * Copyright 2021-2025 LiosK\n *\n * @license Apache-2.0\n * @packageDocumentation\n */\nconst DIGITS = \"0123456789abcdef\";\n/** Represents a UUID as a 16-byte byte array. */\nexport class UUID {\n /** @param bytes - The 16-byte byte array representation. */\n constructor(bytes) {\n this.bytes = bytes;\n }\n /**\n * Creates an object from the internal representation, a 16-byte byte array\n * containing the binary UUID representation in the big-endian byte order.\n *\n * This method does NOT shallow-copy the argument, and thus the created object\n * holds the reference to the underlying buffer.\n *\n * @throws TypeError if the length of the argument is not 16.\n */\n static ofInner(bytes) {\n if (bytes.length !== 16) {\n throw new TypeError(\"not 128-bit length\");\n }\n else {\n return new UUID(bytes);\n }\n }\n /**\n * Builds a byte array from UUIDv7 field values.\n *\n * @param unixTsMs - A 48-bit `unix_ts_ms` field value.\n * @param randA - A 12-bit `rand_a` field value.\n * @param randBHi - The higher 30 bits of 62-bit `rand_b` field value.\n * @param randBLo - The lower 32 bits of 62-bit `rand_b` field value.\n * @throws RangeError if any field value is out of the specified range.\n */\n static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {\n if (!Number.isInteger(unixTsMs) ||\n !Number.isInteger(randA) ||\n !Number.isInteger(randBHi) ||\n !Number.isInteger(randBLo) ||\n unixTsMs < 0 ||\n randA < 0 ||\n randBHi < 0 ||\n randBLo < 0 ||\n unixTsMs > 281474976710655 ||\n randA > 0xfff ||\n randBHi > 1073741823 ||\n randBLo > 4294967295) {\n throw new RangeError(\"invalid field value\");\n }\n const bytes = new Uint8Array(16);\n bytes[0] = unixTsMs / 2 ** 40;\n bytes[1] = unixTsMs / 2 ** 32;\n bytes[2] = unixTsMs / 2 ** 24;\n bytes[3] = unixTsMs / 2 ** 16;\n bytes[4] = unixTsMs / 2 ** 8;\n bytes[5] = unixTsMs;\n bytes[6] = 0x70 | (randA >>> 8);\n bytes[7] = randA;\n bytes[8] = 0x80 | (randBHi >>> 24);\n bytes[9] = randBHi >>> 16;\n bytes[10] = randBHi >>> 8;\n bytes[11] = randBHi;\n bytes[12] = randBLo >>> 24;\n bytes[13] = randBLo >>> 16;\n bytes[14] = randBLo >>> 8;\n bytes[15] = randBLo;\n return new UUID(bytes);\n }\n /**\n * Builds a byte array from a string representation.\n *\n * This method accepts the following formats:\n *\n * - 32-digit hexadecimal format without hyphens: `0189dcd553117d408db09496a2eef37b`\n * - 8-4-4-4-12 hyphenated format: `0189dcd5-5311-7d40-8db0-9496a2eef37b`\n * - Hyphenated format with surrounding braces: `{0189dcd5-5311-7d40-8db0-9496a2eef37b}`\n * - RFC 9562 URN format: `urn:uuid:0189dcd5-5311-7d40-8db0-9496a2eef37b`\n *\n * Leading and trailing whitespaces represents an error.\n *\n * @throws SyntaxError if the argument could not parse as a valid UUID string.\n */\n static parse(uuid) {\n var _a, _b, _c, _d;\n let hex = undefined;\n switch (uuid.length) {\n case 32:\n hex = (_a = /^[0-9a-f]{32}$/i.exec(uuid)) === null || _a === void 0 ? void 0 : _a[0];\n break;\n case 36:\n hex =\n (_b = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _b === void 0 ? void 0 : _b.slice(1, 6).join(\"\");\n break;\n case 38:\n hex =\n (_c = /^\\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\\}$/i\n .exec(uuid)) === null || _c === void 0 ? void 0 : _c.slice(1, 6).join(\"\");\n break;\n case 45:\n hex =\n (_d = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _d === void 0 ? void 0 : _d.slice(1, 6).join(\"\");\n break;\n default:\n break;\n }\n if (hex) {\n const inner = new Uint8Array(16);\n for (let i = 0; i < 16; i += 4) {\n const n = parseInt(hex.substring(2 * i, 2 * i + 8), 16);\n inner[i + 0] = n >>> 24;\n inner[i + 1] = n >>> 16;\n inner[i + 2] = n >>> 8;\n inner[i + 3] = n;\n }\n return new UUID(inner);\n }\n else {\n throw new SyntaxError(\"could not parse UUID string\");\n }\n }\n /**\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (`0189dcd5-5311-7d40-8db0-9496a2eef37b`).\n */\n toString() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n if (i === 3 || i === 5 || i === 7 || i === 9) {\n text += \"-\";\n }\n }\n return text;\n }\n /**\n * @returns The 32-digit hexadecimal representation without hyphens\n * (`0189dcd553117d408db09496a2eef37b`).\n */\n toHex() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n }\n return text;\n }\n /** @returns The 8-4-4-4-12 canonical hexadecimal string representation. */\n toJSON() {\n return this.toString();\n }\n /**\n * Reports the variant field value of the UUID or, if appropriate, \"NIL\" or\n * \"MAX\".\n *\n * For convenience, this method reports \"NIL\" or \"MAX\" if `this` represents\n * the Nil or Max UUID, although the Nil and Max UUIDs are technically\n * subsumed under the variants `0b0` and `0b111`, respectively.\n */\n getVariant() {\n const n = this.bytes[8] >>> 4;\n if (n < 0) {\n throw new Error(\"unreachable\");\n }\n else if (n <= 0b0111) {\n return this.bytes.every((e) => e === 0) ? \"NIL\" : \"VAR_0\";\n }\n else if (n <= 0b1011) {\n return \"VAR_10\";\n }\n else if (n <= 0b1101) {\n return \"VAR_110\";\n }\n else if (n <= 0b1111) {\n return this.bytes.every((e) => e === 0xff) ? \"MAX\" : \"VAR_RESERVED\";\n }\n else {\n throw new Error(\"unreachable\");\n }\n }\n /**\n * Returns the version field value of the UUID or `undefined` if the UUID does\n * not have the variant field value of `0b10`.\n */\n getVersion() {\n return this.getVariant() === \"VAR_10\" ? this.bytes[6] >>> 4 : undefined;\n }\n /** Creates an object from `this`. */\n clone() {\n return new UUID(this.bytes.slice(0));\n }\n /** Returns true if `this` is equivalent to `other`. */\n equals(other) {\n return this.compareTo(other) === 0;\n }\n /**\n * Returns a negative integer, zero, or positive integer if `this` is less\n * than, equal to, or greater than `other`, respectively.\n */\n compareTo(other) {\n for (let i = 0; i < 16; i++) {\n const diff = this.bytes[i] - other.bytes[i];\n if (diff !== 0) {\n return Math.sign(diff);\n }\n }\n return 0;\n }\n}\n/**\n * Encapsulates the monotonic counter state.\n *\n * This class provides APIs to utilize a separate counter state from that of the\n * global generator used by {@link uuidv7} and {@link uuidv7obj}. In addition to\n * the default {@link generate} method, this class has {@link generateOrAbort}\n * that is useful to absolutely guarantee the monotonically increasing order of\n * generated UUIDs. See their respective documentation for details.\n */\nexport class V7Generator {\n /**\n * Creates a generator object with the default random number generator, or\n * with the specified one if passed as an argument. The specified random\n * number generator should be cryptographically strong and securely seeded.\n */\n constructor(randomNumberGenerator) {\n /**\n * Biased by one to distinguish zero (uninitialized) and zero (UNIX epoch).\n */\n this.timestamp_biased = 0;\n this.counter = 0;\n this.random = randomNumberGenerator !== null && randomNumberGenerator !== void 0 ? randomNumberGenerator : getDefaultRandom();\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method resets the\n * generator and returns a new UUID based on the given timestamp, breaking the\n * increasing order of UUIDs.\n *\n * See {@link generateOrAbort} for the other mode of generation and\n * {@link generateOrResetCore} for the low-level primitive.\n */\n generate() {\n return this.generateOrResetCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method aborts and\n * returns `undefined` immediately.\n *\n * See {@link generate} for the other mode of generation and\n * {@link generateOrAbortCore} for the low-level primitive.\n */\n generateOrAbort() {\n return this.generateOrAbortCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generate} except that it takes a custom\n * timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit unsigned integer.\n */\n generateOrResetCore(unixTsMs, rollbackAllowance) {\n let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n if (value === undefined) {\n // reset state and resume\n this.timestamp_biased = 0;\n value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n }\n return value;\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generateOrAbort} except that it takes a\n * custom timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit unsigned integer.\n */\n generateOrAbortCore(unixTsMs, rollbackAllowance) {\n const MAX_COUNTER = 4398046511103;\n if (!Number.isInteger(unixTsMs) ||\n unixTsMs < 0 ||\n unixTsMs > 281474976710655) {\n throw new RangeError(\"`unixTsMs` must be a 48-bit unsigned integer\");\n }\n else if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) {\n throw new RangeError(\"`rollbackAllowance` out of reasonable range\");\n }\n unixTsMs++;\n if (unixTsMs > this.timestamp_biased) {\n this.timestamp_biased = unixTsMs;\n this.resetCounter();\n }\n else if (unixTsMs + rollbackAllowance >= this.timestamp_biased) {\n // go on with previous timestamp if new one is not much smaller\n this.counter++;\n if (this.counter > MAX_COUNTER) {\n // increment timestamp at counter overflow\n this.timestamp_biased++;\n this.resetCounter();\n }\n }\n else {\n // abort if clock went backwards to unbearable extent\n return undefined;\n }\n return UUID.fromFieldsV7(this.timestamp_biased - 1, Math.trunc(this.counter / 2 ** 30), this.counter & (2 ** 30 - 1), this.random.nextUint32());\n }\n /** Initializes the counter at a 42-bit random integer. */\n resetCounter() {\n this.counter =\n this.random.nextUint32() * 0x400 + (this.random.nextUint32() & 0x3ff);\n }\n /**\n * Generates a new UUIDv4 object utilizing the random number generator inside.\n *\n * @internal\n */\n generateV4() {\n const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);\n bytes[6] = 0x40 | (bytes[6] >>> 4);\n bytes[8] = 0x80 | (bytes[8] >>> 2);\n return UUID.ofInner(bytes);\n }\n}\n/** Returns the default random number generator available in the environment. */\nconst getDefaultRandom = () => {\n // detect Web Crypto API\n if (typeof crypto !== \"undefined\" &&\n typeof crypto.getRandomValues !== \"undefined\") {\n return new BufferedCryptoRandom();\n }\n else {\n // fall back on Math.random() unless the flag is set to true\n if (typeof UUIDV7_DENY_WEAK_RNG !== \"undefined\" && UUIDV7_DENY_WEAK_RNG) {\n throw new Error(\"no cryptographically strong RNG available\");\n }\n return {\n nextUint32: () => Math.trunc(Math.random() * 65536) * 65536 +\n Math.trunc(Math.random() * 65536),\n };\n }\n};\n/**\n * Wraps `crypto.getRandomValues()` to enable buffering; this uses a small\n * buffer by default to avoid both unbearable throughput decline in some\n * environments and the waste of time and space for unused values.\n */\nclass BufferedCryptoRandom {\n constructor() {\n this.buffer = new Uint32Array(8);\n this.cursor = 0xffff;\n }\n nextUint32() {\n if (this.cursor >= this.buffer.length) {\n crypto.getRandomValues(this.buffer);\n this.cursor = 0;\n }\n return this.buffer[this.cursor++];\n }\n}\nlet defaultGenerator;\n/**\n * Generates a UUIDv7 string.\n *\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\").\n */\nexport const uuidv7 = () => uuidv7obj().toString();\n/** Generates a UUIDv7 object. */\nexport const uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();\n/**\n * Generates a UUIDv4 string.\n *\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\").\n */\nexport const uuidv4 = () => uuidv4obj().toString();\n/** Generates a UUIDv4 object. */\nexport const uuidv4obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generateV4();\n"],"names":["DIGITS","UUID","bytes","unixTsMs","randA","randBHi","randBLo","uuid","_a","_b","_c","_d","hex","inner","i","n","text","e","other","diff","V7Generator","randomNumberGenerator","getDefaultRandom","rollbackAllowance","value","BufferedCrypto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