tempest.games 0.2.73 → 0.2.75
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.
- package/CHANGELOG.md +15 -0
- package/app/assets/index-II0hvKAD.js +66 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +233 -857
- package/bin/backend.worker.game.bun.js +14 -638
- package/bin/backend.worker.tribunal.bun.js +364 -973
- package/bin/frontend.bun.js +229 -853
- package/bin/setup-db.bun.js +178 -178
- package/package.json +15 -15
- package/app/assets/index-BQfBw87O.js +0 -66
package/bin/backend.bun.js
CHANGED
|
@@ -48457,9 +48457,6 @@ var UList = class UList2 extends Set {
|
|
|
48457
48457
|
};
|
|
48458
48458
|
|
|
48459
48459
|
// ../../packages/atom.io/dist/internal/index.js
|
|
48460
|
-
function arbitrary(random = Math.random) {
|
|
48461
|
-
return random().toString(36).slice(2);
|
|
48462
|
-
}
|
|
48463
48460
|
function newest(scion) {
|
|
48464
48461
|
while (scion.child !== null)
|
|
48465
48462
|
scion = scion.child;
|
|
@@ -49051,426 +49048,12 @@ var Junction = class Junction2 {
|
|
|
49051
49048
|
function isReservedIntrospectionKey(value) {
|
|
49052
49049
|
return value.startsWith(`\uD83D\uDD0D `);
|
|
49053
49050
|
}
|
|
49054
|
-
var abortTransaction = (target) => {
|
|
49055
|
-
target.logger.info(`\uD83E\uDE82`, `transaction`, target.transactionMeta.update.token.key, `Aborting transaction`);
|
|
49056
|
-
target.parent.child = null;
|
|
49057
|
-
};
|
|
49058
|
-
function actUponStore(store, token, id) {
|
|
49059
|
-
return (...parameters) => {
|
|
49060
|
-
return withdraw(store, token).run(parameters, id);
|
|
49061
|
-
};
|
|
49062
|
-
}
|
|
49063
|
-
function ingestAtomUpdateEvent(store, event, applying) {
|
|
49064
|
-
const { token, update: { newValue, oldValue } } = event;
|
|
49065
|
-
setIntoStore(store, token, applying === `newValue` ? newValue : oldValue);
|
|
49066
|
-
}
|
|
49067
|
-
function getTrace(error) {
|
|
49068
|
-
const { stack } = error;
|
|
49069
|
-
if (stack)
|
|
49070
|
-
return `
|
|
49071
|
-
` + stack.split(`
|
|
49072
|
-
`)?.slice(1)?.join(`
|
|
49073
|
-
`);
|
|
49074
|
-
return ``;
|
|
49075
|
-
}
|
|
49076
|
-
function allocateIntoStore(store, provenance, key, dependsOn = `any`) {
|
|
49077
|
-
const origin = provenance;
|
|
49078
|
-
const stringKey = stringifyJson(key);
|
|
49079
|
-
const invalidKeys = [];
|
|
49080
|
-
const target = newest(store);
|
|
49081
|
-
if (Array.isArray(origin))
|
|
49082
|
-
for (const formerClaim of origin) {
|
|
49083
|
-
const claimString = stringifyJson(formerClaim);
|
|
49084
|
-
if (target.molecules.get(claimString))
|
|
49085
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
49086
|
-
else
|
|
49087
|
-
invalidKeys.push(claimString);
|
|
49088
|
-
}
|
|
49089
|
-
else {
|
|
49090
|
-
const claimString = stringifyJson(origin);
|
|
49091
|
-
if (target.molecules.get(claimString))
|
|
49092
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
49093
|
-
else
|
|
49094
|
-
invalidKeys.push(claimString);
|
|
49095
|
-
}
|
|
49096
|
-
const subject = new Subject;
|
|
49097
|
-
if (invalidKeys.length === 0)
|
|
49098
|
-
target.molecules.set(stringKey, {
|
|
49099
|
-
key,
|
|
49100
|
-
stringKey,
|
|
49101
|
-
dependsOn,
|
|
49102
|
-
subject
|
|
49103
|
-
});
|
|
49104
|
-
const creationEvent = {
|
|
49105
|
-
type: `molecule_creation`,
|
|
49106
|
-
key,
|
|
49107
|
-
provenance: origin,
|
|
49108
|
-
timestamp: Date.now()
|
|
49109
|
-
};
|
|
49110
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
49111
|
-
target.transactionMeta.update.subEvents.push(creationEvent);
|
|
49112
|
-
else
|
|
49113
|
-
target.on.moleculeCreation.next(creationEvent);
|
|
49114
|
-
for (const claim of invalidKeys) {
|
|
49115
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === claim);
|
|
49116
|
-
store.logger.error(`\u274C`, `key`, key, `allocation failed:`, `Could not allocate to ${claim} in store "${store.config.name}".`, disposal ? `
|
|
49117
|
-
${claim} was most recently disposed
|
|
49118
|
-
${disposal.trace}` : `No previous disposal trace for ${claim} was found.`);
|
|
49119
|
-
}
|
|
49120
|
-
return key;
|
|
49121
|
-
}
|
|
49122
|
-
function deallocateFromStore(target, claim) {
|
|
49123
|
-
const stringKey = stringifyJson(claim);
|
|
49124
|
-
const molecule = target.molecules.get(stringKey);
|
|
49125
|
-
if (!molecule) {
|
|
49126
|
-
const disposal = target.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
49127
|
-
target.logger.error(`\u274C`, `key`, claim, `deallocation failed:`, `Could not find allocation for ${stringKey} in store "${target.config.name}".`, disposal ? `
|
|
49128
|
-
This state was most recently deallocated
|
|
49129
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
49130
|
-
return;
|
|
49131
|
-
}
|
|
49132
|
-
molecule.subject.next();
|
|
49133
|
-
const joinKeys = target.keyRefsInJoins.getRelatedKeys(stringKey);
|
|
49134
|
-
if (joinKeys)
|
|
49135
|
-
for (const joinKey of joinKeys) {
|
|
49136
|
-
const join$1 = target.joins.get(joinKey);
|
|
49137
|
-
if (join$1)
|
|
49138
|
-
join$1.relations.delete(claim);
|
|
49139
|
-
}
|
|
49140
|
-
else {
|
|
49141
|
-
const compound = decomposeCompound(claim);
|
|
49142
|
-
if (compound) {
|
|
49143
|
-
const [, a2, b2] = compound;
|
|
49144
|
-
const joinKey = target.keyRefsInJoins.getRelatedKey(simpleCompound(a2, b2));
|
|
49145
|
-
if (joinKey) {
|
|
49146
|
-
const join$1 = target.joins.get(joinKey);
|
|
49147
|
-
if (join$1)
|
|
49148
|
-
join$1.relations.delete(a2, b2);
|
|
49149
|
-
}
|
|
49150
|
-
}
|
|
49151
|
-
}
|
|
49152
|
-
target.keyRefsInJoins.delete(stringKey);
|
|
49153
|
-
const provenance = [];
|
|
49154
|
-
const values = [];
|
|
49155
|
-
const relatedMolecules = target.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: stringKey });
|
|
49156
|
-
if (relatedMolecules)
|
|
49157
|
-
for (const [relatedStringKey, { source }] of relatedMolecules)
|
|
49158
|
-
if (source === stringKey)
|
|
49159
|
-
deallocateFromStore(target, parseJson(relatedStringKey));
|
|
49160
|
-
else
|
|
49161
|
-
provenance.push(source);
|
|
49162
|
-
const familyKeys = target.moleculeData.getRelatedKeys(molecule.stringKey);
|
|
49163
|
-
if (familyKeys)
|
|
49164
|
-
for (const familyKey of familyKeys) {
|
|
49165
|
-
const family = target.families.get(familyKey);
|
|
49166
|
-
const value = getFromStore(target, family, claim);
|
|
49167
|
-
values.push([family.key, value]);
|
|
49168
|
-
disposeFromStore(target, family, claim);
|
|
49169
|
-
}
|
|
49170
|
-
const disposalEvent = {
|
|
49171
|
-
type: `molecule_disposal`,
|
|
49172
|
-
key: molecule.key,
|
|
49173
|
-
values,
|
|
49174
|
-
provenance,
|
|
49175
|
-
timestamp: Date.now()
|
|
49176
|
-
};
|
|
49177
|
-
target.molecules.delete(stringKey);
|
|
49178
|
-
const isTransaction = isChildStore(target) && target.transactionMeta.phase === `building`;
|
|
49179
|
-
if (isTransaction)
|
|
49180
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
49181
|
-
target.moleculeGraph.delete(molecule.stringKey);
|
|
49182
|
-
target.keyRefsInJoins.delete(molecule.stringKey);
|
|
49183
|
-
target.moleculeData.delete(molecule.stringKey);
|
|
49184
|
-
if (!isTransaction)
|
|
49185
|
-
target.on.moleculeDisposal.next(disposalEvent);
|
|
49186
|
-
target.molecules.delete(molecule.stringKey);
|
|
49187
|
-
const trace = getTrace(/* @__PURE__ */ new Error);
|
|
49188
|
-
target.disposalTraces.add({
|
|
49189
|
-
key: stringKey,
|
|
49190
|
-
trace
|
|
49191
|
-
});
|
|
49192
|
-
}
|
|
49193
|
-
function claimWithinStore(store, newProvenance, claim, exclusive) {
|
|
49194
|
-
const stringKey = stringifyJson(claim);
|
|
49195
|
-
const target = newest(store);
|
|
49196
|
-
const molecule = target.molecules.get(stringKey);
|
|
49197
|
-
if (!molecule) {
|
|
49198
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
49199
|
-
store.logger.error(`\u274C`, `key`, stringKey, `claim failed:`, `Could not allocate to ${stringKey} in store "${store.config.name}".`, disposal ? `
|
|
49200
|
-
${stringKey} was most recently disposed
|
|
49201
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
49202
|
-
return claim;
|
|
49203
|
-
}
|
|
49204
|
-
const newProvenanceKey = stringifyJson(newProvenance);
|
|
49205
|
-
const newProvenanceMolecule = target.molecules.get(newProvenanceKey);
|
|
49206
|
-
if (!newProvenanceMolecule) {
|
|
49207
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === newProvenanceKey);
|
|
49208
|
-
store.logger.error(`\u274C`, `key`, claim, `claim failed:`, `Could not allocate to ${newProvenanceKey} in store "${store.config.name}".`, disposal ? `
|
|
49209
|
-
${newProvenanceKey} was most recently disposed
|
|
49210
|
-
${disposal.trace}` : `No previous disposal trace for ${newProvenanceKey} was found.`);
|
|
49211
|
-
return claim;
|
|
49212
|
-
}
|
|
49213
|
-
const priorProvenance = store.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: molecule.stringKey }).filter(([, { source }]) => source !== stringKey).map(([key]) => parseJson(key));
|
|
49214
|
-
if (exclusive)
|
|
49215
|
-
target.moleculeGraph.delete(stringKey);
|
|
49216
|
-
target.moleculeGraph.set({
|
|
49217
|
-
upstreamMoleculeKey: newProvenanceMolecule.stringKey,
|
|
49218
|
-
downstreamMoleculeKey: molecule.stringKey
|
|
49219
|
-
}, { source: newProvenanceMolecule.stringKey });
|
|
49220
|
-
const transferEvent = {
|
|
49221
|
-
type: `molecule_transfer`,
|
|
49222
|
-
key: molecule.key,
|
|
49223
|
-
exclusive: Boolean(exclusive),
|
|
49224
|
-
from: priorProvenance,
|
|
49225
|
-
to: [newProvenanceMolecule.key],
|
|
49226
|
-
timestamp: Date.now()
|
|
49227
|
-
};
|
|
49228
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
49229
|
-
target.transactionMeta.update.subEvents.push(transferEvent);
|
|
49230
|
-
return claim;
|
|
49231
|
-
}
|
|
49232
|
-
function ingestCreationEvent(store, event, applying) {
|
|
49233
|
-
switch (applying) {
|
|
49234
|
-
case `newValue`:
|
|
49235
|
-
createInStore(store, event);
|
|
49236
|
-
break;
|
|
49237
|
-
case `oldValue`:
|
|
49238
|
-
disposeFromStore(store, event.token);
|
|
49239
|
-
break;
|
|
49240
|
-
}
|
|
49241
|
-
}
|
|
49242
|
-
function ingestDisposalEvent(store, event, applying) {
|
|
49243
|
-
switch (applying) {
|
|
49244
|
-
case `newValue`:
|
|
49245
|
-
disposeFromStore(store, event.token);
|
|
49246
|
-
break;
|
|
49247
|
-
case `oldValue`:
|
|
49248
|
-
createInStore(store, event);
|
|
49249
|
-
if (event.subType === `atom`)
|
|
49250
|
-
store.valueMap.set(event.token.key, event.value);
|
|
49251
|
-
break;
|
|
49252
|
-
}
|
|
49253
|
-
}
|
|
49254
|
-
function createInStore(store, event) {
|
|
49255
|
-
const { token } = event;
|
|
49256
|
-
if (event.subType === `writable` && event.value)
|
|
49257
|
-
setIntoStore(store, token, event.value);
|
|
49258
|
-
else
|
|
49259
|
-
getFromStore(store, token);
|
|
49260
|
-
}
|
|
49261
|
-
function ingestMoleculeCreationEvent(store, event, applying) {
|
|
49262
|
-
switch (applying) {
|
|
49263
|
-
case `newValue`:
|
|
49264
|
-
allocateIntoStore(store, event.provenance, event.key);
|
|
49265
|
-
break;
|
|
49266
|
-
case `oldValue`:
|
|
49267
|
-
deallocateFromStore(store, event.key);
|
|
49268
|
-
break;
|
|
49269
|
-
}
|
|
49270
|
-
}
|
|
49271
|
-
function ingestMoleculeDisposalEvent(store, event, applying) {
|
|
49272
|
-
switch (applying) {
|
|
49273
|
-
case `newValue`:
|
|
49274
|
-
deallocateFromStore(store, event.key);
|
|
49275
|
-
break;
|
|
49276
|
-
case `oldValue`:
|
|
49277
|
-
allocateIntoStore(store, event.provenance.map(parseJson), event.key);
|
|
49278
|
-
for (const [familyKey, value] of event.values) {
|
|
49279
|
-
const family = store.families.get(familyKey);
|
|
49280
|
-
if (family) {
|
|
49281
|
-
getFromStore(store, family, event.key);
|
|
49282
|
-
const memberKey = `${familyKey}(${stringifyJson(event.key)})`;
|
|
49283
|
-
store.valueMap.set(memberKey, value);
|
|
49284
|
-
}
|
|
49285
|
-
}
|
|
49286
|
-
break;
|
|
49287
|
-
}
|
|
49288
|
-
}
|
|
49289
|
-
function ingestMoleculeTransferEvent(store, event, applying) {
|
|
49290
|
-
switch (applying) {
|
|
49291
|
-
case `newValue`:
|
|
49292
|
-
for (const newOwner of event.to)
|
|
49293
|
-
claimWithinStore(store, newOwner, event.key, event.exclusive ? `exclusive` : undefined);
|
|
49294
|
-
break;
|
|
49295
|
-
case `oldValue`:
|
|
49296
|
-
{
|
|
49297
|
-
let exclusivity = `exclusive`;
|
|
49298
|
-
for (const previousOwner of event.from) {
|
|
49299
|
-
claimWithinStore(store, previousOwner, event.key, exclusivity);
|
|
49300
|
-
exclusivity = undefined;
|
|
49301
|
-
}
|
|
49302
|
-
}
|
|
49303
|
-
break;
|
|
49304
|
-
}
|
|
49305
|
-
}
|
|
49306
|
-
function ingestTransactionOutcomeEvent(store, event, applying) {
|
|
49307
|
-
const subEvents = applying === `newValue` ? event.subEvents : [...event.subEvents].reverse();
|
|
49308
|
-
for (const subEvent of subEvents)
|
|
49309
|
-
switch (subEvent.type) {
|
|
49310
|
-
case `atom_update`:
|
|
49311
|
-
ingestAtomUpdateEvent(store, subEvent, applying);
|
|
49312
|
-
break;
|
|
49313
|
-
case `state_creation`:
|
|
49314
|
-
ingestCreationEvent(store, subEvent, applying);
|
|
49315
|
-
break;
|
|
49316
|
-
case `state_disposal`:
|
|
49317
|
-
ingestDisposalEvent(store, subEvent, applying);
|
|
49318
|
-
break;
|
|
49319
|
-
case `molecule_creation`:
|
|
49320
|
-
ingestMoleculeCreationEvent(store, subEvent, applying);
|
|
49321
|
-
break;
|
|
49322
|
-
case `molecule_disposal`:
|
|
49323
|
-
ingestMoleculeDisposalEvent(store, subEvent, applying);
|
|
49324
|
-
break;
|
|
49325
|
-
case `molecule_transfer`:
|
|
49326
|
-
ingestMoleculeTransferEvent(store, subEvent, applying);
|
|
49327
|
-
break;
|
|
49328
|
-
case `transaction_outcome`:
|
|
49329
|
-
ingestTransactionOutcomeEvent(store, subEvent, applying);
|
|
49330
|
-
break;
|
|
49331
|
-
}
|
|
49332
|
-
}
|
|
49333
49051
|
function isRootStore(store) {
|
|
49334
49052
|
return `epoch` in store.transactionMeta;
|
|
49335
49053
|
}
|
|
49336
49054
|
function isChildStore(store) {
|
|
49337
49055
|
return `phase` in store.transactionMeta;
|
|
49338
49056
|
}
|
|
49339
|
-
function getContinuityKey(store, transactionKey) {
|
|
49340
|
-
return store.transactionMeta.actionContinuities.getRelatedKey(transactionKey);
|
|
49341
|
-
}
|
|
49342
|
-
function getEpochNumberOfContinuity(store, continuityKey) {
|
|
49343
|
-
return store.transactionMeta.epoch.get(continuityKey);
|
|
49344
|
-
}
|
|
49345
|
-
function getEpochNumberOfAction(store, transactionKey) {
|
|
49346
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
49347
|
-
if (continuityKey === undefined)
|
|
49348
|
-
return;
|
|
49349
|
-
return getEpochNumberOfContinuity(store, continuityKey);
|
|
49350
|
-
}
|
|
49351
|
-
function setEpochNumberOfAction(store, transactionKey, newEpoch) {
|
|
49352
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
49353
|
-
if (continuityKey !== undefined)
|
|
49354
|
-
store.transactionMeta.epoch.set(continuityKey, newEpoch);
|
|
49355
|
-
}
|
|
49356
|
-
function applyTransaction(store, output) {
|
|
49357
|
-
const child = newest(store);
|
|
49358
|
-
const { parent } = child;
|
|
49359
|
-
child.transactionMeta.phase = `applying`;
|
|
49360
|
-
child.transactionMeta.update.output = output;
|
|
49361
|
-
parent.child = null;
|
|
49362
|
-
parent.on.transactionApplying.next(child.transactionMeta);
|
|
49363
|
-
const { subEvents: updates } = child.transactionMeta.update;
|
|
49364
|
-
store.logger.info(`\uD83D\uDEC4`, `transaction`, child.transactionMeta.update.token.key, `applying ${updates.length} subEvents:`, updates);
|
|
49365
|
-
ingestTransactionOutcomeEvent(parent, child.transactionMeta.update, `newValue`);
|
|
49366
|
-
if (isRootStore(parent)) {
|
|
49367
|
-
setEpochNumberOfAction(parent, child.transactionMeta.update.token.key, child.transactionMeta.update.epoch);
|
|
49368
|
-
withdraw(store, {
|
|
49369
|
-
key: child.transactionMeta.update.token.key,
|
|
49370
|
-
type: `transaction`
|
|
49371
|
-
})?.subject.next(child.transactionMeta.update);
|
|
49372
|
-
store.logger.info(`\uD83D\uDEEC`, `transaction`, child.transactionMeta.update.token.key, `applied`);
|
|
49373
|
-
} else if (isChildStore(parent))
|
|
49374
|
-
parent.transactionMeta.update.subEvents.push(child.transactionMeta.update);
|
|
49375
|
-
parent.on.transactionApplying.next(null);
|
|
49376
|
-
}
|
|
49377
|
-
function getEnvironmentData(store) {
|
|
49378
|
-
return { store };
|
|
49379
|
-
}
|
|
49380
|
-
var buildTransaction = (store, token, params, id) => {
|
|
49381
|
-
const parent = newest(store);
|
|
49382
|
-
const childBase = {
|
|
49383
|
-
parent,
|
|
49384
|
-
child: null,
|
|
49385
|
-
on: parent.on,
|
|
49386
|
-
loggers: parent.loggers,
|
|
49387
|
-
logger: parent.logger,
|
|
49388
|
-
config: parent.config,
|
|
49389
|
-
atoms: new MapOverlay(parent.atoms),
|
|
49390
|
-
atomsThatAreDefault: new Set(parent.atomsThatAreDefault),
|
|
49391
|
-
families: new MapOverlay(parent.families),
|
|
49392
|
-
joins: new MapOverlay(parent.joins),
|
|
49393
|
-
operation: { open: false },
|
|
49394
|
-
readonlySelectors: new MapOverlay(parent.readonlySelectors),
|
|
49395
|
-
timelines: new MapOverlay(parent.timelines),
|
|
49396
|
-
timelineTopics: parent.timelineTopics.overlay(),
|
|
49397
|
-
trackers: /* @__PURE__ */ new Map,
|
|
49398
|
-
transactions: new MapOverlay(parent.transactions),
|
|
49399
|
-
selectorAtoms: parent.selectorAtoms.overlay(),
|
|
49400
|
-
selectorGraph: parent.selectorGraph.overlay(),
|
|
49401
|
-
writableSelectors: new MapOverlay(parent.writableSelectors),
|
|
49402
|
-
valueMap: new MapOverlay(parent.valueMap),
|
|
49403
|
-
defaults: parent.defaults,
|
|
49404
|
-
disposalTraces: store.disposalTraces.copy(),
|
|
49405
|
-
molecules: new MapOverlay(parent.molecules),
|
|
49406
|
-
moleculeGraph: parent.moleculeGraph.overlay(),
|
|
49407
|
-
moleculeData: parent.moleculeData.overlay(),
|
|
49408
|
-
keyRefsInJoins: parent.keyRefsInJoins.overlay(),
|
|
49409
|
-
miscResources: new MapOverlay(parent.miscResources)
|
|
49410
|
-
};
|
|
49411
|
-
const epoch = getEpochNumberOfAction(store, token.key);
|
|
49412
|
-
const transactionMeta = {
|
|
49413
|
-
phase: `building`,
|
|
49414
|
-
update: {
|
|
49415
|
-
type: `transaction_outcome`,
|
|
49416
|
-
token,
|
|
49417
|
-
id,
|
|
49418
|
-
epoch: epoch === undefined ? NaN : epoch + 1,
|
|
49419
|
-
timestamp: Date.now(),
|
|
49420
|
-
subEvents: [],
|
|
49421
|
-
params,
|
|
49422
|
-
output: undefined
|
|
49423
|
-
},
|
|
49424
|
-
toolkit: {
|
|
49425
|
-
get: (...ps) => getFromStore(child, ...ps),
|
|
49426
|
-
set: (...ps) => {
|
|
49427
|
-
setIntoStore(child, ...ps);
|
|
49428
|
-
},
|
|
49429
|
-
reset: (...ps) => {
|
|
49430
|
-
resetInStore(child, ...ps);
|
|
49431
|
-
},
|
|
49432
|
-
run: (t2, identifier = arbitrary()) => actUponStore(child, t2, identifier),
|
|
49433
|
-
find: (...ps) => findInStore(store, ...ps),
|
|
49434
|
-
json: (t2) => getJsonToken(child, t2),
|
|
49435
|
-
dispose: (...ps) => {
|
|
49436
|
-
disposeFromStore(child, ...ps);
|
|
49437
|
-
},
|
|
49438
|
-
env: () => getEnvironmentData(child)
|
|
49439
|
-
}
|
|
49440
|
-
};
|
|
49441
|
-
const child = Object.assign(childBase, { transactionMeta });
|
|
49442
|
-
parent.child = child;
|
|
49443
|
-
store.logger.info(`\uD83D\uDEEB`, `transaction`, token.key, `building with params:`, params);
|
|
49444
|
-
return child;
|
|
49445
|
-
};
|
|
49446
|
-
function createTransaction(store, options) {
|
|
49447
|
-
const { key } = options;
|
|
49448
|
-
const transactionAlreadyExists = store.transactions.has(key);
|
|
49449
|
-
const newTransaction = {
|
|
49450
|
-
key,
|
|
49451
|
-
type: `transaction`,
|
|
49452
|
-
run: (params, id) => {
|
|
49453
|
-
const target = buildTransaction(store, deposit(newTransaction), params, id);
|
|
49454
|
-
try {
|
|
49455
|
-
const { toolkit } = target.transactionMeta;
|
|
49456
|
-
const output = options.do(toolkit, ...params);
|
|
49457
|
-
applyTransaction(target, output);
|
|
49458
|
-
return output;
|
|
49459
|
-
} catch (thrown) {
|
|
49460
|
-
abortTransaction(target);
|
|
49461
|
-
store.logger.warn(`\uD83D\uDCA5`, `transaction`, key, `caught:`, thrown);
|
|
49462
|
-
throw thrown;
|
|
49463
|
-
}
|
|
49464
|
-
},
|
|
49465
|
-
install: (s2) => createTransaction(s2, options),
|
|
49466
|
-
subject: new Subject
|
|
49467
|
-
};
|
|
49468
|
-
newest(store).transactions.set(key, newTransaction);
|
|
49469
|
-
const token = deposit(newTransaction);
|
|
49470
|
-
if (!transactionAlreadyExists)
|
|
49471
|
-
store.on.transactionCreation.next(token);
|
|
49472
|
-
return token;
|
|
49473
|
-
}
|
|
49474
49057
|
var Store = class {
|
|
49475
49058
|
parent = null;
|
|
49476
49059
|
child = null;
|
|
@@ -50148,34 +49731,6 @@ function createSelectorFamily(store, options) {
|
|
|
50148
49731
|
return createWritablePureSelectorFamily(store, options);
|
|
50149
49732
|
return createReadonlyPureSelectorFamily(store, options);
|
|
50150
49733
|
}
|
|
50151
|
-
function disposeFromStore(store, ...params) {
|
|
50152
|
-
let token;
|
|
50153
|
-
if (params.length === 1)
|
|
50154
|
-
token = params[0];
|
|
50155
|
-
else {
|
|
50156
|
-
const family = params[0];
|
|
50157
|
-
const key = params[1];
|
|
50158
|
-
token = findInStore(store, family, key);
|
|
50159
|
-
}
|
|
50160
|
-
try {
|
|
50161
|
-
withdraw(store, token);
|
|
50162
|
-
} catch (_2) {
|
|
50163
|
-
store.logger.error(`\u274C`, token.type, token.key, `could not be disposed because it was not found in the store "${store.config.name}".`);
|
|
50164
|
-
return;
|
|
50165
|
-
}
|
|
50166
|
-
switch (token.type) {
|
|
50167
|
-
case `atom`:
|
|
50168
|
-
case `mutable_atom`:
|
|
50169
|
-
disposeAtom(store, token);
|
|
50170
|
-
break;
|
|
50171
|
-
case `writable_pure_selector`:
|
|
50172
|
-
case `readonly_pure_selector`:
|
|
50173
|
-
case `writable_held_selector`:
|
|
50174
|
-
case `readonly_held_selector`:
|
|
50175
|
-
disposeSelector(store, token);
|
|
50176
|
-
break;
|
|
50177
|
-
}
|
|
50178
|
-
}
|
|
50179
49734
|
function openOperation(store, token) {
|
|
50180
49735
|
if (store.operation.open) {
|
|
50181
49736
|
const rejectionTime = performance.now();
|
|
@@ -50745,85 +50300,6 @@ function createStandaloneSelector(store, options) {
|
|
|
50745
50300
|
store.on.selectorCreation.next(state);
|
|
50746
50301
|
return state;
|
|
50747
50302
|
}
|
|
50748
|
-
function disposeSelector(store, selectorToken) {
|
|
50749
|
-
const target = newest(store);
|
|
50750
|
-
const { key, type, family: familyMeta } = selectorToken;
|
|
50751
|
-
if (!familyMeta)
|
|
50752
|
-
store.logger.error(`\u274C`, type, key, `Standalone selectors cannot be disposed.`);
|
|
50753
|
-
else {
|
|
50754
|
-
if (target.molecules.get(familyMeta.subKey))
|
|
50755
|
-
target.moleculeData.delete(familyMeta.subKey, familyMeta.key);
|
|
50756
|
-
let familyToken;
|
|
50757
|
-
switch (selectorToken.type) {
|
|
50758
|
-
case `writable_held_selector`:
|
|
50759
|
-
target.writableSelectors.delete(key);
|
|
50760
|
-
familyToken = {
|
|
50761
|
-
key: familyMeta.key,
|
|
50762
|
-
type: `writable_held_selector_family`
|
|
50763
|
-
};
|
|
50764
|
-
withdraw(store, familyToken).subject.next({
|
|
50765
|
-
type: `state_disposal`,
|
|
50766
|
-
subType: `selector`,
|
|
50767
|
-
token: selectorToken,
|
|
50768
|
-
timestamp: Date.now()
|
|
50769
|
-
});
|
|
50770
|
-
break;
|
|
50771
|
-
case `writable_pure_selector`:
|
|
50772
|
-
target.writableSelectors.delete(key);
|
|
50773
|
-
familyToken = {
|
|
50774
|
-
key: familyMeta.key,
|
|
50775
|
-
type: `writable_pure_selector_family`
|
|
50776
|
-
};
|
|
50777
|
-
withdraw(store, familyToken).subject.next({
|
|
50778
|
-
type: `state_disposal`,
|
|
50779
|
-
subType: `selector`,
|
|
50780
|
-
token: selectorToken,
|
|
50781
|
-
timestamp: Date.now()
|
|
50782
|
-
});
|
|
50783
|
-
break;
|
|
50784
|
-
case `readonly_held_selector`:
|
|
50785
|
-
target.readonlySelectors.delete(key);
|
|
50786
|
-
familyToken = {
|
|
50787
|
-
key: familyMeta.key,
|
|
50788
|
-
type: `readonly_held_selector_family`
|
|
50789
|
-
};
|
|
50790
|
-
withdraw(store, familyToken).subject.next({
|
|
50791
|
-
type: `state_disposal`,
|
|
50792
|
-
subType: `selector`,
|
|
50793
|
-
token: selectorToken,
|
|
50794
|
-
timestamp: Date.now()
|
|
50795
|
-
});
|
|
50796
|
-
break;
|
|
50797
|
-
case `readonly_pure_selector`:
|
|
50798
|
-
target.readonlySelectors.delete(key);
|
|
50799
|
-
familyToken = {
|
|
50800
|
-
key: familyMeta.key,
|
|
50801
|
-
type: `readonly_pure_selector_family`
|
|
50802
|
-
};
|
|
50803
|
-
withdraw(store, familyToken).subject.next({
|
|
50804
|
-
type: `state_disposal`,
|
|
50805
|
-
subType: `selector`,
|
|
50806
|
-
token: selectorToken,
|
|
50807
|
-
timestamp: Date.now()
|
|
50808
|
-
});
|
|
50809
|
-
break;
|
|
50810
|
-
}
|
|
50811
|
-
target.valueMap.delete(key);
|
|
50812
|
-
target.selectorAtoms.delete(key);
|
|
50813
|
-
target.selectorGraph.delete(key);
|
|
50814
|
-
target.moleculeData.delete(familyMeta.key, familyMeta.subKey);
|
|
50815
|
-
store.logger.info(`\uD83D\uDD25`, selectorToken.type, key, `deleted`);
|
|
50816
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
50817
|
-
target.transactionMeta.update.subEvents.push({
|
|
50818
|
-
type: `state_disposal`,
|
|
50819
|
-
subType: `selector`,
|
|
50820
|
-
token: selectorToken,
|
|
50821
|
-
timestamp: Date.now()
|
|
50822
|
-
});
|
|
50823
|
-
else
|
|
50824
|
-
store.on.selectorDisposal.next(selectorToken);
|
|
50825
|
-
}
|
|
50826
|
-
}
|
|
50827
50303
|
var recallState = (store, state) => {
|
|
50828
50304
|
const target = newest(store);
|
|
50829
50305
|
if (target.operation.open)
|
|
@@ -51298,46 +50774,6 @@ function hasRole(atom, role) {
|
|
|
51298
50774
|
return false;
|
|
51299
50775
|
return atom.internalRoles.includes(role);
|
|
51300
50776
|
}
|
|
51301
|
-
function disposeAtom(store, atomToken) {
|
|
51302
|
-
const target = newest(store);
|
|
51303
|
-
const { key, family } = atomToken;
|
|
51304
|
-
const atom = withdraw(target, atomToken);
|
|
51305
|
-
if (!family)
|
|
51306
|
-
store.logger.error(`\u274C`, `atom`, key, `Standalone atoms cannot be disposed.`);
|
|
51307
|
-
else {
|
|
51308
|
-
atom.cleanup?.();
|
|
51309
|
-
const lastValue = store.valueMap.get(atom.key);
|
|
51310
|
-
const subject = withdraw(store, getFamilyOfToken(store, atomToken)).subject;
|
|
51311
|
-
const disposalEvent = {
|
|
51312
|
-
type: `state_disposal`,
|
|
51313
|
-
subType: `atom`,
|
|
51314
|
-
token: atomToken,
|
|
51315
|
-
value: lastValue,
|
|
51316
|
-
timestamp: Date.now()
|
|
51317
|
-
};
|
|
51318
|
-
subject.next(disposalEvent);
|
|
51319
|
-
const isChild = isChildStore(target);
|
|
51320
|
-
target.atoms.delete(key);
|
|
51321
|
-
target.valueMap.delete(key);
|
|
51322
|
-
target.selectorAtoms.delete(key);
|
|
51323
|
-
target.atomsThatAreDefault.delete(key);
|
|
51324
|
-
target.moleculeData.delete(family.key, family.subKey);
|
|
51325
|
-
store.timelineTopics.delete(key);
|
|
51326
|
-
if (atomToken.type === `mutable_atom`) {
|
|
51327
|
-
disposeAtom(store, getUpdateToken(atomToken));
|
|
51328
|
-
store.trackers.delete(key);
|
|
51329
|
-
}
|
|
51330
|
-
store.logger.info(`\uD83D\uDD25`, `atom`, key, `deleted`);
|
|
51331
|
-
if (isChild && target.transactionMeta.phase === `building`) {
|
|
51332
|
-
const mostRecentUpdate = target.transactionMeta.update.subEvents.at(-1);
|
|
51333
|
-
const updateAlreadyCaptured = mostRecentUpdate?.type === `molecule_disposal` && mostRecentUpdate.values.some(([k2]) => k2 === atom.family?.key);
|
|
51334
|
-
const isTracker = hasRole(atom, `tracker:signal`);
|
|
51335
|
-
if (!updateAlreadyCaptured && !isTracker)
|
|
51336
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
51337
|
-
} else
|
|
51338
|
-
store.on.atomDisposal.next(atomToken);
|
|
51339
|
-
}
|
|
51340
|
-
}
|
|
51341
50777
|
function capitalize(string) {
|
|
51342
50778
|
return string[0].toUpperCase() + string.slice(1);
|
|
51343
50779
|
}
|
|
@@ -51702,28 +51138,9 @@ var $validatedKey = Symbol.for(`claim`);
|
|
|
51702
51138
|
function simpleCompound(a2, b2) {
|
|
51703
51139
|
return [a2, b2].sort().join(`\x1F`);
|
|
51704
51140
|
}
|
|
51705
|
-
function decomposeCompound(compound) {
|
|
51706
|
-
if (typeof compound === `string` === false)
|
|
51707
|
-
return null;
|
|
51708
|
-
const [typeTag, components] = compound.split(`==`);
|
|
51709
|
-
if (!components)
|
|
51710
|
-
return null;
|
|
51711
|
-
const type = typeTag.slice(4);
|
|
51712
|
-
const [a2, b2] = components.split(`++`);
|
|
51713
|
-
if (type && a2 && b2)
|
|
51714
|
-
return [
|
|
51715
|
-
type,
|
|
51716
|
-
a2,
|
|
51717
|
-
b2
|
|
51718
|
-
];
|
|
51719
|
-
return null;
|
|
51720
|
-
}
|
|
51721
51141
|
function selectorFamily(options) {
|
|
51722
51142
|
return createSelectorFamily(IMPLICIT.STORE, options);
|
|
51723
51143
|
}
|
|
51724
|
-
function transaction(options) {
|
|
51725
|
-
return createTransaction(IMPLICIT.STORE, options);
|
|
51726
|
-
}
|
|
51727
51144
|
|
|
51728
51145
|
// src/backend.bun.ts
|
|
51729
51146
|
var import_cors = __toESM(require_lib(), 1);
|
|
@@ -51739,7 +51156,7 @@ import { createServer as createHttpServer } from "http";
|
|
|
51739
51156
|
import { createServer as createSecureServer } from "https";
|
|
51740
51157
|
import { resolve } from "path";
|
|
51741
51158
|
|
|
51742
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.
|
|
51159
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.26_typescript@5.9.3_zod@4.1.12/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
|
|
51743
51160
|
function ensureSynchronous(value, message) {
|
|
51744
51161
|
if (value instanceof Promise)
|
|
51745
51162
|
throw new Error(message);
|
|
@@ -51825,7 +51242,7 @@ function createEnv(opts) {
|
|
|
51825
51242
|
return env;
|
|
51826
51243
|
}
|
|
51827
51244
|
|
|
51828
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51245
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/arrays.js
|
|
51829
51246
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
51830
51247
|
var spliterate = (arr, predicate) => {
|
|
51831
51248
|
const result = [[], []];
|
|
@@ -51880,7 +51297,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
|
|
|
51880
51297
|
return result;
|
|
51881
51298
|
}, {});
|
|
51882
51299
|
var arrayEquals = (l2, r2, opts) => l2.length === r2.length && l2.every(opts?.isEqual ? (lItem, i2) => opts.isEqual(lItem, r2[i2]) : (lItem, i2) => lItem === r2[i2]);
|
|
51883
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51300
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/domain.js
|
|
51884
51301
|
var hasDomain = (data, kind) => domainOf(data) === kind;
|
|
51885
51302
|
var domainOf = (data) => {
|
|
51886
51303
|
const builtinType = typeof data;
|
|
@@ -51901,7 +51318,7 @@ var jsTypeOfDescriptions = {
|
|
|
51901
51318
|
function: "a function"
|
|
51902
51319
|
};
|
|
51903
51320
|
|
|
51904
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51321
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/errors.js
|
|
51905
51322
|
class InternalArktypeError extends Error {
|
|
51906
51323
|
}
|
|
51907
51324
|
var throwInternalError = (message) => throwError(message, InternalArktypeError);
|
|
@@ -51916,7 +51333,7 @@ var throwParseError = (message) => throwError(message, ParseError);
|
|
|
51916
51333
|
var noSuggest = (s2) => ` ${s2}`;
|
|
51917
51334
|
var ZeroWidthSpace = "\u200B";
|
|
51918
51335
|
|
|
51919
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51336
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/flatMorph.js
|
|
51920
51337
|
var flatMorph = (o2, flatMapEntry) => {
|
|
51921
51338
|
const result = {};
|
|
51922
51339
|
const inputIsArray = Array.isArray(o2);
|
|
@@ -51935,7 +51352,7 @@ var flatMorph = (o2, flatMapEntry) => {
|
|
|
51935
51352
|
return outputShouldBeArray ? Object.values(result) : result;
|
|
51936
51353
|
};
|
|
51937
51354
|
|
|
51938
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51355
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/records.js
|
|
51939
51356
|
var entriesOf = Object.entries;
|
|
51940
51357
|
var isKeyOf = (k2, o2) => (k2 in o2);
|
|
51941
51358
|
var hasKey = (o2, k2) => (k2 in o2);
|
|
@@ -51982,7 +51399,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v2) => {
|
|
|
51982
51399
|
return typeof tsEnum[v2] !== "number";
|
|
51983
51400
|
});
|
|
51984
51401
|
|
|
51985
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51402
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/objectKinds.js
|
|
51986
51403
|
var ecmascriptConstructors = {
|
|
51987
51404
|
Array,
|
|
51988
51405
|
Boolean,
|
|
@@ -52098,7 +51515,7 @@ var constructorExtends = (ctor, base) => {
|
|
|
52098
51515
|
return false;
|
|
52099
51516
|
};
|
|
52100
51517
|
|
|
52101
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51518
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/clone.js
|
|
52102
51519
|
var deepClone = (input) => _clone(input, new Map);
|
|
52103
51520
|
var _clone = (input, seen) => {
|
|
52104
51521
|
if (typeof input !== "object" || input === null)
|
|
@@ -52124,7 +51541,7 @@ var _clone = (input, seen) => {
|
|
|
52124
51541
|
Object.defineProperties(cloned, propertyDescriptors);
|
|
52125
51542
|
return cloned;
|
|
52126
51543
|
};
|
|
52127
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51544
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/functions.js
|
|
52128
51545
|
var cached = (thunk) => {
|
|
52129
51546
|
let result = unset;
|
|
52130
51547
|
return () => result === unset ? result = thunk() : result;
|
|
@@ -52133,14 +51550,14 @@ var isThunk = (value) => typeof value === "function" && value.length === 0;
|
|
|
52133
51550
|
var DynamicFunction = class extends Function {
|
|
52134
51551
|
constructor(...args) {
|
|
52135
51552
|
const params = args.slice(0, -1);
|
|
52136
|
-
const body = args.
|
|
51553
|
+
const body = args[args.length - 1];
|
|
52137
51554
|
try {
|
|
52138
51555
|
super(...params, body);
|
|
52139
51556
|
} catch (e) {
|
|
52140
51557
|
return throwInternalError(`Encountered an unexpected error while compiling your definition:
|
|
52141
51558
|
Message: ${e}
|
|
52142
51559
|
Source: (${args.slice(0, -1)}) => {
|
|
52143
|
-
${args.
|
|
51560
|
+
${args[args.length - 1]}
|
|
52144
51561
|
}`);
|
|
52145
51562
|
}
|
|
52146
51563
|
}
|
|
@@ -52158,16 +51575,16 @@ var envHasCsp = cached(() => {
|
|
|
52158
51575
|
return true;
|
|
52159
51576
|
}
|
|
52160
51577
|
});
|
|
52161
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51578
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/generics.js
|
|
52162
51579
|
var brand = noSuggest("brand");
|
|
52163
51580
|
var inferred = noSuggest("arkInferred");
|
|
52164
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51581
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/hkt.js
|
|
52165
51582
|
var args = noSuggest("args");
|
|
52166
51583
|
|
|
52167
51584
|
class Hkt {
|
|
52168
51585
|
constructor() {}
|
|
52169
51586
|
}
|
|
52170
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51587
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/isomorphic.js
|
|
52171
51588
|
var fileName = () => {
|
|
52172
51589
|
try {
|
|
52173
51590
|
const error = new Error;
|
|
@@ -52184,7 +51601,7 @@ var isomorphic = {
|
|
|
52184
51601
|
fileName,
|
|
52185
51602
|
env
|
|
52186
51603
|
};
|
|
52187
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51604
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/strings.js
|
|
52188
51605
|
var capitalize2 = (s2) => s2[0].toUpperCase() + s2.slice(1);
|
|
52189
51606
|
var anchoredRegex = (regex) => new RegExp(anchoredSource(regex), typeof regex === "string" ? "" : regex.flags);
|
|
52190
51607
|
var anchoredSource = (regex) => {
|
|
@@ -52202,7 +51619,7 @@ var whitespaceChars = {
|
|
|
52202
51619
|
"\t": 1
|
|
52203
51620
|
};
|
|
52204
51621
|
|
|
52205
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51622
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/numbers.js
|
|
52206
51623
|
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
|
|
52207
51624
|
var positiveIntegerPattern = /[1-9]\d*/.source;
|
|
52208
51625
|
var looseDecimalPattern = /\.\d+/.source;
|
|
@@ -52264,8 +51681,8 @@ var tryParseWellFormedBigint = (def) => {
|
|
|
52264
51681
|
return throwParseError(writeMalformedNumericLiteralMessage(def, "bigint"));
|
|
52265
51682
|
}
|
|
52266
51683
|
};
|
|
52267
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
52268
|
-
var arkUtilVersion = "0.
|
|
51684
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/registry.js
|
|
51685
|
+
var arkUtilVersion = "0.54.0";
|
|
52269
51686
|
var initialRegistryContents = {
|
|
52270
51687
|
version: arkUtilVersion,
|
|
52271
51688
|
filename: isomorphic.fileName(),
|
|
@@ -52304,10 +51721,10 @@ var baseNameFor = (value) => {
|
|
|
52304
51721
|
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value)}`);
|
|
52305
51722
|
};
|
|
52306
51723
|
|
|
52307
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51724
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/primitive.js
|
|
52308
51725
|
var serializePrimitive = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value === "bigint" ? `${value}n` : `${value}`;
|
|
52309
51726
|
|
|
52310
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51727
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/serialize.js
|
|
52311
51728
|
var snapshot = (data, opts = {}) => _serialize(data, {
|
|
52312
51729
|
onUndefined: `$ark.undefined`,
|
|
52313
51730
|
onBigInt: (n2) => `$ark.bigint-${n2}`,
|
|
@@ -52395,7 +51812,7 @@ var _serialize = (data, opts, seen) => {
|
|
|
52395
51812
|
case "undefined":
|
|
52396
51813
|
return opts.onUndefined ?? "undefined";
|
|
52397
51814
|
case "string":
|
|
52398
|
-
return data.
|
|
51815
|
+
return data.replace(/\\/g, "\\\\");
|
|
52399
51816
|
default:
|
|
52400
51817
|
return data;
|
|
52401
51818
|
}
|
|
@@ -52440,7 +51857,7 @@ var months = [
|
|
|
52440
51857
|
var timeWithUnnecessarySeconds = /:\d\d:00$/;
|
|
52441
51858
|
var pad = (value, length) => String(value).padStart(length, "0");
|
|
52442
51859
|
|
|
52443
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51860
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/path.js
|
|
52444
51861
|
var appendStringifiedKey = (path, prop, ...[opts]) => {
|
|
52445
51862
|
const stringifySymbol = opts?.stringifySymbol ?? printable;
|
|
52446
51863
|
let propAccessChain = path;
|
|
@@ -52497,7 +51914,7 @@ class ReadonlyPath extends ReadonlyArray {
|
|
|
52497
51914
|
return this.cache.stringifyAncestors = result;
|
|
52498
51915
|
}
|
|
52499
51916
|
}
|
|
52500
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51917
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/scanner.js
|
|
52501
51918
|
class Scanner {
|
|
52502
51919
|
chars;
|
|
52503
51920
|
i;
|
|
@@ -52580,9 +51997,9 @@ class Scanner {
|
|
|
52580
51997
|
}
|
|
52581
51998
|
var writeUnmatchedGroupCloseMessage = (char, unscanned) => `Unmatched ${char}${unscanned === "" ? "" : ` before ${unscanned}`}`;
|
|
52582
51999
|
var writeUnclosedGroupMessage = (missingChar) => `Missing ${missingChar}`;
|
|
52583
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
52000
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/traits.js
|
|
52584
52001
|
var implementedTraits = noSuggest("implementedTraits");
|
|
52585
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52002
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/registry.js
|
|
52586
52003
|
var _registryName = "$ark";
|
|
52587
52004
|
var suffix = 2;
|
|
52588
52005
|
while (_registryName in globalThis)
|
|
@@ -52593,7 +52010,7 @@ var $ark = registry;
|
|
|
52593
52010
|
var reference = (name) => `${registryName}.${name}`;
|
|
52594
52011
|
var registeredReference = (value) => reference(register(value));
|
|
52595
52012
|
|
|
52596
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52013
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/compile.js
|
|
52597
52014
|
class CompiledFunction extends CastableBase {
|
|
52598
52015
|
argNames;
|
|
52599
52016
|
body = "";
|
|
@@ -52729,13 +52146,13 @@ class NodeCompiler extends CompiledFunction {
|
|
|
52729
52146
|
}
|
|
52730
52147
|
}
|
|
52731
52148
|
|
|
52732
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52149
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/utils.js
|
|
52733
52150
|
var makeRootAndArrayPropertiesMutable = (o2) => flatMorph(o2, (k2, v2) => [k2, isArray(v2) ? [...v2] : v2]);
|
|
52734
52151
|
var arkKind = noSuggest("arkKind");
|
|
52735
52152
|
var hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
52736
52153
|
var isNode = (value) => hasArkKind(value, "root") || hasArkKind(value, "constraint");
|
|
52737
52154
|
|
|
52738
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52155
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/implement.js
|
|
52739
52156
|
var basisKinds = ["unit", "proto", "domain"];
|
|
52740
52157
|
var structuralKinds = [
|
|
52741
52158
|
"required",
|
|
@@ -52823,7 +52240,7 @@ var implementNode = (_2) => {
|
|
|
52823
52240
|
return implementation;
|
|
52824
52241
|
};
|
|
52825
52242
|
|
|
52826
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52243
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
|
|
52827
52244
|
class ToJsonSchemaError extends Error {
|
|
52828
52245
|
name = "ToJsonSchemaError";
|
|
52829
52246
|
code;
|
|
@@ -52863,7 +52280,7 @@ var ToJsonSchema = {
|
|
|
52863
52280
|
defaultConfig
|
|
52864
52281
|
};
|
|
52865
52282
|
|
|
52866
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52283
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/config.js
|
|
52867
52284
|
$ark.config ??= {};
|
|
52868
52285
|
var mergeConfigs = (base, merged) => {
|
|
52869
52286
|
if (!merged)
|
|
@@ -52918,7 +52335,7 @@ var mergeFallbacks = (base, merged) => {
|
|
|
52918
52335
|
return result;
|
|
52919
52336
|
};
|
|
52920
52337
|
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
|
|
52921
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52338
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/errors.js
|
|
52922
52339
|
class ArkError extends CastableBase {
|
|
52923
52340
|
[arkKind] = "error";
|
|
52924
52341
|
path;
|
|
@@ -53111,7 +52528,7 @@ var indent = (error) => error.toString().split(`
|
|
|
53111
52528
|
`).join(`
|
|
53112
52529
|
`);
|
|
53113
52530
|
|
|
53114
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52531
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/traversal.js
|
|
53115
52532
|
class Traversal {
|
|
53116
52533
|
path = [];
|
|
53117
52534
|
errors = new ArkErrors(this);
|
|
@@ -53149,7 +52566,7 @@ class Traversal {
|
|
|
53149
52566
|
return this.currentErrorCount !== 0;
|
|
53150
52567
|
}
|
|
53151
52568
|
get currentBranch() {
|
|
53152
|
-
return this.branches.
|
|
52569
|
+
return this.branches[this.branches.length - 1];
|
|
53153
52570
|
}
|
|
53154
52571
|
queueMorphs(morphs) {
|
|
53155
52572
|
const input = {
|
|
@@ -53212,7 +52629,7 @@ class Traversal {
|
|
|
53212
52629
|
}
|
|
53213
52630
|
}
|
|
53214
52631
|
applyMorphsAtPath(path2, morphs) {
|
|
53215
|
-
const key = path2.
|
|
52632
|
+
const key = path2[path2.length - 1];
|
|
53216
52633
|
let parent;
|
|
53217
52634
|
if (key !== undefined) {
|
|
53218
52635
|
parent = this.root;
|
|
@@ -53251,7 +52668,7 @@ var traverseKey = (key, fn2, ctx) => {
|
|
|
53251
52668
|
return result;
|
|
53252
52669
|
};
|
|
53253
52670
|
|
|
53254
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52671
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/node.js
|
|
53255
52672
|
class BaseNode extends Callable {
|
|
53256
52673
|
attachments;
|
|
53257
52674
|
$;
|
|
@@ -53586,7 +53003,7 @@ var typePathToPropString = (path2) => stringifyPath(path2, {
|
|
|
53586
53003
|
stringifyNonKey: (node) => node.expression
|
|
53587
53004
|
});
|
|
53588
53005
|
var referenceMatcher = /"(\$ark\.[^"]+)"/g;
|
|
53589
|
-
var compileMeta = (metaJson) => JSON.stringify(metaJson).
|
|
53006
|
+
var compileMeta = (metaJson) => JSON.stringify(metaJson).replace(referenceMatcher, "$1");
|
|
53590
53007
|
var flatRef = (path2, node) => ({
|
|
53591
53008
|
path: path2,
|
|
53592
53009
|
node,
|
|
@@ -53600,7 +53017,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
|
|
|
53600
53017
|
isEqual: (l2, r2) => l2.equals(r2)
|
|
53601
53018
|
});
|
|
53602
53019
|
|
|
53603
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53020
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/disjoint.js
|
|
53604
53021
|
class Disjoint extends Array {
|
|
53605
53022
|
static init(kind, l2, r2, ctx) {
|
|
53606
53023
|
return new Disjoint({
|
|
@@ -53662,7 +53079,7 @@ var describeReasons = (l2, r2) => `${describeReason(l2)} and ${describeReason(r2
|
|
|
53662
53079
|
var describeReason = (value) => isNode(value) ? value.expression : isArray(value) ? value.map(describeReason).join(" | ") || "never" : String(value);
|
|
53663
53080
|
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
|
|
53664
53081
|
|
|
53665
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53082
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/intersections.js
|
|
53666
53083
|
var intersectionCache = {};
|
|
53667
53084
|
var intersectNodesRoot = (l2, r2, $2) => intersectOrPipeNodes(l2, r2, {
|
|
53668
53085
|
$: $2,
|
|
@@ -53770,7 +53187,7 @@ var _pipeMorphed = (from, to2, ctx) => {
|
|
|
53770
53187
|
});
|
|
53771
53188
|
};
|
|
53772
53189
|
|
|
53773
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53190
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/constraint.js
|
|
53774
53191
|
class BaseConstraint extends BaseNode {
|
|
53775
53192
|
constructor(attachments, $2) {
|
|
53776
53193
|
super(attachments, $2);
|
|
@@ -53884,7 +53301,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
|
|
|
53884
53301
|
const actualDescription = actual.hasKind("morph") ? "a morph" : actual.isUnknown() ? "unknown" : actual.exclude(expected).defaultShortDescription;
|
|
53885
53302
|
return `${capitalize2(kind)} operand must be ${expected.description} (was ${actualDescription})`;
|
|
53886
53303
|
};
|
|
53887
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53304
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/generic.js
|
|
53888
53305
|
var parseGeneric = (paramDefs, bodyDef, $2) => new GenericRoot(paramDefs, bodyDef, $2, $2, null);
|
|
53889
53306
|
|
|
53890
53307
|
class LazyGenericBody extends Callable {
|
|
@@ -53955,7 +53372,7 @@ class GenericRoot extends Callable {
|
|
|
53955
53372
|
}
|
|
53956
53373
|
}
|
|
53957
53374
|
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
|
|
53958
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53375
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/predicate.js
|
|
53959
53376
|
var implementation = implementNode({
|
|
53960
53377
|
kind: "predicate",
|
|
53961
53378
|
hasAssociatedError: true,
|
|
@@ -54010,7 +53427,7 @@ var Predicate = {
|
|
|
54010
53427
|
Node: PredicateNode
|
|
54011
53428
|
};
|
|
54012
53429
|
|
|
54013
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53430
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/divisor.js
|
|
54014
53431
|
var implementation2 = implementNode({
|
|
54015
53432
|
kind: "divisor",
|
|
54016
53433
|
collapsibleKey: "rule",
|
|
@@ -54063,7 +53480,7 @@ var greatestCommonDivisor = (l2, r2) => {
|
|
|
54063
53480
|
return greatestCommonDivisor2;
|
|
54064
53481
|
};
|
|
54065
53482
|
|
|
54066
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53483
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/range.js
|
|
54067
53484
|
class BaseRange extends InternalPrimitiveConstraint {
|
|
54068
53485
|
boundOperandKind = operandKindsByBoundKind[this.kind];
|
|
54069
53486
|
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
|
|
@@ -54143,7 +53560,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
|
|
|
54143
53560
|
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
|
|
54144
53561
|
var writeUnboundableMessage = (root) => `Bounded expression ${root} must be exactly one of number, string, Array, or Date`;
|
|
54145
53562
|
|
|
54146
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53563
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/after.js
|
|
54147
53564
|
var implementation3 = implementNode({
|
|
54148
53565
|
kind: "after",
|
|
54149
53566
|
collapsibleKey: "rule",
|
|
@@ -54177,7 +53594,7 @@ var After = {
|
|
|
54177
53594
|
Node: AfterNode
|
|
54178
53595
|
};
|
|
54179
53596
|
|
|
54180
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53597
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/before.js
|
|
54181
53598
|
var implementation4 = implementNode({
|
|
54182
53599
|
kind: "before",
|
|
54183
53600
|
collapsibleKey: "rule",
|
|
@@ -54212,7 +53629,7 @@ var Before = {
|
|
|
54212
53629
|
Node: BeforeNode
|
|
54213
53630
|
};
|
|
54214
53631
|
|
|
54215
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53632
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/exactLength.js
|
|
54216
53633
|
var implementation5 = implementNode({
|
|
54217
53634
|
kind: "exactLength",
|
|
54218
53635
|
collapsibleKey: "rule",
|
|
@@ -54260,7 +53677,7 @@ var ExactLength = {
|
|
|
54260
53677
|
Node: ExactLengthNode
|
|
54261
53678
|
};
|
|
54262
53679
|
|
|
54263
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53680
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/max.js
|
|
54264
53681
|
var implementation6 = implementNode({
|
|
54265
53682
|
kind: "max",
|
|
54266
53683
|
collapsibleKey: "rule",
|
|
@@ -54300,7 +53717,7 @@ var Max = {
|
|
|
54300
53717
|
Node: MaxNode
|
|
54301
53718
|
};
|
|
54302
53719
|
|
|
54303
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53720
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/maxLength.js
|
|
54304
53721
|
var implementation7 = implementNode({
|
|
54305
53722
|
kind: "maxLength",
|
|
54306
53723
|
collapsibleKey: "rule",
|
|
@@ -54343,7 +53760,7 @@ var MaxLength = {
|
|
|
54343
53760
|
Node: MaxLengthNode
|
|
54344
53761
|
};
|
|
54345
53762
|
|
|
54346
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53763
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/min.js
|
|
54347
53764
|
var implementation8 = implementNode({
|
|
54348
53765
|
kind: "min",
|
|
54349
53766
|
collapsibleKey: "rule",
|
|
@@ -54382,7 +53799,7 @@ var Min = {
|
|
|
54382
53799
|
Node: MinNode
|
|
54383
53800
|
};
|
|
54384
53801
|
|
|
54385
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53802
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/minLength.js
|
|
54386
53803
|
var implementation9 = implementNode({
|
|
54387
53804
|
kind: "minLength",
|
|
54388
53805
|
collapsibleKey: "rule",
|
|
@@ -54424,7 +53841,7 @@ var MinLength = {
|
|
|
54424
53841
|
Node: MinLengthNode
|
|
54425
53842
|
};
|
|
54426
53843
|
|
|
54427
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53844
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/kinds.js
|
|
54428
53845
|
var boundImplementationsByKind = {
|
|
54429
53846
|
min: Min.implementation,
|
|
54430
53847
|
max: Max.implementation,
|
|
@@ -54444,7 +53861,7 @@ var boundClassesByKind = {
|
|
|
54444
53861
|
before: Before.Node
|
|
54445
53862
|
};
|
|
54446
53863
|
|
|
54447
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53864
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/pattern.js
|
|
54448
53865
|
var implementation10 = implementNode({
|
|
54449
53866
|
kind: "pattern",
|
|
54450
53867
|
collapsibleKey: "rule",
|
|
@@ -54489,7 +53906,7 @@ var Pattern = {
|
|
|
54489
53906
|
Node: PatternNode
|
|
54490
53907
|
};
|
|
54491
53908
|
|
|
54492
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53909
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/parse.js
|
|
54493
53910
|
var schemaKindOf = (schema, allowedKinds) => {
|
|
54494
53911
|
const kind = discriminateRootKind(schema);
|
|
54495
53912
|
if (allowedKinds && !allowedKinds.includes(kind)) {
|
|
@@ -54670,7 +54087,7 @@ var possiblyCollapse = (json, toKey, allowPrimitive) => {
|
|
|
54670
54087
|
return json;
|
|
54671
54088
|
};
|
|
54672
54089
|
|
|
54673
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54090
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/prop.js
|
|
54674
54091
|
var intersectProps = (l2, r2, ctx) => {
|
|
54675
54092
|
if (l2.key !== r2.key)
|
|
54676
54093
|
return null;
|
|
@@ -54737,7 +54154,7 @@ class BaseProp extends BaseConstraint {
|
|
|
54737
54154
|
}
|
|
54738
54155
|
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
|
|
54739
54156
|
|
|
54740
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54157
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/optional.js
|
|
54741
54158
|
var implementation11 = implementNode({
|
|
54742
54159
|
kind: "optional",
|
|
54743
54160
|
hasAssociatedError: false,
|
|
@@ -54841,7 +54258,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
|
|
|
54841
54258
|
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
|
|
54842
54259
|
};
|
|
54843
54260
|
|
|
54844
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54261
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/root.js
|
|
54845
54262
|
class BaseRoot extends BaseNode {
|
|
54846
54263
|
constructor(attachments, $2) {
|
|
54847
54264
|
super(attachments, $2);
|
|
@@ -55215,13 +54632,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
|
|
|
55215
54632
|
${expression}`;
|
|
55216
54633
|
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
|
|
55217
54634
|
|
|
55218
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54635
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/utils.js
|
|
55219
54636
|
var defineRightwardIntersections = (kind, implementation12) => flatMorph(schemaKindsRightOf(kind), (i2, kind2) => [
|
|
55220
54637
|
kind2,
|
|
55221
54638
|
implementation12
|
|
55222
54639
|
]);
|
|
55223
54640
|
|
|
55224
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54641
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/alias.js
|
|
55225
54642
|
var normalizeAliasSchema = (schema) => typeof schema === "string" ? { reference: schema } : schema;
|
|
55226
54643
|
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
|
|
55227
54644
|
var implementation12 = implementNode({
|
|
@@ -55329,7 +54746,7 @@ var Alias = {
|
|
|
55329
54746
|
Node: AliasNode
|
|
55330
54747
|
};
|
|
55331
54748
|
|
|
55332
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54749
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/basis.js
|
|
55333
54750
|
class InternalBasis extends BaseRoot {
|
|
55334
54751
|
traverseApply = (data, ctx) => {
|
|
55335
54752
|
if (!this.traverseAllows(data, ctx))
|
|
@@ -55355,7 +54772,7 @@ class InternalBasis extends BaseRoot {
|
|
|
55355
54772
|
}
|
|
55356
54773
|
}
|
|
55357
54774
|
|
|
55358
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54775
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/domain.js
|
|
55359
54776
|
var implementation13 = implementNode({
|
|
55360
54777
|
kind: "domain",
|
|
55361
54778
|
hasAssociatedError: true,
|
|
@@ -55406,7 +54823,7 @@ var Domain = {
|
|
|
55406
54823
|
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
|
|
55407
54824
|
};
|
|
55408
54825
|
|
|
55409
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54826
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/intersection.js
|
|
55410
54827
|
var implementation14 = implementNode({
|
|
55411
54828
|
kind: "intersection",
|
|
55412
54829
|
hasAssociatedError: true,
|
|
@@ -55508,7 +54925,7 @@ var implementation14 = implementNode({
|
|
|
55508
54925
|
if (node.basis && !node.prestructurals.some((r2) => r2.impl.obviatesBasisDescription))
|
|
55509
54926
|
childDescriptions.push(node.basis.description);
|
|
55510
54927
|
if (node.prestructurals.length) {
|
|
55511
|
-
const sortedRefinementDescriptions = node.prestructurals.
|
|
54928
|
+
const sortedRefinementDescriptions = node.prestructurals.slice().sort((l2, r2) => l2.kind === "min" && r2.kind === "max" ? -1 : 0).map((r2) => r2.description);
|
|
55512
54929
|
childDescriptions.push(...sortedRefinementDescriptions);
|
|
55513
54930
|
}
|
|
55514
54931
|
if (node.inner.predicate) {
|
|
@@ -55569,7 +54986,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55569
54986
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
55570
54987
|
return;
|
|
55571
54988
|
}
|
|
55572
|
-
this.prestructurals.
|
|
54989
|
+
this.prestructurals[this.prestructurals.length - 1].traverseApply(data, ctx);
|
|
55573
54990
|
if (ctx.currentErrorCount > errorCount)
|
|
55574
54991
|
return;
|
|
55575
54992
|
}
|
|
@@ -55584,7 +55001,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55584
55001
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
55585
55002
|
return;
|
|
55586
55003
|
}
|
|
55587
|
-
this.inner.predicate.
|
|
55004
|
+
this.inner.predicate[this.inner.predicate.length - 1].traverseApply(data, ctx);
|
|
55588
55005
|
}
|
|
55589
55006
|
};
|
|
55590
55007
|
compile(js) {
|
|
@@ -55605,7 +55022,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55605
55022
|
js.check(this.prestructurals[i2]);
|
|
55606
55023
|
js.returnIfFailFast();
|
|
55607
55024
|
}
|
|
55608
|
-
js.check(this.prestructurals.
|
|
55025
|
+
js.check(this.prestructurals[this.prestructurals.length - 1]);
|
|
55609
55026
|
if (this.structure || this.inner.predicate)
|
|
55610
55027
|
js.returnIfFail();
|
|
55611
55028
|
}
|
|
@@ -55619,7 +55036,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55619
55036
|
js.check(this.inner.predicate[i2]);
|
|
55620
55037
|
js.returnIfFail();
|
|
55621
55038
|
}
|
|
55622
|
-
js.check(this.inner.predicate.
|
|
55039
|
+
js.check(this.inner.predicate[this.inner.predicate.length - 1]);
|
|
55623
55040
|
}
|
|
55624
55041
|
}
|
|
55625
55042
|
}
|
|
@@ -55656,7 +55073,7 @@ var intersectIntersections = (l2, r2, ctx) => {
|
|
|
55656
55073
|
});
|
|
55657
55074
|
};
|
|
55658
55075
|
|
|
55659
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55076
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/morph.js
|
|
55660
55077
|
var implementation15 = implementNode({
|
|
55661
55078
|
kind: "morph",
|
|
55662
55079
|
hasAssociatedError: false,
|
|
@@ -55725,7 +55142,7 @@ var implementation15 = implementNode({
|
|
|
55725
55142
|
class MorphNode extends BaseRoot {
|
|
55726
55143
|
serializedMorphs = this.morphs.map(registeredReference);
|
|
55727
55144
|
compiledMorphs = `[${this.serializedMorphs}]`;
|
|
55728
|
-
lastMorph = this.inner.morphs.
|
|
55145
|
+
lastMorph = this.inner.morphs[this.inner.morphs.length - 1];
|
|
55729
55146
|
lastMorphIfNode = hasArkKind(this.lastMorph, "root") ? this.lastMorph : undefined;
|
|
55730
55147
|
introspectableIn = this.inner.in;
|
|
55731
55148
|
introspectableOut = this.lastMorphIfNode ? Object.assign(this.referencesById, this.lastMorphIfNode.referencesById) && this.lastMorphIfNode.rawOut : undefined;
|
|
@@ -55792,7 +55209,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
|
|
|
55792
55209
|
Left: ${lDescription}
|
|
55793
55210
|
Right: ${rDescription}`;
|
|
55794
55211
|
|
|
55795
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55212
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/proto.js
|
|
55796
55213
|
var implementation16 = implementNode({
|
|
55797
55214
|
kind: "proto",
|
|
55798
55215
|
hasAssociatedError: true,
|
|
@@ -55865,7 +55282,7 @@ var Proto = {
|
|
|
55865
55282
|
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
|
|
55866
55283
|
};
|
|
55867
55284
|
|
|
55868
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55285
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/union.js
|
|
55869
55286
|
var implementation17 = implementNode({
|
|
55870
55287
|
kind: "union",
|
|
55871
55288
|
hasAssociatedError: true,
|
|
@@ -56435,7 +55852,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
|
|
|
56435
55852
|
Left: ${lDescription}
|
|
56436
55853
|
Right: ${rDescription}`;
|
|
56437
55854
|
|
|
56438
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55855
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/unit.js
|
|
56439
55856
|
var implementation18 = implementNode({
|
|
56440
55857
|
kind: "unit",
|
|
56441
55858
|
hasAssociatedError: true,
|
|
@@ -56497,7 +55914,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
|
|
|
56497
55914
|
return `data ${negated ? "!" : "="}== ${serializedValue}`;
|
|
56498
55915
|
};
|
|
56499
55916
|
|
|
56500
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55917
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/index.js
|
|
56501
55918
|
var implementation19 = implementNode({
|
|
56502
55919
|
kind: "index",
|
|
56503
55920
|
hasAssociatedError: false,
|
|
@@ -56574,7 +55991,7 @@ var Index = {
|
|
|
56574
55991
|
var writeEnumerableIndexBranches = (keys2) => `Index keys ${keys2.join(", ")} should be specified as named props.`;
|
|
56575
55992
|
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
|
|
56576
55993
|
|
|
56577
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55994
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/required.js
|
|
56578
55995
|
var implementation20 = implementNode({
|
|
56579
55996
|
kind: "required",
|
|
56580
55997
|
hasAssociatedError: true,
|
|
@@ -56613,7 +56030,7 @@ var Required = {
|
|
|
56613
56030
|
Node: RequiredNode
|
|
56614
56031
|
};
|
|
56615
56032
|
|
|
56616
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56033
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/sequence.js
|
|
56617
56034
|
var implementation21 = implementNode({
|
|
56618
56035
|
kind: "sequence",
|
|
56619
56036
|
hasAssociatedError: false,
|
|
@@ -56699,10 +56116,10 @@ var implementation21 = implementNode({
|
|
|
56699
56116
|
const optionals = raw.optionals?.slice() ?? [];
|
|
56700
56117
|
const postfix = raw.postfix?.slice() ?? [];
|
|
56701
56118
|
if (raw.variadic) {
|
|
56702
|
-
while (optionals.
|
|
56119
|
+
while (optionals[optionals.length - 1]?.equals(raw.variadic))
|
|
56703
56120
|
optionals.pop();
|
|
56704
56121
|
if (optionals.length === 0 && defaultables.length === 0) {
|
|
56705
|
-
while (prefix.
|
|
56122
|
+
while (prefix[prefix.length - 1]?.equals(raw.variadic)) {
|
|
56706
56123
|
prefix.pop();
|
|
56707
56124
|
minVariadicLength++;
|
|
56708
56125
|
}
|
|
@@ -56936,8 +56353,8 @@ var _intersectSequences = (s2) => {
|
|
|
56936
56353
|
const [rHead, ...rTail] = s2.r;
|
|
56937
56354
|
if (!lHead || !rHead)
|
|
56938
56355
|
return s2;
|
|
56939
|
-
const lHasPostfix = lTail.
|
|
56940
|
-
const rHasPostfix = rTail.
|
|
56356
|
+
const lHasPostfix = lTail[lTail.length - 1]?.kind === "postfix";
|
|
56357
|
+
const rHasPostfix = rTail[rTail.length - 1]?.kind === "postfix";
|
|
56941
56358
|
const kind = lHead.kind === "prefix" || rHead.kind === "prefix" ? "prefix" : lHead.kind === "postfix" || rHead.kind === "postfix" ? "postfix" : lHead.kind === "variadic" && rHead.kind === "variadic" ? "variadic" : lHasPostfix || rHasPostfix ? "prefix" : lHead.kind === "defaultables" || rHead.kind === "defaultables" ? "defaultables" : "optionals";
|
|
56942
56359
|
if (lHead.kind === "prefix" && rHead.kind === "variadic" && rHasPostfix) {
|
|
56943
56360
|
const postfixBranchResult = _intersectSequences({
|
|
@@ -56995,7 +56412,7 @@ var _intersectSequences = (s2) => {
|
|
|
56995
56412
|
};
|
|
56996
56413
|
var elementIsRequired = (el) => el.kind === "prefix" || el.kind === "postfix";
|
|
56997
56414
|
|
|
56998
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56415
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/structure.js
|
|
56999
56416
|
var createStructuralWriter = (childStringProp) => (node) => {
|
|
57000
56417
|
if (node.props.length || node.index) {
|
|
57001
56418
|
const parts = node.index?.map((index) => index[childStringProp]) ?? [];
|
|
@@ -57678,7 +57095,7 @@ var typeKeyToString = (k2) => hasArkKind(k2, "root") ? k2.expression : printable
|
|
|
57678
57095
|
var writeInvalidKeysMessage = (o2, keys2) => `Key${keys2.length === 1 ? "" : "s"} ${keys2.map(typeKeyToString).join(", ")} ${keys2.length === 1 ? "does" : "do"} not exist on ${o2}`;
|
|
57679
57096
|
var writeDuplicateKeyMessage = (key) => `Duplicate key ${compileSerializedValue(key)}`;
|
|
57680
57097
|
|
|
57681
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57098
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/kinds.js
|
|
57682
57099
|
var nodeImplementationsByKind = {
|
|
57683
57100
|
...boundImplementationsByKind,
|
|
57684
57101
|
alias: Alias.implementation,
|
|
@@ -57731,7 +57148,7 @@ var nodeClassesByKind = {
|
|
|
57731
57148
|
structure: Structure.Node
|
|
57732
57149
|
};
|
|
57733
57150
|
|
|
57734
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57151
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/module.js
|
|
57735
57152
|
class RootModule extends DynamicBase {
|
|
57736
57153
|
get [arkKind]() {
|
|
57737
57154
|
return "module";
|
|
@@ -57742,7 +57159,7 @@ var bindModule = (module, $2) => new RootModule(flatMorph(module, (alias, value)
|
|
|
57742
57159
|
hasArkKind(value, "module") ? bindModule(value, $2) : $2.bindReference(value)
|
|
57743
57160
|
]));
|
|
57744
57161
|
|
|
57745
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57162
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/scope.js
|
|
57746
57163
|
var schemaBranchesOf = (schema) => isArray(schema) ? schema : ("branches" in schema) && isArray(schema.branches) ? schema.branches : undefined;
|
|
57747
57164
|
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
|
|
57748
57165
|
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
|
|
@@ -58149,12 +57566,12 @@ var node = rootSchemaScope.node;
|
|
|
58149
57566
|
var defineSchema = rootSchemaScope.defineSchema;
|
|
58150
57567
|
var genericNode = rootSchemaScope.generic;
|
|
58151
57568
|
|
|
58152
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57569
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/shared.js
|
|
58153
57570
|
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
|
|
58154
57571
|
var arrayIndexMatcher = new RegExp(arrayIndexSource);
|
|
58155
57572
|
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
|
|
58156
57573
|
|
|
58157
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57574
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/intrinsic.js
|
|
58158
57575
|
var intrinsicBases = schemaScope({
|
|
58159
57576
|
bigint: "bigint",
|
|
58160
57577
|
boolean: [{ unit: false }, { unit: true }],
|
|
@@ -58209,8 +57626,8 @@ $ark.intrinsic = { ...intrinsic };
|
|
|
58209
57626
|
// ../../node_modules/.pnpm/arkregex@0.0.2/node_modules/arkregex/out/regex.js
|
|
58210
57627
|
var regex = (src, flags) => new RegExp(src, flags);
|
|
58211
57628
|
Object.assign(regex, { as: regex });
|
|
58212
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58213
|
-
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value.
|
|
57629
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/date.js
|
|
57630
|
+
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value[value.length - 1] === value[1];
|
|
58214
57631
|
var isValidDate = (d2) => d2.toString() !== "Invalid Date";
|
|
58215
57632
|
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
|
|
58216
57633
|
var writeInvalidDateMessage = (source) => `'${source}' could not be parsed by the Date constructor`;
|
|
@@ -58228,7 +57645,7 @@ var maybeParseDate = (source, errorOnFail) => {
|
|
|
58228
57645
|
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
|
|
58229
57646
|
};
|
|
58230
57647
|
|
|
58231
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57648
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/enclosed.js
|
|
58232
57649
|
var parseEnclosed = (s2, enclosing) => {
|
|
58233
57650
|
const enclosed = s2.scanner.shiftUntilEscapable(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
|
|
58234
57651
|
if (s2.scanner.lookahead === "")
|
|
@@ -58282,12 +57699,12 @@ var enclosingCharDescriptions = {
|
|
|
58282
57699
|
};
|
|
58283
57700
|
var writeUnterminatedEnclosedMessage = (fragment, enclosingStart) => `${enclosingStart}${fragment} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
|
|
58284
57701
|
|
|
58285
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57702
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/ast/validate.js
|
|
58286
57703
|
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
|
|
58287
57704
|
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
|
|
58288
57705
|
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
|
|
58289
57706
|
|
|
58290
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57707
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/tokens.js
|
|
58291
57708
|
var terminatingChars = {
|
|
58292
57709
|
"<": 1,
|
|
58293
57710
|
">": 1,
|
|
@@ -58305,7 +57722,7 @@ var terminatingChars = {
|
|
|
58305
57722
|
};
|
|
58306
57723
|
var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
|
|
58307
57724
|
|
|
58308
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57725
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/genericArgs.js
|
|
58309
57726
|
var parseGenericArgs = (name, g2, s2) => _parseGenericArgs(name, g2, s2, []);
|
|
58310
57727
|
var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
58311
57728
|
const argState = s2.parseUntilFinalizer();
|
|
@@ -58322,7 +57739,7 @@ var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
|
58322
57739
|
};
|
|
58323
57740
|
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
|
|
58324
57741
|
|
|
58325
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57742
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/unenclosed.js
|
|
58326
57743
|
var parseUnenclosed = (s2) => {
|
|
58327
57744
|
const token = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
58328
57745
|
if (token === "keyof")
|
|
@@ -58370,10 +57787,10 @@ var writeMissingOperandMessage = (s2) => {
|
|
|
58370
57787
|
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
58371
57788
|
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
58372
57789
|
|
|
58373
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57790
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/operand.js
|
|
58374
57791
|
var parseOperand = (s2) => s2.scanner.lookahead === "" ? s2.error(writeMissingOperandMessage(s2)) : s2.scanner.lookahead === "(" ? s2.shiftedByOne().reduceGroupOpen() : s2.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s2, s2.scanner.shift()) : s2.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s2.shiftedByOne()) : s2.scanner.lookahead === "d" ? s2.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s2, `${s2.scanner.shift()}${s2.scanner.shift()}`) : parseUnenclosed(s2) : parseUnenclosed(s2);
|
|
58375
57792
|
|
|
58376
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57793
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/shared.js
|
|
58377
57794
|
var minComparators = {
|
|
58378
57795
|
">": true,
|
|
58379
57796
|
">=": true
|
|
@@ -58393,7 +57810,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
|
|
|
58393
57810
|
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
|
|
58394
57811
|
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
|
|
58395
57812
|
|
|
58396
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57813
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/bounds.js
|
|
58397
57814
|
var parseBound = (s2, start) => {
|
|
58398
57815
|
const comparator = shiftComparator(s2, start);
|
|
58399
57816
|
if (s2.root.hasKind("unit")) {
|
|
@@ -58464,14 +57881,14 @@ var parseRightBound = (s2, comparator) => {
|
|
|
58464
57881
|
};
|
|
58465
57882
|
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
|
|
58466
57883
|
|
|
58467
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57884
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/brand.js
|
|
58468
57885
|
var parseBrand = (s2) => {
|
|
58469
57886
|
s2.scanner.shiftUntilNonWhitespace();
|
|
58470
57887
|
const brandName = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
58471
57888
|
s2.root = s2.root.brand(brandName);
|
|
58472
57889
|
};
|
|
58473
57890
|
|
|
58474
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57891
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/divisor.js
|
|
58475
57892
|
var parseDivisor = (s2) => {
|
|
58476
57893
|
s2.scanner.shiftUntilNonWhitespace();
|
|
58477
57894
|
const divisorToken = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
@@ -58484,7 +57901,7 @@ var parseDivisor = (s2) => {
|
|
|
58484
57901
|
};
|
|
58485
57902
|
var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
|
|
58486
57903
|
|
|
58487
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57904
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/operator.js
|
|
58488
57905
|
var parseOperator = (s2) => {
|
|
58489
57906
|
const lookahead = s2.scanner.shift();
|
|
58490
57907
|
return lookahead === "" ? s2.finalize("") : lookahead === "[" ? s2.scanner.shift() === "]" ? s2.setRoot(s2.root.array()) : s2.error(incompleteArrayTokenMessage) : lookahead === "|" ? s2.scanner.lookahead === ">" ? s2.shiftedByOne().pushRootToBranch("|>") : s2.pushRootToBranch(lookahead) : lookahead === "&" ? s2.pushRootToBranch(lookahead) : lookahead === ")" ? s2.finalizeGroup() : lookaheadIsFinalizing(lookahead, s2.scanner.unscanned) ? s2.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s2, lookahead) : lookahead === "%" ? parseDivisor(s2) : lookahead === "#" ? parseBrand(s2) : (lookahead in whitespaceChars) ? parseOperator(s2) : s2.error(writeUnexpectedCharacterMessage(lookahead));
|
|
@@ -58492,7 +57909,7 @@ var parseOperator = (s2) => {
|
|
|
58492
57909
|
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
|
|
58493
57910
|
var incompleteArrayTokenMessage = `Missing expected ']'`;
|
|
58494
57911
|
|
|
58495
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57912
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/default.js
|
|
58496
57913
|
var parseDefault = (s2) => {
|
|
58497
57914
|
const baseNode = s2.unsetRoot();
|
|
58498
57915
|
s2.parseOperand();
|
|
@@ -58504,7 +57921,7 @@ var parseDefault = (s2) => {
|
|
|
58504
57921
|
};
|
|
58505
57922
|
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
|
|
58506
57923
|
|
|
58507
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57924
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/string.js
|
|
58508
57925
|
var parseString = (def, ctx) => {
|
|
58509
57926
|
const aliasResolution = ctx.$.maybeResolveRoot(def);
|
|
58510
57927
|
if (aliasResolution)
|
|
@@ -58543,7 +57960,7 @@ var parseUntilFinalizer = (s2) => {
|
|
|
58543
57960
|
};
|
|
58544
57961
|
var next = (s2) => s2.hasRoot() ? s2.parseOperator() : s2.parseOperand();
|
|
58545
57962
|
|
|
58546
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57963
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/dynamic.js
|
|
58547
57964
|
class RuntimeState {
|
|
58548
57965
|
root;
|
|
58549
57966
|
branches = {
|
|
@@ -58672,7 +58089,7 @@ class RuntimeState {
|
|
|
58672
58089
|
};
|
|
58673
58090
|
}
|
|
58674
58091
|
previousOperator() {
|
|
58675
|
-
return this.branches.leftBound?.comparator ?? this.branches.prefixes.
|
|
58092
|
+
return this.branches.leftBound?.comparator ?? this.branches.prefixes[this.branches.prefixes.length - 1] ?? (this.branches.intersection ? "&" : this.branches.union ? "|" : this.branches.pipe ? "|>" : undefined);
|
|
58676
58093
|
}
|
|
58677
58094
|
shiftedByOne() {
|
|
58678
58095
|
this.scanner.shift();
|
|
@@ -58680,7 +58097,7 @@ class RuntimeState {
|
|
|
58680
58097
|
}
|
|
58681
58098
|
}
|
|
58682
58099
|
|
|
58683
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58100
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/generic.js
|
|
58684
58101
|
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
|
|
58685
58102
|
var parseGenericParamName = (scanner2, result, ctx) => {
|
|
58686
58103
|
scanner2.shiftUntilNonWhitespace();
|
|
@@ -58708,7 +58125,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
|
|
|
58708
58125
|
result.push([name, s2.root]);
|
|
58709
58126
|
return parseGenericParamName(scanner2, result, ctx);
|
|
58710
58127
|
};
|
|
58711
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58128
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/fn.js
|
|
58712
58129
|
class InternalFnParser extends Callable {
|
|
58713
58130
|
constructor($2) {
|
|
58714
58131
|
const attach = {
|
|
@@ -58750,7 +58167,7 @@ class InternalTypedFn extends Callable {
|
|
|
58750
58167
|
this.params = params;
|
|
58751
58168
|
this.returns = returns;
|
|
58752
58169
|
let argsExpression = params.expression;
|
|
58753
|
-
if (argsExpression[0] === "[" && argsExpression.
|
|
58170
|
+
if (argsExpression[0] === "[" && argsExpression[argsExpression.length - 1] === "]")
|
|
58754
58171
|
argsExpression = argsExpression.slice(1, -1);
|
|
58755
58172
|
else if (argsExpression.endsWith("[]"))
|
|
58756
58173
|
argsExpression = `...${argsExpression}`;
|
|
@@ -58760,7 +58177,7 @@ class InternalTypedFn extends Callable {
|
|
|
58760
58177
|
var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
|
|
58761
58178
|
fn("string", ":", "number")(s => s.length)`;
|
|
58762
58179
|
|
|
58763
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58180
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/match.js
|
|
58764
58181
|
class InternalMatchParser extends Callable {
|
|
58765
58182
|
$;
|
|
58766
58183
|
constructor($2) {
|
|
@@ -58854,7 +58271,7 @@ var throwOnDefault = (errors3) => errors3.throw();
|
|
|
58854
58271
|
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
|
|
58855
58272
|
var doubleAtMessage = `At most one key matcher may be specified per expression`;
|
|
58856
58273
|
|
|
58857
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58274
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/property.js
|
|
58858
58275
|
var parseProperty = (def, ctx) => {
|
|
58859
58276
|
if (isArray(def)) {
|
|
58860
58277
|
if (def[1] === "=")
|
|
@@ -58867,7 +58284,7 @@ var parseProperty = (def, ctx) => {
|
|
|
58867
58284
|
var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
|
|
58868
58285
|
var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
|
|
58869
58286
|
|
|
58870
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58287
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/objectLiteral.js
|
|
58871
58288
|
var parseObjectLiteral = (def, ctx) => {
|
|
58872
58289
|
let spread;
|
|
58873
58290
|
const structure3 = {};
|
|
@@ -58943,16 +58360,16 @@ var appendNamedProp = (structure3, kind, inner, ctx) => {
|
|
|
58943
58360
|
};
|
|
58944
58361
|
var writeInvalidUndeclaredBehaviorMessage = (actual) => `Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${printable(actual)})`;
|
|
58945
58362
|
var nonLeadingSpreadError = "Spread operator may only be used as the first key in an object";
|
|
58946
|
-
var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normalized: key } : key.
|
|
58363
|
+
var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normalized: key } : key[key.length - 1] === "?" ? key[key.length - 2] === Backslash ? { kind: "required", normalized: `${key.slice(0, -2)}?` } : {
|
|
58947
58364
|
kind: "optional",
|
|
58948
58365
|
normalized: key.slice(0, -1)
|
|
58949
|
-
} : key[0] === "[" && key.
|
|
58366
|
+
} : key[0] === "[" && key[key.length - 1] === "]" ? { kind: "index", normalized: key.slice(1, -1) } : key[0] === Backslash && key[1] === "[" && key[key.length - 1] === "]" ? { kind: "required", normalized: key.slice(1) } : key === "..." ? { kind: "spread" } : key === "+" ? { kind: "undeclared" } : {
|
|
58950
58367
|
kind: "required",
|
|
58951
58368
|
normalized: key === "\\..." ? "..." : key === "\\+" ? "+" : key
|
|
58952
58369
|
};
|
|
58953
58370
|
var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
|
|
58954
58371
|
|
|
58955
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58372
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleExpressions.js
|
|
58956
58373
|
var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
|
|
58957
58374
|
var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
|
|
58958
58375
|
var parseBranchTuple = (def, ctx) => {
|
|
@@ -59013,7 +58430,7 @@ var indexZeroParsers = defineIndexZeroParsers({
|
|
|
59013
58430
|
var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
|
|
59014
58431
|
var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
|
|
59015
58432
|
|
|
59016
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58433
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleLiteral.js
|
|
59017
58434
|
var parseTupleLiteral = (def, ctx) => {
|
|
59018
58435
|
let sequences = [{}];
|
|
59019
58436
|
let i2 = 0;
|
|
@@ -59109,7 +58526,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
|
|
|
59109
58526
|
var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
|
|
59110
58527
|
var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
|
|
59111
58528
|
|
|
59112
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58529
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/definition.js
|
|
59113
58530
|
var parseCache = {};
|
|
59114
58531
|
var parseInnerDefinition = (def, ctx) => {
|
|
59115
58532
|
if (typeof def === "string") {
|
|
@@ -59148,7 +58565,7 @@ var parseObject = (def, ctx) => {
|
|
|
59148
58565
|
var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
|
|
59149
58566
|
var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
|
|
59150
58567
|
|
|
59151
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58568
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/type.js
|
|
59152
58569
|
class InternalTypeParser extends Callable {
|
|
59153
58570
|
constructor($2) {
|
|
59154
58571
|
const attach = Object.assign({
|
|
@@ -59178,7 +58595,7 @@ class InternalTypeParser extends Callable {
|
|
|
59178
58595
|
if (args2.length === 1) {
|
|
59179
58596
|
return $2.parse(args2[0]);
|
|
59180
58597
|
}
|
|
59181
|
-
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0].
|
|
58598
|
+
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0][args2[0].length - 1] === ">") {
|
|
59182
58599
|
const paramString = args2[0].slice(1, -1);
|
|
59183
58600
|
const params = $2.parseGenericParams(paramString, {});
|
|
59184
58601
|
return new GenericRoot(params, args2[1], $2, $2, null);
|
|
@@ -59190,7 +58607,7 @@ class InternalTypeParser extends Callable {
|
|
|
59190
58607
|
}
|
|
59191
58608
|
}
|
|
59192
58609
|
|
|
59193
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58610
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/scope.js
|
|
59194
58611
|
var $arkTypeRegistry = $ark;
|
|
59195
58612
|
|
|
59196
58613
|
class InternalScope extends BaseScope {
|
|
@@ -59213,7 +58630,7 @@ class InternalScope extends BaseScope {
|
|
|
59213
58630
|
def = [def, "@", config2];
|
|
59214
58631
|
return [alias, def];
|
|
59215
58632
|
}
|
|
59216
|
-
if (alias.
|
|
58633
|
+
if (alias[alias.length - 1] !== ">") {
|
|
59217
58634
|
throwParseError(`'>' must be the last character of a generic declaration in a scope`);
|
|
59218
58635
|
}
|
|
59219
58636
|
const name = alias.slice(0, firstParamIndex);
|
|
@@ -59284,7 +58701,7 @@ var scope2 = Object.assign(InternalScope.scope, {
|
|
|
59284
58701
|
});
|
|
59285
58702
|
var Scope = InternalScope;
|
|
59286
58703
|
|
|
59287
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58704
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/builtins.js
|
|
59288
58705
|
class MergeHkt extends Hkt {
|
|
59289
58706
|
description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
|
|
59290
58707
|
}
|
|
@@ -59294,7 +58711,7 @@ var arkBuiltins = Scope.module({
|
|
|
59294
58711
|
Merge
|
|
59295
58712
|
});
|
|
59296
58713
|
|
|
59297
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58714
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/Array.js
|
|
59298
58715
|
class liftFromHkt extends Hkt {
|
|
59299
58716
|
}
|
|
59300
58717
|
var liftFrom = genericNode("element")((args2) => {
|
|
@@ -59311,7 +58728,7 @@ var arkArray = Scope.module({
|
|
|
59311
58728
|
name: "Array"
|
|
59312
58729
|
});
|
|
59313
58730
|
|
|
59314
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58731
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/FormData.js
|
|
59315
58732
|
var value = rootSchema(["string", registry.FileConstructor]);
|
|
59316
58733
|
var parsedFormDataValue = value.rawOr(value.array());
|
|
59317
58734
|
var parsed = rootSchema({
|
|
@@ -59348,7 +58765,7 @@ var arkFormData = Scope.module({
|
|
|
59348
58765
|
name: "FormData"
|
|
59349
58766
|
});
|
|
59350
58767
|
|
|
59351
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58768
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/TypedArray.js
|
|
59352
58769
|
var TypedArray = Scope.module({
|
|
59353
58770
|
Int8: ["instanceof", Int8Array],
|
|
59354
58771
|
Uint8: ["instanceof", Uint8Array],
|
|
@@ -59365,7 +58782,7 @@ var TypedArray = Scope.module({
|
|
|
59365
58782
|
name: "TypedArray"
|
|
59366
58783
|
});
|
|
59367
58784
|
|
|
59368
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58785
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/constructors.js
|
|
59369
58786
|
var omittedPrototypes = {
|
|
59370
58787
|
Boolean: 1,
|
|
59371
58788
|
Number: 1,
|
|
@@ -59378,7 +58795,7 @@ var arkPrototypes = Scope.module({
|
|
|
59378
58795
|
FormData: arkFormData
|
|
59379
58796
|
});
|
|
59380
58797
|
|
|
59381
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58798
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/number.js
|
|
59382
58799
|
var epoch = rootSchema({
|
|
59383
58800
|
domain: {
|
|
59384
58801
|
domain: "number",
|
|
@@ -59421,7 +58838,7 @@ var number = Scope.module({
|
|
|
59421
58838
|
name: "number"
|
|
59422
58839
|
});
|
|
59423
58840
|
|
|
59424
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58841
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/string.js
|
|
59425
58842
|
var regexStringNode = (regex2, description, jsonSchemaFormat) => {
|
|
59426
58843
|
const schema = {
|
|
59427
58844
|
domain: "string",
|
|
@@ -59468,7 +58885,7 @@ var capitalize3 = Scope.module({
|
|
|
59468
58885
|
name: "string.capitalize"
|
|
59469
58886
|
});
|
|
59470
58887
|
var isLuhnValid = (creditCardInput) => {
|
|
59471
|
-
const sanitized = creditCardInput.
|
|
58888
|
+
const sanitized = creditCardInput.replace(/[ -]+/g, "");
|
|
59472
58889
|
let sum = 0;
|
|
59473
58890
|
let digit;
|
|
59474
58891
|
let tmpNum;
|
|
@@ -59812,7 +59229,7 @@ var string = Scope.module({
|
|
|
59812
59229
|
name: "string"
|
|
59813
59230
|
});
|
|
59814
59231
|
|
|
59815
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59232
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/ts.js
|
|
59816
59233
|
var arkTsKeywords = Scope.module({
|
|
59817
59234
|
bigint: intrinsic.bigint,
|
|
59818
59235
|
boolean: intrinsic.boolean,
|
|
@@ -59900,7 +59317,7 @@ var arkTsGenerics = Scope.module({
|
|
|
59900
59317
|
Required: Required2
|
|
59901
59318
|
});
|
|
59902
59319
|
|
|
59903
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59320
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/keywords.js
|
|
59904
59321
|
var ark = scope2({
|
|
59905
59322
|
...arkTsKeywords,
|
|
59906
59323
|
...arkTsGenerics,
|
|
@@ -60051,11 +59468,10 @@ var SyncGroup = class SyncGroup2 {
|
|
|
60051
59468
|
return this;
|
|
60052
59469
|
}
|
|
60053
59470
|
};
|
|
60054
|
-
var
|
|
60055
|
-
|
|
60056
|
-
|
|
60057
|
-
|
|
60058
|
-
var roomIndex = mutableAtom({
|
|
59471
|
+
var isSocketKey = (key) => key.startsWith(`socket::`);
|
|
59472
|
+
var isUserKey = (key) => key.startsWith(`user::`);
|
|
59473
|
+
var isRoomKey = (key) => key.startsWith(`room::`);
|
|
59474
|
+
var roomKeysAtom = mutableAtom({
|
|
60059
59475
|
key: `roomIndex`,
|
|
60060
59476
|
class: UList
|
|
60061
59477
|
});
|
|
@@ -60063,8 +59479,8 @@ var usersInRooms = join({
|
|
|
60063
59479
|
key: `usersInRooms`,
|
|
60064
59480
|
between: [`room`, `user`],
|
|
60065
59481
|
cardinality: `1:n`,
|
|
60066
|
-
isAType:
|
|
60067
|
-
isBType:
|
|
59482
|
+
isAType: isRoomKey,
|
|
59483
|
+
isBType: isUserKey
|
|
60068
59484
|
});
|
|
60069
59485
|
var usersInMyRoomView = selectorFamily({
|
|
60070
59486
|
key: `usersInMyRoomView`,
|
|
@@ -60415,54 +59831,15 @@ var ParentSocket = class extends CustomSocket {
|
|
|
60415
59831
|
this.relayServices.push(attachServices);
|
|
60416
59832
|
}
|
|
60417
59833
|
};
|
|
60418
|
-
var ROOMS = /* @__PURE__ */ new Map;
|
|
60419
|
-
var joinRoomTX = transaction({
|
|
60420
|
-
key: `joinRoom`,
|
|
60421
|
-
do: (tools, roomId, userId, enteredAtEpoch) => {
|
|
60422
|
-
const meta = { enteredAtEpoch };
|
|
60423
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60424
|
-
relations.set({
|
|
60425
|
-
room: roomId,
|
|
60426
|
-
user: userId
|
|
60427
|
-
});
|
|
60428
|
-
}, tools.env().store);
|
|
60429
|
-
return meta;
|
|
60430
|
-
}
|
|
60431
|
-
});
|
|
60432
|
-
var leaveRoomTX = transaction({
|
|
60433
|
-
key: `leaveRoom`,
|
|
60434
|
-
do: ({ env: env3 }, roomId, userId) => {
|
|
60435
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60436
|
-
relations.delete({
|
|
60437
|
-
room: roomId,
|
|
60438
|
-
user: userId
|
|
60439
|
-
});
|
|
60440
|
-
}, env3().store);
|
|
60441
|
-
}
|
|
60442
|
-
});
|
|
60443
|
-
var destroyRoomTX = transaction({
|
|
60444
|
-
key: `destroyRoom`,
|
|
60445
|
-
do: ({ set, env: env3 }, roomId) => {
|
|
60446
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60447
|
-
relations.delete({ room: roomId });
|
|
60448
|
-
}, env3().store);
|
|
60449
|
-
set(roomIndex, (s2) => (s2.delete(roomId), s2));
|
|
60450
|
-
const room = ROOMS.get(roomId);
|
|
60451
|
-
if (room) {
|
|
60452
|
-
room.emit(`exit`);
|
|
60453
|
-
ROOMS.delete(roomId);
|
|
60454
|
-
}
|
|
60455
|
-
}
|
|
60456
|
-
});
|
|
60457
59834
|
var socketAtoms = atomFamily({
|
|
60458
59835
|
key: `sockets`,
|
|
60459
59836
|
default: null
|
|
60460
59837
|
});
|
|
60461
|
-
var
|
|
59838
|
+
var socketKeysAtom = mutableAtom({
|
|
60462
59839
|
key: `socketsIndex`,
|
|
60463
59840
|
class: UList
|
|
60464
59841
|
});
|
|
60465
|
-
var
|
|
59842
|
+
var userKeysAtom = mutableAtom({
|
|
60466
59843
|
key: `usersIndex`,
|
|
60467
59844
|
class: UList
|
|
60468
59845
|
});
|
|
@@ -60470,15 +59847,14 @@ var usersOfSockets = join({
|
|
|
60470
59847
|
key: `usersOfSockets`,
|
|
60471
59848
|
between: [`user`, `socket`],
|
|
60472
59849
|
cardinality: `1:1`,
|
|
60473
|
-
isAType:
|
|
60474
|
-
isBType:
|
|
59850
|
+
isAType: isUserKey,
|
|
59851
|
+
isBType: isSocketKey
|
|
60475
59852
|
});
|
|
60476
|
-
var
|
|
60477
|
-
key: `
|
|
60478
|
-
get: (userId) => () =>
|
|
60479
|
-
return [userId];
|
|
60480
|
-
}
|
|
59853
|
+
var selfListSelectors = selectorFamily({
|
|
59854
|
+
key: `selfList`,
|
|
59855
|
+
get: (userId) => () => [userId]
|
|
60481
59856
|
});
|
|
59857
|
+
var ROOMS = globalThis.ATOM_IO_REALTIME_SERVER_ROOMS ?? (globalThis.ATOM_IO_REALTIME_SERVER_ROOMS = /* @__PURE__ */ new Map);
|
|
60482
59858
|
|
|
60483
59859
|
// src/backend.worker.ts
|
|
60484
59860
|
function worker(from, name, logger = from.logger) {
|
|
@@ -60496,7 +59872,7 @@ function worker(from, name, logger = from.logger) {
|
|
|
60496
59872
|
// src/database/tempest-db-manager.ts
|
|
60497
59873
|
import path2 from "path";
|
|
60498
59874
|
|
|
60499
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59875
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/entity.js
|
|
60500
59876
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
60501
59877
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
60502
59878
|
function is(value2, type2) {
|
|
@@ -60521,7 +59897,7 @@ function is(value2, type2) {
|
|
|
60521
59897
|
return false;
|
|
60522
59898
|
}
|
|
60523
59899
|
|
|
60524
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59900
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/column.js
|
|
60525
59901
|
class Column {
|
|
60526
59902
|
constructor(table, config3) {
|
|
60527
59903
|
this.table = table;
|
|
@@ -60571,7 +59947,7 @@ class Column {
|
|
|
60571
59947
|
}
|
|
60572
59948
|
}
|
|
60573
59949
|
|
|
60574
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59950
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/column-builder.js
|
|
60575
59951
|
class ColumnBuilder {
|
|
60576
59952
|
static [entityKind] = "ColumnBuilder";
|
|
60577
59953
|
config;
|
|
@@ -60627,10 +60003,10 @@ class ColumnBuilder {
|
|
|
60627
60003
|
}
|
|
60628
60004
|
}
|
|
60629
60005
|
|
|
60630
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60006
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/table.utils.js
|
|
60631
60007
|
var TableName = Symbol.for("drizzle:Name");
|
|
60632
60008
|
|
|
60633
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60009
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
60634
60010
|
class ForeignKeyBuilder {
|
|
60635
60011
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
60636
60012
|
reference;
|
|
@@ -60684,17 +60060,17 @@ class ForeignKey {
|
|
|
60684
60060
|
}
|
|
60685
60061
|
}
|
|
60686
60062
|
|
|
60687
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60063
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/tracing-utils.js
|
|
60688
60064
|
function iife(fn3, ...args2) {
|
|
60689
60065
|
return fn3(...args2);
|
|
60690
60066
|
}
|
|
60691
60067
|
|
|
60692
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60068
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
60693
60069
|
function uniqueKeyName(table, columns) {
|
|
60694
60070
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
60695
60071
|
}
|
|
60696
60072
|
|
|
60697
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60073
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
60698
60074
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
60699
60075
|
for (let i2 = startFrom;i2 < arrayString.length; i2++) {
|
|
60700
60076
|
const char = arrayString[i2];
|
|
@@ -60770,7 +60146,7 @@ function makePgArray(array) {
|
|
|
60770
60146
|
}).join(",")}}`;
|
|
60771
60147
|
}
|
|
60772
60148
|
|
|
60773
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60149
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
60774
60150
|
class PgColumnBuilder extends ColumnBuilder {
|
|
60775
60151
|
foreignKeyConfigs = [];
|
|
60776
60152
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -60918,7 +60294,7 @@ class PgArray extends PgColumn {
|
|
|
60918
60294
|
}
|
|
60919
60295
|
}
|
|
60920
60296
|
|
|
60921
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60297
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
60922
60298
|
class PgEnumObjectColumnBuilder extends PgColumnBuilder {
|
|
60923
60299
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
60924
60300
|
constructor(name, enumInstance) {
|
|
@@ -60992,7 +60368,7 @@ function pgEnumObjectWithSchema(enumName, values, schema2) {
|
|
|
60992
60368
|
return enumInstance;
|
|
60993
60369
|
}
|
|
60994
60370
|
|
|
60995
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60371
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/subquery.js
|
|
60996
60372
|
class Subquery {
|
|
60997
60373
|
static [entityKind] = "Subquery";
|
|
60998
60374
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -61011,10 +60387,10 @@ class WithSubquery extends Subquery {
|
|
|
61011
60387
|
static [entityKind] = "WithSubquery";
|
|
61012
60388
|
}
|
|
61013
60389
|
|
|
61014
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60390
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/version.js
|
|
61015
60391
|
var version = "0.44.7";
|
|
61016
60392
|
|
|
61017
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60393
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/tracing.js
|
|
61018
60394
|
var otel;
|
|
61019
60395
|
var rawTracer;
|
|
61020
60396
|
var tracer = {
|
|
@@ -61041,10 +60417,10 @@ var tracer = {
|
|
|
61041
60417
|
}
|
|
61042
60418
|
};
|
|
61043
60419
|
|
|
61044
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60420
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/view-common.js
|
|
61045
60421
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
61046
60422
|
|
|
61047
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60423
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/table.js
|
|
61048
60424
|
var Schema = Symbol.for("drizzle:Schema");
|
|
61049
60425
|
var Columns = Symbol.for("drizzle:Columns");
|
|
61050
60426
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -61088,7 +60464,7 @@ function getTableUniqueName(table) {
|
|
|
61088
60464
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
61089
60465
|
}
|
|
61090
60466
|
|
|
61091
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60467
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/sql.js
|
|
61092
60468
|
function isSQLWrapper(value2) {
|
|
61093
60469
|
return value2 !== null && value2 !== undefined && typeof value2.getSQL === "function";
|
|
61094
60470
|
}
|
|
@@ -61468,7 +60844,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
61468
60844
|
return new SQL([this]);
|
|
61469
60845
|
};
|
|
61470
60846
|
|
|
61471
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60847
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/alias.js
|
|
61472
60848
|
class ColumnAliasProxyHandler {
|
|
61473
60849
|
constructor(table) {
|
|
61474
60850
|
this.table = table;
|
|
@@ -61547,7 +60923,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
61547
60923
|
}));
|
|
61548
60924
|
}
|
|
61549
60925
|
|
|
61550
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60926
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/errors.js
|
|
61551
60927
|
class DrizzleError extends Error {
|
|
61552
60928
|
static [entityKind] = "DrizzleError";
|
|
61553
60929
|
constructor({ message, cause }) {
|
|
@@ -61577,7 +60953,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
61577
60953
|
}
|
|
61578
60954
|
}
|
|
61579
60955
|
|
|
61580
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60956
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/logger.js
|
|
61581
60957
|
class ConsoleLogWriter {
|
|
61582
60958
|
static [entityKind] = "ConsoleLogWriter";
|
|
61583
60959
|
write(message) {
|
|
@@ -61609,7 +60985,7 @@ class NoopLogger {
|
|
|
61609
60985
|
logQuery() {}
|
|
61610
60986
|
}
|
|
61611
60987
|
|
|
61612
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60988
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/query-promise.js
|
|
61613
60989
|
class QueryPromise {
|
|
61614
60990
|
static [entityKind] = "QueryPromise";
|
|
61615
60991
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -61630,7 +61006,7 @@ class QueryPromise {
|
|
|
61630
61006
|
}
|
|
61631
61007
|
}
|
|
61632
61008
|
|
|
61633
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61009
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/utils.js
|
|
61634
61010
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
61635
61011
|
const nullifyMap = {};
|
|
61636
61012
|
const result = columns.reduce((result2, { path: path2, field }, columnIndex) => {
|
|
@@ -61782,7 +61158,7 @@ function isConfig(data) {
|
|
|
61782
61158
|
}
|
|
61783
61159
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
61784
61160
|
|
|
61785
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61161
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
61786
61162
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
61787
61163
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
61788
61164
|
generatedAlwaysAsIdentity(sequence2) {
|
|
@@ -61821,7 +61197,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
61821
61197
|
}
|
|
61822
61198
|
}
|
|
61823
61199
|
|
|
61824
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61200
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
61825
61201
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
61826
61202
|
static [entityKind] = "PgBigInt53Builder";
|
|
61827
61203
|
constructor(name) {
|
|
@@ -61872,7 +61248,7 @@ function bigint(a2, b2) {
|
|
|
61872
61248
|
return new PgBigInt64Builder(name);
|
|
61873
61249
|
}
|
|
61874
61250
|
|
|
61875
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61251
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
61876
61252
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
61877
61253
|
static [entityKind] = "PgBigSerial53Builder";
|
|
61878
61254
|
constructor(name) {
|
|
@@ -61926,7 +61302,7 @@ function bigserial(a2, b2) {
|
|
|
61926
61302
|
return new PgBigSerial64Builder(name);
|
|
61927
61303
|
}
|
|
61928
61304
|
|
|
61929
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61305
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
61930
61306
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
61931
61307
|
static [entityKind] = "PgBooleanBuilder";
|
|
61932
61308
|
constructor(name) {
|
|
@@ -61947,7 +61323,7 @@ function boolean(name) {
|
|
|
61947
61323
|
return new PgBooleanBuilder(name ?? "");
|
|
61948
61324
|
}
|
|
61949
61325
|
|
|
61950
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61326
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/char.js
|
|
61951
61327
|
class PgCharBuilder extends PgColumnBuilder {
|
|
61952
61328
|
static [entityKind] = "PgCharBuilder";
|
|
61953
61329
|
constructor(name, config3) {
|
|
@@ -61973,7 +61349,7 @@ function char(a2, b2 = {}) {
|
|
|
61973
61349
|
return new PgCharBuilder(name, config3);
|
|
61974
61350
|
}
|
|
61975
61351
|
|
|
61976
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61352
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
61977
61353
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
61978
61354
|
static [entityKind] = "PgCidrBuilder";
|
|
61979
61355
|
constructor(name) {
|
|
@@ -61994,7 +61370,7 @@ function cidr(name) {
|
|
|
61994
61370
|
return new PgCidrBuilder(name ?? "");
|
|
61995
61371
|
}
|
|
61996
61372
|
|
|
61997
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61373
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
61998
61374
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
61999
61375
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
62000
61376
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -62035,7 +61411,7 @@ function customType(customTypeParams) {
|
|
|
62035
61411
|
};
|
|
62036
61412
|
}
|
|
62037
61413
|
|
|
62038
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61414
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
62039
61415
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
62040
61416
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
62041
61417
|
defaultNow() {
|
|
@@ -62043,7 +61419,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
62043
61419
|
}
|
|
62044
61420
|
}
|
|
62045
61421
|
|
|
62046
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61422
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
62047
61423
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
62048
61424
|
static [entityKind] = "PgDateBuilder";
|
|
62049
61425
|
constructor(name) {
|
|
@@ -62091,7 +61467,7 @@ function date(a2, b2) {
|
|
|
62091
61467
|
return new PgDateStringBuilder(name);
|
|
62092
61468
|
}
|
|
62093
61469
|
|
|
62094
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61470
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
62095
61471
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
62096
61472
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
62097
61473
|
constructor(name) {
|
|
@@ -62118,7 +61494,7 @@ function doublePrecision(name) {
|
|
|
62118
61494
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
62119
61495
|
}
|
|
62120
61496
|
|
|
62121
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61497
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
62122
61498
|
class PgInetBuilder extends PgColumnBuilder {
|
|
62123
61499
|
static [entityKind] = "PgInetBuilder";
|
|
62124
61500
|
constructor(name) {
|
|
@@ -62139,7 +61515,7 @@ function inet(name) {
|
|
|
62139
61515
|
return new PgInetBuilder(name ?? "");
|
|
62140
61516
|
}
|
|
62141
61517
|
|
|
62142
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61518
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
62143
61519
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
62144
61520
|
static [entityKind] = "PgIntegerBuilder";
|
|
62145
61521
|
constructor(name) {
|
|
@@ -62166,7 +61542,7 @@ function integer2(name) {
|
|
|
62166
61542
|
return new PgIntegerBuilder(name ?? "");
|
|
62167
61543
|
}
|
|
62168
61544
|
|
|
62169
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61545
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
62170
61546
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
62171
61547
|
static [entityKind] = "PgIntervalBuilder";
|
|
62172
61548
|
constructor(name, intervalConfig) {
|
|
@@ -62193,7 +61569,7 @@ function interval(a2, b2 = {}) {
|
|
|
62193
61569
|
return new PgIntervalBuilder(name, config3);
|
|
62194
61570
|
}
|
|
62195
61571
|
|
|
62196
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61572
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
62197
61573
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
62198
61574
|
static [entityKind] = "PgJsonBuilder";
|
|
62199
61575
|
constructor(name) {
|
|
@@ -62230,7 +61606,7 @@ function json3(name) {
|
|
|
62230
61606
|
return new PgJsonBuilder(name ?? "");
|
|
62231
61607
|
}
|
|
62232
61608
|
|
|
62233
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61609
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
62234
61610
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
62235
61611
|
static [entityKind] = "PgJsonbBuilder";
|
|
62236
61612
|
constructor(name) {
|
|
@@ -62267,7 +61643,7 @@ function jsonb(name) {
|
|
|
62267
61643
|
return new PgJsonbBuilder(name ?? "");
|
|
62268
61644
|
}
|
|
62269
61645
|
|
|
62270
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61646
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/line.js
|
|
62271
61647
|
class PgLineBuilder extends PgColumnBuilder {
|
|
62272
61648
|
static [entityKind] = "PgLineBuilder";
|
|
62273
61649
|
constructor(name) {
|
|
@@ -62323,7 +61699,7 @@ function line(a2, b2) {
|
|
|
62323
61699
|
return new PgLineABCBuilder(name);
|
|
62324
61700
|
}
|
|
62325
61701
|
|
|
62326
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61702
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
62327
61703
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
62328
61704
|
static [entityKind] = "PgMacaddrBuilder";
|
|
62329
61705
|
constructor(name) {
|
|
@@ -62344,7 +61720,7 @@ function macaddr(name) {
|
|
|
62344
61720
|
return new PgMacaddrBuilder(name ?? "");
|
|
62345
61721
|
}
|
|
62346
61722
|
|
|
62347
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61723
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
62348
61724
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
62349
61725
|
static [entityKind] = "PgMacaddr8Builder";
|
|
62350
61726
|
constructor(name) {
|
|
@@ -62365,7 +61741,7 @@ function macaddr8(name) {
|
|
|
62365
61741
|
return new PgMacaddr8Builder(name ?? "");
|
|
62366
61742
|
}
|
|
62367
61743
|
|
|
62368
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61744
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
62369
61745
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
62370
61746
|
static [entityKind] = "PgNumericBuilder";
|
|
62371
61747
|
constructor(name, precision, scale) {
|
|
@@ -62480,7 +61856,7 @@ function numeric(a2, b2) {
|
|
|
62480
61856
|
return mode === "number" ? new PgNumericNumberBuilder(name, config3?.precision, config3?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config3?.precision, config3?.scale) : new PgNumericBuilder(name, config3?.precision, config3?.scale);
|
|
62481
61857
|
}
|
|
62482
61858
|
|
|
62483
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61859
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/point.js
|
|
62484
61860
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
62485
61861
|
static [entityKind] = "PgPointTupleBuilder";
|
|
62486
61862
|
constructor(name) {
|
|
@@ -62542,7 +61918,7 @@ function point(a2, b2) {
|
|
|
62542
61918
|
return new PgPointObjectBuilder(name);
|
|
62543
61919
|
}
|
|
62544
61920
|
|
|
62545
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61921
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
62546
61922
|
function hexToBytes(hex2) {
|
|
62547
61923
|
const bytes = [];
|
|
62548
61924
|
for (let c2 = 0;c2 < hex2.length; c2 += 2) {
|
|
@@ -62581,7 +61957,7 @@ function parseEWKB(hex2) {
|
|
|
62581
61957
|
throw new Error("Unsupported geometry type");
|
|
62582
61958
|
}
|
|
62583
61959
|
|
|
62584
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61960
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
62585
61961
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
62586
61962
|
static [entityKind] = "PgGeometryBuilder";
|
|
62587
61963
|
constructor(name) {
|
|
@@ -62636,7 +62012,7 @@ function geometry(a2, b2) {
|
|
|
62636
62012
|
return new PgGeometryObjectBuilder(name);
|
|
62637
62013
|
}
|
|
62638
62014
|
|
|
62639
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62015
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/real.js
|
|
62640
62016
|
class PgRealBuilder extends PgColumnBuilder {
|
|
62641
62017
|
static [entityKind] = "PgRealBuilder";
|
|
62642
62018
|
constructor(name, length) {
|
|
@@ -62667,7 +62043,7 @@ function real(name) {
|
|
|
62667
62043
|
return new PgRealBuilder(name ?? "");
|
|
62668
62044
|
}
|
|
62669
62045
|
|
|
62670
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62046
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
62671
62047
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
62672
62048
|
static [entityKind] = "PgSerialBuilder";
|
|
62673
62049
|
constructor(name) {
|
|
@@ -62690,7 +62066,7 @@ function serial(name) {
|
|
|
62690
62066
|
return new PgSerialBuilder(name ?? "");
|
|
62691
62067
|
}
|
|
62692
62068
|
|
|
62693
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62069
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
62694
62070
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
62695
62071
|
static [entityKind] = "PgSmallIntBuilder";
|
|
62696
62072
|
constructor(name) {
|
|
@@ -62717,7 +62093,7 @@ function smallint(name) {
|
|
|
62717
62093
|
return new PgSmallIntBuilder(name ?? "");
|
|
62718
62094
|
}
|
|
62719
62095
|
|
|
62720
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62096
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
62721
62097
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
62722
62098
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
62723
62099
|
constructor(name) {
|
|
@@ -62740,7 +62116,7 @@ function smallserial(name) {
|
|
|
62740
62116
|
return new PgSmallSerialBuilder(name ?? "");
|
|
62741
62117
|
}
|
|
62742
62118
|
|
|
62743
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62119
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/text.js
|
|
62744
62120
|
class PgTextBuilder extends PgColumnBuilder {
|
|
62745
62121
|
static [entityKind] = "PgTextBuilder";
|
|
62746
62122
|
constructor(name, config3) {
|
|
@@ -62764,7 +62140,7 @@ function text(a2, b2 = {}) {
|
|
|
62764
62140
|
return new PgTextBuilder(name, config3);
|
|
62765
62141
|
}
|
|
62766
62142
|
|
|
62767
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62143
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
62768
62144
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
62769
62145
|
constructor(name, withTimezone, precision) {
|
|
62770
62146
|
super(name, "string", "PgTime");
|
|
@@ -62798,7 +62174,7 @@ function time(a2, b2 = {}) {
|
|
|
62798
62174
|
return new PgTimeBuilder(name, config3.withTimezone ?? false, config3.precision);
|
|
62799
62175
|
}
|
|
62800
62176
|
|
|
62801
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62177
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
62802
62178
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
62803
62179
|
static [entityKind] = "PgTimestampBuilder";
|
|
62804
62180
|
constructor(name, withTimezone, precision) {
|
|
@@ -62866,7 +62242,7 @@ function timestamp(a2, b2 = {}) {
|
|
|
62866
62242
|
return new PgTimestampBuilder(name, config3?.withTimezone ?? false, config3?.precision);
|
|
62867
62243
|
}
|
|
62868
62244
|
|
|
62869
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62245
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
62870
62246
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
62871
62247
|
static [entityKind] = "PgUUIDBuilder";
|
|
62872
62248
|
constructor(name) {
|
|
@@ -62890,7 +62266,7 @@ function uuid2(name) {
|
|
|
62890
62266
|
return new PgUUIDBuilder(name ?? "");
|
|
62891
62267
|
}
|
|
62892
62268
|
|
|
62893
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62269
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
62894
62270
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
62895
62271
|
static [entityKind] = "PgVarcharBuilder";
|
|
62896
62272
|
constructor(name, config3) {
|
|
@@ -62916,7 +62292,7 @@ function varchar(a2, b2 = {}) {
|
|
|
62916
62292
|
return new PgVarcharBuilder(name, config3);
|
|
62917
62293
|
}
|
|
62918
62294
|
|
|
62919
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62295
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
62920
62296
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
62921
62297
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
62922
62298
|
constructor(name, config3) {
|
|
@@ -62940,7 +62316,7 @@ function bit(a2, b2) {
|
|
|
62940
62316
|
return new PgBinaryVectorBuilder(name, config3);
|
|
62941
62317
|
}
|
|
62942
62318
|
|
|
62943
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62319
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
62944
62320
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
62945
62321
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
62946
62322
|
constructor(name, config3) {
|
|
@@ -62970,7 +62346,7 @@ function halfvec(a2, b2) {
|
|
|
62970
62346
|
return new PgHalfVectorBuilder(name, config3);
|
|
62971
62347
|
}
|
|
62972
62348
|
|
|
62973
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62349
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
62974
62350
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
62975
62351
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
62976
62352
|
constructor(name, config3) {
|
|
@@ -62994,7 +62370,7 @@ function sparsevec(a2, b2) {
|
|
|
62994
62370
|
return new PgSparseVectorBuilder(name, config3);
|
|
62995
62371
|
}
|
|
62996
62372
|
|
|
62997
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62373
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
62998
62374
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
62999
62375
|
static [entityKind] = "PgVectorBuilder";
|
|
63000
62376
|
constructor(name, config3) {
|
|
@@ -63024,7 +62400,7 @@ function vector(a2, b2) {
|
|
|
63024
62400
|
return new PgVectorBuilder(name, config3);
|
|
63025
62401
|
}
|
|
63026
62402
|
|
|
63027
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62403
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/all.js
|
|
63028
62404
|
function getPgColumnBuilders() {
|
|
63029
62405
|
return {
|
|
63030
62406
|
bigint,
|
|
@@ -63062,7 +62438,7 @@ function getPgColumnBuilders() {
|
|
|
63062
62438
|
};
|
|
63063
62439
|
}
|
|
63064
62440
|
|
|
63065
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62441
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/table.js
|
|
63066
62442
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
63067
62443
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
63068
62444
|
|
|
@@ -63110,7 +62486,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
63110
62486
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
63111
62487
|
};
|
|
63112
62488
|
|
|
63113
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62489
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
63114
62490
|
function primaryKey(...config3) {
|
|
63115
62491
|
if (config3[0].columns) {
|
|
63116
62492
|
return new PrimaryKeyBuilder(config3[0].columns, config3[0].name);
|
|
@@ -63145,7 +62521,7 @@ class PrimaryKey {
|
|
|
63145
62521
|
}
|
|
63146
62522
|
}
|
|
63147
62523
|
|
|
63148
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62524
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
63149
62525
|
function bindIfParam(value2, column) {
|
|
63150
62526
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value2) && !is(value2, Param) && !is(value2, Placeholder) && !is(value2, Column) && !is(value2, Table) && !is(value2, View)) {
|
|
63151
62527
|
return new Param(value2, column);
|
|
@@ -63250,7 +62626,7 @@ function notIlike(column, value2) {
|
|
|
63250
62626
|
return sql`${column} not ilike ${value2}`;
|
|
63251
62627
|
}
|
|
63252
62628
|
|
|
63253
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62629
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/select.js
|
|
63254
62630
|
function asc(column) {
|
|
63255
62631
|
return sql`${column} asc`;
|
|
63256
62632
|
}
|
|
@@ -63258,7 +62634,7 @@ function desc(column) {
|
|
|
63258
62634
|
return sql`${column} desc`;
|
|
63259
62635
|
}
|
|
63260
62636
|
|
|
63261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62637
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/relations.js
|
|
63262
62638
|
class Relation {
|
|
63263
62639
|
constructor(sourceTable, referencedTable, relationName) {
|
|
63264
62640
|
this.sourceTable = sourceTable;
|
|
@@ -65425,7 +64801,7 @@ function osUsername() {
|
|
|
65425
64801
|
}
|
|
65426
64802
|
}
|
|
65427
64803
|
|
|
65428
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64804
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/selection-proxy.js
|
|
65429
64805
|
class SelectionProxyHandler {
|
|
65430
64806
|
static [entityKind] = "SelectionProxyHandler";
|
|
65431
64807
|
config;
|
|
@@ -65477,7 +64853,7 @@ class SelectionProxyHandler {
|
|
|
65477
64853
|
}
|
|
65478
64854
|
}
|
|
65479
64855
|
|
|
65480
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64856
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/indexes.js
|
|
65481
64857
|
class IndexBuilderOn {
|
|
65482
64858
|
constructor(unique, name) {
|
|
65483
64859
|
this.unique = unique;
|
|
@@ -65559,7 +64935,7 @@ function uniqueIndex(name) {
|
|
|
65559
64935
|
return new IndexBuilderOn(true, name);
|
|
65560
64936
|
}
|
|
65561
64937
|
|
|
65562
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64938
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/casing.js
|
|
65563
64939
|
function toSnakeCase(input) {
|
|
65564
64940
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
65565
64941
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -65612,12 +64988,12 @@ class CasingCache {
|
|
|
65612
64988
|
}
|
|
65613
64989
|
}
|
|
65614
64990
|
|
|
65615
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64991
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/view-base.js
|
|
65616
64992
|
class PgViewBase extends View {
|
|
65617
64993
|
static [entityKind] = "PgViewBase";
|
|
65618
64994
|
}
|
|
65619
64995
|
|
|
65620
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64996
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/dialect.js
|
|
65621
64997
|
class PgDialect {
|
|
65622
64998
|
static [entityKind] = "PgDialect";
|
|
65623
64999
|
casing;
|
|
@@ -66175,7 +65551,7 @@ class PgDialect {
|
|
|
66175
65551
|
}
|
|
66176
65552
|
}
|
|
66177
65553
|
|
|
66178
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65554
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
66179
65555
|
class TypedQueryBuilder {
|
|
66180
65556
|
static [entityKind] = "TypedQueryBuilder";
|
|
66181
65557
|
getSelectedFields() {
|
|
@@ -66183,7 +65559,7 @@ class TypedQueryBuilder {
|
|
|
66183
65559
|
}
|
|
66184
65560
|
}
|
|
66185
65561
|
|
|
66186
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65562
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
66187
65563
|
class PgSelectBuilder {
|
|
66188
65564
|
static [entityKind] = "PgSelectBuilder";
|
|
66189
65565
|
fields;
|
|
@@ -66501,7 +65877,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
66501
65877
|
var except = createSetOperator("except", false);
|
|
66502
65878
|
var exceptAll = createSetOperator("except", true);
|
|
66503
65879
|
|
|
66504
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65880
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
66505
65881
|
class QueryBuilder {
|
|
66506
65882
|
static [entityKind] = "PgQueryBuilder";
|
|
66507
65883
|
dialect;
|
|
@@ -66579,7 +65955,7 @@ class QueryBuilder {
|
|
|
66579
65955
|
}
|
|
66580
65956
|
}
|
|
66581
65957
|
|
|
66582
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65958
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils.js
|
|
66583
65959
|
function extractUsedTable(table) {
|
|
66584
65960
|
if (is(table, PgTable)) {
|
|
66585
65961
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -66593,7 +65969,7 @@ function extractUsedTable(table) {
|
|
|
66593
65969
|
return [];
|
|
66594
65970
|
}
|
|
66595
65971
|
|
|
66596
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65972
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
66597
65973
|
class PgDeleteBase extends QueryPromise {
|
|
66598
65974
|
constructor(table, session, dialect, withList) {
|
|
66599
65975
|
super();
|
|
@@ -66653,7 +66029,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
66653
66029
|
}
|
|
66654
66030
|
}
|
|
66655
66031
|
|
|
66656
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66032
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
66657
66033
|
class PgInsertBuilder {
|
|
66658
66034
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
66659
66035
|
this.table = table;
|
|
@@ -66776,7 +66152,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
66776
66152
|
}
|
|
66777
66153
|
}
|
|
66778
66154
|
|
|
66779
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66155
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
66780
66156
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
66781
66157
|
constructor(view, session, dialect) {
|
|
66782
66158
|
super();
|
|
@@ -66827,7 +66203,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
66827
66203
|
};
|
|
66828
66204
|
}
|
|
66829
66205
|
|
|
66830
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66206
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
66831
66207
|
class PgUpdateBuilder {
|
|
66832
66208
|
constructor(table, session, dialect, withList) {
|
|
66833
66209
|
this.table = table;
|
|
@@ -66981,7 +66357,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
66981
66357
|
}
|
|
66982
66358
|
}
|
|
66983
66359
|
|
|
66984
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66360
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
66985
66361
|
class PgCountBuilder extends SQL {
|
|
66986
66362
|
constructor(params) {
|
|
66987
66363
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -67022,7 +66398,7 @@ class PgCountBuilder extends SQL {
|
|
|
67022
66398
|
}
|
|
67023
66399
|
}
|
|
67024
66400
|
|
|
67025
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66401
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
67026
66402
|
class RelationalQueryBuilder {
|
|
67027
66403
|
constructor(fullSchema, schema2, tableNamesMap, table, tableConfig, dialect, session) {
|
|
67028
66404
|
this.fullSchema = fullSchema;
|
|
@@ -67105,7 +66481,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
67105
66481
|
}
|
|
67106
66482
|
}
|
|
67107
66483
|
|
|
67108
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66484
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
67109
66485
|
class PgRaw extends QueryPromise {
|
|
67110
66486
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
67111
66487
|
super();
|
|
@@ -67132,7 +66508,7 @@ class PgRaw extends QueryPromise {
|
|
|
67132
66508
|
}
|
|
67133
66509
|
}
|
|
67134
66510
|
|
|
67135
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66511
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/db.js
|
|
67136
66512
|
class PgDatabase {
|
|
67137
66513
|
constructor(dialect, session, schema2) {
|
|
67138
66514
|
this.dialect = dialect;
|
|
@@ -67253,12 +66629,12 @@ class PgDatabase {
|
|
|
67253
66629
|
const prepared = this.session.prepareQuery(builtQuery, undefined, undefined, false);
|
|
67254
66630
|
return new PgRaw(() => prepared.execute(undefined, this.authToken), sequel, builtQuery, (result) => prepared.mapResult(result, true));
|
|
67255
66631
|
}
|
|
67256
|
-
transaction(
|
|
67257
|
-
return this.session.transaction(
|
|
66632
|
+
transaction(transaction, config3) {
|
|
66633
|
+
return this.session.transaction(transaction, config3);
|
|
67258
66634
|
}
|
|
67259
66635
|
}
|
|
67260
66636
|
|
|
67261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66637
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/cache/core/cache.js
|
|
67262
66638
|
class Cache {
|
|
67263
66639
|
static [entityKind] = "Cache";
|
|
67264
66640
|
}
|
|
@@ -67284,7 +66660,7 @@ async function hashQuery(sql2, params) {
|
|
|
67284
66660
|
return hashHex;
|
|
67285
66661
|
}
|
|
67286
66662
|
|
|
67287
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66663
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/pg-core/session.js
|
|
67288
66664
|
class PgPreparedQuery {
|
|
67289
66665
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
|
67290
66666
|
this.query = query;
|
|
@@ -67416,7 +66792,7 @@ class PgTransaction extends PgDatabase {
|
|
|
67416
66792
|
}
|
|
67417
66793
|
}
|
|
67418
66794
|
|
|
67419
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66795
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/session.js
|
|
67420
66796
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
67421
66797
|
constructor(client, queryString, params, logger, cache, queryMetadata, cacheConfig, fields, _isResponseInArrayMode, customResultMapper) {
|
|
67422
66798
|
super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
|
|
@@ -67505,14 +66881,14 @@ class PostgresJsSession extends PgSession {
|
|
|
67505
66881
|
queryObjects(query, params) {
|
|
67506
66882
|
return this.client.unsafe(query, params);
|
|
67507
66883
|
}
|
|
67508
|
-
transaction(
|
|
66884
|
+
transaction(transaction, config3) {
|
|
67509
66885
|
return this.client.begin(async (client) => {
|
|
67510
66886
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.options);
|
|
67511
66887
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
67512
66888
|
if (config3) {
|
|
67513
66889
|
await tx.setTransaction(config3);
|
|
67514
66890
|
}
|
|
67515
|
-
return
|
|
66891
|
+
return transaction(tx);
|
|
67516
66892
|
});
|
|
67517
66893
|
}
|
|
67518
66894
|
}
|
|
@@ -67523,16 +66899,16 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
67523
66899
|
this.session = session;
|
|
67524
66900
|
}
|
|
67525
66901
|
static [entityKind] = "PostgresJsTransaction";
|
|
67526
|
-
transaction(
|
|
66902
|
+
transaction(transaction) {
|
|
67527
66903
|
return this.session.client.savepoint((client) => {
|
|
67528
66904
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.session.options);
|
|
67529
66905
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
67530
|
-
return
|
|
66906
|
+
return transaction(tx);
|
|
67531
66907
|
});
|
|
67532
66908
|
}
|
|
67533
66909
|
}
|
|
67534
66910
|
|
|
67535
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66911
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.5__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/driver.js
|
|
67536
66912
|
class PostgresJsDatabase extends PgDatabase {
|
|
67537
66913
|
static [entityKind] = "PostgresJsDatabase";
|
|
67538
66914
|
}
|
|
@@ -85190,8 +84566,8 @@ var sessionMiddleware = async (socket, next2) => {
|
|
|
85190
84566
|
editRelationsInStore(usersOfSockets, (relations) => {
|
|
85191
84567
|
relations.set(userKey, socketKey);
|
|
85192
84568
|
}, IMPLICIT.STORE);
|
|
85193
|
-
setIntoStore(IMPLICIT.STORE,
|
|
85194
|
-
setIntoStore(IMPLICIT.STORE,
|
|
84569
|
+
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => index.add(userKey));
|
|
84570
|
+
setIntoStore(IMPLICIT.STORE, socketKeysAtom, (index) => index.add(socketKey));
|
|
85195
84571
|
logger.info(`${username} connected on ${socket.id}`);
|
|
85196
84572
|
next2();
|
|
85197
84573
|
} else {
|
|
@@ -85218,9 +84594,9 @@ var serveSocket = (socket) => {
|
|
|
85218
84594
|
relations.delete(socketKey);
|
|
85219
84595
|
}, IMPLICIT.STORE);
|
|
85220
84596
|
if (userKey) {
|
|
85221
|
-
setIntoStore(IMPLICIT.STORE,
|
|
84597
|
+
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => (index.delete(userKey), index));
|
|
85222
84598
|
}
|
|
85223
|
-
setIntoStore(IMPLICIT.STORE,
|
|
84599
|
+
setIntoStore(IMPLICIT.STORE, socketKeysAtom, (index) => (index.delete(socketKey), index));
|
|
85224
84600
|
logger.info(`${socket.id} disconnected`);
|
|
85225
84601
|
});
|
|
85226
84602
|
};
|