@fragmentsx/fragments-client 0.1.0 → 0.2.0-dev-20260901074721

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/dist/index.es.js CHANGED
@@ -1,23 +1,23 @@
1
- import { createState as Je } from "@graph-state/core";
2
- import { allowTypes as Ke } from "@graph-state/checkers";
3
- class W extends Error {
4
- constructor(r, t, a, u) {
5
- super(t), this.code = r, this.details = a, this.status = u, this.name = "FragmentsAreaError", Object.setPrototypeOf(this, W.prototype);
1
+ import { createState as nt } from "@graph-state/core";
2
+ import { allowTypes as at } from "@graph-state/checkers";
3
+ class K extends Error {
4
+ constructor(r, t, n, s) {
5
+ super(t), this.code = r, this.details = n, this.status = s, this.name = "FragmentsAreaError", Object.setPrototypeOf(this, K.prototype);
6
6
  }
7
7
  }
8
- class be extends Error {
8
+ class ve extends Error {
9
9
  constructor(r, t) {
10
10
  super(
11
11
  `Manifest apiVersion mismatch: expected ${r}, received ${t}`
12
- ), this.expected = r, this.received = t, this.name = "FragmentsApiVersionError", Object.setPrototypeOf(this, be.prototype);
12
+ ), this.expected = r, this.received = t, this.name = "FragmentsApiVersionError", Object.setPrototypeOf(this, ve.prototype);
13
13
  }
14
14
  }
15
- class q extends Error {
16
- constructor(r, t, a) {
17
- super(`Failed to load fragment ${r} from ${t}`), this.fragmentId = r, this.moduleUrl = t, this.cause = a, this.name = "FragmentsLoadError", Object.setPrototypeOf(this, q.prototype);
15
+ class X extends Error {
16
+ constructor(r, t, n) {
17
+ super(`Failed to load fragment ${r} from ${t}`), this.fragmentId = r, this.moduleUrl = t, this.cause = n, this.name = "FragmentsLoadError", Object.setPrototypeOf(this, X.prototype);
18
18
  }
19
19
  }
20
- const j = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), C = j(
20
+ const x = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), C = x(
21
21
  "Fragment",
22
22
  "FragmentInstance",
23
23
  "Instance",
@@ -45,41 +45,41 @@ const j = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), C = j(
45
45
  "TextHighlight",
46
46
  "TextStyleMark",
47
47
  "ImagePaint"
48
- ), H = j("auto", "fill"), re = j("None", "Solid", "Dashed", "Dotted"), Ue = j("_blank", "none"), ne = j(
48
+ ), U = x("auto", "fill"), ie = x("None", "Solid", "Dashed", "Dotted"), lt = x("_blank", "none"), oe = x(
49
49
  "None",
50
50
  "Solid",
51
51
  "LinearGradient",
52
52
  "RadialGradient",
53
53
  "ConicGradient",
54
54
  "Image"
55
- ), ae = j("Auto", "Contain", "Cover"), Ye = j(
55
+ ), ce = x("Auto", "Contain", "Cover"), st = x(
56
56
  "Min",
57
57
  "Center",
58
58
  "Max",
59
59
  "Stretch",
60
60
  "Scale"
61
- ), le = j("absolute", "relative"), D = j("Fixed", "Hug", "Fill", "Relative"), ie = j("none", "flex"), se = j("vertical", "horizontal"), oe = j("start", "center", "end"), ce = j(
61
+ ), ue = x("absolute", "relative"), G = x("Fixed", "Hug", "Fill", "Relative"), fe = x("none", "flex"), pe = x("vertical", "horizontal"), de = x("start", "center", "end"), he = x(
62
62
  "start",
63
63
  "center",
64
64
  "end",
65
65
  "space-between",
66
66
  "space-around"
67
- ), Ee = j(
67
+ ), Ie = x(
68
68
  "none",
69
69
  "uppercase",
70
70
  "lowercase",
71
71
  "capitalize"
72
- ), X = j(
72
+ ), Q = x(
73
73
  "none",
74
74
  "underline",
75
75
  "line-through"
76
- ), Qe = j("loop", "appear", "hover", "tap"), Ze = j(
76
+ ), it = x("loop", "appear", "hover", "tap"), ot = x(
77
77
  "fade",
78
78
  "slide",
79
79
  "bounce",
80
80
  "wiggle",
81
81
  "increase"
82
- ), g = j(
82
+ ), g = x(
83
83
  "Event",
84
84
  "String",
85
85
  "Link",
@@ -93,14 +93,14 @@ const j = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), C = j(
93
93
  "Image",
94
94
  "Object",
95
95
  "Goal"
96
- ), ue = j(
96
+ ), be = x(
97
97
  "normal",
98
98
  "nowrap",
99
99
  "pre",
100
100
  "pre-wrap",
101
101
  "pre-line",
102
102
  "break-spaces"
103
- ), fe = j("visible", "hidden", "scroll"), et = j(
103
+ ), ye = x("visible", "hidden", "scroll"), ct = x(
104
104
  "convert",
105
105
  "exists",
106
106
  "equals",
@@ -122,51 +122,51 @@ const j = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), C = j(
122
122
  // Less than or equals,
123
123
  "convertFromBoolean",
124
124
  "negative"
125
- ), tt = j("canvas", "document"), rt = j("viewport", "parent", "fixed"), Oe = j("click", "mouseover", "appear"), pe = j(
125
+ ), ut = x("canvas", "document"), ft = x("viewport", "parent", "fixed"), Ae = x("click", "mouseover", "appear"), me = x(
126
126
  "goal",
127
127
  "mutate",
128
128
  "callback",
129
129
  "tracker"
130
- ), nt = j(
130
+ ), pt = x(
131
131
  "AreaScope",
132
132
  "InstanceScope",
133
133
  "FragmentScope",
134
134
  "CollectionScope",
135
135
  "CollectionItemScope"
136
- ), at = j("Global", "Fragment"), Ce = 3, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
136
+ ), dt = x("Global", "Fragment"), Fe = 3, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
137
137
  __proto__: null,
138
- MAX_SCHEMA_DEPTH: Ce,
139
- borderType: re,
140
- constrain: Ye,
141
- createConstants: j,
142
- cssChunkScopeTypes: at,
143
- effectName: Ze,
144
- effectType: Qe,
145
- eventMode: pe,
146
- fragmentGrowingMode: H,
147
- imagePaintScaleModes: ae,
148
- interactions: Oe,
149
- layerAlign: oe,
150
- layerDirection: se,
151
- layerDistribute: ce,
152
- layerMode: ie,
153
- linkTarget: Ue,
138
+ MAX_SCHEMA_DEPTH: Fe,
139
+ borderType: ie,
140
+ constrain: st,
141
+ createConstants: x,
142
+ cssChunkScopeTypes: dt,
143
+ effectName: ot,
144
+ effectType: it,
145
+ eventMode: me,
146
+ fragmentGrowingMode: U,
147
+ imagePaintScaleModes: ce,
148
+ interactions: Ae,
149
+ layerAlign: de,
150
+ layerDirection: pe,
151
+ layerDistribute: he,
152
+ layerMode: fe,
153
+ linkTarget: lt,
154
154
  nodes: C,
155
- overflow: fe,
156
- paintMode: ne,
157
- positionType: le,
158
- renderMode: rt,
159
- renderTarget: tt,
160
- scopeTypes: nt,
161
- sizing: D,
162
- textDecorations: X,
163
- textTransform: Ee,
164
- variableTransforms: et,
155
+ overflow: ye,
156
+ paintMode: oe,
157
+ positionType: ue,
158
+ renderMode: ft,
159
+ renderTarget: ut,
160
+ scopeTypes: pt,
161
+ sizing: G,
162
+ textDecorations: Q,
163
+ textTransform: Ie,
164
+ variableTransforms: ct,
165
165
  variableType: g,
166
- whiteSpace: ue
166
+ whiteSpace: be
167
167
  }, Symbol.toStringTag, { value: "Module" }));
168
168
  // @__NO_SIDE_EFFECTS__
169
- function it(e) {
169
+ function bt(e) {
170
170
  return {
171
171
  lang: (e == null ? void 0 : e.lang) ?? void 0,
172
172
  message: e == null ? void 0 : e.message,
@@ -175,35 +175,35 @@ function it(e) {
175
175
  };
176
176
  }
177
177
  // @__NO_SIDE_EFFECTS__
178
- function st(e, r) {
178
+ function yt(e, r) {
179
179
  var t;
180
180
  return (t = void 0) == null ? void 0 : t.get(r);
181
181
  }
182
182
  // @__NO_SIDE_EFFECTS__
183
- function L(e) {
183
+ function R(e) {
184
184
  var r, t;
185
- const a = typeof e;
186
- return a === "string" ? `"${e}"` : a === "number" || a === "bigint" || a === "boolean" ? `${e}` : a === "object" || a === "function" ? (e && ((t = (r = Object.getPrototypeOf(e)) == null ? void 0 : r.constructor) == null ? void 0 : t.name)) ?? "null" : a;
185
+ const n = typeof e;
186
+ return n === "string" ? `"${e}"` : n === "number" || n === "bigint" || n === "boolean" ? `${e}` : n === "object" || n === "function" ? (e && ((t = (r = Object.getPrototypeOf(e)) == null ? void 0 : r.constructor) == null ? void 0 : t.name)) ?? "null" : n;
187
187
  }
188
- function w(e, r, t, a, u) {
189
- const c = u && "input" in u ? u.input : t.value, o = (u == null ? void 0 : u.expected) ?? e.expects ?? null, i = (u == null ? void 0 : u.received) ?? /* @__PURE__ */ L(c), f = {
188
+ function T(e, r, t, n, s) {
189
+ const o = s && "input" in s ? s.input : t.value, c = (s == null ? void 0 : s.expected) ?? e.expects ?? null, f = (s == null ? void 0 : s.received) ?? /* @__PURE__ */ R(o), i = {
190
190
  kind: e.kind,
191
191
  type: e.type,
192
- input: c,
193
- expected: o,
194
- received: i,
195
- message: `Invalid ${r}: ${o ? `Expected ${o} but r` : "R"}eceived ${i}`,
192
+ input: o,
193
+ expected: c,
194
+ received: f,
195
+ message: `Invalid ${r}: ${c ? `Expected ${c} but r` : "R"}eceived ${f}`,
196
196
  requirement: e.requirement,
197
- path: u == null ? void 0 : u.path,
198
- issues: u == null ? void 0 : u.issues,
199
- lang: a.lang,
200
- abortEarly: a.abortEarly,
201
- abortPipeEarly: a.abortPipeEarly
202
- }, m = e.kind === "schema", p = (u == null ? void 0 : u.message) ?? e.message ?? /* @__PURE__ */ st(e.reference, f.lang) ?? (m ? (f.lang, void 0) : null) ?? a.message ?? (f.lang, void 0);
203
- p !== void 0 && (f.message = typeof p == "function" ? (
197
+ path: s == null ? void 0 : s.path,
198
+ issues: s == null ? void 0 : s.issues,
199
+ lang: n.lang,
200
+ abortEarly: n.abortEarly,
201
+ abortPipeEarly: n.abortPipeEarly
202
+ }, m = e.kind === "schema", v = (s == null ? void 0 : s.message) ?? e.message ?? /* @__PURE__ */ yt(e.reference, i.lang) ?? (m ? (i.lang, void 0) : null) ?? n.message ?? (i.lang, void 0);
203
+ v !== void 0 && (i.message = typeof v == "function" ? (
204
204
  // @ts-expect-error
205
- p(f)
206
- ) : p), m && (t.typed = !1), t.issues ? t.issues.push(f) : t.issues = [f];
205
+ v(i)
206
+ ) : v), m && (t.typed = !1), t.issues ? t.issues.push(i) : t.issues = [i];
207
207
  }
208
208
  // @__NO_SIDE_EFFECTS__
209
209
  function I(e) {
@@ -211,83 +211,83 @@ function I(e) {
211
211
  version: 1,
212
212
  vendor: "valibot",
213
213
  validate(r) {
214
- return e["~run"]({ value: r }, /* @__PURE__ */ it());
214
+ return e["~run"]({ value: r }, /* @__PURE__ */ bt());
215
215
  }
216
216
  };
217
217
  }
218
218
  // @__NO_SIDE_EFFECTS__
219
- function Te(e, r) {
219
+ function _e(e, r) {
220
220
  return Object.hasOwn(e, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
221
221
  }
222
222
  // @__NO_SIDE_EFFECTS__
223
- function J(e, r) {
223
+ function Z(e, r) {
224
224
  const t = [...new Set(e)];
225
225
  return t.length > 1 ? `(${t.join(` ${r} `)})` : t[0] ?? "never";
226
226
  }
227
227
  // @__NO_SIDE_EFFECTS__
228
- function we(e, r) {
228
+ function Me(e, r) {
229
229
  return {
230
230
  kind: "validation",
231
231
  type: "check",
232
- reference: we,
232
+ reference: Me,
233
233
  async: !1,
234
234
  expects: null,
235
235
  requirement: e,
236
236
  message: r,
237
- "~run"(t, a) {
238
- return t.typed && !this.requirement(t.value) && w(this, "input", t, a), t;
237
+ "~run"(t, n) {
238
+ return t.typed && !this.requirement(t.value) && T(this, "input", t, n), t;
239
239
  }
240
240
  };
241
241
  }
242
242
  // @__NO_SIDE_EFFECTS__
243
- function he(e, r) {
243
+ function ke(e, r) {
244
244
  return {
245
245
  kind: "validation",
246
246
  type: "max_value",
247
- reference: he,
247
+ reference: ke,
248
248
  async: !1,
249
- expects: `<=${e instanceof Date ? e.toJSON() : /* @__PURE__ */ L(e)}`,
249
+ expects: `<=${e instanceof Date ? e.toJSON() : /* @__PURE__ */ R(e)}`,
250
250
  requirement: e,
251
251
  message: r,
252
- "~run"(t, a) {
253
- return t.typed && !(t.value <= this.requirement) && w(this, "value", t, a, {
254
- received: t.value instanceof Date ? t.value.toJSON() : /* @__PURE__ */ L(t.value)
252
+ "~run"(t, n) {
253
+ return t.typed && !(t.value <= this.requirement) && T(this, "value", t, n, {
254
+ received: t.value instanceof Date ? t.value.toJSON() : /* @__PURE__ */ R(t.value)
255
255
  }), t;
256
256
  }
257
257
  };
258
258
  }
259
259
  // @__NO_SIDE_EFFECTS__
260
- function Ie(e) {
260
+ function $e(e) {
261
261
  return {
262
262
  kind: "metadata",
263
263
  type: "metadata",
264
- reference: Ie,
264
+ reference: $e,
265
265
  metadata: e
266
266
  };
267
267
  }
268
268
  // @__NO_SIDE_EFFECTS__
269
- function B(e, r) {
269
+ function L(e, r) {
270
270
  return {
271
271
  kind: "validation",
272
272
  type: "min_value",
273
- reference: B,
273
+ reference: L,
274
274
  async: !1,
275
- expects: `>=${e instanceof Date ? e.toJSON() : /* @__PURE__ */ L(e)}`,
275
+ expects: `>=${e instanceof Date ? e.toJSON() : /* @__PURE__ */ R(e)}`,
276
276
  requirement: e,
277
277
  message: r,
278
- "~run"(t, a) {
279
- return t.typed && !(t.value >= this.requirement) && w(this, "value", t, a, {
280
- received: t.value instanceof Date ? t.value.toJSON() : /* @__PURE__ */ L(t.value)
278
+ "~run"(t, n) {
279
+ return t.typed && !(t.value >= this.requirement) && T(this, "value", t, n, {
280
+ received: t.value instanceof Date ? t.value.toJSON() : /* @__PURE__ */ R(t.value)
281
281
  }), t;
282
282
  }
283
283
  };
284
284
  }
285
285
  // @__NO_SIDE_EFFECTS__
286
- function Pe(e) {
286
+ function De(e) {
287
287
  return {
288
288
  kind: "transformation",
289
289
  type: "transform",
290
- reference: Pe,
290
+ reference: De,
291
291
  async: !1,
292
292
  operation: e,
293
293
  "~run"(r) {
@@ -296,7 +296,7 @@ function Pe(e) {
296
296
  };
297
297
  }
298
298
  // @__NO_SIDE_EFFECTS__
299
- function Ae(e, r, t) {
299
+ function Ve(e, r, t) {
300
300
  return typeof e.fallback == "function" ? (
301
301
  // @ts-expect-error
302
302
  e.fallback(r, t)
@@ -306,7 +306,7 @@ function Ae(e, r, t) {
306
306
  );
307
307
  }
308
308
  // @__NO_SIDE_EFFECTS__
309
- function K(e, r, t) {
309
+ function ee(e, r, t) {
310
310
  return typeof e.default == "function" ? (
311
311
  // @ts-expect-error
312
312
  e.default(r, t)
@@ -316,11 +316,11 @@ function K(e, r, t) {
316
316
  );
317
317
  }
318
318
  // @__NO_SIDE_EFFECTS__
319
- function ye() {
319
+ function ge() {
320
320
  return {
321
321
  kind: "schema",
322
322
  type: "any",
323
- reference: ye,
323
+ reference: ge,
324
324
  expects: "any",
325
325
  async: !1,
326
326
  get "~standard"() {
@@ -332,11 +332,11 @@ function ye() {
332
332
  };
333
333
  }
334
334
  // @__NO_SIDE_EFFECTS__
335
- function M(e, r) {
335
+ function $(e, r) {
336
336
  return {
337
337
  kind: "schema",
338
338
  type: "array",
339
- reference: M,
339
+ reference: $,
340
340
  expects: "Array",
341
341
  async: !1,
342
342
  item: e,
@@ -344,42 +344,42 @@ function M(e, r) {
344
344
  get "~standard"() {
345
345
  return /* @__PURE__ */ I(this);
346
346
  },
347
- "~run"(t, a) {
348
- var u;
349
- const c = t.value;
350
- if (Array.isArray(c)) {
347
+ "~run"(t, n) {
348
+ var s;
349
+ const o = t.value;
350
+ if (Array.isArray(o)) {
351
351
  t.typed = !0, t.value = [];
352
- for (let o = 0; o < c.length; o++) {
353
- const i = c[o], f = this.item["~run"]({ value: i }, a);
354
- if (f.issues) {
352
+ for (let c = 0; c < o.length; c++) {
353
+ const f = o[c], i = this.item["~run"]({ value: f }, n);
354
+ if (i.issues) {
355
355
  const m = {
356
356
  type: "array",
357
357
  origin: "value",
358
- input: c,
359
- key: o,
360
- value: i
358
+ input: o,
359
+ key: c,
360
+ value: f
361
361
  };
362
- for (const p of f.issues)
363
- p.path ? p.path.unshift(m) : p.path = [m], (u = t.issues) == null || u.push(p);
364
- if (t.issues || (t.issues = f.issues), a.abortEarly) {
362
+ for (const v of i.issues)
363
+ v.path ? v.path.unshift(m) : v.path = [m], (s = t.issues) == null || s.push(v);
364
+ if (t.issues || (t.issues = i.issues), n.abortEarly) {
365
365
  t.typed = !1;
366
366
  break;
367
367
  }
368
368
  }
369
- f.typed || (t.typed = !1), t.value.push(f.value);
369
+ i.typed || (t.typed = !1), t.value.push(i.value);
370
370
  }
371
371
  } else
372
- w(this, "type", t, a);
372
+ T(this, "type", t, n);
373
373
  return t;
374
374
  }
375
375
  };
376
376
  }
377
377
  // @__NO_SIDE_EFFECTS__
378
- function v(e) {
378
+ function k(e) {
379
379
  return {
380
380
  kind: "schema",
381
381
  type: "boolean",
382
- reference: v,
382
+ reference: k,
383
383
  expects: "boolean",
384
384
  async: !1,
385
385
  message: e,
@@ -387,20 +387,20 @@ function v(e) {
387
387
  return /* @__PURE__ */ I(this);
388
388
  },
389
389
  "~run"(r, t) {
390
- return typeof r.value == "boolean" ? r.typed = !0 : w(this, "type", r, t), r;
390
+ return typeof r.value == "boolean" ? r.typed = !0 : T(this, "type", r, t), r;
391
391
  }
392
392
  };
393
393
  }
394
394
  // @__NO_SIDE_EFFECTS__
395
- function R(e, r) {
395
+ function W(e, r) {
396
396
  const t = [];
397
- for (const a in e)
398
- (`${+a}` !== a || typeof e[a] != "string" || !Object.is(e[e[a]], +a)) && t.push(e[a]);
397
+ for (const n in e)
398
+ (`${+n}` !== n || typeof e[n] != "string" || !Object.is(e[e[n]], +n)) && t.push(e[n]);
399
399
  return {
400
400
  kind: "schema",
401
401
  type: "enum",
402
- reference: R,
403
- expects: /* @__PURE__ */ J(t.map(L), "|"),
402
+ reference: W,
403
+ expects: /* @__PURE__ */ Z(t.map(R), "|"),
404
404
  async: !1,
405
405
  enum: e,
406
406
  options: t,
@@ -408,17 +408,17 @@ function R(e, r) {
408
408
  get "~standard"() {
409
409
  return /* @__PURE__ */ I(this);
410
410
  },
411
- "~run"(a, u) {
412
- return this.options.includes(a.value) ? a.typed = !0 : w(this, "type", a, u), a;
411
+ "~run"(n, s) {
412
+ return this.options.includes(n.value) ? n.typed = !0 : T(this, "type", n, s), n;
413
413
  }
414
414
  };
415
415
  }
416
416
  // @__NO_SIDE_EFFECTS__
417
- function U(e) {
417
+ function te(e) {
418
418
  return {
419
419
  kind: "schema",
420
420
  type: "lazy",
421
- reference: U,
421
+ reference: te,
422
422
  expects: "unknown",
423
423
  async: !1,
424
424
  getter: e,
@@ -431,29 +431,29 @@ function U(e) {
431
431
  };
432
432
  }
433
433
  // @__NO_SIDE_EFFECTS__
434
- function P(e, r) {
434
+ function F(e, r) {
435
435
  return {
436
436
  kind: "schema",
437
437
  type: "literal",
438
- reference: P,
439
- expects: /* @__PURE__ */ L(e),
438
+ reference: F,
439
+ expects: /* @__PURE__ */ R(e),
440
440
  async: !1,
441
441
  literal: e,
442
442
  message: r,
443
443
  get "~standard"() {
444
444
  return /* @__PURE__ */ I(this);
445
445
  },
446
- "~run"(t, a) {
447
- return t.value === this.literal ? t.typed = !0 : w(this, "type", t, a), t;
446
+ "~run"(t, n) {
447
+ return t.value === this.literal ? t.typed = !0 : T(this, "type", t, n), t;
448
448
  }
449
449
  };
450
450
  }
451
451
  // @__NO_SIDE_EFFECTS__
452
- function de(e, r) {
452
+ function Se(e, r) {
453
453
  return {
454
454
  kind: "schema",
455
455
  type: "loose_object",
456
- reference: de,
456
+ reference: Se,
457
457
  expects: "Object",
458
458
  async: !1,
459
459
  entries: e,
@@ -461,68 +461,68 @@ function de(e, r) {
461
461
  get "~standard"() {
462
462
  return /* @__PURE__ */ I(this);
463
463
  },
464
- "~run"(t, a) {
465
- var u;
466
- const c = t.value;
467
- if (c && typeof c == "object") {
464
+ "~run"(t, n) {
465
+ var s;
466
+ const o = t.value;
467
+ if (o && typeof o == "object") {
468
468
  t.typed = !0, t.value = {};
469
- for (const o in this.entries) {
470
- const i = this.entries[o];
471
- if (o in c || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && // @ts-expect-error
472
- i.default !== void 0) {
473
- const f = o in c ? (
469
+ for (const c in this.entries) {
470
+ const f = this.entries[c];
471
+ if (c in o || (f.type === "exact_optional" || f.type === "optional" || f.type === "nullish") && // @ts-expect-error
472
+ f.default !== void 0) {
473
+ const i = c in o ? (
474
474
  // @ts-expect-error
475
- c[o]
476
- ) : /* @__PURE__ */ K(i), m = i["~run"]({ value: f }, a);
475
+ o[c]
476
+ ) : /* @__PURE__ */ ee(f), m = f["~run"]({ value: i }, n);
477
477
  if (m.issues) {
478
- const p = {
478
+ const v = {
479
479
  type: "object",
480
480
  origin: "value",
481
- input: c,
482
- key: o,
483
- value: f
481
+ input: o,
482
+ key: c,
483
+ value: i
484
484
  };
485
485
  for (const b of m.issues)
486
- b.path ? b.path.unshift(p) : b.path = [p], (u = t.issues) == null || u.push(b);
487
- if (t.issues || (t.issues = m.issues), a.abortEarly) {
486
+ b.path ? b.path.unshift(v) : b.path = [v], (s = t.issues) == null || s.push(b);
487
+ if (t.issues || (t.issues = m.issues), n.abortEarly) {
488
488
  t.typed = !1;
489
489
  break;
490
490
  }
491
491
  }
492
- m.typed || (t.typed = !1), t.value[o] = m.value;
493
- } else if (i.fallback !== void 0)
494
- t.value[o] = /* @__PURE__ */ Ae(i);
495
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (w(this, "key", t, a, {
492
+ m.typed || (t.typed = !1), t.value[c] = m.value;
493
+ } else if (f.fallback !== void 0)
494
+ t.value[c] = /* @__PURE__ */ Ve(f);
495
+ else if (f.type !== "exact_optional" && f.type !== "optional" && f.type !== "nullish" && (T(this, "key", t, n, {
496
496
  input: void 0,
497
- expected: `"${o}"`,
497
+ expected: `"${c}"`,
498
498
  path: [
499
499
  {
500
500
  type: "object",
501
501
  origin: "key",
502
- input: c,
503
- key: o,
502
+ input: o,
503
+ key: c,
504
504
  // @ts-expect-error
505
- value: c[o]
505
+ value: o[c]
506
506
  }
507
507
  ]
508
- }), a.abortEarly))
508
+ }), n.abortEarly))
509
509
  break;
510
510
  }
511
- if (!t.issues || !a.abortEarly)
512
- for (const o in c)
513
- /* @__PURE__ */ Te(c, o) && !(o in this.entries) && (t.value[o] = c[o]);
511
+ if (!t.issues || !n.abortEarly)
512
+ for (const c in o)
513
+ /* @__PURE__ */ _e(o, c) && !(c in this.entries) && (t.value[c] = o[c]);
514
514
  } else
515
- w(this, "type", t, a);
515
+ T(this, "type", t, n);
516
516
  return t;
517
517
  }
518
518
  };
519
519
  }
520
520
  // @__NO_SIDE_EFFECTS__
521
- function Fe(e) {
521
+ function Ge(e) {
522
522
  return {
523
523
  kind: "schema",
524
524
  type: "never",
525
- reference: Fe,
525
+ reference: Ge,
526
526
  expects: "never",
527
527
  async: !1,
528
528
  message: e,
@@ -530,7 +530,7 @@ function Fe(e) {
530
530
  return /* @__PURE__ */ I(this);
531
531
  },
532
532
  "~run"(r, t) {
533
- return w(this, "type", r, t), r;
533
+ return T(this, "type", r, t), r;
534
534
  }
535
535
  };
536
536
  }
@@ -547,17 +547,17 @@ function S(e, r) {
547
547
  get "~standard"() {
548
548
  return /* @__PURE__ */ I(this);
549
549
  },
550
- "~run"(t, a) {
551
- return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ K(this, t, a)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, a);
550
+ "~run"(t, n) {
551
+ return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ ee(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
552
552
  }
553
553
  };
554
554
  }
555
555
  // @__NO_SIDE_EFFECTS__
556
- function y(e) {
556
+ function h(e) {
557
557
  return {
558
558
  kind: "schema",
559
559
  type: "number",
560
- reference: y,
560
+ reference: h,
561
561
  expects: "number",
562
562
  async: !1,
563
563
  message: e,
@@ -565,16 +565,16 @@ function y(e) {
565
565
  return /* @__PURE__ */ I(this);
566
566
  },
567
567
  "~run"(r, t) {
568
- return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : w(this, "type", r, t), r;
568
+ return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : T(this, "type", r, t), r;
569
569
  }
570
570
  };
571
571
  }
572
572
  // @__NO_SIDE_EFFECTS__
573
- function h(e, r) {
573
+ function d(e, r) {
574
574
  return {
575
575
  kind: "schema",
576
576
  type: "object",
577
- reference: h,
577
+ reference: d,
578
578
  expects: "Object",
579
579
  async: !1,
580
580
  entries: e,
@@ -582,65 +582,65 @@ function h(e, r) {
582
582
  get "~standard"() {
583
583
  return /* @__PURE__ */ I(this);
584
584
  },
585
- "~run"(t, a) {
586
- var u;
587
- const c = t.value;
588
- if (c && typeof c == "object") {
585
+ "~run"(t, n) {
586
+ var s;
587
+ const o = t.value;
588
+ if (o && typeof o == "object") {
589
589
  t.typed = !0, t.value = {};
590
- for (const o in this.entries) {
591
- const i = this.entries[o];
592
- if (o in c || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && // @ts-expect-error
593
- i.default !== void 0) {
594
- const f = o in c ? (
590
+ for (const c in this.entries) {
591
+ const f = this.entries[c];
592
+ if (c in o || (f.type === "exact_optional" || f.type === "optional" || f.type === "nullish") && // @ts-expect-error
593
+ f.default !== void 0) {
594
+ const i = c in o ? (
595
595
  // @ts-expect-error
596
- c[o]
597
- ) : /* @__PURE__ */ K(i), m = i["~run"]({ value: f }, a);
596
+ o[c]
597
+ ) : /* @__PURE__ */ ee(f), m = f["~run"]({ value: i }, n);
598
598
  if (m.issues) {
599
- const p = {
599
+ const v = {
600
600
  type: "object",
601
601
  origin: "value",
602
- input: c,
603
- key: o,
604
- value: f
602
+ input: o,
603
+ key: c,
604
+ value: i
605
605
  };
606
606
  for (const b of m.issues)
607
- b.path ? b.path.unshift(p) : b.path = [p], (u = t.issues) == null || u.push(b);
608
- if (t.issues || (t.issues = m.issues), a.abortEarly) {
607
+ b.path ? b.path.unshift(v) : b.path = [v], (s = t.issues) == null || s.push(b);
608
+ if (t.issues || (t.issues = m.issues), n.abortEarly) {
609
609
  t.typed = !1;
610
610
  break;
611
611
  }
612
612
  }
613
- m.typed || (t.typed = !1), t.value[o] = m.value;
614
- } else if (i.fallback !== void 0)
615
- t.value[o] = /* @__PURE__ */ Ae(i);
616
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (w(this, "key", t, a, {
613
+ m.typed || (t.typed = !1), t.value[c] = m.value;
614
+ } else if (f.fallback !== void 0)
615
+ t.value[c] = /* @__PURE__ */ Ve(f);
616
+ else if (f.type !== "exact_optional" && f.type !== "optional" && f.type !== "nullish" && (T(this, "key", t, n, {
617
617
  input: void 0,
618
- expected: `"${o}"`,
618
+ expected: `"${c}"`,
619
619
  path: [
620
620
  {
621
621
  type: "object",
622
622
  origin: "key",
623
- input: c,
624
- key: o,
623
+ input: o,
624
+ key: c,
625
625
  // @ts-expect-error
626
- value: c[o]
626
+ value: o[c]
627
627
  }
628
628
  ]
629
- }), a.abortEarly))
629
+ }), n.abortEarly))
630
630
  break;
631
631
  }
632
632
  } else
633
- w(this, "type", t, a);
633
+ T(this, "type", t, n);
634
634
  return t;
635
635
  }
636
636
  };
637
637
  }
638
638
  // @__NO_SIDE_EFFECTS__
639
- function s(e, r) {
639
+ function u(e, r) {
640
640
  return {
641
641
  kind: "schema",
642
642
  type: "optional",
643
- reference: s,
643
+ reference: u,
644
644
  expects: `(${e.expects} | undefined)`,
645
645
  async: !1,
646
646
  wrapped: e,
@@ -648,35 +648,35 @@ function s(e, r) {
648
648
  get "~standard"() {
649
649
  return /* @__PURE__ */ I(this);
650
650
  },
651
- "~run"(t, a) {
652
- return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ K(this, t, a)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, a);
651
+ "~run"(t, n) {
652
+ return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ ee(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
653
653
  }
654
654
  };
655
655
  }
656
656
  // @__NO_SIDE_EFFECTS__
657
- function T(e, r) {
657
+ function w(e, r) {
658
658
  return {
659
659
  kind: "schema",
660
660
  type: "picklist",
661
- reference: T,
662
- expects: /* @__PURE__ */ J(e.map(L), "|"),
661
+ reference: w,
662
+ expects: /* @__PURE__ */ Z(e.map(R), "|"),
663
663
  async: !1,
664
664
  options: e,
665
665
  message: r,
666
666
  get "~standard"() {
667
667
  return /* @__PURE__ */ I(this);
668
668
  },
669
- "~run"(t, a) {
670
- return this.options.includes(t.value) ? t.typed = !0 : w(this, "type", t, a), t;
669
+ "~run"(t, n) {
670
+ return this.options.includes(t.value) ? t.typed = !0 : T(this, "type", t, n), t;
671
671
  }
672
672
  };
673
673
  }
674
674
  // @__NO_SIDE_EFFECTS__
675
- function z(e, r, t) {
675
+ function J(e, r, t) {
676
676
  return {
677
677
  kind: "schema",
678
678
  type: "record",
679
- reference: z,
679
+ reference: J,
680
680
  expects: "Object",
681
681
  async: !1,
682
682
  key: e,
@@ -685,53 +685,53 @@ function z(e, r, t) {
685
685
  get "~standard"() {
686
686
  return /* @__PURE__ */ I(this);
687
687
  },
688
- "~run"(a, u) {
689
- var c, o;
690
- const i = a.value;
691
- if (i && typeof i == "object") {
692
- a.typed = !0, a.value = {};
693
- for (const f in i)
694
- if (/* @__PURE__ */ Te(i, f)) {
695
- const m = i[f], p = this.key["~run"]({ value: f }, u);
696
- if (p.issues) {
697
- const d = {
688
+ "~run"(n, s) {
689
+ var o, c;
690
+ const f = n.value;
691
+ if (f && typeof f == "object") {
692
+ n.typed = !0, n.value = {};
693
+ for (const i in f)
694
+ if (/* @__PURE__ */ _e(f, i)) {
695
+ const m = f[i], v = this.key["~run"]({ value: i }, s);
696
+ if (v.issues) {
697
+ const p = {
698
698
  type: "object",
699
699
  origin: "key",
700
- input: i,
701
- key: f,
700
+ input: f,
701
+ key: i,
702
702
  value: m
703
703
  };
704
- for (const k of p.issues)
705
- k.path = [d], (c = a.issues) == null || c.push(k);
706
- if (a.issues || (a.issues = p.issues), u.abortEarly) {
707
- a.typed = !1;
704
+ for (const y of v.issues)
705
+ y.path = [p], (o = n.issues) == null || o.push(y);
706
+ if (n.issues || (n.issues = v.issues), s.abortEarly) {
707
+ n.typed = !1;
708
708
  break;
709
709
  }
710
710
  }
711
711
  const b = this.value["~run"](
712
712
  { value: m },
713
- u
713
+ s
714
714
  );
715
715
  if (b.issues) {
716
- const d = {
716
+ const p = {
717
717
  type: "object",
718
718
  origin: "value",
719
- input: i,
720
- key: f,
719
+ input: f,
720
+ key: i,
721
721
  value: m
722
722
  };
723
- for (const k of b.issues)
724
- k.path ? k.path.unshift(d) : k.path = [d], (o = a.issues) == null || o.push(k);
725
- if (a.issues || (a.issues = b.issues), u.abortEarly) {
726
- a.typed = !1;
723
+ for (const y of b.issues)
724
+ y.path ? y.path.unshift(p) : y.path = [p], (c = n.issues) == null || c.push(y);
725
+ if (n.issues || (n.issues = b.issues), s.abortEarly) {
726
+ n.typed = !1;
727
727
  break;
728
728
  }
729
729
  }
730
- (!p.typed || !b.typed) && (a.typed = !1), p.typed && (a.value[p.value] = b.value);
730
+ (!v.typed || !b.typed) && (n.typed = !1), v.typed && (n.value[v.value] = b.value);
731
731
  }
732
732
  } else
733
- w(this, "type", a, u);
734
- return a;
733
+ T(this, "type", n, s);
734
+ return n;
735
735
  }
736
736
  };
737
737
  }
@@ -748,12 +748,12 @@ function l(e) {
748
748
  return /* @__PURE__ */ I(this);
749
749
  },
750
750
  "~run"(r, t) {
751
- return typeof r.value == "string" ? r.typed = !0 : w(this, "type", r, t), r;
751
+ return typeof r.value == "string" ? r.typed = !0 : T(this, "type", r, t), r;
752
752
  }
753
753
  };
754
754
  }
755
755
  // @__NO_SIDE_EFFECTS__
756
- function Se(e) {
756
+ function we(e) {
757
757
  let r;
758
758
  if (e)
759
759
  for (const t of e)
@@ -761,12 +761,12 @@ function Se(e) {
761
761
  return r;
762
762
  }
763
763
  // @__NO_SIDE_EFFECTS__
764
- function $(e, r) {
764
+ function V(e, r) {
765
765
  return {
766
766
  kind: "schema",
767
767
  type: "union",
768
- reference: $,
769
- expects: /* @__PURE__ */ J(
768
+ reference: V,
769
+ expects: /* @__PURE__ */ Z(
770
770
  e.map((t) => t.expects),
771
771
  "|"
772
772
  ),
@@ -776,33 +776,33 @@ function $(e, r) {
776
776
  get "~standard"() {
777
777
  return /* @__PURE__ */ I(this);
778
778
  },
779
- "~run"(t, a) {
780
- let u, c, o;
781
- for (const i of this.options) {
782
- const f = i["~run"]({ value: t.value }, a);
783
- if (f.typed)
784
- if (f.issues)
785
- c ? c.push(f) : c = [f];
779
+ "~run"(t, n) {
780
+ let s, o, c;
781
+ for (const f of this.options) {
782
+ const i = f["~run"]({ value: t.value }, n);
783
+ if (i.typed)
784
+ if (i.issues)
785
+ o ? o.push(i) : o = [i];
786
786
  else {
787
- u = f;
787
+ s = i;
788
788
  break;
789
789
  }
790
790
  else
791
- o ? o.push(f) : o = [f];
791
+ c ? c.push(i) : c = [i];
792
792
  }
793
- if (u)
794
- return u;
795
- if (c) {
796
- if (c.length === 1)
797
- return c[0];
798
- w(this, "type", t, a, {
799
- issues: /* @__PURE__ */ Se(c)
793
+ if (s)
794
+ return s;
795
+ if (o) {
796
+ if (o.length === 1)
797
+ return o[0];
798
+ T(this, "type", t, n, {
799
+ issues: /* @__PURE__ */ we(o)
800
800
  }), t.typed = !0;
801
801
  } else {
802
- if ((o == null ? void 0 : o.length) === 1)
803
- return o[0];
804
- w(this, "type", t, a, {
805
- issues: /* @__PURE__ */ Se(o)
802
+ if ((c == null ? void 0 : c.length) === 1)
803
+ return c[0];
804
+ T(this, "type", t, n, {
805
+ issues: /* @__PURE__ */ we(c)
806
806
  });
807
807
  }
808
808
  return t;
@@ -810,11 +810,11 @@ function $(e, r) {
810
810
  };
811
811
  }
812
812
  // @__NO_SIDE_EFFECTS__
813
- function Y() {
813
+ function re() {
814
814
  return {
815
815
  kind: "schema",
816
816
  type: "unknown",
817
- reference: Y,
817
+ reference: re,
818
818
  expects: "unknown",
819
819
  async: !1,
820
820
  get "~standard"() {
@@ -826,11 +826,11 @@ function Y() {
826
826
  };
827
827
  }
828
828
  // @__NO_SIDE_EFFECTS__
829
- function Me(e, r, t) {
829
+ function Be(e, r, t) {
830
830
  return {
831
831
  kind: "schema",
832
832
  type: "variant",
833
- reference: Me,
833
+ reference: Be,
834
834
  expects: "Object",
835
835
  async: !1,
836
836
  key: e,
@@ -839,64 +839,64 @@ function Me(e, r, t) {
839
839
  get "~standard"() {
840
840
  return /* @__PURE__ */ I(this);
841
841
  },
842
- "~run"(a, u) {
843
- const c = a.value;
844
- if (c && typeof c == "object") {
845
- let o, i = 0, f = this.key, m = [];
846
- const p = (b, d) => {
847
- for (const k of b.options) {
848
- if (k.type === "variant")
849
- p(k, new Set(d).add(k.key));
842
+ "~run"(n, s) {
843
+ const o = n.value;
844
+ if (o && typeof o == "object") {
845
+ let c, f = 0, i = this.key, m = [];
846
+ const v = (b, p) => {
847
+ for (const y of b.options) {
848
+ if (y.type === "variant")
849
+ v(y, new Set(p).add(y.key));
850
850
  else {
851
- let E = !0, F = 0;
852
- for (const x of d) {
853
- const G = k.entries[x];
854
- if (x in c ? G["~run"](
851
+ let j = !0, P = 0;
852
+ for (const E of p) {
853
+ const A = y.entries[E];
854
+ if (E in o ? A["~run"](
855
855
  // @ts-expect-error
856
- { typed: !1, value: c[x] },
857
- u
858
- ).issues : G.type !== "exact_optional" && G.type !== "optional" && G.type !== "nullish") {
859
- E = !1, f !== x && (i < F || i === F && x in c && !(f in c)) && (i = F, f = x, m = []), f === x && m.push(
860
- k.entries[x].expects
856
+ { typed: !1, value: o[E] },
857
+ s
858
+ ).issues : A.type !== "exact_optional" && A.type !== "optional" && A.type !== "nullish") {
859
+ j = !1, i !== E && (f < P || f === P && E in o && !(i in o)) && (f = P, i = E, m = []), i === E && m.push(
860
+ y.entries[E].expects
861
861
  );
862
862
  break;
863
863
  }
864
- F++;
864
+ P++;
865
865
  }
866
- if (E) {
867
- const x = k["~run"]({ value: c }, u);
868
- (!o || !o.typed && x.typed) && (o = x);
866
+ if (j) {
867
+ const E = y["~run"]({ value: o }, s);
868
+ (!c || !c.typed && E.typed) && (c = E);
869
869
  }
870
870
  }
871
- if (o && !o.issues)
871
+ if (c && !c.issues)
872
872
  break;
873
873
  }
874
874
  };
875
- if (p(this, /* @__PURE__ */ new Set([this.key])), o)
876
- return o;
877
- w(this, "type", a, u, {
875
+ if (v(this, /* @__PURE__ */ new Set([this.key])), c)
876
+ return c;
877
+ T(this, "type", n, s, {
878
878
  // @ts-expect-error
879
- input: c[f],
880
- expected: /* @__PURE__ */ J(m, "|"),
879
+ input: o[i],
880
+ expected: /* @__PURE__ */ Z(m, "|"),
881
881
  path: [
882
882
  {
883
883
  type: "object",
884
884
  origin: "value",
885
- input: c,
886
- key: f,
885
+ input: o,
886
+ key: i,
887
887
  // @ts-expect-error
888
- value: c[f]
888
+ value: o[i]
889
889
  }
890
890
  ]
891
891
  });
892
892
  } else
893
- w(this, "type", a, u);
894
- return a;
893
+ T(this, "type", n, s);
894
+ return n;
895
895
  }
896
896
  };
897
897
  }
898
898
  // @__NO_SIDE_EFFECTS__
899
- function _(...e) {
899
+ function D(...e) {
900
900
  return {
901
901
  ...e[0],
902
902
  pipe: e,
@@ -904,232 +904,232 @@ function _(...e) {
904
904
  return /* @__PURE__ */ I(this);
905
905
  },
906
906
  "~run"(r, t) {
907
- for (const a of e)
908
- if (a.kind !== "metadata") {
909
- if (r.issues && (a.kind === "schema" || a.kind === "transformation")) {
907
+ for (const n of e)
908
+ if (n.kind !== "metadata") {
909
+ if (r.issues && (n.kind === "schema" || n.kind === "transformation")) {
910
910
  r.typed = !1;
911
911
  break;
912
912
  }
913
- (!r.issues || !t.abortEarly && !t.abortPipeEarly) && (r = a["~run"](r, t));
913
+ (!r.issues || !t.abortEarly && !t.abortPipeEarly) && (r = n["~run"](r, t));
914
914
  }
915
915
  return r;
916
916
  }
917
917
  };
918
918
  }
919
- const _e = /* @__PURE__ */ we((e) => e.split(":").length === 2), me = (e) => {
919
+ const Le = /* @__PURE__ */ Me((e) => e.split(":").length === 2), xe = (e) => {
920
920
  const r = (t) => typeof t == "number" ? `${t}px` : t;
921
- return n(/* @__PURE__ */ $([/* @__PURE__ */ y(), /* @__PURE__ */ l()]), {
921
+ return a(/* @__PURE__ */ V([/* @__PURE__ */ h(), /* @__PURE__ */ l()]), {
922
922
  ...e,
923
923
  fallback: e == null ? void 0 : e.fallback,
924
924
  transform: r
925
925
  });
926
- }, O = /* @__PURE__ */ _(/* @__PURE__ */ l(), _e), n = (e, r) => {
927
- const t = (r == null ? void 0 : r.overridable) ?? !0, a = (r == null ? void 0 : r.variable) ?? !1, u = [e];
928
- return a && u.push(/* @__PURE__ */ _(/* @__PURE__ */ l(), _e)), t && u.push(/* @__PURE__ */ ye()), /* @__PURE__ */ _(
929
- /* @__PURE__ */ s(/* @__PURE__ */ $(u)),
930
- /* @__PURE__ */ Pe((r == null ? void 0 : r.transform) ?? ((c) => c)),
931
- /* @__PURE__ */ Ie(r ?? {})
926
+ }, O = /* @__PURE__ */ D(/* @__PURE__ */ l(), Le), a = (e, r) => {
927
+ const t = (r == null ? void 0 : r.overridable) ?? !0, n = (r == null ? void 0 : r.variable) ?? !1, s = [e];
928
+ return n && s.push(/* @__PURE__ */ D(/* @__PURE__ */ l(), Le)), t && s.push(/* @__PURE__ */ ge()), /* @__PURE__ */ D(
929
+ /* @__PURE__ */ u(/* @__PURE__ */ V(s)),
930
+ /* @__PURE__ */ De((r == null ? void 0 : r.transform) ?? ((o) => o)),
931
+ /* @__PURE__ */ $e(r ?? {})
932
932
  );
933
- }, ve = /* @__PURE__ */ h({
934
- children: n(/* @__PURE__ */ M(/* @__PURE__ */ l()), {
933
+ }, je = /* @__PURE__ */ d({
934
+ children: a(/* @__PURE__ */ $(/* @__PURE__ */ l()), {
935
935
  fallback: [],
936
936
  overridable: !1
937
937
  })
938
- }), A = /* @__PURE__ */ h({
939
- _id: /* @__PURE__ */ $([/* @__PURE__ */ l(), /* @__PURE__ */ y()]),
940
- _type: /* @__PURE__ */ T(Object.keys(C))
941
- }), V = /* @__PURE__ */ h({
942
- overrides: n(/* @__PURE__ */ M(/* @__PURE__ */ l()), { overridable: !1 }),
943
- overrideFrom: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 })
944
- }), Q = /* @__PURE__ */ h({
945
- position: n(/* @__PURE__ */ R(Object.keys(le)), {
946
- fallback: le.absolute
938
+ }), _ = /* @__PURE__ */ d({
939
+ _id: /* @__PURE__ */ V([/* @__PURE__ */ l(), /* @__PURE__ */ h()]),
940
+ _type: /* @__PURE__ */ w(Object.keys(C))
941
+ }), B = /* @__PURE__ */ d({
942
+ overrides: a(/* @__PURE__ */ $(/* @__PURE__ */ l()), { overridable: !1 }),
943
+ overrideFrom: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 })
944
+ }), ne = /* @__PURE__ */ d({
945
+ position: a(/* @__PURE__ */ W(Object.keys(ue)), {
946
+ fallback: ue.absolute
947
947
  }),
948
- top: n(/* @__PURE__ */ S(/* @__PURE__ */ y()), {
948
+ top: a(/* @__PURE__ */ S(/* @__PURE__ */ h()), {
949
949
  fallback: null,
950
950
  transform: (e) => typeof e == "number" ? Math.ceil(e) : e
951
951
  }),
952
- left: n(/* @__PURE__ */ S(/* @__PURE__ */ y()), {
952
+ left: a(/* @__PURE__ */ S(/* @__PURE__ */ h()), {
953
953
  fallback: null,
954
954
  transform: (e) => typeof e == "number" ? Math.ceil(e) : e
955
955
  }),
956
- right: n(/* @__PURE__ */ S(/* @__PURE__ */ y()), {
956
+ right: a(/* @__PURE__ */ S(/* @__PURE__ */ h()), {
957
957
  fallback: null,
958
958
  transform: (e) => typeof e == "number" ? Math.ceil(e) : e
959
959
  }),
960
- bottom: n(/* @__PURE__ */ S(/* @__PURE__ */ y()), {
960
+ bottom: a(/* @__PURE__ */ S(/* @__PURE__ */ h()), {
961
961
  fallback: null,
962
962
  transform: (e) => typeof e == "number" ? Math.ceil(e) : e
963
963
  }),
964
- centerAnchorX: n(/* @__PURE__ */ y(), {
964
+ centerAnchorX: a(/* @__PURE__ */ h(), {
965
965
  fallback: 0.5
966
966
  }),
967
- centerAnchorY: n(/* @__PURE__ */ y(), {
967
+ centerAnchorY: a(/* @__PURE__ */ h(), {
968
968
  fallback: 0.5
969
969
  })
970
- }), Z = /* @__PURE__ */ h({
971
- opacity: n(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(0), /* @__PURE__ */ he(1)), {
970
+ }), ae = /* @__PURE__ */ d({
971
+ opacity: a(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(0), /* @__PURE__ */ ke(1)), {
972
972
  fallback: 1,
973
973
  variable: !0
974
974
  }),
975
- visible: n(/* @__PURE__ */ v(), { fallback: !0, variable: !0 }),
976
- rotate: n(/* @__PURE__ */ y(), { fallback: null }),
977
- zIndex: n(/* @__PURE__ */ y(), { fallback: null }),
978
- classnames: n(/* @__PURE__ */ M(O), { fallback: [] })
979
- }), ee = /* @__PURE__ */ h({
980
- widthType: n(/* @__PURE__ */ T(Object.keys(D)), {
981
- fallback: D.Fixed
975
+ visible: a(/* @__PURE__ */ k(), { fallback: !0, variable: !0 }),
976
+ rotate: a(/* @__PURE__ */ h(), { fallback: null }),
977
+ zIndex: a(/* @__PURE__ */ h(), { fallback: null }),
978
+ classnames: a(/* @__PURE__ */ $(O), { fallback: [] })
979
+ }), le = /* @__PURE__ */ d({
980
+ widthType: a(/* @__PURE__ */ w(Object.keys(G)), {
981
+ fallback: G.Fixed
982
982
  }),
983
- heightType: n(/* @__PURE__ */ T(Object.keys(D)), {
984
- fallback: D.Fixed
983
+ heightType: a(/* @__PURE__ */ w(Object.keys(G)), {
984
+ fallback: G.Fixed
985
985
  }),
986
- width: n(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(0)), {
986
+ width: a(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(0)), {
987
987
  fallback: 0,
988
988
  transform: Math.ceil
989
989
  }),
990
- height: n(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(0)), {
990
+ height: a(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(0)), {
991
991
  fallback: 0,
992
992
  transform: Math.ceil
993
993
  }),
994
- aspectRatio: n(/* @__PURE__ */ y(), { fallback: -1 }),
995
- minWidth: n(/* @__PURE__ */ S(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(-1))), {
994
+ aspectRatio: a(/* @__PURE__ */ h(), { fallback: -1 }),
995
+ minWidth: a(/* @__PURE__ */ S(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(-1))), {
996
996
  fallback: -1,
997
997
  transform: Math.ceil
998
998
  }),
999
- minWidthType: n(/* @__PURE__ */ T(Object.keys(D)), {
1000
- fallback: D.Fixed
999
+ minWidthType: a(/* @__PURE__ */ w(Object.keys(G)), {
1000
+ fallback: G.Fixed
1001
1001
  }),
1002
- maxWidth: n(/* @__PURE__ */ S(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(-1))), {
1002
+ maxWidth: a(/* @__PURE__ */ S(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(-1))), {
1003
1003
  fallback: -1,
1004
1004
  transform: Math.ceil
1005
1005
  }),
1006
- maxWidthType: n(/* @__PURE__ */ T(Object.keys(D)), {
1007
- fallback: D.Fixed
1006
+ maxWidthType: a(/* @__PURE__ */ w(Object.keys(G)), {
1007
+ fallback: G.Fixed
1008
1008
  }),
1009
- minHeight: n(/* @__PURE__ */ S(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(-1))), {
1009
+ minHeight: a(/* @__PURE__ */ S(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(-1))), {
1010
1010
  fallback: -1,
1011
1011
  transform: Math.ceil
1012
1012
  }),
1013
- minHeightType: n(/* @__PURE__ */ T(Object.keys(D)), {
1014
- fallback: D.Fixed
1013
+ minHeightType: a(/* @__PURE__ */ w(Object.keys(G)), {
1014
+ fallback: G.Fixed
1015
1015
  }),
1016
- maxHeight: n(/* @__PURE__ */ S(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(-1))), {
1016
+ maxHeight: a(/* @__PURE__ */ S(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(-1))), {
1017
1017
  fallback: -1,
1018
1018
  transform: Math.ceil
1019
1019
  }),
1020
- maxHeightType: n(/* @__PURE__ */ T(Object.keys(D)), {
1021
- fallback: D.Fixed
1020
+ maxHeightType: a(/* @__PURE__ */ w(Object.keys(G)), {
1021
+ fallback: G.Fixed
1022
1022
  })
1023
- }), $e = /* @__PURE__ */ h({
1024
- layerMode: n(/* @__PURE__ */ T(Object.keys(ie)), {
1025
- fallback: ie.none
1023
+ }), Ne = /* @__PURE__ */ d({
1024
+ layerMode: a(/* @__PURE__ */ w(Object.keys(fe)), {
1025
+ fallback: fe.none
1026
1026
  }),
1027
- layerAlign: n(/* @__PURE__ */ T(Object.keys(oe)), {
1028
- fallback: oe.start
1027
+ layerAlign: a(/* @__PURE__ */ w(Object.keys(de)), {
1028
+ fallback: de.start
1029
1029
  }),
1030
- layerDirection: n(/* @__PURE__ */ T(Object.keys(se)), {
1031
- fallback: se.horizontal
1030
+ layerDirection: a(/* @__PURE__ */ w(Object.keys(pe)), {
1031
+ fallback: pe.horizontal
1032
1032
  }),
1033
- layerDistribute: n(/* @__PURE__ */ T(Object.keys(ce)), {
1034
- fallback: ce.start
1033
+ layerDistribute: a(/* @__PURE__ */ w(Object.keys(he)), {
1034
+ fallback: he.start
1035
1035
  }),
1036
- layerWrap: n(/* @__PURE__ */ v(), { fallback: !1 }),
1037
- layerGap: n(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ B(0)), { fallback: 0 }),
1036
+ layerWrap: a(/* @__PURE__ */ k(), { fallback: !1 }),
1037
+ layerGap: a(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ L(0)), { fallback: 0 }),
1038
1038
  // px-хелпер: число → "Npx", строка-шорткат дословно; был голый v.string() без transform
1039
- padding: me({ fallback: "0px" })
1040
- }), ot = n(/* @__PURE__ */ T(Object.keys(fe)), {
1041
- fallback: fe.hidden
1042
- }), ct = me({ fallback: "0px" }), te = /* @__PURE__ */ h({
1043
- interactions: n(/* @__PURE__ */ M(O), { fallback: [] })
1044
- }), ke = /* @__PURE__ */ h({
1045
- cssOverride: n(/* @__PURE__ */ l(), { fallback: "" })
1046
- }), ut = /* @__PURE__ */ _(
1047
- /* @__PURE__ */ h({
1048
- name: n(/* @__PURE__ */ l(), { fallback: "Frame", overridable: !1 }),
1049
- isBreakpoint: n(/* @__PURE__ */ v(), {
1039
+ padding: xe({ fallback: "0px" })
1040
+ }), mt = a(/* @__PURE__ */ w(Object.keys(ye)), {
1041
+ fallback: ye.hidden
1042
+ }), vt = xe({ fallback: "0px" }), se = /* @__PURE__ */ d({
1043
+ interactions: a(/* @__PURE__ */ $(O), { fallback: [] })
1044
+ }), Ee = /* @__PURE__ */ d({
1045
+ cssOverride: a(/* @__PURE__ */ l(), { fallback: "" })
1046
+ }), kt = /* @__PURE__ */ D(
1047
+ /* @__PURE__ */ d({
1048
+ name: a(/* @__PURE__ */ l(), { fallback: "Frame", overridable: !1 }),
1049
+ isBreakpoint: a(/* @__PURE__ */ k(), {
1050
1050
  fallback: !1,
1051
1051
  overridable: !1
1052
1052
  }),
1053
- isPrimary: n(/* @__PURE__ */ v(), { fallback: !1, overridable: !1 }),
1054
- border: n(O),
1055
- paint: n(O),
1056
- link: n(O),
1057
- ...ve.entries,
1058
- ...A.entries,
1059
- ...V.entries,
1060
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1061
- ...Q.entries,
1062
- ...Z.entries,
1063
- ...ee.entries,
1064
- ...$e.entries,
1065
- ...te.entries,
1066
- ...ke.entries,
1067
- overflow: ot,
1068
- borderRadius: ct
1053
+ isPrimary: a(/* @__PURE__ */ k(), { fallback: !1, overridable: !1 }),
1054
+ border: a(O),
1055
+ paint: a(O),
1056
+ link: a(O),
1057
+ ...je.entries,
1058
+ ..._.entries,
1059
+ ...B.entries,
1060
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1061
+ ...ne.entries,
1062
+ ...ae.entries,
1063
+ ...le.entries,
1064
+ ...Ne.entries,
1065
+ ...se.entries,
1066
+ ...Ee.entries,
1067
+ overflow: mt,
1068
+ borderRadius: vt
1069
1069
  })
1070
- ), ft = /* @__PURE__ */ h({
1071
- type: /* @__PURE__ */ P("text"),
1070
+ ), gt = /* @__PURE__ */ d({
1071
+ type: /* @__PURE__ */ F("text"),
1072
1072
  text: /* @__PURE__ */ l(),
1073
- marks: /* @__PURE__ */ s(/* @__PURE__ */ M(/* @__PURE__ */ h({ rangeKey: /* @__PURE__ */ l() })))
1074
- }), pt = /* @__PURE__ */ h({
1075
- type: /* @__PURE__ */ P("mention"),
1073
+ marks: /* @__PURE__ */ u(/* @__PURE__ */ $(/* @__PURE__ */ d({ rangeKey: /* @__PURE__ */ l() })))
1074
+ }), St = /* @__PURE__ */ d({
1075
+ type: /* @__PURE__ */ F("mention"),
1076
1076
  ref: /* @__PURE__ */ l(),
1077
- fallback: /* @__PURE__ */ s(/* @__PURE__ */ l())
1078
- }), bt = /* @__PURE__ */ h({
1079
- type: /* @__PURE__ */ P("hardBreak")
1080
- }), ht = /* @__PURE__ */ $([
1081
- ft,
1082
- pt,
1083
- bt
1084
- ]), yt = /* @__PURE__ */ h({
1085
- type: /* @__PURE__ */ P("paragraph"),
1086
- content: /* @__PURE__ */ M(ht)
1087
- }), dt = /* @__PURE__ */ h({
1088
- type: /* @__PURE__ */ P("doc"),
1089
- content: /* @__PURE__ */ M(yt)
1090
- }), mt = /* @__PURE__ */ h({
1091
- name: n(/* @__PURE__ */ l(), { fallback: "Text", overridable: !1 }),
1092
- content: n(/* @__PURE__ */ l(), {
1077
+ fallback: /* @__PURE__ */ u(/* @__PURE__ */ l())
1078
+ }), xt = /* @__PURE__ */ d({
1079
+ type: /* @__PURE__ */ F("hardBreak")
1080
+ }), jt = /* @__PURE__ */ V([
1081
+ gt,
1082
+ St,
1083
+ xt
1084
+ ]), Et = /* @__PURE__ */ d({
1085
+ type: /* @__PURE__ */ F("paragraph"),
1086
+ content: /* @__PURE__ */ $(jt)
1087
+ }), Ot = /* @__PURE__ */ d({
1088
+ type: /* @__PURE__ */ F("doc"),
1089
+ content: /* @__PURE__ */ $(Et)
1090
+ }), Ct = /* @__PURE__ */ d({
1091
+ name: a(/* @__PURE__ */ l(), { fallback: "Text", overridable: !1 }),
1092
+ content: a(/* @__PURE__ */ l(), {
1093
1093
  fallback: ""
1094
1094
  }),
1095
- doc: n(dt, { fallback: { type: "doc", content: [] } }),
1096
- styleRanges: n(/* @__PURE__ */ M(O), { fallback: [] }),
1097
- whiteSpace: n(/* @__PURE__ */ R(Object.keys(ue)), {
1098
- fallback: ue.pre
1095
+ doc: a(Ot, { fallback: { type: "doc", content: [] } }),
1096
+ styleRanges: a(/* @__PURE__ */ $(O), { fallback: [] }),
1097
+ whiteSpace: a(/* @__PURE__ */ W(Object.keys(be)), {
1098
+ fallback: be.pre
1099
1099
  }),
1100
- textAlign: n(/* @__PURE__ */ l(), { fallback: "left" }),
1100
+ textAlign: a(/* @__PURE__ */ l(), { fallback: "left" }),
1101
1101
  // baseTypography — дефолт всего текста-узла (D-06), все поля variable:true
1102
- fontSize: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1103
- fontWeight: n(/* @__PURE__ */ $([/* @__PURE__ */ l(), /* @__PURE__ */ y()]), { fallback: null, variable: !0 }),
1104
- fontFamily: n(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1105
- color: n(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1106
- lineHeight: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1107
- letterSpacing: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1108
- textDecoration: n(/* @__PURE__ */ T(Object.keys(X)), { fallback: null }),
1109
- textTransform: n(/* @__PURE__ */ T(Object.keys(Ee)), { fallback: null }),
1110
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1111
- link: n(O),
1112
- highlight: n(O),
1113
- contentBinding: n(O),
1114
- ...A.entries,
1115
- ...V.entries,
1116
- ...ke.entries,
1117
- ...Q.entries,
1118
- ...Z.entries,
1119
- ...ee.entries,
1120
- ...te.entries
1121
- }), vt = /* @__PURE__ */ h({
1122
- name: n(/* @__PURE__ */ l(), { fallback: "Fragment", overridable: !1 }),
1123
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1124
- horizontalGrow: n(/* @__PURE__ */ R(Object.keys(H)), {
1125
- fallback: H.fill,
1102
+ fontSize: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1103
+ fontWeight: a(/* @__PURE__ */ V([/* @__PURE__ */ l(), /* @__PURE__ */ h()]), { fallback: null, variable: !0 }),
1104
+ fontFamily: a(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1105
+ color: a(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1106
+ lineHeight: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1107
+ letterSpacing: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1108
+ textDecoration: a(/* @__PURE__ */ w(Object.keys(Q)), { fallback: null }),
1109
+ textTransform: a(/* @__PURE__ */ w(Object.keys(Ie)), { fallback: null }),
1110
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1111
+ link: a(O),
1112
+ highlight: a(O),
1113
+ contentBinding: a(O),
1114
+ ..._.entries,
1115
+ ...B.entries,
1116
+ ...Ee.entries,
1117
+ ...ne.entries,
1118
+ ...ae.entries,
1119
+ ...le.entries,
1120
+ ...se.entries
1121
+ }), wt = /* @__PURE__ */ d({
1122
+ name: a(/* @__PURE__ */ l(), { fallback: "Fragment", overridable: !1 }),
1123
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1124
+ horizontalGrow: a(/* @__PURE__ */ W(Object.keys(U)), {
1125
+ fallback: U.fill,
1126
1126
  overridable: !1
1127
1127
  }),
1128
- verticalGrow: n(/* @__PURE__ */ R(Object.keys(H)), {
1129
- fallback: H.auto,
1128
+ verticalGrow: a(/* @__PURE__ */ W(Object.keys(U)), {
1129
+ fallback: U.auto,
1130
1130
  overridable: !1
1131
1131
  }),
1132
- properties: n(/* @__PURE__ */ M(/* @__PURE__ */ l()), {
1132
+ properties: a(/* @__PURE__ */ $(/* @__PURE__ */ l()), {
1133
1133
  fallback: [],
1134
1134
  overridable: !1
1135
1135
  }),
@@ -1139,20 +1139,20 @@ const _e = /* @__PURE__ */ we((e) => e.split(":").length === 2), me = (e) => {
1139
1139
  * Геттер fragment.props читает это поле и возвращает хэндл ObjectVariable.
1140
1140
  * Назначение через Fragment.definePropsObject() (план 01, D-A1).
1141
1141
  */
1142
- propsObject: n(/* @__PURE__ */ S(O), {
1142
+ propsObject: a(/* @__PURE__ */ S(O), {
1143
1143
  fallback: null,
1144
1144
  overridable: !1
1145
1145
  }),
1146
- cssChunks: n(/* @__PURE__ */ M(O), {
1146
+ cssChunks: a(/* @__PURE__ */ $(O), {
1147
1147
  fallback: [],
1148
1148
  overridable: !1
1149
1149
  }),
1150
- ...A.entries,
1151
- ...ve.entries
1152
- }), kt = /* @__PURE__ */ h({
1153
- name: n(/* @__PURE__ */ l(), { fallback: "Instance", overridable: !1 }),
1154
- fragment: n(/* @__PURE__ */ y()),
1155
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1150
+ ..._.entries,
1151
+ ...je.entries
1152
+ }), Pt = /* @__PURE__ */ d({
1153
+ name: a(/* @__PURE__ */ l(), { fallback: "Instance", overridable: !1 }),
1154
+ fragment: a(/* @__PURE__ */ h()),
1155
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1156
1156
  /**
1157
1157
  * props — единый объектный биндинг (D-B1), резолвится один раз в контексте владельца.
1158
1158
  *
@@ -1165,17 +1165,17 @@ const _e = /* @__PURE__ */ we((e) => e.split(":").length === 2), me = (e) => {
1165
1165
  *
1166
1166
  * fallback: {} — нет props = пустой объект (props-объект B не получает внешних значений).
1167
1167
  */
1168
- props: n(
1169
- /* @__PURE__ */ $([
1168
+ props: a(
1169
+ /* @__PURE__ */ V([
1170
1170
  O,
1171
- /* @__PURE__ */ z(
1171
+ /* @__PURE__ */ J(
1172
1172
  /* @__PURE__ */ l(),
1173
- /* @__PURE__ */ $([
1173
+ /* @__PURE__ */ V([
1174
1174
  /* @__PURE__ */ l(),
1175
- /* @__PURE__ */ y(),
1176
- /* @__PURE__ */ v(),
1175
+ /* @__PURE__ */ h(),
1176
+ /* @__PURE__ */ k(),
1177
1177
  // Для goals-значений (code+name объект)
1178
- /* @__PURE__ */ h({
1178
+ /* @__PURE__ */ d({
1179
1179
  code: /* @__PURE__ */ l(),
1180
1180
  name: /* @__PURE__ */ l()
1181
1181
  })
@@ -1186,353 +1186,353 @@ const _e = /* @__PURE__ */ we((e) => e.split(":").length === 2), me = (e) => {
1186
1186
  fallback: {}
1187
1187
  }
1188
1188
  ),
1189
- link: n(O),
1190
- ...A.entries,
1191
- ...V.entries,
1192
- ...Q.entries,
1193
- ...ee.entries,
1194
- ...Z.entries,
1195
- ...te.entries
1196
- }), gt = /* @__PURE__ */ _(
1197
- /* @__PURE__ */ h({
1198
- name: n(/* @__PURE__ */ l(), {
1189
+ link: a(O),
1190
+ ..._.entries,
1191
+ ...B.entries,
1192
+ ...ne.entries,
1193
+ ...le.entries,
1194
+ ...ae.entries,
1195
+ ...se.entries
1196
+ }), Tt = /* @__PURE__ */ D(
1197
+ /* @__PURE__ */ d({
1198
+ name: a(/* @__PURE__ */ l(), {
1199
1199
  fallback: "Collection",
1200
1200
  overridable: !1
1201
1201
  }),
1202
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1203
- source: n(O, {}),
1204
- border: n(O),
1205
- paint: n(O),
1206
- link: n(O),
1207
- ...ve.entries,
1208
- ...A.entries,
1209
- ...V.entries,
1210
- ...Q.entries,
1211
- ...Z.entries,
1212
- ...ee.entries,
1213
- ...$e.entries,
1214
- ...te.entries,
1215
- ...ke.entries
1202
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1203
+ source: a(O, {}),
1204
+ border: a(O),
1205
+ paint: a(O),
1206
+ link: a(O),
1207
+ ...je.entries,
1208
+ ..._.entries,
1209
+ ...B.entries,
1210
+ ...ne.entries,
1211
+ ...ae.entries,
1212
+ ...le.entries,
1213
+ ...Ne.entries,
1214
+ ...se.entries,
1215
+ ...Ee.entries
1216
1216
  })
1217
- ), St = /* @__PURE__ */ h({
1218
- ...V.entries,
1219
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1220
- position: n(/* @__PURE__ */ _(/* @__PURE__ */ y(), /* @__PURE__ */ he(1), /* @__PURE__ */ B(0)), {
1217
+ ), It = /* @__PURE__ */ d({
1218
+ ...B.entries,
1219
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1220
+ position: a(/* @__PURE__ */ D(/* @__PURE__ */ h(), /* @__PURE__ */ ke(1), /* @__PURE__ */ L(0)), {
1221
1221
  fallback: 0
1222
1222
  }),
1223
- value: n(/* @__PURE__ */ l(), { fallback: "#000", variable: !0 }),
1224
- ...A.entries
1225
- }), xt = /* @__PURE__ */ h({
1226
- ...V.entries,
1227
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1228
- angle: n(/* @__PURE__ */ y(), {
1223
+ value: a(/* @__PURE__ */ l(), { fallback: "#000", variable: !0 }),
1224
+ ..._.entries
1225
+ }), At = /* @__PURE__ */ d({
1226
+ ...B.entries,
1227
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1228
+ angle: a(/* @__PURE__ */ h(), {
1229
1229
  fallback: 0
1230
1230
  }),
1231
- stops: n(/* @__PURE__ */ M(O), { fallback: [] }),
1232
- ...A.entries
1233
- }), jt = /* @__PURE__ */ h({
1234
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1235
- chunkId: n(/* @__PURE__ */ y()),
1231
+ stops: a(/* @__PURE__ */ $(O), { fallback: [] }),
1232
+ ..._.entries
1233
+ }), Ft = /* @__PURE__ */ d({
1234
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1235
+ chunkId: a(/* @__PURE__ */ h()),
1236
1236
  // content: layerField(v.string(), {
1237
1237
  // fallback: "",
1238
1238
  // }),
1239
1239
  // scope: layerField(v.picklist(Object.keys(definition.cssChunkScopeTypes)), {
1240
1240
  // fallback: definition.cssChunkScopeTypes.Fragment,
1241
1241
  // }),
1242
- enabled: n(/* @__PURE__ */ v(), {
1242
+ enabled: a(/* @__PURE__ */ k(), {
1243
1243
  fallback: !0,
1244
1244
  variable: !0
1245
1245
  }),
1246
- ...A.entries
1247
- }), Et = /* @__PURE__ */ h({
1248
- ...V.entries,
1249
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1250
- type: n(/* @__PURE__ */ T(Object.keys(re)), {
1251
- fallback: re.None
1246
+ ..._.entries
1247
+ }), _t = /* @__PURE__ */ d({
1248
+ ...B.entries,
1249
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1250
+ type: a(/* @__PURE__ */ w(Object.keys(ie)), {
1251
+ fallback: ie.None
1252
1252
  }),
1253
1253
  // px-хелпер: число → "Npx", строка дословно; ad-hoc inline-transform удалён
1254
- width: me({ fallback: "1px" }),
1255
- paint: n(O),
1256
- ...A.entries
1257
- }), Ot = /* @__PURE__ */ h({
1258
- ...V.entries,
1259
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1260
- type: n(/* @__PURE__ */ T(Object.keys(ne)), {
1261
- fallback: ne.None
1254
+ width: xe({ fallback: "1px" }),
1255
+ paint: a(O),
1256
+ ..._.entries
1257
+ }), Mt = /* @__PURE__ */ d({
1258
+ ...B.entries,
1259
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1260
+ type: a(/* @__PURE__ */ w(Object.keys(oe)), {
1261
+ fallback: oe.None
1262
1262
  }),
1263
- solid: n(/* @__PURE__ */ l(), { fallback: "#fff" }),
1264
- linearGradient: n(O),
1265
- image: n(O),
1266
- ...A.entries
1267
- }), Ct = /* @__PURE__ */ h({
1268
- ...A.entries,
1269
- ...V.entries,
1270
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1271
- src: n(/* @__PURE__ */ l()),
1272
- scale: n(/* @__PURE__ */ T(Object.keys(ae)), {
1273
- fallback: ae.Auto
1263
+ solid: a(/* @__PURE__ */ l(), { fallback: "#fff" }),
1264
+ linearGradient: a(O),
1265
+ image: a(O),
1266
+ ..._.entries
1267
+ }), $t = /* @__PURE__ */ d({
1268
+ ..._.entries,
1269
+ ...B.entries,
1270
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1271
+ src: a(/* @__PURE__ */ l()),
1272
+ scale: a(/* @__PURE__ */ w(Object.keys(ce)), {
1273
+ fallback: ce.Auto
1274
1274
  })
1275
- }), Tt = /* @__PURE__ */ h({
1276
- ...V.entries,
1277
- ...A.entries,
1278
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1279
- href: n(/* @__PURE__ */ l(), { fallback: null }),
1280
- isNewTab: n(/* @__PURE__ */ v(), {
1275
+ }), Dt = /* @__PURE__ */ d({
1276
+ ...B.entries,
1277
+ ..._.entries,
1278
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1279
+ href: a(/* @__PURE__ */ l(), { fallback: null }),
1280
+ isNewTab: a(/* @__PURE__ */ k(), {
1281
1281
  fallback: !0
1282
1282
  })
1283
- }), wt = /* @__PURE__ */ h({
1284
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1285
- ...A.entries,
1286
- on: /* @__PURE__ */ R(Object.keys(Oe)),
1287
- event: n(O)
1288
- }), It = /* @__PURE__ */ h({
1289
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1290
- value: n(/* @__PURE__ */ l(), { fallback: "" }),
1291
- enabled: n(/* @__PURE__ */ v(), {
1283
+ }), Vt = /* @__PURE__ */ d({
1284
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1285
+ ..._.entries,
1286
+ on: /* @__PURE__ */ W(Object.keys(Ae)),
1287
+ event: a(O)
1288
+ }), Gt = /* @__PURE__ */ d({
1289
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1290
+ value: a(/* @__PURE__ */ l(), { fallback: "" }),
1291
+ enabled: a(/* @__PURE__ */ k(), {
1292
1292
  fallback: !0,
1293
1293
  variable: !0
1294
1294
  }),
1295
- ...A.entries
1296
- }), Pt = /* @__PURE__ */ h({
1297
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1298
- goalId: n(/* @__PURE__ */ y(), { overridable: !1 }),
1299
- ...A.entries
1300
- }), At = /* @__PURE__ */ h({
1301
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1302
- target: n(O),
1303
- value: n(/* @__PURE__ */ ye()),
1304
- ...A.entries
1305
- }), Ft = /* @__PURE__ */ h({
1306
- color: n(/* @__PURE__ */ l(), { fallback: null }),
1307
- lineHeight: n(/* @__PURE__ */ y(), { fallback: null }),
1308
- fontSize: n(/* @__PURE__ */ y(), { fallback: null }),
1309
- fontWeight: n(/* @__PURE__ */ $([/* @__PURE__ */ l(), /* @__PURE__ */ y()]), { fallback: 400 }),
1310
- fontFamily: n(/* @__PURE__ */ l(), { fallback: null }),
1311
- textDecoration: n(/* @__PURE__ */ T(Object.keys(X)), {
1295
+ ..._.entries
1296
+ }), Bt = /* @__PURE__ */ d({
1297
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1298
+ goalId: a(/* @__PURE__ */ h(), { overridable: !1 }),
1299
+ ..._.entries
1300
+ }), Lt = /* @__PURE__ */ d({
1301
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1302
+ target: a(O),
1303
+ value: a(/* @__PURE__ */ ge()),
1304
+ ..._.entries
1305
+ }), Nt = /* @__PURE__ */ d({
1306
+ color: a(/* @__PURE__ */ l(), { fallback: null }),
1307
+ lineHeight: a(/* @__PURE__ */ h(), { fallback: null }),
1308
+ fontSize: a(/* @__PURE__ */ h(), { fallback: null }),
1309
+ fontWeight: a(/* @__PURE__ */ V([/* @__PURE__ */ l(), /* @__PURE__ */ h()]), { fallback: 400 }),
1310
+ fontFamily: a(/* @__PURE__ */ l(), { fallback: null }),
1311
+ textDecoration: a(/* @__PURE__ */ w(Object.keys(Q)), {
1312
1312
  fallback: null
1313
1313
  }),
1314
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1315
- ...A.entries
1316
- }), Mt = /* @__PURE__ */ h({
1317
- ...V.entries,
1318
- parent: n(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1319
- color: n(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1320
- fontSize: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1321
- fontWeight: n(/* @__PURE__ */ $([/* @__PURE__ */ l(), /* @__PURE__ */ y()]), { fallback: 400, variable: !0 }),
1322
- fontFamily: n(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1323
- lineHeight: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1324
- letterSpacing: n(/* @__PURE__ */ y(), { fallback: null, variable: !0 }),
1325
- textDecoration: n(/* @__PURE__ */ T(Object.keys(X)), { fallback: null, variable: !0 }),
1326
- ...A.entries
1327
- }), De = /* @__PURE__ */ h({
1328
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Number"),
1329
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Number), g.Number),
1330
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ y(), 0),
1331
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1332
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0),
1333
- min: /* @__PURE__ */ s(/* @__PURE__ */ y(), 1),
1334
- max: /* @__PURE__ */ s(/* @__PURE__ */ y(), 100),
1335
- step: /* @__PURE__ */ s(/* @__PURE__ */ y(), 1),
1336
- displayStepper: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1337
- }), Ve = /* @__PURE__ */ h({
1338
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Boolean"),
1339
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Boolean), g.Boolean),
1340
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1341
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1342
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1343
- }), Ge = /* @__PURE__ */ h({
1344
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "String"),
1345
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.String), g.String),
1346
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ l(), ""),
1347
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1348
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0),
1349
- placeholder: /* @__PURE__ */ s(/* @__PURE__ */ l(), ""),
1350
- isTextarea: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1351
- isRich: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1)
1352
- }), Be = /* @__PURE__ */ h({
1314
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1315
+ ..._.entries
1316
+ }), Rt = /* @__PURE__ */ d({
1317
+ ...B.entries,
1318
+ parent: a(/* @__PURE__ */ S(/* @__PURE__ */ l()), { overridable: !1 }),
1319
+ color: a(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1320
+ fontSize: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1321
+ fontWeight: a(/* @__PURE__ */ V([/* @__PURE__ */ l(), /* @__PURE__ */ h()]), { fallback: 400, variable: !0 }),
1322
+ fontFamily: a(/* @__PURE__ */ l(), { fallback: null, variable: !0 }),
1323
+ lineHeight: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1324
+ letterSpacing: a(/* @__PURE__ */ h(), { fallback: null, variable: !0 }),
1325
+ textDecoration: a(/* @__PURE__ */ w(Object.keys(Q)), { fallback: null, variable: !0 }),
1326
+ ..._.entries
1327
+ }), Re = /* @__PURE__ */ d({
1328
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Number"),
1329
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Number), g.Number),
1330
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ h(), 0),
1331
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1332
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0),
1333
+ min: /* @__PURE__ */ u(/* @__PURE__ */ h(), 1),
1334
+ max: /* @__PURE__ */ u(/* @__PURE__ */ h(), 100),
1335
+ step: /* @__PURE__ */ u(/* @__PURE__ */ h(), 1),
1336
+ displayStepper: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1337
+ }), He = /* @__PURE__ */ d({
1338
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Boolean"),
1339
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Boolean), g.Boolean),
1340
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1341
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1342
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1343
+ }), We = /* @__PURE__ */ d({
1344
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "String"),
1345
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.String), g.String),
1346
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ l(), ""),
1347
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1348
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0),
1349
+ placeholder: /* @__PURE__ */ u(/* @__PURE__ */ l(), ""),
1350
+ isTextarea: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1351
+ isRich: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1)
1352
+ }), qe = /* @__PURE__ */ d({
1353
1353
  // Прежний fallback именно "String" — перенесён дословно (D-71-01), не исправлен.
1354
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "String"),
1355
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Color), g.Color),
1354
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "String"),
1355
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Color), g.Color),
1356
1356
  // TODO Add color validator
1357
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ l(), "#000"),
1358
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1359
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1360
- }), _t = /* @__PURE__ */ h({
1361
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Event"),
1362
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Event), g.Event),
1363
- mode: /* @__PURE__ */ s(/* @__PURE__ */ T(Object.keys(pe)), pe.callback),
1364
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ Y(), null),
1365
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1366
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1367
- }), Ne = /* @__PURE__ */ h({
1368
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Link"),
1369
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Link), g.Link),
1370
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ l(), ""),
1371
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1372
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1373
- }), Le = /* @__PURE__ */ h({
1374
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Option"),
1375
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Enum), g.Enum),
1376
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ l(), ""),
1377
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1378
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0),
1379
- cases: /* @__PURE__ */ s(
1380
- /* @__PURE__ */ M(
1381
- /* @__PURE__ */ h({
1357
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ l(), "#000"),
1358
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1359
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1360
+ }), Ht = /* @__PURE__ */ d({
1361
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Event"),
1362
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Event), g.Event),
1363
+ mode: /* @__PURE__ */ u(/* @__PURE__ */ w(Object.keys(me)), me.callback),
1364
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ re(), null),
1365
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1366
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1367
+ }), ze = /* @__PURE__ */ d({
1368
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Link"),
1369
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Link), g.Link),
1370
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ l(), ""),
1371
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1372
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1373
+ }), Ue = /* @__PURE__ */ d({
1374
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Option"),
1375
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Enum), g.Enum),
1376
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ l(), ""),
1377
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1378
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0),
1379
+ cases: /* @__PURE__ */ u(
1380
+ /* @__PURE__ */ $(
1381
+ /* @__PURE__ */ d({
1382
1382
  id: /* @__PURE__ */ l(),
1383
1383
  name: /* @__PURE__ */ l()
1384
1384
  })
1385
1385
  ),
1386
1386
  []
1387
1387
  )
1388
- }), Re = /* @__PURE__ */ h({
1389
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Image"),
1390
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Image), g.Image),
1391
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ S(/* @__PURE__ */ l()), null),
1392
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1393
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1388
+ }), Ke = /* @__PURE__ */ d({
1389
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Image"),
1390
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Image), g.Image),
1391
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ S(/* @__PURE__ */ l()), null),
1392
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1393
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1394
1394
  });
1395
- function He(e) {
1396
- return /* @__PURE__ */ h({
1397
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Object"),
1398
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Object), g.Object),
1399
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ z(/* @__PURE__ */ l(), /* @__PURE__ */ Y()), {}),
1400
- fields: /* @__PURE__ */ s(
1401
- /* @__PURE__ */ z(/* @__PURE__ */ l(), /* @__PURE__ */ U(() => qe(e + 1))),
1395
+ function Xe(e) {
1396
+ return /* @__PURE__ */ d({
1397
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Object"),
1398
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Object), g.Object),
1399
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ J(/* @__PURE__ */ l(), /* @__PURE__ */ re()), {}),
1400
+ fields: /* @__PURE__ */ u(
1401
+ /* @__PURE__ */ J(/* @__PURE__ */ l(), /* @__PURE__ */ te(() => Ye(e + 1))),
1402
1402
  {}
1403
1403
  ),
1404
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1405
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1404
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1405
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1406
1406
  });
1407
1407
  }
1408
- function We(e) {
1409
- return /* @__PURE__ */ h({
1410
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Collection"),
1411
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Array), g.Array),
1412
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ M(/* @__PURE__ */ Y()), []),
1413
- definition: /* @__PURE__ */ s(
1414
- /* @__PURE__ */ S(/* @__PURE__ */ U(() => qe(e + 1))),
1408
+ function Je(e) {
1409
+ return /* @__PURE__ */ d({
1410
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Collection"),
1411
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Array), g.Array),
1412
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ $(/* @__PURE__ */ re()), []),
1413
+ definition: /* @__PURE__ */ u(
1414
+ /* @__PURE__ */ S(/* @__PURE__ */ te(() => Ye(e + 1))),
1415
1415
  null
1416
1416
  ),
1417
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1418
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1417
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1418
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1419
1419
  });
1420
1420
  }
1421
- function qe(e) {
1422
- return e > Ce ? /* @__PURE__ */ Fe() : /* @__PURE__ */ Me("type", [
1423
- Ge,
1424
- De,
1425
- Ve,
1426
- Be,
1427
- Le,
1428
- Ne,
1421
+ function Ye(e) {
1422
+ return e > Fe ? /* @__PURE__ */ Ge() : /* @__PURE__ */ Be("type", [
1423
+ We,
1429
1424
  Re,
1430
- He(e),
1431
- We(e)
1425
+ He,
1426
+ qe,
1427
+ Ue,
1428
+ ze,
1429
+ Ke,
1430
+ Xe(e),
1431
+ Je(e)
1432
1432
  ]);
1433
1433
  }
1434
- const $t = He(0), Dt = We(0), Vt = /* @__PURE__ */ h({
1435
- name: /* @__PURE__ */ s(/* @__PURE__ */ l(), "Goal"),
1436
- type: /* @__PURE__ */ s(/* @__PURE__ */ P(g.Goal), g.Goal),
1437
- defaultValue: /* @__PURE__ */ s(/* @__PURE__ */ S(/* @__PURE__ */ y()), null),
1438
- required: /* @__PURE__ */ s(/* @__PURE__ */ v(), !1),
1439
- editable: /* @__PURE__ */ s(/* @__PURE__ */ v(), !0)
1434
+ const Wt = Xe(0), qt = Je(0), zt = /* @__PURE__ */ d({
1435
+ name: /* @__PURE__ */ u(/* @__PURE__ */ l(), "Goal"),
1436
+ type: /* @__PURE__ */ u(/* @__PURE__ */ F(g.Goal), g.Goal),
1437
+ defaultValue: /* @__PURE__ */ u(/* @__PURE__ */ S(/* @__PURE__ */ h()), null),
1438
+ required: /* @__PURE__ */ u(/* @__PURE__ */ k(), !1),
1439
+ editable: /* @__PURE__ */ u(/* @__PURE__ */ k(), !0)
1440
1440
  });
1441
1441
  g.Number + "", g.Boolean + "", g.String + "", g.Color + "", g.Event + "", g.Link + "", g.Enum + "", g.Object + "", g.Image + "", g.Array + "", g.Goal + "";
1442
1442
  C.Frame + "", C.Text + "", C.Fragment + "", C.Instance + "", C.Collection + "", C.StopColor + "", C.LinearGradient + "", C.CssChunk + "", C.Border + "", C.Paint + "", C.ImagePaint + "", C.Link + "", C.Interaction + "", C.Classname + "", C.GoalEvent + "", C.MutateEvent + "", C.TextHighlight + "", C.TextStyleMark + "";
1443
- const ze = /* @__PURE__ */ U(
1444
- () => /* @__PURE__ */ de({
1443
+ const Qe = /* @__PURE__ */ te(
1444
+ () => /* @__PURE__ */ Se({
1445
1445
  _type: /* @__PURE__ */ l(),
1446
- _id: /* @__PURE__ */ $([/* @__PURE__ */ l(), /* @__PURE__ */ y()]),
1446
+ _id: /* @__PURE__ */ V([/* @__PURE__ */ l(), /* @__PURE__ */ h()]),
1447
1447
  // children — массив либо ссылок (LinkKey-строк), либо вложенных узлов того же shape.
1448
1448
  // Production fixture bk_card использует встроенные nested-объекты, но существующий
1449
1449
  // ChildrenSchema (`packages/definition/src/schemas/ChildrenSchema.ts`) разрешает массив
1450
1450
  // строк — оба варианта проходят validation на Phase 1.
1451
- children: /* @__PURE__ */ s(/* @__PURE__ */ M(/* @__PURE__ */ $([/* @__PURE__ */ l(), ze])))
1451
+ children: /* @__PURE__ */ u(/* @__PURE__ */ $(/* @__PURE__ */ V([/* @__PURE__ */ l(), Qe])))
1452
1452
  })
1453
1453
  );
1454
1454
  C.Fragment;
1455
- const Xe = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), Gt = {
1455
+ const Ze = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), Ut = {
1456
1456
  "Content-Type": "application/json"
1457
- }, Bt = (e, r = {}, t = {}) => {
1458
- const { timeout: a } = t, u = /* @__PURE__ */ new Map();
1459
- return { get: (i, f = {}) => {
1460
- const m = `${e}${i}`;
1461
- if (u.has(m))
1462
- return u.get(m);
1463
- const p = f.timeout ?? a, b = p != null ? AbortSignal.timeout(p) : void 0, d = typeof r == "function" ? r() : r, k = fetch(m, {
1457
+ }, Kt = (e, r = {}, t = {}) => {
1458
+ const { timeout: n } = t, s = /* @__PURE__ */ new Map();
1459
+ return { get: (f, i = {}) => {
1460
+ const m = `${e}${f}`;
1461
+ if (s.has(m))
1462
+ return s.get(m);
1463
+ const v = i.timeout ?? n, b = v != null ? AbortSignal.timeout(v) : void 0, p = typeof r == "function" ? r() : r, y = fetch(m, {
1464
1464
  method: "GET",
1465
1465
  headers: {
1466
- ...Gt,
1467
- ...d
1466
+ ...Ut,
1467
+ ...p
1468
1468
  },
1469
1469
  signal: b
1470
- }).then(async (E) => {
1471
- if (!E.ok) {
1472
- let x = {};
1470
+ }).then(async (j) => {
1471
+ if (!j.ok) {
1472
+ let E = {};
1473
1473
  try {
1474
- x = await E.json();
1474
+ E = await j.json();
1475
1475
  } catch {
1476
- x = { error: { code: "UNKNOWN", message: E.statusText } };
1476
+ E = { error: { code: "UNKNOWN", message: j.statusText } };
1477
1477
  }
1478
- return { ok: !1, errorBody: x, status: E.status };
1478
+ return { ok: !1, errorBody: E, status: j.status };
1479
1479
  }
1480
- let F;
1480
+ let P;
1481
1481
  try {
1482
- F = await E.json();
1482
+ P = await j.json();
1483
1483
  } catch {
1484
- F = null;
1484
+ P = null;
1485
1485
  }
1486
- return { ok: !0, data: F, status: E.status };
1486
+ return { ok: !0, data: P, status: j.status };
1487
1487
  }).finally(() => {
1488
- u.delete(m);
1488
+ s.delete(m);
1489
1489
  });
1490
- return u.set(m, k), k;
1491
- }, getAbsolute: (i) => {
1492
- fetch(i, {
1490
+ return s.set(m, y), y;
1491
+ }, getAbsolute: (f) => {
1492
+ fetch(f, {
1493
1493
  method: "GET",
1494
1494
  mode: "no-cors",
1495
1495
  credentials: "omit",
1496
1496
  keepalive: !0
1497
- }).catch((f) => {
1498
- console.error(f);
1497
+ }).catch((i) => {
1498
+ console.error(i);
1499
1499
  });
1500
1500
  } };
1501
- }, Nt = (e) => ({
1502
- sendBeacon: (t, a) => {
1501
+ }, Xt = (e) => ({
1502
+ sendBeacon: (t, n) => {
1503
1503
  if (!t || typeof navigator > "u" || typeof (navigator == null ? void 0 : navigator.sendBeacon) != "function")
1504
1504
  return !1;
1505
1505
  try {
1506
- return navigator.sendBeacon.bind(navigator)(t, a);
1507
- } catch (u) {
1508
- return console.error(u), !1;
1506
+ return navigator.sendBeacon.bind(navigator)(t, n);
1507
+ } catch (s) {
1508
+ return console.error(s), !1;
1509
1509
  }
1510
1510
  }
1511
- }), Lt = (e) => {
1512
- var f, m, p, b;
1513
- const r = (f = e == null ? void 0 : e.env) == null ? void 0 : f.backendEndpoint, t = (m = e == null ? void 0 : e.env) == null ? void 0 : m.apiToken, a = (p = e == null ? void 0 : e.env) == null ? void 0 : p.referer;
1511
+ }), Jt = (e) => {
1512
+ var i, m, v, b;
1513
+ const r = (i = e == null ? void 0 : e.env) == null ? void 0 : i.backendEndpoint, t = (m = e == null ? void 0 : e.env) == null ? void 0 : m.apiToken, n = (v = e == null ? void 0 : e.env) == null ? void 0 : v.referer;
1514
1514
  if (!r) return;
1515
- const u = () => {
1516
- var E, F, x;
1517
- const d = (E = e == null ? void 0 : e.env) == null ? void 0 : E.filterOverrides, k = {};
1518
- return t && (k["X-Api-Key"] = t), a && (k.Referer = a), d != null && d.deviceType && (k["X-Filter-Device-Type"] = d.deviceType), d != null && d.osType && (k["X-Filter-OS-Type"] = d.osType), d != null && d.page && (k["X-Filter-Page"] = d.page), (F = d == null ? void 0 : d.geo) != null && F.code ? k["X-Filter-Geo"] = d.geo.code : d != null && d.ip && (k["X-Filter-IP"] = d.ip), (x = e == null ? void 0 : e.env) != null && x.debug && (k["X-Debug"] = "true"), k;
1519
- }, c = (b = e == null ? void 0 : e.env) == null ? void 0 : b.timeout, o = Bt(r, u, { timeout: c }), i = Nt();
1515
+ const s = () => {
1516
+ var j, P, E;
1517
+ const p = (j = e == null ? void 0 : e.env) == null ? void 0 : j.filterOverrides, y = {};
1518
+ return t && (y["X-Api-Key"] = t), n && (y.Referer = n), p != null && p.deviceType && (y["X-Filter-Device-Type"] = p.deviceType), p != null && p.osType && (y["X-Filter-OS-Type"] = p.osType), p != null && p.page && (y["X-Filter-Page"] = p.page), (P = p == null ? void 0 : p.geo) != null && P.code ? y["X-Filter-Geo"] = p.geo.code : p != null && p.ip && (y["X-Filter-IP"] = p.ip), (E = e == null ? void 0 : e.env) != null && E.debug && (y["X-Debug"] = "true"), y;
1519
+ }, o = (b = e == null ? void 0 : e.env) == null ? void 0 : b.timeout, c = Kt(r, s, { timeout: o }), f = Xt();
1520
1520
  e.$fetch = {
1521
- get: o.get,
1522
- sendBeacon: i.sendBeacon,
1523
- getAbsolute: o.getAbsolute
1521
+ get: c.get,
1522
+ sendBeacon: f.sendBeacon,
1523
+ getAbsolute: c.getAbsolute
1524
1524
  };
1525
- }, Rt = typeof window < "u", xe = /* @__PURE__ */ new Set(), Ht = (e) => {
1525
+ }, et = typeof window < "u", Pe = /* @__PURE__ */ new Set(), Yt = (e) => {
1526
1526
  try {
1527
1527
  const r = new Image();
1528
1528
  r.referrerPolicy = "no-referrer";
1529
1529
  const t = () => {
1530
- r.removeEventListener("load", t), r.removeEventListener("error", t), xe.delete(r);
1530
+ r.removeEventListener("load", t), r.removeEventListener("error", t), Pe.delete(r);
1531
1531
  };
1532
- r.addEventListener("load", t, { once: !0 }), r.addEventListener("error", t, { once: !0 }), xe.add(r), r.src = e;
1532
+ r.addEventListener("load", t, { once: !0 }), r.addEventListener("error", t, { once: !0 }), Pe.add(r), r.src = e;
1533
1533
  } catch {
1534
1534
  }
1535
- }, Wt = (e, r) => {
1535
+ }, Qt = (e, r) => {
1536
1536
  if (typeof r != "function")
1537
1537
  return !1;
1538
1538
  try {
@@ -1540,7 +1540,7 @@ const Xe = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), Gt = {
1540
1540
  } catch {
1541
1541
  return !1;
1542
1542
  }
1543
- }, qt = (e) => {
1543
+ }, Zt = (e) => {
1544
1544
  if (typeof navigator > "u" || typeof navigator.sendBeacon != "function")
1545
1545
  return !1;
1546
1546
  try {
@@ -1548,220 +1548,285 @@ const Xe = (...e) => e.reduce((r, t) => (r[t] = t, r), {}), Gt = {
1548
1548
  } catch {
1549
1549
  return !1;
1550
1550
  }
1551
- }, zt = (e, r, t) => {
1552
- if (!Rt)
1551
+ }, er = (e, r, t) => {
1552
+ if (!et)
1553
1553
  return;
1554
- const a = e == null ? void 0 : e.trim();
1555
- if (a) {
1554
+ const n = e == null ? void 0 : e.trim();
1555
+ if (n) {
1556
1556
  if (typeof r == "function")
1557
1557
  try {
1558
- if (r(a) === !0)
1558
+ if (r(n) === !0)
1559
1559
  return;
1560
1560
  } catch {
1561
1561
  }
1562
- qt(a) || Wt(a, t) || Ht(a);
1562
+ Zt(n) || Qt(n, t) || Yt(n);
1563
1563
  }
1564
- }, je = Xe(
1564
+ }, Te = Ze(
1565
1565
  "INIT_SESSION",
1566
1566
  "RELEASE_SESSION",
1567
1567
  "REACH_PROJECT_GOAL"
1568
- ), Xt = (e) => {
1569
- const r = (u, c) => {
1570
- var i;
1571
- if (u !== je.REACH_PROJECT_GOAL || !c) return;
1572
- const o = new URLSearchParams({
1573
- goal_id: String(c.goalId),
1574
- variant_id: String(c.variantId),
1575
- area_id: String(c.areaId),
1576
- campaign_id: String(c.campaignId)
1568
+ ), tr = (e) => {
1569
+ const r = (s, o) => {
1570
+ var f;
1571
+ if (s !== Te.REACH_PROJECT_GOAL || !o) return;
1572
+ const c = new URLSearchParams({
1573
+ goal_id: String(o.goalId),
1574
+ variant_id: String(o.variantId),
1575
+ area_id: String(o.areaId),
1576
+ campaign_id: String(o.campaignId)
1577
1577
  });
1578
- (i = e.$fetch) == null || i.get(`/api/metric/goal?${o}`).catch(() => {
1578
+ (f = e.$fetch) == null || f.get(`/api/metric/goal?${c}`).catch(() => {
1579
1579
  });
1580
- }, t = (u) => {
1581
- r(je.REACH_PROJECT_GOAL, u);
1582
- }, a = (u) => {
1583
- var o, i;
1584
- const c = ((o = e.$fetch) == null ? void 0 : o.getAbsolute) != null ? (f) => e.$fetch.getAbsolute(f) : void 0;
1585
- zt(u, (i = e == null ? void 0 : e.$fetch) == null ? void 0 : i.sendBeacon, c);
1580
+ }, t = (s) => {
1581
+ r(Te.REACH_PROJECT_GOAL, s);
1582
+ }, n = (s) => {
1583
+ var c, f;
1584
+ const o = ((c = e.$fetch) == null ? void 0 : c.getAbsolute) != null ? (i) => e.$fetch.getAbsolute(i) : void 0;
1585
+ er(s, (f = e == null ? void 0 : e.$fetch) == null ? void 0 : f.sendBeacon, o);
1586
1586
  };
1587
1587
  e.$metrics = {
1588
1588
  reachGoal: t,
1589
- trackAdPixel: a
1589
+ trackAdPixel: n
1590
1590
  };
1591
- }, Jt = (e) => {
1592
- const r = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), u = (i, f) => {
1593
- if (r.has(i))
1594
- return Promise.resolve(r.get(i));
1595
- if (t.has(i))
1596
- return t.get(i);
1597
- a.delete(i);
1598
- const m = `/api/area/${i}/compiled`, p = (async () => {
1599
- var E, F, x, G, ge;
1600
- const b = await e.$fetch.get(m);
1601
- if (!b.ok) {
1602
- const N = b.errorBody;
1603
- throw new W(
1604
- ((E = N == null ? void 0 : N.error) == null ? void 0 : E.code) ?? "UNKNOWN",
1605
- ((F = N == null ? void 0 : N.error) == null ? void 0 : F.message) ?? String(b.status),
1606
- (x = N == null ? void 0 : N.error) == null ? void 0 : x.details,
1607
- b.status
1608
- );
1609
- }
1610
- const d = b.data;
1611
- if (d.apiVersion !== 1)
1612
- throw new be(1, d.apiVersion);
1613
- (G = e.$fragments) == null || G.populate(d.fragments ?? {}), (ge = e.$cssChunks) == null || ge.populate(d.cssChunks ?? {});
1614
- const k = {
1615
- rootFragmentId: d.rootFragmentId,
1616
- props: d.props ?? {},
1617
- projectProperties: d.projectProperties ?? {},
1618
- globalCssUrl: d.globalCssUrl ?? null
1619
- };
1620
- return r.set(i, k), k;
1621
- })();
1622
- return t.set(i, p), p.catch((b) => {
1623
- a.set(i, b);
1624
- }).finally(() => {
1625
- t.delete(i);
1626
- }), p;
1627
- }, c = (i) => {
1628
- if (r.has(i))
1629
- return r.get(i);
1630
- throw t.has(i) ? t.get(i) : a.has(i) ? a.get(i) : new W(
1631
- "AREA_NOT_RESOLVED",
1632
- `Area ${i} not resolved — call $area.resolve(code) before read()`
1633
- );
1634
- }, o = (i) => r.has(i) || a.has(i);
1635
- e.$area = {
1636
- resolve: u,
1637
- read: c,
1638
- has: o
1591
+ }, Y = (e) => (e == null ? void 0 : e.loaded) ?? Promise.resolve(), rr = (e) => `fragment:${e}:css`, nr = (e) => `fragment:${e}:fonts`, ar = (e) => `chunk:${e}`, lr = "global";
1592
+ function tt(e) {
1593
+ return (r) => {
1594
+ const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), o = (i, m) => {
1595
+ if (t.has(i))
1596
+ return Promise.resolve(t.get(i));
1597
+ if (n.has(i))
1598
+ return n.get(i);
1599
+ s.delete(i);
1600
+ const v = `/api/area/${i}/compiled`, b = (async () => {
1601
+ var H, M, z, Oe, Ce;
1602
+ const p = await r.$fetch.get(v);
1603
+ if (!p.ok) {
1604
+ const N = p.errorBody;
1605
+ throw new K(
1606
+ ((H = N == null ? void 0 : N.error) == null ? void 0 : H.code) ?? "UNKNOWN",
1607
+ ((M = N == null ? void 0 : N.error) == null ? void 0 : M.message) ?? String(p.status),
1608
+ (z = N == null ? void 0 : N.error) == null ? void 0 : z.details,
1609
+ p.status
1610
+ );
1611
+ }
1612
+ const y = p.data;
1613
+ if (y.apiVersion !== 1)
1614
+ throw new ve(1, y.apiVersion);
1615
+ const j = y.globalCssUrl ?? null, P = j ? Y(e.inject(j, lr)) : Promise.resolve(), E = (Oe = r.$fragments) == null ? void 0 : Oe.populate(y.fragments ?? {}), A = (Ce = r.$cssChunks) == null ? void 0 : Ce.populate(y.cssChunks ?? {});
1616
+ et && await Promise.allSettled([E, A, P]);
1617
+ const q = {
1618
+ rootFragmentId: y.rootFragmentId,
1619
+ variantId: y.variantId ?? null,
1620
+ props: y.props ?? {},
1621
+ projectProperties: y.projectProperties ?? {},
1622
+ globalCssUrl: j
1623
+ };
1624
+ return t.set(i, q), q;
1625
+ })();
1626
+ return n.set(i, b), b.catch((p) => {
1627
+ s.set(i, p);
1628
+ }).finally(() => {
1629
+ n.delete(i);
1630
+ }), b;
1631
+ }, c = (i) => {
1632
+ if (t.has(i))
1633
+ return t.get(i);
1634
+ throw n.has(i) ? n.get(i) : s.has(i) ? s.get(i) : new K(
1635
+ "AREA_NOT_RESOLVED",
1636
+ `Area ${i} not resolved — call $area.resolve(code) before read()`
1637
+ );
1638
+ }, f = (i) => t.has(i) || s.has(i);
1639
+ r.$area = {
1640
+ resolve: o,
1641
+ read: c,
1642
+ has: f
1643
+ };
1639
1644
  };
1640
- };
1641
- function Kt(e) {
1642
- const r = (e == null ? void 0 : e.importer) ?? ((t) => import(
1645
+ }
1646
+ const ur = tt({ inject: () => () => {
1647
+ } });
1648
+ function rt(e) {
1649
+ const r = (e == null ? void 0 : e.importer) ?? ((n) => import(
1643
1650
  /* @vite-ignore */
1644
- t
1645
- ));
1646
- return (t) => {
1647
- const a = /* @__PURE__ */ new Map(), u = (p) => a.has(p), c = (p) => {
1648
- var b;
1649
- return (b = a.get(p)) == null ? void 0 : b.ref;
1650
- }, o = (p) => {
1651
- var b;
1652
- return (b = a.get(p)) == null ? void 0 : b.schema;
1653
- }, i = (p) => {
1654
- var b;
1655
- return (b = a.get(p)) == null ? void 0 : b.scopeClass;
1656
- }, f = (p) => {
1657
- const b = a.get(p);
1658
- if (b === void 0)
1659
- throw new q(
1660
- p,
1651
+ n
1652
+ )), t = (e == null ? void 0 : e.inject) ?? (() => () => {
1653
+ });
1654
+ return (n) => {
1655
+ const s = /* @__PURE__ */ new Map(), o = (b) => s.has(b), c = (b) => {
1656
+ var p;
1657
+ return (p = s.get(b)) == null ? void 0 : p.ref;
1658
+ }, f = (b) => {
1659
+ var p;
1660
+ return (p = s.get(b)) == null ? void 0 : p.schema;
1661
+ }, i = (b) => {
1662
+ var p;
1663
+ return (p = s.get(b)) == null ? void 0 : p.scopeClass;
1664
+ }, m = (b) => {
1665
+ const p = s.get(b);
1666
+ if (p === void 0)
1667
+ throw new X(
1668
+ b,
1661
1669
  "",
1662
- new Error(`Fragment ${p} not populated — call populate() before read()`)
1670
+ new Error(`Fragment ${b} not populated — call populate() before read()`)
1663
1671
  );
1664
- if (b.status === "pending")
1665
- throw b.promise;
1666
- if (b.status === "error")
1667
- throw b.error;
1668
- return b.component;
1669
- }, m = (p) => {
1670
- Object.entries(p).forEach(([b, d]) => {
1671
- const k = Number(b);
1672
- if (a.has(k)) return;
1673
- const E = {
1674
- status: "pending",
1675
- // Placeholder — перезапишем ниже
1676
- promise: Promise.resolve(),
1677
- ref: d
1678
- }, F = r(d.moduleUrl).then(
1679
- (x) => (E.status = "success", E.component = x.default, E.schema = x.schema, E.scopeClass = typeof x.scopeClass == "string" ? x.scopeClass : void 0, x.default),
1680
- (x) => {
1681
- const G = new q(k, d.moduleUrl, x);
1682
- throw E.status = "error", E.error = G, G;
1672
+ if (p.status === "pending")
1673
+ throw p.promise;
1674
+ if (p.status === "error")
1675
+ throw p.error;
1676
+ return p.component;
1677
+ }, v = (b) => {
1678
+ const p = [];
1679
+ return Object.entries(b).forEach(([y, j]) => {
1680
+ const P = Number(y);
1681
+ if (!s.has(P)) {
1682
+ const A = {
1683
+ status: "pending",
1684
+ // Placeholder — перезапишем ниже
1685
+ promise: Promise.resolve(),
1686
+ ref: j,
1687
+ assetsLoaded: Promise.resolve(),
1688
+ cssCleanups: []
1689
+ }, q = r(j.moduleUrl).then(
1690
+ (M) => (A.status = "success", A.component = M.default, A.schema = M.schema, A.scopeClass = typeof M.scopeClass == "string" ? M.scopeClass : void 0, M.default),
1691
+ (M) => {
1692
+ const z = new X(P, j.moduleUrl, M);
1693
+ throw A.status = "error", A.error = z, z;
1694
+ }
1695
+ );
1696
+ A.promise = q;
1697
+ const H = [];
1698
+ if (j.cssUrl) {
1699
+ const M = t(j.cssUrl, rr(P));
1700
+ A.cssCleanups.push(M), H.push(Y(M));
1683
1701
  }
1684
- );
1685
- E.promise = F, a.set(k, E), F.catch(() => {
1686
- });
1702
+ if (j.fontsUrl) {
1703
+ const M = t(j.fontsUrl, nr(P));
1704
+ A.cssCleanups.push(M), H.push(Y(M));
1705
+ }
1706
+ H.length > 0 && (A.assetsLoaded = Promise.allSettled(H).then(() => {
1707
+ })), s.set(P, A), q.catch(() => {
1708
+ });
1709
+ }
1710
+ const E = s.get(P);
1711
+ p.push(E.promise, E.assetsLoaded);
1712
+ }), Promise.allSettled(p).then(() => {
1687
1713
  });
1688
1714
  };
1689
- t.$fragments = {
1690
- has: u,
1691
- read: f,
1692
- populate: m,
1715
+ n.$fragments = {
1716
+ has: o,
1717
+ read: m,
1718
+ populate: v,
1693
1719
  getRef: c,
1694
- getSchema: o,
1720
+ getSchema: f,
1695
1721
  getScopeClass: i
1696
1722
  };
1697
1723
  };
1698
1724
  }
1699
- const Ut = Kt();
1700
- function Yt(e) {
1725
+ const fr = rt();
1726
+ function sr(e) {
1701
1727
  return (r) => {
1702
1728
  const t = /* @__PURE__ */ new Map();
1703
1729
  r.$cssChunks = {
1704
- has: (a) => t.has(a),
1705
- populate: (a) => {
1706
- for (const [u, c] of Object.entries(a)) {
1707
- const o = Number(u);
1708
- if (t.has(o)) continue;
1709
- const i = e.inject(c.cssUrl, `chunk:${o}`);
1710
- t.set(o, { ref: c, cleanup: i });
1730
+ has: (n) => t.has(n),
1731
+ // quick-260831-etq (D-2/D-5/D-6): возвращает Promise<void>, settles по
1732
+ // `loaded` всех chunk'ов переданной карты, включая уже закэшированные
1733
+ // (D-3). Отклонённый/зависший loaded не отвергает возврат (allSettled).
1734
+ populate: (n) => {
1735
+ const s = [];
1736
+ for (const [o, c] of Object.entries(n)) {
1737
+ const f = Number(o);
1738
+ if (!t.has(f))
1739
+ if (c.cssUrl) {
1740
+ const i = e.inject(c.cssUrl, ar(f));
1741
+ t.set(f, { ref: c, cleanup: i, loaded: Y(i) });
1742
+ } else
1743
+ t.set(f, { ref: c, cleanup: () => {
1744
+ }, loaded: Promise.resolve() });
1745
+ s.push(t.get(f).loaded);
1711
1746
  }
1747
+ return Promise.allSettled(s).then(() => {
1748
+ });
1712
1749
  }
1713
1750
  };
1714
1751
  };
1715
1752
  }
1716
- const Qt = Xe("GlobalManager"), tr = (e) => {
1753
+ const ir = Ze("GlobalManager"), pr = (e) => {
1717
1754
  const r = () => () => {
1718
- };
1719
- return Je({
1755
+ }, t = (e == null ? void 0 : e.inject) ?? r;
1756
+ return nt({
1720
1757
  _type: "GlobalManager",
1721
1758
  initialState: {},
1722
1759
  skip: [
1723
- Ke([
1724
- ...Object.keys(lt.nodes),
1725
- ...Object.keys(Qt)
1760
+ at([
1761
+ ...Object.keys(ht.nodes),
1762
+ ...Object.keys(ir)
1726
1763
  ])
1727
1764
  ],
1728
1765
  plugins: [
1729
1766
  // env-setup block — аналогично legacy fragmentsClient.ts
1730
- (t) => {
1731
- t.env = {
1767
+ (n) => {
1768
+ n.env = {
1732
1769
  backendEndpoint: (e == null ? void 0 : e.backendEndpoint) ?? "https://client-api.fragmentsx.com",
1733
1770
  apiToken: e == null ? void 0 : e.apiToken,
1734
1771
  referer: e == null ? void 0 : e.referer,
1735
- timeout: e == null ? void 0 : e.timeout
1772
+ timeout: e == null ? void 0 : e.timeout,
1773
+ filterOverrides: e == null ? void 0 : e.filterOverrides,
1774
+ debug: e == null ? void 0 : e.debug
1775
+ };
1776
+ },
1777
+ // quick 260830-rvp, INT-07: живая смена таргетинга. Мержит переданные
1778
+ // overrides поверх текущих на верхнем уровне (`geo` заменяется целиком)
1779
+ // и переприсваивает `env` — buildHeaders в fetchPlugin читает
1780
+ // `state.env.filterOverrides` лениво на каждый запрос, поэтому
1781
+ // переприсваивание не рушит apiToken/referer/url (те захвачены
1782
+ // fetchPlugin при монтировании, ниже по цепочке).
1783
+ (n) => {
1784
+ n.setFilters = (s) => {
1785
+ var o;
1786
+ n.env = {
1787
+ ...n.env,
1788
+ filterOverrides: {
1789
+ ...(o = n.env) == null ? void 0 : o.filterOverrides,
1790
+ ...s
1791
+ }
1792
+ };
1736
1793
  };
1737
1794
  },
1738
1795
  // $project setup — аналогично legacy
1739
- (t) => {
1740
- (e == null ? void 0 : e.projectId) != null && (t.$project = { projectId: e.projectId });
1796
+ (n) => {
1797
+ (e == null ? void 0 : e.projectId) != null && (n.$project = { projectId: e.projectId });
1741
1798
  },
1742
1799
  // User-provided plugins (escape hatch / DI)
1743
1800
  ...(e == null ? void 0 : e.plugins) ?? [],
1744
1801
  // HTTP layer — canonical buildHeaders + get() + sendBeacon()
1745
1802
  // ВАЖНО: fetchPlugin ДО globalMetricsPlugin и areaPlugin (оба зависят от state.$fetch)
1746
- Lt,
1747
- // Analytics namespace
1748
- Xt,
1749
- // Compiled-specific plugins (без JIT plugins — Req #1)
1750
1803
  Jt,
1751
- Ut,
1804
+ // Analytics namespace
1805
+ tr,
1806
+ // Compiled-specific plugins (без JIT plugins — Req #1).
1807
+ // quick-260831-etq: единственная точка разводки seam'а `inject` во все
1808
+ // три плагина — непрокинутый inject сделал бы всю правку FOUC невидимой
1809
+ // при зелёных тестах.
1810
+ tt({ inject: t }),
1811
+ rt({ inject: t }),
1752
1812
  // BLOCKER-4: inject parameter wired через factory
1753
- Yt({ inject: (e == null ? void 0 : e.inject) ?? r })
1813
+ sr({ inject: t })
1754
1814
  ]
1755
1815
  });
1756
1816
  };
1757
1817
  export {
1758
- be as FragmentsApiVersionError,
1759
- W as FragmentsAreaError,
1760
- q as FragmentsLoadError,
1761
- Jt as areaPlugin,
1762
- Yt as createCssChunksCachePlugin,
1763
- Kt as createFragmentsCachePlugin,
1764
- tr as createFragmentsClient,
1765
- Ut as fragmentsCachePlugin,
1766
- Xt as globalMetricsPlugin
1818
+ lr as AREA_GLOBAL_CSS_KEY,
1819
+ ve as FragmentsApiVersionError,
1820
+ K as FragmentsAreaError,
1821
+ X as FragmentsLoadError,
1822
+ ur as areaPlugin,
1823
+ sr as createCssChunksCachePlugin,
1824
+ rt as createFragmentsCachePlugin,
1825
+ pr as createFragmentsClient,
1826
+ ar as cssChunkKey,
1827
+ rr as fragmentCssKey,
1828
+ nr as fragmentFontsKey,
1829
+ fr as fragmentsCachePlugin,
1830
+ tr as globalMetricsPlugin,
1831
+ Y as readyOf
1767
1832
  };