@drfed/web 0.1.0-dev.565 → 0.2.0-dev.567
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/.output/nitro.json +1 -1
- package/.output/public/.vite/manifest.json +181 -181
- package/.output/public/_build/assets/{ActorDetailQuery.graphql-D96mwq1k.js → ActorDetailQuery.graphql-BifVLgri.js} +1 -1
- package/.output/public/_build/assets/{ActorDetailQuery.graphql-DrxSNh1X.js → ActorDetailQuery.graphql-CCzXciWe.js} +1 -1
- package/.output/public/_build/assets/{CompleteLoginChallenge.graphql-C5Zq3wNh.js → CompleteLoginChallenge.graphql-BuIODTQe.js} +1 -1
- package/.output/public/_build/assets/{CopyButton-B2l484wE.js → CopyButton-BPA_AsfQ.js} +1 -1
- package/.output/public/_build/assets/{CreateInstanceMutation.graphql-B4CRy6cl.js → CreateInstanceMutation.graphql-BeuI_m9K.js} +1 -1
- package/.output/public/_build/assets/{CreateObjectMutation.graphql-B4A01dgV.js → CreateObjectMutation.graphql-slDMnVjt.js} +1 -1
- package/.output/public/_build/assets/{GenerateActorsMutation.graphql-mlHJNIbe.js → GenerateActorsMutation.graphql-vkoqVyL8.js} +1 -1
- package/.output/public/_build/assets/{GetHostQuery.graphql-CuzDdOdW.js → GetHostQuery.graphql-BzusRJ7N.js} +1 -1
- package/.output/public/_build/assets/{GetHostQuery.graphql-o9K0Qkg0.js → GetHostQuery.graphql-CKu9xX8-.js} +1 -1
- package/.output/public/_build/assets/{HomeViewerQuery.graphql-B903WWKs.js → HomeViewerQuery.graphql-BEP_urQ1.js} +1 -1
- package/.output/public/_build/assets/HttpStatusCode-FQmr-LGM.js +1 -0
- package/.output/public/_build/assets/{InstanceActorListQuery.graphql-paa7teUO.js → InstanceActorListQuery.graphql-ADOUh67G.js} +1 -1
- package/.output/public/_build/assets/{InstanceActorListQuery.graphql-DmNwiEhM.js → InstanceActorListQuery.graphql-Dmh71GI5.js} +1 -1
- package/.output/public/_build/assets/{InstanceDetailQuery.graphql-B52nR132.js → InstanceDetailQuery.graphql-BVIsRDhB.js} +1 -1
- package/.output/public/_build/assets/{InstanceDetailQuery.graphql-DSA2BcAV.js → InstanceDetailQuery.graphql-YvCDX6Vx.js} +1 -1
- package/.output/public/_build/assets/JNCCF6MP-C_2GhSaE.js +1 -0
- package/.output/public/_build/assets/{LP6E37CW-Cwv6G3n1.js → LP6E37CW-BBu2j5XX.js} +1 -1
- package/.output/public/_build/assets/{SignInMutation.graphql-BalZYNFu.js → SignInMutation.graphql-D-K99qj-.js} +1 -1
- package/.output/public/_build/assets/TSB6MOZK-D4_kp7T4.js +1 -0
- package/.output/public/_build/assets/Toast-tZxI6Kk3.js +1 -0
- package/.output/public/_build/assets/{WorkspaceQuery.graphql-UoI7QDs4.js → WorkspaceQuery.graphql-9H5uLyBt.js} +1 -1
- package/.output/public/_build/assets/_...404_-DMz-AmEz.js +1 -0
- package/.output/public/_build/assets/{_challengeId_-Dk-0l7zl.js → _challengeId_-BK-xeuYX.js} +1 -1
- package/.output/public/_build/assets/{_id_-bpxdclBj.js → _id_-Q9HBJzaf.js} +1 -1
- package/.output/public/_build/assets/_slug_-DrTnyM7j.js +200 -0
- package/.output/public/_build/assets/{about-DIrbzRsi.js → about-DtTGI6TG.js} +1 -1
- package/.output/public/_build/assets/actors-LmFNJfl8.js +24 -0
- package/.output/public/_build/assets/{client-CGFoRcqH.js → client-BVl87rV7.js} +2 -2
- package/.output/public/_build/assets/{components-5MVu7IcD.js → components-D1sEsgws.js} +1 -1
- package/.output/public/_build/assets/dist-CMub1v5w.js +1 -0
- package/.output/public/_build/assets/{dist-BrJ_B8nU.js → dist-DUCXQy4t.js} +1 -1
- package/.output/public/_build/assets/{dist-WrlGlK67.js → dist-IMcx10bF.js} +1 -1
- package/.output/public/_build/assets/{entry-client-Do7ocrsL.js → entry-client-DyU5h6Kf.js} +3 -3
- package/.output/public/_build/assets/form.module-DZJVksrR.js +1 -0
- package/.output/public/_build/assets/{index-BHn6sAgH.js → index-CsGHD4_w.js} +1 -1
- package/.output/public/_build/assets/{index-BSLqnqN7.js → index-xrNvEFEe.js} +1 -1
- package/.output/public/_build/assets/instance-CD2GuEFF.js +35 -0
- package/.output/public/_build/assets/objects-CSDLRgba.js +25 -0
- package/.output/public/_build/assets/relay-runtime-CW2Fi-vu.js +7 -0
- package/.output/public/_build/assets/routing-BOJUm5FP.js +1 -0
- package/.output/public/_build/assets/sign-in-6aWEq4t1.js +10 -0
- package/.output/public/_build/assets/web-BjwKY0xb.js +1 -0
- package/.output/server/{_...404_-DDEH5apf.mjs → _...404_-DM28Kka3.mjs} +2 -3
- package/.output/server/{_challengeId_-C_n_Bww9.mjs → _challengeId_-CHkjsE_y.mjs} +5 -5
- package/.output/server/_chunks/ssr-renderer.mjs +3 -3
- package/.output/server/{_id_-DqytvZEf.mjs → _id_-BjLFsMir.mjs} +3 -4
- package/.output/server/_libs/@shikijs/core+[...].mjs +24 -22
- package/.output/server/_libs/@shikijs/engine-javascript+[...].mjs +45 -40
- package/.output/server/_libs/faker-js__faker.mjs +6 -12
- package/.output/server/_libs/relay-runtime.mjs +189 -177
- package/.output/server/_libs/seroval-plugins.mjs +45 -43
- package/.output/server/_libs/seroval.mjs +16 -11
- package/.output/server/_libs/solid-js.mjs +28 -19
- package/.output/server/_libs/solid-relay+tiny-invariant.mjs +1 -3
- package/.output/server/_libs/valibot.mjs +5 -44
- package/.output/server/_runtime.mjs +1 -1
- package/.output/server/{_slug_-CBOaSqoF.mjs → _slug_-CamNffYc.mjs} +3 -4
- package/.output/server/_ssr/{LP6E37CW-D2Ih_b_K.mjs → LP6E37CW-Bs07BPsK.mjs} +2 -2
- package/.output/server/_ssr/{TSB6MOZK-D06WZb6o.mjs → TSB6MOZK-Dz16RpiS.mjs} +10 -6
- package/.output/server/_ssr/{about-CD3QIgf_.mjs → about-K4E3_OxN.mjs} +2 -2
- package/.output/server/_ssr/{actors-CMWf-xQU.mjs → actors-DQIzbpiq.mjs} +21 -21
- package/.output/server/_ssr/{form.module-CTvIl1lm.mjs → form.module-B3iJri2-.mjs} +8 -5
- package/.output/server/_ssr/{index-yuhuc6-X.mjs → index-DQYLULEn.mjs} +2 -2
- package/.output/server/_ssr/{index-C4crD6q-.mjs → index-DU0kuIH3.mjs} +2 -3
- package/.output/server/_ssr/{instance-ZYWGeWd3.mjs → instance-BXwV77PI.mjs} +5 -7
- package/.output/server/_ssr/{objects-D5MVukzB.mjs → objects-DNPuxUtN.mjs} +55 -38
- package/.output/server/_ssr/{sign-in-CNHZb_zL.mjs → sign-in-KJ_TNq1o.mjs} +5 -6
- package/.output/server/_ssr/ssr.mjs +2303 -224
- package/.output/server/index.mjs +246 -246
- package/package.json +9 -9
- package/.output/public/_build/assets/HttpStatusCode-bgaVzuLy.js +0 -1
- package/.output/public/_build/assets/JNCCF6MP-CNMywyiC.js +0 -1
- package/.output/public/_build/assets/TSB6MOZK-CpiH97G1.js +0 -1
- package/.output/public/_build/assets/Toast-C1zr9crB.js +0 -1
- package/.output/public/_build/assets/_...404_-WZ8kAljY.js +0 -1
- package/.output/public/_build/assets/_slug_-DXfRknzJ.js +0 -200
- package/.output/public/_build/assets/actors-HfZh_afh.js +0 -24
- package/.output/public/_build/assets/dist-DVo0HS5G.js +0 -1
- package/.output/public/_build/assets/form.module-BecmEfV_.js +0 -1
- package/.output/public/_build/assets/instance-tpMrvJNZ.js +0 -35
- package/.output/public/_build/assets/objects-DR9TfL-V.js +0 -25
- package/.output/public/_build/assets/relay-runtime-BX3uubtA.js +0 -7
- package/.output/public/_build/assets/routing-DMN2NHu6.js +0 -1
- package/.output/public/_build/assets/sign-in-B67sv7z8.js +0 -10
- package/.output/public/_build/assets/web-DB_Nkq2D.js +0 -1
- package/.output/server/_ssr/JNCCF6MP-BAZlBnvx.mjs +0 -419
- package/.output/server/_ssr/Toast-Bb1gcxED.mjs +0 -947
- package/.output/server/_ssr/dist-D6rgyh-L.mjs +0 -81
- package/.output/server/_ssr/routing-DKTLkkbY.mjs +0 -620
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as __toESM } from "./_runtime.mjs";
|
|
2
2
|
import { n as require_relay_runtime } from "./_libs/relay-runtime.mjs";
|
|
3
3
|
import { D as Show, N as createComponent, V as createSignal, Y as onMount, g as ssrAttribute, h as ssr, u as escape, v as ssrHydrationKey } from "./_libs/solid-js.mjs";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_challengeId_-C_n_Bww9.js
|
|
4
|
+
import { U as cloneServerReference, W as createServerReference, X as action, Z as useAction, l as setSessionCookie, nt as useSearchParams, t as node, tt as useParams, u as createRelayEnvironment } from "./_ssr/ssr.mjs";
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_challengeId_-CHkjsE_y.js
|
|
7
6
|
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
8
7
|
var { commitMutation, graphql } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
9
8
|
var _tmpl$ = ["<output", ">Signing in…</output>"];
|
|
@@ -47,7 +46,7 @@ var ConfirmPage = function ConfirmPage() {
|
|
|
47
46
|
});
|
|
48
47
|
};
|
|
49
48
|
var completeLoginChallengeMutation = node;
|
|
50
|
-
var
|
|
49
|
+
var serverFn_1 = createServerReference("b201009e-0", async ({ challengeId, code }) => {
|
|
51
50
|
const environment = createRelayEnvironment();
|
|
52
51
|
return await new Promise((resolve) => {
|
|
53
52
|
commitMutation(environment, {
|
|
@@ -95,6 +94,7 @@ var completeLoginChallengeAction = action(cloneServerReference(createServerRefer
|
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
96
|
});
|
|
98
|
-
})
|
|
97
|
+
});
|
|
98
|
+
var completeLoginChallengeAction = action(cloneServerReference(serverFn_1), "complete-login-challenge");
|
|
99
99
|
//#endregion
|
|
100
100
|
export { ConfirmPage as default, id$$ };
|
|
@@ -8,16 +8,16 @@ function lazyService(loader) {
|
|
|
8
8
|
return promise.then((mod) => mod.fetch(req));
|
|
9
9
|
} };
|
|
10
10
|
}
|
|
11
|
-
var viteServices = { ["ssr"]: lazyService(() => import("../_ssr/ssr.mjs")) };
|
|
11
|
+
var viteServices = { ["ssr"]: lazyService(() => import("../_ssr/ssr.mjs").then((n) => n.$)) };
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../node_modules/.pnpm/nitro@3.0.260610-beta_@electric-sql+pglite@0.5.3_chokidar@5.0.0_dotenv@17.4.2_drizzle-
|
|
13
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260610-beta_@electric-sql+pglite@0.5.3_chokidar@5.0.0_dotenv@17.4.2_drizzle-o_a71d0348572c339352aebc7a2eadbdf5/node_modules/nitro/dist/runtime/vite.mjs
|
|
14
14
|
function fetchViteEnv(viteEnvName, input, init) {
|
|
15
15
|
const viteEnv = viteServices[viteEnvName];
|
|
16
16
|
if (!viteEnv) throw HTTPError.status(404);
|
|
17
17
|
return Promise.resolve(viteEnv.fetch(toRequest(input, init)));
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region ../../node_modules/.pnpm/nitro@3.0.260610-beta_@electric-sql+pglite@0.5.3_chokidar@5.0.0_dotenv@17.4.2_drizzle-
|
|
20
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260610-beta_@electric-sql+pglite@0.5.3_chokidar@5.0.0_dotenv@17.4.2_drizzle-o_a71d0348572c339352aebc7a2eadbdf5/node_modules/nitro/dist/runtime/internal/vite/ssr-renderer.mjs
|
|
21
21
|
/** @param {{ req: Request }} HTTPEvent */
|
|
22
22
|
function ssrRenderer({ req }) {
|
|
23
23
|
return fetchViteEnv("ssr", req);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { r as __toESM } from "./_runtime.mjs";
|
|
2
2
|
import { n as require_relay_runtime } from "./_libs/relay-runtime.mjs";
|
|
3
3
|
import { C as ErrorBoundary, D as Show, N as createComponent, O as Suspense, T as Index, g as ssrAttribute, h as ssr, u as escape, v as ssrHydrationKey, w as For } from "./_libs/solid-js.mjs";
|
|
4
|
-
import { n as Title } from "./_ssr/dist-D6rgyh-L.mjs";
|
|
5
4
|
import { n as createFragment, o as createPreloadedQuery } from "./_libs/solid-relay+tiny-invariant.mjs";
|
|
6
|
-
import {
|
|
5
|
+
import { J as node$6, Q as Title, Y as A } from "./_ssr/ssr.mjs";
|
|
7
6
|
import { t as actorLabel } from "./_ssr/label-DAXzanI9.mjs";
|
|
8
7
|
import { t as CopyButton } from "./_ssr/CopyButton-CQNR5D1y.mjs";
|
|
9
|
-
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_id_-
|
|
8
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_id_-BjLFsMir.js
|
|
10
9
|
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
11
10
|
/**
|
|
12
11
|
* @generated SignedSource<<e5d47365cc1837b5cc24f7a3014fba4c>>
|
|
@@ -449,7 +448,7 @@ var _tmpl$2 = ["<p", " role=\"alert\">Unable to load this actor. Please reload t
|
|
|
449
448
|
var _tmpl$3 = ["<output", ">Loading actor…</output>"];
|
|
450
449
|
var _tmpl$4 = ["<p", ">Actor not found.</p>"];
|
|
451
450
|
var id$$ = "src/routes/actor/[id].tsx?pick=default&pick=$css&lang.tsx";
|
|
452
|
-
var actorDetailQuery = node$
|
|
451
|
+
var actorDetailQuery = node$6;
|
|
453
452
|
function ActorDetailPage(props) {
|
|
454
453
|
return ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.page, true), false), escape(createComponent(Title, { children: "Actor — DrFed" })), escape(createComponent(A, {
|
|
455
454
|
get ["class"]() {
|
|
@@ -235,9 +235,7 @@ function parseTheme(source) {
|
|
|
235
235
|
case "underline":
|
|
236
236
|
fontStyle = fontStyle | 4;
|
|
237
237
|
break;
|
|
238
|
-
case "strikethrough":
|
|
239
|
-
fontStyle = fontStyle | 8;
|
|
240
|
-
break;
|
|
238
|
+
case "strikethrough": fontStyle = fontStyle | 8;
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
241
|
let foreground = null;
|
|
@@ -729,7 +727,6 @@ function collectExternalReferencesInRules(rules, context, result) {
|
|
|
729
727
|
else collectExternalReferencesInTopLevelRule(newContext, result);
|
|
730
728
|
} else if (reference.kind === 4) result.add(new TopLevelRepositoryRuleReference(reference.scopeName, reference.ruleName));
|
|
731
729
|
else result.add(new TopLevelRuleReference(reference.scopeName));
|
|
732
|
-
break;
|
|
733
730
|
}
|
|
734
731
|
}
|
|
735
732
|
}
|
|
@@ -943,8 +940,10 @@ var BeginEndRule = class extends Rule {
|
|
|
943
940
|
if (this.applyEndPatternLast) this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
944
941
|
else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
945
942
|
}
|
|
946
|
-
if (this._end.hasBackReferences)
|
|
947
|
-
|
|
943
|
+
if (this._end.hasBackReferences) {
|
|
944
|
+
if (this.applyEndPatternLast) this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, endRegexSource);
|
|
945
|
+
else this._cachedCompiledPatterns.setSource(0, endRegexSource);
|
|
946
|
+
}
|
|
948
947
|
return this._cachedCompiledPatterns;
|
|
949
948
|
}
|
|
950
949
|
};
|
|
@@ -1082,11 +1081,12 @@ var RuleFactory = class _RuleFactory {
|
|
|
1082
1081
|
const externalGrammarName = reference.scopeName;
|
|
1083
1082
|
const externalGrammarInclude = reference.kind === 4 ? reference.ruleName : null;
|
|
1084
1083
|
const externalGrammar = helper.getExternalGrammar(externalGrammarName, repository);
|
|
1085
|
-
if (externalGrammar)
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1084
|
+
if (externalGrammar) {
|
|
1085
|
+
if (externalGrammarInclude) {
|
|
1086
|
+
let externalIncludedRule = externalGrammar.repository[externalGrammarInclude];
|
|
1087
|
+
if (externalIncludedRule) ruleId = _RuleFactory.getCompiledRuleId(externalIncludedRule, helper, externalGrammar.repository);
|
|
1088
|
+
} else ruleId = _RuleFactory.getCompiledRuleId(externalGrammar.repository.$self, helper, externalGrammar.repository);
|
|
1089
|
+
}
|
|
1090
1090
|
}
|
|
1091
1091
|
} else ruleId = _RuleFactory.getCompiledRuleId(pattern, helper, repository);
|
|
1092
1092
|
if (ruleId !== -1) {
|
|
@@ -1207,9 +1207,10 @@ var RegExpSource = class _RegExpSource {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
resolveAnchors(allowA, allowG) {
|
|
1209
1209
|
if (!this.hasAnchor || !this._anchorCache || typeof this.source !== "string") return this.source;
|
|
1210
|
-
if (allowA)
|
|
1211
|
-
|
|
1212
|
-
|
|
1210
|
+
if (allowA) {
|
|
1211
|
+
if (allowG) return this._anchorCache.A1_G1;
|
|
1212
|
+
else return this._anchorCache.A1_G0;
|
|
1213
|
+
} else if (allowG) return this._anchorCache.A0_G1;
|
|
1213
1214
|
else return this._anchorCache.A0_G0;
|
|
1214
1215
|
}
|
|
1215
1216
|
};
|
|
@@ -1280,14 +1281,15 @@ var RegExpSourceList = class {
|
|
|
1280
1281
|
}
|
|
1281
1282
|
compileAG(onigLib, allowA, allowG) {
|
|
1282
1283
|
if (!this._hasAnchors) return this.compile(onigLib);
|
|
1283
|
-
else if (allowA)
|
|
1284
|
-
if (
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1284
|
+
else if (allowA) {
|
|
1285
|
+
if (allowG) {
|
|
1286
|
+
if (!this._anchorCache.A1_G1) this._anchorCache.A1_G1 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1287
|
+
return this._anchorCache.A1_G1;
|
|
1288
|
+
} else {
|
|
1289
|
+
if (!this._anchorCache.A1_G0) this._anchorCache.A1_G0 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1290
|
+
return this._anchorCache.A1_G0;
|
|
1291
|
+
}
|
|
1292
|
+
} else if (allowG) {
|
|
1291
1293
|
if (!this._anchorCache.A0_G1) this._anchorCache.A0_G1 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1292
1294
|
return this._anchorCache.A0_G1;
|
|
1293
1295
|
} else {
|
|
@@ -505,11 +505,11 @@ function O$1(e) {
|
|
|
505
505
|
if (e[0] === "{") {
|
|
506
506
|
const { minStr: s, maxStr: a } = /^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups, r = 1e5;
|
|
507
507
|
if (+s > r || a && +a > r) throw new Error("Quantifier value unsupported in Oniguruma");
|
|
508
|
-
if (t = +s, o = a === void 0 ? +s : a === "" ?
|
|
508
|
+
if (t = +s, o = a === void 0 ? +s : a === "" ? 1 / 0 : +a, t > o && (n = "possessive", [t, o] = [o, t]), e.endsWith("?")) {
|
|
509
509
|
if (n === "possessive") throw new Error("Unsupported possessive interval quantifier chain with \"?\"");
|
|
510
510
|
n = "lazy";
|
|
511
511
|
} else n || (n = "greedy");
|
|
512
|
-
} else t = e[0] === "+" ? 1 : 0, o = e[0] === "?" ? 1 :
|
|
512
|
+
} else t = e[0] === "+" ? 1 : 0, o = e[0] === "?" ? 1 : 1 / 0, n = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
|
|
513
513
|
return _$1(n, t, o, e);
|
|
514
514
|
}
|
|
515
515
|
function q(e) {
|
|
@@ -1336,12 +1336,13 @@ function atomic(expression, data) {
|
|
|
1336
1336
|
aGPos = index;
|
|
1337
1337
|
inAG = true;
|
|
1338
1338
|
} else if (inAG && noncapturingStart) numGroupsOpenInAG++;
|
|
1339
|
-
else if (capturingStart)
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1339
|
+
else if (capturingStart) {
|
|
1340
|
+
if (inAG) numGroupsOpenInAG++;
|
|
1341
|
+
else {
|
|
1342
|
+
numCapturesBeforeAG++;
|
|
1343
|
+
captureNumMap.push(numCapturesBeforeAG + numAGs);
|
|
1344
|
+
}
|
|
1345
|
+
} else if (m === ")" && inAG) {
|
|
1345
1346
|
if (!numGroupsOpenInAG) {
|
|
1346
1347
|
numAGs++;
|
|
1347
1348
|
const addedCaptureNum = numCapturesBeforeAG + numAGs;
|
|
@@ -1417,9 +1418,10 @@ function possessive(expression) {
|
|
|
1417
1418
|
if (m === "[") {
|
|
1418
1419
|
if (!numCharClassesOpen) lastCharClassIndex = index;
|
|
1419
1420
|
numCharClassesOpen++;
|
|
1420
|
-
} else if (m === "]")
|
|
1421
|
-
|
|
1422
|
-
|
|
1421
|
+
} else if (m === "]") {
|
|
1422
|
+
if (numCharClassesOpen) numCharClassesOpen--;
|
|
1423
|
+
else lastCharClassIndex = null;
|
|
1424
|
+
} else if (!numCharClassesOpen) {
|
|
1423
1425
|
if (qMod === "+" && lastToken && !lastToken.startsWith("(")) {
|
|
1424
1426
|
if (invalidQ) throw new Error(`Invalid quantifier "${m}"`);
|
|
1425
1427
|
let charsAdded = -1;
|
|
@@ -1989,19 +1991,20 @@ var FirstPassVisitor = {
|
|
|
1989
1991
|
if (kind === "text_segment_boundary") throw new Error(`Unsupported text segment boundary "\\${negate ? "Y" : "y"}"`);
|
|
1990
1992
|
else if (kind === "line_end") replaceWith(setParentDeep(K({ body: [b({ body: [F("string_end")] }), b({ body: [m(10)] })] }), parent));
|
|
1991
1993
|
else if (kind === "line_start") replaceWith(setParentDeep(parseFragment(r`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: true }), parent));
|
|
1992
|
-
else if (kind === "search_start")
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1994
|
+
else if (kind === "search_start") {
|
|
1995
|
+
if (supportedGNodes.has(node)) {
|
|
1996
|
+
root.flags.sticky = true;
|
|
1997
|
+
remove();
|
|
1998
|
+
} else {
|
|
1999
|
+
const prev = container[key - 1];
|
|
2000
|
+
if (prev && isAlwaysNonZeroLength(prev)) replaceWith(setParentDeep(K({ negate: true }), parent));
|
|
2001
|
+
else if (avoidSubclass) throw new Error(r`Uses "\G" in a way that requires a subclass`);
|
|
2002
|
+
else {
|
|
2003
|
+
replaceWith(setParent(F("string_start"), parent));
|
|
2004
|
+
state.strategy = "clip_search";
|
|
2005
|
+
}
|
|
2002
2006
|
}
|
|
2003
|
-
}
|
|
2004
|
-
else if (kind === "string_end" || kind === "string_start") {} else if (kind === "string_end_newline") replaceWith(setParentDeep(parseFragment(r`(?=\n?\z)`), parent));
|
|
2007
|
+
} else if (kind === "string_end" || kind === "string_start") {} else if (kind === "string_end_newline") replaceWith(setParentDeep(parseFragment(r`(?=\n?\z)`), parent));
|
|
2005
2008
|
else if (kind === "word_boundary") {
|
|
2006
2009
|
if (!wordIsAscii && !asciiWordBoundaries) {
|
|
2007
2010
|
const b = `(?:(?<=${defaultWordChar})(?!${defaultWordChar})|(?<!${defaultWordChar})(?=${defaultWordChar}))`;
|
|
@@ -2052,16 +2055,17 @@ var FirstPassVisitor = {
|
|
|
2052
2055
|
replaceWith(setParentDeep(parseFragment(r`(?>\r\n|${minTargetEs2024 ? r`\p{RGI_Emoji}` : emoji}|\P{M}\p{M}*)`, { skipPropertyNameValidation: true }), parent));
|
|
2053
2056
|
} else if (kind === "hex") replaceWith(setParent(Q("AHex", { negate }), parent));
|
|
2054
2057
|
else if (kind === "newline") replaceWith(setParentDeep(parseFragment(negate ? "[^\n]" : "(?>\r\n?|[\n\v\f
\u2028\u2029])"), parent));
|
|
2055
|
-
else if (kind === "posix")
|
|
2056
|
-
if (
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2058
|
+
else if (kind === "posix") {
|
|
2059
|
+
if (!minTargetEs2024 && (value === "graph" || value === "print")) {
|
|
2060
|
+
if (accuracy === "strict") throw new Error(`POSIX class "${value}" requires min target ES2024 or non-strict accuracy`);
|
|
2061
|
+
let ascii = {
|
|
2062
|
+
graph: "!-~",
|
|
2063
|
+
print: " -~"
|
|
2064
|
+
}[value];
|
|
2065
|
+
if (negate) ascii = `\0-${cp(ascii.codePointAt(0) - 1)}${cp(ascii.codePointAt(2) + 1)}-\u{10FFFF}`;
|
|
2066
|
+
replaceWith(setParentDeep(parseFragment(`[${ascii}]`), parent));
|
|
2067
|
+
} else replaceWith(setParentDeep(setNegate(parseFragment(PosixClassMap.get(value)), negate), parent));
|
|
2068
|
+
} else if (kind === "property") {
|
|
2065
2069
|
if (!JsUnicodePropertyMap.has(w(value))) node.key = "sc";
|
|
2066
2070
|
} else if (kind === "space") replaceWith(setParent(Q("space", { negate }), parent));
|
|
2067
2071
|
else if (kind === "word") replaceWith(setParentDeep(setNegate(parseFragment(defaultWordChar), negate), parent));
|
|
@@ -2069,13 +2073,14 @@ var FirstPassVisitor = {
|
|
|
2069
2073
|
},
|
|
2070
2074
|
Directive({ node, parent, root, remove, replaceWith, removeAllPrevSiblings, removeAllNextSiblings }) {
|
|
2071
2075
|
const { kind, flags } = node;
|
|
2072
|
-
if (kind === "flags")
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2076
|
+
if (kind === "flags") {
|
|
2077
|
+
if (!flags.enable && !flags.disable) remove();
|
|
2078
|
+
else {
|
|
2079
|
+
const flagGroup = A({ flags });
|
|
2080
|
+
flagGroup.body[0].body = removeAllNextSiblings();
|
|
2081
|
+
replaceWith(setParentDeep(flagGroup, parent), { traverse: true });
|
|
2082
|
+
}
|
|
2083
|
+
} else if (kind === "keep") {
|
|
2079
2084
|
const firstAlt = root.body[0];
|
|
2080
2085
|
const topLevel = root.body.length === 1 && o(firstAlt, { type: "Group" }) && firstAlt.body[0].body.length === 1 ? firstAlt.body[0] : root;
|
|
2081
2086
|
if (parent.parent !== topLevel || topLevel.body.length > 1) throw new Error(r`Uses "\K" in a way that's unsupported`);
|
|
@@ -650,8 +650,8 @@ var A = class extends x {
|
|
|
650
650
|
anytime(e = {}) {
|
|
651
651
|
let { refDate: t = this.faker.defaultRefDate() } = e, n = k(t).getTime();
|
|
652
652
|
return this.between({
|
|
653
|
-
from: n -
|
|
654
|
-
to: n +
|
|
653
|
+
from: n - 31536e6,
|
|
654
|
+
to: n + 31536e6
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
past(t = {}) {
|
|
@@ -733,7 +733,7 @@ var A = class extends x {
|
|
|
733
733
|
let { mode: n = `age`, min: r = 18, max: i = 80, refDate: a = this.faker.defaultRefDate() } = t, o = k(a), s = o.getUTCFullYear();
|
|
734
734
|
switch (n) {
|
|
735
735
|
case `age`: {
|
|
736
|
-
let t = new Date(o).setUTCFullYear(s - i - 1) +
|
|
736
|
+
let t = new Date(o).setUTCFullYear(s - i - 1) + 864e5, n = new Date(o).setUTCFullYear(s - r);
|
|
737
737
|
if (t > n) throw new e$1(`Max age ${i} should be greater than or equal to min age ${r}.`);
|
|
738
738
|
return this.between({
|
|
739
739
|
from: t,
|
|
@@ -3375,9 +3375,7 @@ var at = class extends S {
|
|
|
3375
3375
|
case `mac`:
|
|
3376
3376
|
r = this.faker.internet.mac(``);
|
|
3377
3377
|
break;
|
|
3378
|
-
case `pci`:
|
|
3379
|
-
i = this.faker.helpers.maybe(() => `P${this.faker.string.numeric()}`) ?? ``, r = `${this.faker.string.numeric()}s${this.faker.string.numeric()}${this.faker.helpers.maybe(() => `f${this.faker.string.numeric()}`) ?? ``}${this.faker.helpers.maybe(() => `d${this.faker.string.numeric()}`) ?? ``}`;
|
|
3380
|
-
break;
|
|
3378
|
+
case `pci`: i = this.faker.helpers.maybe(() => `P${this.faker.string.numeric()}`) ?? ``, r = `${this.faker.string.numeric()}s${this.faker.string.numeric()}${this.faker.helpers.maybe(() => `f${this.faker.string.numeric()}`) ?? ``}${this.faker.helpers.maybe(() => `d${this.faker.string.numeric()}`) ?? ``}`;
|
|
3381
3379
|
}
|
|
3382
3380
|
return `${i}${t}${Y[n]}${r}`;
|
|
3383
3381
|
}
|
|
@@ -3698,9 +3696,7 @@ var mt = class extends x {
|
|
|
3698
3696
|
case `lower`:
|
|
3699
3697
|
i = [...Q];
|
|
3700
3698
|
break;
|
|
3701
|
-
case `mixed`:
|
|
3702
|
-
i = [...Q, ...Z];
|
|
3703
|
-
break;
|
|
3699
|
+
case `mixed`: i = [...Q, ...Z];
|
|
3704
3700
|
}
|
|
3705
3701
|
return i = i.filter((e) => !r.includes(e)), this.fromCharacters(i, t);
|
|
3706
3702
|
}
|
|
@@ -3718,9 +3714,7 @@ var mt = class extends x {
|
|
|
3718
3714
|
case `lower`:
|
|
3719
3715
|
i.push(...Q);
|
|
3720
3716
|
break;
|
|
3721
|
-
case `mixed`:
|
|
3722
|
-
i.push(...Q, ...Z);
|
|
3723
|
-
break;
|
|
3717
|
+
case `mixed`: i.push(...Q, ...Z);
|
|
3724
3718
|
}
|
|
3725
3719
|
return i = i.filter((e) => !r.includes(e)), this.fromCharacters(i, t);
|
|
3726
3720
|
}
|