keycloakify 11.3.24 → 11.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -0
  2. package/account/i18n/noJsx/getI18n.js +1 -2
  3. package/account/i18n/noJsx/getI18n.js.map +1 -1
  4. package/bin/33.index.js +55 -212
  5. package/bin/356.index.js +12 -18
  6. package/bin/36.index.js +1 -2922
  7. package/bin/453.index.js +9 -12
  8. package/bin/653.index.js +37 -197
  9. package/bin/735.index.js +17 -23
  10. package/bin/786.index.js +9 -11
  11. package/bin/805.index.js +15 -18
  12. package/bin/921.index.js +10 -15
  13. package/bin/97.index.js +9 -12
  14. package/bin/main.js +32 -80
  15. package/lib/getKcClsx.js +1 -2
  16. package/lib/getKcClsx.js.map +1 -1
  17. package/login/i18n/noJsx/getI18n.js +1 -2
  18. package/login/i18n/noJsx/getI18n.js.map +1 -1
  19. package/login/pages/LoginPasskeysConditionalAuthenticate.js +16 -18
  20. package/login/pages/LoginPasskeysConditionalAuthenticate.js.map +1 -1
  21. package/package.json +4 -4
  22. package/src/account/i18n/noJsx/getI18n.tsx +1 -2
  23. package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +1 -2
  24. package/src/bin/initialize-account-theme/updateAccountThemeImplementationInConfig.ts +1 -2
  25. package/src/bin/postinstall/installUiModulesPeerDependencies.ts +1 -2
  26. package/src/bin/postinstall/uiModuleMeta.ts +1 -2
  27. package/src/bin/shared/buildContext.ts +1 -2
  28. package/src/bin/tools/listInstalledModules.ts +1 -2
  29. package/src/bin/tools/npmInstall.ts +1 -2
  30. package/src/bin/tools/runPrettier.ts +2 -3
  31. package/src/lib/getKcClsx.ts +1 -2
  32. package/src/login/i18n/noJsx/getI18n.tsx +1 -2
  33. package/src/login/pages/LoginPasskeysConditionalAuthenticate.tsx +51 -52
  34. package/src/tools/StatefulObservable/StatefulObservable.ts +1 -2
  35. package/src/tools/deepAssign.ts +1 -2
  36. package/tools/StatefulObservable/StatefulObservable.js +1 -2
  37. package/tools/StatefulObservable/StatefulObservable.js.map +1 -1
  38. package/tools/deepAssign.js +1 -2
  39. package/tools/deepAssign.js.map +1 -1
  40. package/vite-plugin/index.js +66 -118
@@ -9,7 +9,7 @@ import {
9
9
  import { getAbsoluteAndInOsFormatPath } from "../tools/getAbsoluteAndInOsFormatPath";
10
10
  import { z } from "zod";
11
11
  import * as fs from "fs";
12
- import { assert, type Equals } from "tsafe/assert";
12
+ import { assert, type Equals, is } from "tsafe/assert";
13
13
  import * as child_process from "child_process";
14
14
  import {
15
15
  VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES,
@@ -23,7 +23,6 @@ import { objectEntries } from "tsafe/objectEntries";
23
23
  import { id } from "tsafe/id";
24
24
  import chalk from "chalk";
25
25
  import { getProxyFetchOptions, type FetchOptionsLike } from "../tools/fetchProxyOptions";
26
- import { is } from "tsafe/is";
27
26
 
28
27
  export type BuildContext = {
29
28
  themeVersion: string;
@@ -1,9 +1,8 @@
1
- import { assert, type Equals } from "tsafe/assert";
1
+ import { assert, type Equals, is } from "tsafe/assert";
2
2
  import { id } from "tsafe/id";
3
3
  import { z } from "zod";
4
4
  import { join as pathJoin, dirname as pathDirname } from "path";
5
5
  import * as fsPr from "fs/promises";
6
- import { is } from "tsafe/is";
7
6
  import { getInstalledModuleDirPath } from "../tools/getInstalledModuleDirPath";
8
7
  import { exclude } from "tsafe/exclude";
9
8
 
@@ -3,9 +3,8 @@ import { join as pathJoin, dirname as pathDirname } from "path";
3
3
  import * as child_process from "child_process";
4
4
  import chalk from "chalk";
5
5
  import { z } from "zod";
6
- import { assert, type Equals } from "tsafe/assert";
6
+ import { assert, type Equals, is } from "tsafe/assert";
7
7
  import { id } from "tsafe/id";
8
- import { is } from "tsafe/is";
9
8
  import { objectKeys } from "tsafe/objectKeys";
10
9
  import { getAbsoluteAndInOsFormatPath } from "./getAbsoluteAndInOsFormatPath";
11
10
  import { exclude } from "tsafe/exclude";
@@ -2,10 +2,9 @@ import { getNodeModulesBinDirPath } from "./nodeModulesBinDirPath";
2
2
  import { join as pathJoin, resolve as pathResolve } from "path";
3
3
  import * as fsPr from "fs/promises";
4
4
  import { id } from "tsafe/id";
5
- import { assert } from "tsafe/assert";
5
+ import { assert, is } from "tsafe/assert";
6
6
  import chalk from "chalk";
7
7
  import * as crypto from "crypto";
8
- import { is } from "tsafe/is";
9
8
  import { symToStr } from "tsafe/symToStr";
10
9
  import { readThisNpmPackageVersion } from "./readThisNpmPackageVersion";
11
10
 
@@ -50,7 +49,7 @@ export async function getPrettier(): Promise<PrettierAndConfigHash> {
50
49
  // of prettier, that is the one of the project, not the one of this repo.
51
50
  // So we do a sketchy eval to bypass ncc.
52
51
  // We make sure to only do that when linking, otherwise we import properly.
53
- if (readThisNpmPackageVersion() === "0.0.0") {
52
+ if (readThisNpmPackageVersion().startsWith("0.0.0")) {
54
53
  eval(
55
54
  `${symToStr({ prettier })} = require("${pathResolve(pathJoin(getNodeModulesBinDirPath(), "..", "prettier"))}")`
56
55
  );
@@ -1,8 +1,7 @@
1
1
  import type { Param0 } from "tsafe";
2
2
  import { type CxArg, clsx_withTransform } from "../tools/clsx_withTransform";
3
3
  import { clsx } from "../tools/clsx";
4
- import { assert } from "tsafe/assert";
5
- import { is } from "tsafe/is";
4
+ import { assert, is } from "tsafe/assert";
6
5
 
7
6
  export function createGetKcClsx<ClassKey extends string>(params: {
8
7
  defaultClasses: Record<ClassKey, string | undefined>;
@@ -1,11 +1,10 @@
1
1
  import "keycloakify/tools/Object.fromEntries";
2
- import { assert } from "tsafe/assert";
2
+ import { assert, is } from "tsafe/assert";
3
3
  import messages_defaultSet_fallbackLanguage from "../messages_defaultSet/en";
4
4
  import { fetchMessages_defaultSet } from "../messages_defaultSet";
5
5
  import type { KcContext } from "../../KcContext";
6
6
  import { FALLBACK_LANGUAGE_TAG } from "keycloakify/bin/shared/constants";
7
7
  import { id } from "tsafe/id";
8
- import { is } from "tsafe/is";
9
8
  import { Reflect } from "tsafe/Reflect";
10
9
  import {
11
10
  type LanguageTag as LanguageTag_defaultSet,
@@ -115,62 +115,61 @@ export default function LoginPasskeysConditionalAuthenticate(
115
115
  </div>
116
116
  </>
117
117
  )}
118
- <div id="kc-form">
119
- <div id="kc-form-wrapper">
120
- {realm.password && (
121
- <form
122
- id="kc-form-passkey"
123
- action={url.loginAction}
124
- method="post"
125
- style={{ display: "none" }}
126
- onSubmit={event => {
127
- try {
128
- // @ts-expect-error
129
- event.target.login.disabled = true;
130
- } catch {}
118
+ </>
119
+ )}
120
+ <div id="kc-form">
121
+ <div id="kc-form-wrapper">
122
+ {realm.password && (
123
+ <form
124
+ id="kc-form-login"
125
+ action={url.loginAction}
126
+ method="post"
127
+ style={{ display: "none" }}
128
+ onSubmit={event => {
129
+ try {
130
+ // @ts-expect-error
131
+ event.target.login.disabled = true;
132
+ } catch {}
131
133
 
132
- return true;
133
- }}
134
- >
135
- {!usernameHidden && (
136
- <div className={kcClsx("kcFormGroupClass")}>
137
- <label htmlFor="username" className={kcClsx("kcLabelClass")}>
138
- {msg("passkey-autofill-select")}
139
- </label>
140
- <input
141
- tabIndex={1}
142
- id="username"
143
- aria-invalid={messagesPerField.existsError("username")}
144
- className={kcClsx("kcInputClass")}
145
- name="username"
146
- defaultValue={login.username ?? ""}
147
- //autoComplete="username webauthn"
148
- type="text"
149
- autoFocus
150
- autoComplete="off"
151
- />
152
- {messagesPerField.existsError("username") && (
153
- <span id="input-error-username" className={kcClsx("kcInputErrorMessageClass")} aria-live="polite">
154
- {messagesPerField.get("username")}
155
- </span>
156
- )}
157
- </div>
134
+ return true;
135
+ }}
136
+ >
137
+ {!usernameHidden && (
138
+ <div className={kcClsx("kcFormGroupClass")}>
139
+ <label htmlFor="username" className={kcClsx("kcLabelClass")}>
140
+ {msg("passkey-autofill-select")}
141
+ </label>
142
+ <input
143
+ tabIndex={1}
144
+ id="username"
145
+ aria-invalid={messagesPerField.existsError("username")}
146
+ className={kcClsx("kcInputClass")}
147
+ name="username"
148
+ defaultValue={login.username ?? ""}
149
+ autoComplete="username webauthn"
150
+ type="text"
151
+ autoFocus
152
+ />
153
+ {messagesPerField.existsError("username") && (
154
+ <span id="input-error-username" className={kcClsx("kcInputErrorMessageClass")} aria-live="polite">
155
+ {messagesPerField.get("username")}
156
+ </span>
158
157
  )}
159
- </form>
158
+ </div>
160
159
  )}
161
- <div id="kc-form-passkey-button" className={kcClsx("kcFormButtonsClass")} style={{ display: "none" }}>
162
- <input
163
- id={authButtonId}
164
- type="button"
165
- autoFocus
166
- value={msgStr("passkey-doAuthenticate")}
167
- className={kcClsx("kcButtonClass", "kcButtonPrimaryClass", "kcButtonBlockClass", "kcButtonLargeClass")}
168
- />
169
- </div>
170
- </div>
160
+ </form>
161
+ )}
162
+ <div id="kc-form-passkey-button" className={kcClsx("kcFormButtonsClass")} style={{ display: "none" }}>
163
+ <input
164
+ id={authButtonId}
165
+ type="button"
166
+ autoFocus
167
+ value={msgStr("passkey-doAuthenticate")}
168
+ className={kcClsx("kcButtonClass", "kcButtonPrimaryClass", "kcButtonBlockClass", "kcButtonLargeClass")}
169
+ />
171
170
  </div>
172
- </>
173
- )}
171
+ </div>
172
+ </div>
174
173
  </div>
175
174
  </Template>
176
175
  );
@@ -1,5 +1,4 @@
1
- import { assert } from "tsafe/assert";
2
- import { is } from "tsafe/is";
1
+ import { assert, is } from "tsafe/assert";
3
2
 
4
3
  export type StatefulObservable<T> = {
5
4
  current: T;
@@ -1,5 +1,4 @@
1
- import { assert } from "tsafe/assert";
2
- import { is } from "tsafe/is";
1
+ import { assert, is } from "tsafe/assert";
3
2
  import { structuredCloneButFunctions } from "./structuredCloneButFunctions";
4
3
 
5
4
  /** NOTE: Array a copied over, not merged. */
@@ -1,5 +1,4 @@
1
- import { assert } from "tsafe/assert";
2
- import { is } from "tsafe/is";
1
+ import { assert, is } from "tsafe/assert";
3
2
  export function createStatefulObservable(getInitialValue) {
4
3
  const nextFunctions = [];
5
4
  const { get, set } = (() => {
@@ -1 +1 @@
1
- {"version":3,"file":"StatefulObservable.js","sourceRoot":"","sources":["../../src/tools/StatefulObservable/StatefulObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAW9B,MAAM,UAAU,wBAAwB,CACpC,eAAwB;IAExB,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE;QACvB,IAAI,YAAY,GAAoB,SAAS,CAAC;QAE9C,SAAS,GAAG,CAAC,IAAO;YAChB,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC;YAEtB,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO;YACH,GAAG,EAAE,GAAG,EAAE;gBACN,IAAI,YAAY,KAAK,SAAS,EAAE;oBAC5B,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;oBACvB,MAAM,CAAC,CAAC,EAAE,CAAY,YAAY,CAAC,CAAC,CAAC;iBACxC;gBACD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;YAC3B,CAAC;YACD,GAAG;SACN,CAAC;IACN,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,MAAM,CAAC,cAAc,CACxB;QACI,OAAO,EAAE,IAAgB;QACzB,SAAS,EAAE,CAAC,IAAuB,EAAE,EAAE;YACnC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEzB,OAAO;gBACH,WAAW,EAAE,GAAG,EAAE,CACd,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAC3D,CAAC;QACN,CAAC;KACJ,EACD,SAAS,EACT;QACI,UAAU,EAAE,IAAI;QAChB,GAAG;QACH,GAAG;KACN,CACJ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"StatefulObservable.js","sourceRoot":"","sources":["../../src/tools/StatefulObservable/StatefulObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAW1C,MAAM,UAAU,wBAAwB,CACpC,eAAwB;IAExB,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE;QACvB,IAAI,YAAY,GAAoB,SAAS,CAAC;QAE9C,SAAS,GAAG,CAAC,IAAO;YAChB,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC;YAEtB,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO;YACH,GAAG,EAAE,GAAG,EAAE;gBACN,IAAI,YAAY,KAAK,SAAS,EAAE;oBAC5B,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;oBACvB,MAAM,CAAC,CAAC,EAAE,CAAY,YAAY,CAAC,CAAC,CAAC;iBACxC;gBACD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;YAC3B,CAAC;YACD,GAAG;SACN,CAAC;IACN,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,MAAM,CAAC,cAAc,CACxB;QACI,OAAO,EAAE,IAAgB;QACzB,SAAS,EAAE,CAAC,IAAuB,EAAE,EAAE;YACnC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEzB,OAAO;gBACH,WAAW,EAAE,GAAG,EAAE,CACd,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAC3D,CAAC;QACN,CAAC;KACJ,EACD,SAAS,EACT;QACI,UAAU,EAAE,IAAI;QAChB,GAAG;QACH,GAAG;KACN,CACJ,CAAC;AACN,CAAC"}
@@ -1,5 +1,4 @@
1
- import { assert } from "tsafe/assert";
2
- import { is } from "tsafe/is";
1
+ import { assert, is } from "tsafe/assert";
3
2
  import { structuredCloneButFunctions } from "./structuredCloneButFunctions";
4
3
  /** NOTE: Array a copied over, not merged. */
5
4
  export function deepAssign(params) {
@@ -1 +1 @@
1
- {"version":3,"file":"deepAssign.js","sourceRoot":"","sources":["../src/tools/deepAssign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,6CAA6C;AAC7C,MAAM,UAAU,UAAU,CAAC,MAG1B;IACG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAElC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9B,IAAI,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAErC,IAAI,kBAAkB,KAAK,SAAS,EAAE;YAClC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;YACnB,OAAO;SACV;QAED,IAAI,kBAAkB,YAAY,IAAI,EAAE;YACpC,MAAM,CAAC;gBACH,MAAM;gBACN,GAAG;gBACH,KAAK,EAAE,IAAI,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC;aAChD,CAAC,CAAC;YAEH,OAAO;SACV;QAED,IAAI,kBAAkB,YAAY,KAAK,EAAE;YACrC,MAAM,CAAC;gBACH,MAAM;gBACN,GAAG;gBACH,KAAK,EAAE,2BAA2B,CAAC,kBAAkB,CAAC;aACzD,CAAC,CAAC;YAEH,OAAO;SACV;QAED,IACI,kBAAkB,YAAY,QAAQ;YACtC,CAAC,CAAC,kBAAkB,YAAY,MAAM,CAAC,EACzC;YACE,MAAM,CAAC;gBACH,MAAM;gBACN,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AAE,IAAI;QAClB,KAAK;KACR,CAAC,CAAC;AACP,CAAC"}
@@ -4176,8 +4176,10 @@ var external_child_process_ = __nccwpck_require__(81);
4176
4176
  // EXTERNAL MODULE: ./dist/bin/shared/constants.js
4177
4177
  var constants = __nccwpck_require__(173);
4178
4178
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/exclude.mjs
4179
- /* eslint-disable @typescript-eslint/no-explicit-any */
4180
- /** Return a function to use as Array.prototype.filter argument
4179
+ /**
4180
+ * https://docs.tsafe.dev/exclude
4181
+ *
4182
+ * Return a function to use as Array.prototype.filter argument
4181
4183
  * to exclude one or many primitive value element from the array.
4182
4184
  * Ex: ([ "a", "b", "c" ] as const).filter(exclude("a")) return ("b" | "c")[]
4183
4185
  * Ex: ([ "a", "b", "c", "d"] as const).filter(exclude(["a", "b"]) gives ("c" | "d")[]
@@ -4186,16 +4188,14 @@ function exclude(target) {
4186
4188
  const test = target instanceof Object
4187
4189
  ? element => target.indexOf(element) < 0
4188
4190
  : element => element !== target;
4189
- return function (elemnt) {
4190
- return test(elemnt);
4191
+ return function (element) {
4192
+ return test(element);
4191
4193
  };
4192
4194
  }
4193
4195
 
4194
4196
 
4195
4197
  //# sourceMappingURL=exclude.mjs.map
4196
4198
 
4197
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/is.mjs
4198
- var is = __nccwpck_require__(453);
4199
4199
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/index.mjs
4200
4200
 
4201
4201
 
@@ -4217,7 +4217,6 @@ var is = __nccwpck_require__(453);
4217
4217
  // EXTERNAL MODULE: ./dist/bin/tools/crawl.js
4218
4218
  var crawl = __nccwpck_require__(36);
4219
4219
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectEntries.mjs
4220
- /* eslint-disable @typescript-eslint/no-explicit-any */
4221
4220
  /** https://docs.tsafe.dev/objectentries */
4222
4221
  function objectEntries(o) {
4223
4222
  return Object.entries(o);
@@ -4330,7 +4329,6 @@ function ensureSingleOrNone(arg0) {
4330
4329
 
4331
4330
 
4332
4331
 
4333
-
4334
4332
  (0,assert/* assert */.h)();
4335
4333
  function getBuildContext(params) {
4336
4334
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
@@ -4799,7 +4797,7 @@ function getBuildContext(params) {
4799
4797
  const jarFileBasename = (() => {
4800
4798
  use_custom_jar_basename: {
4801
4799
  const { keycloakVersionTargets } = buildOptions;
4802
- (0,assert/* assert */.h)((0,is.is)(keycloakVersionTargets));
4800
+ (0,assert/* assert */.h)((0,assert.is)(keycloakVersionTargets));
4803
4801
  if (keycloakVersionTargets === undefined) {
4804
4802
  break use_custom_jar_basename;
4805
4803
  }
@@ -4860,7 +4858,7 @@ function getBuildContext(params) {
4860
4858
  const jarTargets = [];
4861
4859
  for (const [keycloakVersionRange, jarNameOrBoolean] of objectEntries((() => {
4862
4860
  const { keycloakVersionTargets } = buildOptions;
4863
- (0,assert/* assert */.h)((0,is.is)(keycloakVersionTargets));
4861
+ (0,assert/* assert */.h)((0,assert.is)(keycloakVersionTargets));
4864
4862
  return keycloakVersionTargets;
4865
4863
  })())) {
4866
4864
  if (jarNameOrBoolean === false) {
@@ -5423,15 +5421,14 @@ function readThisNpmPackageVersion() {
5423
5421
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
5424
5422
  /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(292);
5425
5423
  /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_2__);
5426
- /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_8__ = __nccwpck_require__(469);
5424
+ /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_7__ = __nccwpck_require__(469);
5427
5425
  /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(41);
5428
5426
  /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(818);
5429
5427
  /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nccwpck_require__.n(chalk__WEBPACK_IMPORTED_MODULE_4__);
5430
5428
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(113);
5431
5429
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__nccwpck_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
5432
- /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_6__ = __nccwpck_require__(453);
5433
- /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_9__ = __nccwpck_require__(30);
5434
- /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __nccwpck_require__(795);
5430
+ /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __nccwpck_require__(30);
5431
+ /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __nccwpck_require__(795);
5435
5432
 
5436
5433
 
5437
5434
 
@@ -5441,8 +5438,7 @@ function readThisNpmPackageVersion() {
5441
5438
 
5442
5439
 
5443
5440
 
5444
-
5445
- getIsPrettierAvailable.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5441
+ getIsPrettierAvailable.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
5446
5442
  async function getIsPrettierAvailable() {
5447
5443
  var _a;
5448
5444
  if (getIsPrettierAvailable.cache !== undefined) {
@@ -5455,21 +5451,21 @@ async function getIsPrettierAvailable() {
5455
5451
  getIsPrettierAvailable.cache = isPrettierAvailable;
5456
5452
  return isPrettierAvailable;
5457
5453
  }
5458
- getPrettier.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5454
+ getPrettier.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
5459
5455
  async function getPrettier() {
5460
5456
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(getIsPrettierAvailable());
5461
5457
  if (getPrettier.cache !== undefined) {
5462
5458
  return getPrettier.cache;
5463
5459
  }
5464
- let prettier = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5460
+ let prettier = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
5465
5461
  import_prettier: {
5466
5462
  // NOTE: When module is linked we want to make sure we import the correct version
5467
5463
  // of prettier, that is the one of the project, not the one of this repo.
5468
5464
  // So we do a sketchy eval to bypass ncc.
5469
5465
  // We make sure to only do that when linking, otherwise we import properly.
5470
- if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .K)() === "0.0.0") {
5471
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_9__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)(), "..", "prettier"))}")`);
5472
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_6__.is)(prettier));
5466
+ if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
5467
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)(), "..", "prettier"))}")`);
5468
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
5473
5469
  break import_prettier;
5474
5470
  }
5475
5471
  prettier = await Promise.resolve(/* import() */).then(__nccwpck_require__.t.bind(__nccwpck_require__, 421, 23));
@@ -9564,16 +9560,17 @@ var __read = (this && this.__read) || function (o, n) {
9564
9560
  return ar;
9565
9561
  };
9566
9562
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9567
- exports.assert = exports.AssertionError = void 0;
9568
- /* eslint-disable @typescript-eslint/no-unused-vars */
9563
+ exports.AssertionError = void 0;
9564
+ exports.assert = assert;
9565
+ exports.is = is;
9569
9566
  var overwriteReadonlyProp_1 = __nccwpck_require__(803);
9570
- var assertIsRefWrapper_1 = __nccwpck_require__(562);
9571
- /** @see <https://docs.tsafe.dev/assert#error-thrown> */
9567
+ /** https://docs.tsafe.dev/assert#error-thrown */
9572
9568
  var AssertionError = /** @class */ (function (_super) {
9573
9569
  __extends(AssertionError, _super);
9574
9570
  function AssertionError(msg) {
9575
9571
  var _newTarget = this.constructor;
9576
9572
  var _this = _super.call(this, "Wrong assertion encountered" + (!msg ? "" : ": \"".concat(msg, "\""))) || this;
9573
+ _this.originalMessage = msg;
9577
9574
  Object.setPrototypeOf(_this, _newTarget.prototype);
9578
9575
  if (!_this.stack) {
9579
9576
  return _this;
@@ -9590,7 +9587,6 @@ var AssertionError = /** @class */ (function (_super) {
9590
9587
  return i !== 1 && i !== 2;
9591
9588
  })
9592
9589
  .join("\n"));
9593
- // eslint-disable-next-line no-empty
9594
9590
  }
9595
9591
  catch (_a) { }
9596
9592
  return _this;
@@ -9598,21 +9594,36 @@ var AssertionError = /** @class */ (function (_super) {
9598
9594
  return AssertionError;
9599
9595
  }(Error));
9600
9596
  exports.AssertionError = AssertionError;
9597
+ var refOfIs = undefined;
9601
9598
  /** https://docs.tsafe.dev/assert */
9602
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9603
9599
  function assert(condition, msg) {
9604
9600
  if (arguments.length === 0) {
9605
9601
  condition = true;
9606
9602
  }
9607
- if (assertIsRefWrapper_1.assertIsRefWrapper.ref !== undefined) {
9608
- assertIsRefWrapper_1.assertIsRefWrapper.ref = undefined;
9603
+ if (refOfIs !== undefined) {
9604
+ refOfIs = undefined;
9609
9605
  return;
9610
9606
  }
9611
9607
  if (!condition) {
9612
- throw new AssertionError(msg);
9608
+ throw new AssertionError(typeof msg === "function" ? msg() : msg);
9613
9609
  }
9614
9610
  }
9615
- exports.assert = assert;
9611
+ var errorMessage = "Wrong usage of the `is` function refer to https://docs.tsafe.dev/is";
9612
+ /** https://docs.tsafe.dev/is */
9613
+ function is(value) {
9614
+ var ref = {};
9615
+ if (refOfIs !== undefined) {
9616
+ refOfIs = undefined;
9617
+ throw new Error(errorMessage);
9618
+ }
9619
+ refOfIs = ref;
9620
+ Promise.resolve().then(function () {
9621
+ if (refOfIs === ref) {
9622
+ throw new Error(errorMessage);
9623
+ }
9624
+ });
9625
+ return null;
9626
+ }
9616
9627
  //# sourceMappingURL=assert.js.map
9617
9628
 
9618
9629
  /***/ }),
@@ -9636,8 +9647,6 @@ exports.id = id;
9636
9647
 
9637
9648
  "use strict";
9638
9649
 
9639
- /* eslint-disable no-empty */
9640
- /* eslint-disable @typescript-eslint/no-explicit-any */
9641
9650
  var __assign = (this && this.__assign) || function () {
9642
9651
  __assign = Object.assign || function(t) {
9643
9652
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9687,21 +9696,6 @@ exports.overwriteReadonlyProp = overwriteReadonlyProp;
9687
9696
 
9688
9697
  /***/ }),
9689
9698
 
9690
- /***/ 562:
9691
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
9692
-
9693
- "use strict";
9694
-
9695
- Object.defineProperty(exports, "__esModule", ({ value: true }));
9696
- exports.assertIsRefWrapper = void 0;
9697
- var id_1 = __nccwpck_require__(47);
9698
- exports.assertIsRefWrapper = {
9699
- "ref": (0, id_1.id)(undefined),
9700
- };
9701
- //# sourceMappingURL=assertIsRefWrapper.js.map
9702
-
9703
- /***/ }),
9704
-
9705
9699
  /***/ 81:
9706
9700
  /***/ ((module) => {
9707
9701
 
@@ -9773,14 +9767,13 @@ module.exports = require("tty");
9773
9767
 
9774
9768
  // EXPORTS
9775
9769
  __nccwpck_require__.d(__webpack_exports__, {
9776
- "h": () => (/* binding */ assert)
9770
+ "h": () => (/* binding */ assert),
9771
+ "is": () => (/* binding */ is)
9777
9772
  });
9778
9773
 
9779
9774
  // UNUSED EXPORTS: AssertionError
9780
9775
 
9781
9776
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/lab/overwriteReadonlyProp.mjs
9782
- /* eslint-disable no-empty */
9783
- /* eslint-disable @typescript-eslint/no-explicit-any */
9784
9777
  /**
9785
9778
  * Assign a value to a property even if the object is freezed or if the property is not writable
9786
9779
  * Throw if the assignation fail ( for example if the property is non configurable write: false )
@@ -9819,17 +9812,14 @@ const overwriteReadonlyProp = (obj, propertyName, value) => {
9819
9812
 
9820
9813
  //# sourceMappingURL=overwriteReadonlyProp.mjs.map
9821
9814
 
9822
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/zz_internal/assertIsRefWrapper.mjs
9823
- var assertIsRefWrapper = __nccwpck_require__(770);
9824
9815
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/assert.mjs
9825
9816
 
9826
9817
 
9827
-
9828
- /* eslint-disable @typescript-eslint/no-unused-vars */
9829
- /** @see <https://docs.tsafe.dev/assert#error-thrown> */
9818
+ /** https://docs.tsafe.dev/assert#error-thrown */
9830
9819
  class AssertionError extends Error {
9831
9820
  constructor(msg) {
9832
9821
  super(`Wrong assertion encountered` + (!msg ? "" : `: "${msg}"`));
9822
+ this.originalMessage = msg;
9833
9823
  Object.setPrototypeOf(this, new.target.prototype);
9834
9824
  if (!this.stack) {
9835
9825
  return;
@@ -9839,25 +9829,40 @@ class AssertionError extends Error {
9839
9829
  .split("\n")
9840
9830
  .filter((...[, i]) => i !== 1 && i !== 2)
9841
9831
  .join("\n"));
9842
- // eslint-disable-next-line no-empty
9843
9832
  }
9844
9833
  catch { }
9845
9834
  }
9846
9835
  }
9836
+ let refOfIs = undefined;
9847
9837
  /** https://docs.tsafe.dev/assert */
9848
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9849
9838
  function assert(condition, msg) {
9850
9839
  if (arguments.length === 0) {
9851
9840
  condition = true;
9852
9841
  }
9853
- if (assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref !== undefined) {
9854
- assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref = undefined;
9842
+ if (refOfIs !== undefined) {
9843
+ refOfIs = undefined;
9855
9844
  return;
9856
9845
  }
9857
9846
  if (!condition) {
9858
- throw new AssertionError(msg);
9847
+ throw new AssertionError(typeof msg === "function" ? msg() : msg);
9859
9848
  }
9860
9849
  }
9850
+ const errorMessage = "Wrong usage of the `is` function refer to https://docs.tsafe.dev/is";
9851
+ /** https://docs.tsafe.dev/is */
9852
+ function is(value) {
9853
+ const ref = {};
9854
+ if (refOfIs !== undefined) {
9855
+ refOfIs = undefined;
9856
+ throw new Error(errorMessage);
9857
+ }
9858
+ refOfIs = ref;
9859
+ Promise.resolve().then(() => {
9860
+ if (refOfIs === ref) {
9861
+ throw new Error(errorMessage);
9862
+ }
9863
+ });
9864
+ return null;
9865
+ }
9861
9866
 
9862
9867
 
9863
9868
  //# sourceMappingURL=assert.mjs.map
@@ -9879,43 +9884,6 @@ const id = (x) => x;
9879
9884
  //# sourceMappingURL=id.mjs.map
9880
9885
 
9881
9886
 
9882
- /***/ }),
9883
-
9884
- /***/ 453:
9885
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
9886
-
9887
- "use strict";
9888
- /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
9889
- /* harmony export */ "is": () => (/* binding */ is)
9890
- /* harmony export */ });
9891
- /* harmony import */ var _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(770);
9892
-
9893
-
9894
- /* eslint-disable @typescript-eslint/no-namespace */
9895
- /* eslint-disable @typescript-eslint/no-explicit-any */
9896
- const errorMessage = [
9897
- `Wrong usage of the ${is.name} function refer to`,
9898
- `https://docs.tsafe.dev/${is.name.toLowerCase()}`,
9899
- ].join(" ");
9900
- function is(_value) {
9901
- const ref = {};
9902
- if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref !== undefined) {
9903
- _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = undefined;
9904
- throw new Error(errorMessage);
9905
- }
9906
- _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = ref;
9907
- Promise.resolve().then(() => {
9908
- if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref === ref) {
9909
- throw new Error(errorMessage);
9910
- }
9911
- });
9912
- return null;
9913
- }
9914
-
9915
-
9916
- //# sourceMappingURL=is.mjs.map
9917
-
9918
-
9919
9887
  /***/ }),
9920
9888
 
9921
9889
  /***/ 30:
@@ -9935,26 +9903,6 @@ function symToStr(wrap) {
9935
9903
  //# sourceMappingURL=symToStr.mjs.map
9936
9904
 
9937
9905
 
9938
- /***/ }),
9939
-
9940
- /***/ 770:
9941
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
9942
-
9943
- "use strict";
9944
- /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
9945
- /* harmony export */ "j": () => (/* binding */ assertIsRefWrapper)
9946
- /* harmony export */ });
9947
- /* harmony import */ var _id_mjs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(469);
9948
-
9949
-
9950
- const assertIsRefWrapper = {
9951
- "ref": (0,_id_mjs__WEBPACK_IMPORTED_MODULE_0__.id)(undefined),
9952
- };
9953
-
9954
-
9955
- //# sourceMappingURL=assertIsRefWrapper.mjs.map
9956
-
9957
-
9958
9906
  /***/ })
9959
9907
 
9960
9908
  /******/ });