@vectoriox/iox-ui 5.156.0 → 5.158.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8998,11 +8998,16 @@ const SPEC_SITE_LAYOUT = {
8998
8998
  "slow-zoom",
8999
8999
  "copy-out",
9000
9000
  "pinned-covered"
9001
+ ],
9002
+ "ground": [
9003
+ "accent",
9004
+ "subtle"
9001
9005
  ]
9002
9006
  },
9003
9007
  "many": [
9004
9008
  "extras",
9005
- "motion"
9009
+ "motion",
9010
+ "ground"
9006
9011
  ],
9007
9012
  "meanings": {
9008
9013
  "frame.full": "edge to edge",
@@ -9028,7 +9033,9 @@ const SPEC_SITE_LAYOUT = {
9028
9033
  "extras.cue": "a quiet scroll cue",
9029
9034
  "motion.slow-zoom": "the picture slowly zooms (15 s or longer), still under reduced motion",
9030
9035
  "motion.copy-out": "the first screen's words fade as the page leaves it, following the scroll",
9031
- "motion.pinned-covered": "the first screen holds while the next section slides over it"
9036
+ "motion.pinned-covered": "the first screen holds while the next section slides over it",
9037
+ "ground.accent": "a type-led first screen on the look's accent",
9038
+ "ground.subtle": "a type-led first screen on the look's quiet tint"
9032
9039
  },
9033
9040
  "meaningsHe": {
9034
9041
  "frame.full": "מקצה לקצה",
@@ -9054,7 +9061,9 @@ const SPEC_SITE_LAYOUT = {
9054
9061
  "extras.cue": "סימן גלילה שקט",
9055
9062
  "motion.slow-zoom": "התמונה מתקרבת לאט (15 שניות ויותר), ונשארת דוממת כשמבקשים פחות תנועה",
9056
9063
  "motion.copy-out": "המילים של המסך הראשון נמוגות כשהדף עוזב אותו, עם הגלילה",
9057
- "motion.pinned-covered": "המסך הראשון נשאר במקומו והחלק הבא מחליק מעליו"
9064
+ "motion.pinned-covered": "המסך הראשון נשאר במקומו והחלק הבא מחליק מעליו",
9065
+ "ground.accent": "מסך ראשון של מילים, על צבע ההדגשה של המראה",
9066
+ "ground.subtle": "מסך ראשון של מילים, על הגוון השקט של המראה"
9058
9067
  },
9059
9068
  "waits": {
9060
9069
  "frame.grows": {
@@ -9075,10 +9084,13 @@ const SPEC_SITE_LAYOUT = {
9075
9084
  "media": "photo",
9076
9085
  "words": "headline",
9077
9086
  "extras": [],
9078
- "motion": []
9087
+ "motion": [],
9088
+ "ground": []
9079
9089
  },
9080
9090
  "harness": [
9081
- "media.none"
9091
+ "media.none",
9092
+ "ground.accent",
9093
+ "ground.subtle"
9082
9094
  ],
9083
9095
  "typeLed": [
9084
9096
  {
@@ -9119,6 +9131,11 @@ const SPEC_SITE_LAYOUT = {
9119
9131
  }
9120
9132
  ],
9121
9133
  "typeLedEveryTier": true,
9134
+ "typeLedGrounds": [
9135
+ "inverse",
9136
+ "subtle",
9137
+ "accent"
9138
+ ],
9122
9139
  "named": {
9123
9140
  "hero.split": {},
9124
9141
  "hero.full-bleed-media": {
@@ -9256,6 +9273,8 @@ const SPEC_SITE_LAYOUT = {
9256
9273
  "media.object": "all",
9257
9274
  "media.none": "all",
9258
9275
  "words.headline": "all",
9276
+ "ground.accent": "all",
9277
+ "ground.subtle": "all",
9259
9278
  "rules.wordsNeverCut": "all",
9260
9279
  "rules.badgeOwnersOnly": "all",
9261
9280
  "rules.neverHoldsScroll": "all",
@@ -18302,7 +18321,9 @@ var LayoutMendKind;
18302
18321
  /** Words over a busy or too-light part of a photo, in a look that allows scrims: the layer gets one. */
18303
18322
  LayoutMendKind["Scrim"] = "scrim";
18304
18323
  /** The accent on more layers than the look allows: the least important words go back to the ink, then — where words
18305
- * cannot give enough back — the least important accent bands take the ground nearest the accent their words read on. */
18324
+ * cannot give enough back — the least important accent bands take the ground nearest the accent their words read on,
18325
+ * then the least important primary buttons step to secondary (never the main call to action — iox-ui#131: a page whose
18326
+ * accent was on its buttons fell back whole). */
18306
18327
  LayoutMendKind["Accent"] = "accent";
18307
18328
  /** Words too faint on their ground, where the ink holds there: they go back to the ink. */
18308
18329
  LayoutMendKind["Ink"] = "ink";
@@ -18351,6 +18372,11 @@ var LayoutMendKind;
18351
18372
  * the column the type is offered first (`contained`) — said to the owner as `column-mended`. A word outside the
18352
18373
  * axis is dropped (the page wears the site's). */
18353
18374
  LayoutMendKind["Column"] = "column";
18375
+ /** iox-ui#131: words a few characters too many for their box (a near miss): one size step down, where they then fit
18376
+ * and the smaller size still holds them — never below a heading's reading size, never the opening's display. */
18377
+ LayoutMendKind["Size"] = "size";
18378
+ /** iox-ui#131: a form a column or two narrower than a form needs: it widens into empty cells of its own rows. */
18379
+ LayoutMendKind["Widen"] = "widen";
18354
18380
  })(LayoutMendKind || (LayoutMendKind = {}));
18355
18381
  /** What the build says when the column a page asked for was mended (award §0c CW2). */
18356
18382
  const LAYOUT_COLUMN_MENDED = 'column-mended';
@@ -19143,6 +19169,20 @@ const FACT_SHAPES = [
19143
19169
  PRICE_SHAPE,
19144
19170
  { kind: 'time', pattern: /(?<!\d)\d{1,2}[:.]\d{2}(?!\d)/g, key: m => m.replace(/\D/g, '') },
19145
19171
  ];
19172
+ /** A bare number of three digits or more (`numbers` only); a phone, a price or a time is judged as one first. */
19173
+ const NUMBER_SHAPE = { kind: 'number', pattern: /(?<![\p{L}\p{N}])\d[\d,.]*\d(?![\p{L}\p{N}])/gu, key: (m) => m.replace(/\D/g, '') };
19174
+ const MIN_NUMBER_DIGITS = 3;
19175
+ /** A quotation: three words or more between quotation marks that stand outside a word (a Hebrew gershayim inside one —
19176
+ * ש״ח, צה״ל — is not a quote mark). */
19177
+ const QUOTE = /(?<![\p{L}\p{N}])["“„«״]([^"“”„«»״\n]+?)["”»״](?![\p{L}\p{N}])/gu;
19178
+ const MIN_QUOTE_WORDS = 3;
19179
+ const QUOTE_WORDS = /[\p{L}\p{N}]+/gu;
19180
+ /** A text's words, lower case, one space apart — what a quote is found in. */
19181
+ const plainWords = (text) => ` ${(normalise(text).match(QUOTE_WORDS) ?? []).join(' ')} `;
19182
+ /** Every quotation in `text` of three words or more, as written between its marks. */
19183
+ function quotesIn(text) {
19184
+ return [...String(text ?? '').matchAll(QUOTE)].map(m => m[1].trim()).filter(q => (q.match(QUOTE_WORDS) ?? []).length >= MIN_QUOTE_WORDS);
19185
+ }
19146
19186
  /** Every price written in `text` (commerce C-D21: what a business sells never carries one — the owner sets prices). */
19147
19187
  function pricesIn(text) {
19148
19188
  return (text.match(PRICE_SHAPE.pattern) ?? []).map(m => m.trim());
@@ -19150,17 +19190,22 @@ function pricesIn(text) {
19150
19190
  const MIN_PHONE_DIGITS = 8;
19151
19191
  /** "2019 – 2024" is two years, not a phone number. */
19152
19192
  const YEAR_RANGE = /^\s*\d{4}\s*[-–]\s*\d{4}\s*$/;
19153
- function ownedKeys(facts, known = []) {
19193
+ function ownedKeys(facts, known = [], numbers = false) {
19154
19194
  const keys = new Set();
19195
+ const shapes = numbers ? [...FACT_SHAPES, NUMBER_SHAPE] : FACT_SHAPES;
19155
19196
  for (const value of [...Object.values(facts), ...known]) {
19156
19197
  if (typeof value !== 'string')
19157
19198
  continue;
19158
- for (const shape of FACT_SHAPES)
19199
+ for (const shape of shapes)
19159
19200
  for (const m of value.match(shape.pattern) ?? [])
19160
19201
  keys.add(`${shape.kind}:${shape.key(m)}`);
19161
19202
  }
19162
19203
  return keys;
19163
19204
  }
19205
+ /** `text` with every email, real phone, price and time blanked — what is left for the bare-number shape. */
19206
+ function withoutFactShapes(text) {
19207
+ return FACT_SHAPES.reduce((rest, shape) => rest.replace(shape.pattern, m => (shape.kind === 'phone' && (shape.key(m).length < MIN_PHONE_DIGITS || YEAR_RANGE.test(m)) ? m : ' ')), text);
19208
+ }
19164
19209
  /**
19165
19210
  * The words to avoid and the facts never given, in any texts a model wrote — the plan's (`planWordIssues`) and an AI
19166
19211
  * Assist turn's field values (assist-core, R-H2): ONE judge of what a model may write.
@@ -19168,7 +19213,7 @@ function ownedKeys(facts, known = []) {
19168
19213
  function factIssues(texts, ctx) {
19169
19214
  const issues = [];
19170
19215
  const avoid = [...new Set(ctx.avoidWords.map(w => w.trim()).filter(Boolean))].map(w => ({ word: w, pattern: wordPattern(w) }));
19171
- const owned = ownedKeys(ctx.facts, ctx.known);
19216
+ const owned = ownedKeys(ctx.facts, ctx.known, ctx.numbers);
19172
19217
  for (const { path, text } of texts) {
19173
19218
  const words = normalise(text);
19174
19219
  for (const a of avoid)
@@ -19183,6 +19228,20 @@ function factIssues(texts, ctx) {
19183
19228
  issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${m.trim()}" looks like a ${shape.kind} the owner never gave — leave it out` });
19184
19229
  }
19185
19230
  }
19231
+ if (ctx.quotes) {
19232
+ const owners = [...Object.values(ctx.facts), ...(ctx.known ?? [])].filter((v) => typeof v === 'string').map(plainWords);
19233
+ for (const q of quotesIn(text)) {
19234
+ if (!owners.some(o => o.includes(plainWords(q))))
19235
+ issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${q}" reads as a quote the owner never gave — a quote is a fact: leave it out` });
19236
+ }
19237
+ }
19238
+ if (ctx.numbers) {
19239
+ for (const m of withoutFactShapes(text).match(NUMBER_SHAPE.pattern) ?? []) {
19240
+ const key = NUMBER_SHAPE.key(m);
19241
+ if (key.length >= MIN_NUMBER_DIGITS && !owned.has(`number:${key}`))
19242
+ issues.push({ code: PlanWordIssueCode.InventedFact, path, message: `"${m.trim()}" looks like a number the owner never gave — leave it out` });
19243
+ }
19244
+ }
19186
19245
  }
19187
19246
  return issues;
19188
19247
  }
@@ -19735,7 +19794,7 @@ const V$1 = SPEC_SITE_LAYOUT.vocab;
19735
19794
  const GALLERY_EFFECTS = V$1.galleryEffects;
19736
19795
  const FORM_PRESETS = V$1.formPresets;
19737
19796
  const BUTTON_VARIANTS = V$1.buttonVariants;
19738
- const NONE$2 = 'none';
19797
+ const NONE$3 = 'none';
19739
19798
  const CLIP = 'clipReveal';
19740
19799
  const CLIP_SIDE = `${CLIP}-`;
19741
19800
  /** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
@@ -19743,7 +19802,7 @@ const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
19743
19802
  const CHIP_SLOTS = Array.from(new Set(Object.values(V$1.formChips).flat()));
19744
19803
  const SLOT_NAMES = [...V$1.formSlots, ...CHIP_SLOTS];
19745
19804
  const ENTER_ON_WIRE = V$1.enters.flatMap((e) => (e === CLIP ? V$1.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
19746
- const VARIANT_ON_WIRE = [NONE$2, ...V$1.buttonVariants, ...V$1.galleryEffects, ...V$1.formPresets];
19805
+ const VARIANT_ON_WIRE = [NONE$3, ...V$1.buttonVariants, ...V$1.galleryEffects, ...V$1.formPresets];
19747
19806
  /**
19748
19807
  * List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
19749
19808
  * words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
@@ -19823,11 +19882,11 @@ const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
19823
19882
  function layoutWirePartWords(lists) {
19824
19883
  return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
19825
19884
  }
19826
- const text$1 = (d) => ({ ...jsonText(), description: d });
19885
+ const text$2 = (d) => ({ ...jsonText(), description: d });
19827
19886
  const integer = (d) => ({ ...jsonInteger(), description: d });
19828
- const oneOf$1 = (values, d) => ({ ...jsonOneOf(values), description: d });
19887
+ const oneOf$2 = (values, d) => ({ ...jsonOneOf(values), description: d });
19829
19888
  const listOf$2 = (items, d) => ({ ...jsonListOf(items), description: d });
19830
- const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
19889
+ const closed$1 = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
19831
19890
  /** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
19832
19891
  function layoutWireJsonSchema(options = {}) {
19833
19892
  const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
@@ -19836,66 +19895,66 @@ function layoutWireJsonSchema(options = {}) {
19836
19895
  const lists = options.lists
19837
19896
  ? {
19838
19897
  mix: listOf$2(jsonOneOf(mixOffered), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(mixOffered)}; [] for none`),
19839
- parts: listOf$2(jsonOneOf(partWords.length ? partWords : [NONE$2]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
19898
+ parts: listOf$2(jsonOneOf(partWords.length ? partWords : [NONE$3]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
19840
19899
  }
19841
19900
  : {};
19842
19901
  const carried = options.carry
19843
19902
  ? {
19844
- carry: oneOf$1([NONE$2, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
19903
+ carry: oneOf$2([NONE$3, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
19845
19904
  }
19846
19905
  : {};
19847
- const layer = closed({
19848
- kind: oneOf$1(V$1.kinds, 'what the layer is'),
19849
- role: oneOf$1(V$1.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
19850
- text: text$1("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
19906
+ const layer = closed$1({
19907
+ kind: oneOf$2(V$1.kinds, 'what the layer is'),
19908
+ role: oneOf$2(V$1.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
19909
+ text: text$2("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
19851
19910
  items: listOf$2(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
19852
19911
  photos: listOf$2(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
19853
- source: text$1("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
19912
+ source: text$2("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
19854
19913
  box: listOf$2(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
19855
- size: oneOf$1([NONE$2, ...V$1.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
19856
- color: oneOf$1(V$1.colours, "the look's colour by name"),
19857
- align: oneOf$1(V$1.aligns, 'text alignment'),
19914
+ size: oneOf$2([NONE$3, ...V$1.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
19915
+ color: oneOf$2(V$1.colours, "the look's colour by name"),
19916
+ align: oneOf$2(V$1.aligns, 'text alignment'),
19858
19917
  z: integer('0..9 stacking'),
19859
- bleed: oneOf$1(V$1.bleeds, 'runs off the screen at that edge'),
19918
+ bleed: oneOf$2(V$1.bleeds, 'runs off the screen at that edge'),
19860
19919
  rotate: integer("degrees, within the look's limit"),
19861
- to: text$1("button: a section id of this page or a page route ('/contact'); '' for none"),
19862
- variant: oneOf$1(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
19863
- enter: oneOf$1(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
19920
+ to: text$2("button: a section id of this page or a page route ('/contact'); '' for none"),
19921
+ variant: oneOf$2(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
19922
+ enter: oneOf$2(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
19864
19923
  ? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
19865
19924
  : 'plays once as it arrives (time); clipReveal opens from that side'),
19866
- depth: oneOf$1([NONE$2, ...V$1.depths], 'the parallax trio (not in held sections)'),
19925
+ depth: oneOf$2([NONE$3, ...V$1.depths], 'the parallax trio (not in held sections)'),
19867
19926
  inner: integer('0..3: how far a photo drifts inside its frame'),
19868
19927
  flags: listOf$2(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
19869
19928
  perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
19870
- slots: listOf$2(closed({ slot: oneOf$1(SLOT_NAMES, 'which words'), text: text$1('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
19871
- motion: listOf$2(closed({
19872
- prop: oneOf$1(V$1.trackProps, 'what moves'),
19873
- ease: oneOf$1(V$1.eases, 'how'),
19929
+ slots: listOf$2(closed$1({ slot: oneOf$2(SLOT_NAMES, 'which words'), text: text$2('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
19930
+ motion: listOf$2(closed$1({
19931
+ prop: oneOf$2(V$1.trackProps, 'what moves'),
19932
+ ease: oneOf$2(V$1.eases, 'how'),
19874
19933
  values: listOf$2({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
19875
19934
  }), 'held sections only: tracks the scroll plays; [] for none'),
19876
19935
  ...lists,
19877
19936
  ...carried,
19878
19937
  });
19879
- const section = closed({
19880
- id: text$1('a short slug, unique on the page'),
19881
- kind: oneOf$1(V$1.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
19938
+ const section = closed$1({
19939
+ id: text$2('a short slug, unique on the page'),
19940
+ kind: oneOf$2(V$1.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
19882
19941
  screens: integer('1..5 screen heights'),
19883
19942
  hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
19884
- ground: text$1("a colour name, or photo:<id>"),
19943
+ ground: text$2("a colour name, or photo:<id>"),
19885
19944
  rows: integer('4..16 grid rows'),
19886
- transition: oneOf$1(V$1.transitions, 'how it arrives over the section before'),
19945
+ transition: oneOf$2(V$1.transitions, 'how it arrives over the section before'),
19887
19946
  phone: listOf$2(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
19888
19947
  layers: listOf$2(layer, 'the layers'),
19889
19948
  });
19890
19949
  const columns = columnsOnWire(options);
19891
19950
  const page = columns
19892
- ? { column: oneOf$1(columns, "the page's content column: wide = the window less the one gutter (a gallery, a bold page) · contained = one centred column · narrow = a reading column (a story, a case study); grounds and bleeds keep the window") }
19951
+ ? { column: oneOf$2(columns, "the page's content column: wide = the window less the one gutter (a gallery, a bold page) · contained = one centred column · narrow = a reading column (a story, a case study); grounds and bleeds keep the window") }
19893
19952
  : {};
19894
- return closed({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
19953
+ return closed$1({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
19895
19954
  }
19896
19955
  const nonEmpty$2 = (v) => typeof v === 'string' && v.trim() !== '';
19897
19956
  const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
19898
- const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
19957
+ const strings$1 = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
19899
19958
  function expandForm(l, preset) {
19900
19959
  const form = { preset: preset };
19901
19960
  const options = {};
@@ -19916,9 +19975,9 @@ function expandForm(l, preset) {
19916
19975
  return form;
19917
19976
  }
19918
19977
  function expandGallery(l, flags, variant) {
19919
- const captions = strings(l['items']);
19978
+ const captions = strings$1(l['items']);
19920
19979
  const gallery = {
19921
- slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
19980
+ slides: strings$1(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
19922
19981
  };
19923
19982
  if (GALLERY_EFFECTS.includes(variant))
19924
19983
  gallery.effect = variant;
@@ -19940,10 +19999,10 @@ function expandGallery(l, flags, variant) {
19940
19999
  /** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
19941
20000
  * parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
19942
20001
  function expandListMix(l, gallery) {
19943
- const words = strings(l['mix']);
20002
+ const words = strings$1(l['mix']);
19944
20003
  if (!words.length)
19945
20004
  return null;
19946
- const parts = strings(l['parts']).filter(p => p !== NONE$2).map(p => {
20005
+ const parts = strings$1(l['parts']).filter(p => p !== NONE$3).map(p => {
19947
20006
  const at = p.lastIndexOf(PART_SEPARATOR);
19948
20007
  return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
19949
20008
  }).filter((p) => !!p);
@@ -20003,8 +20062,8 @@ function expandTrack(t) {
20003
20062
  function expandLayer(l, beat) {
20004
20063
  const kind = String(l['kind']);
20005
20064
  const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
20006
- const flags = new Set(strings(l['flags']));
20007
- const variant = String(l['variant'] ?? NONE$2);
20065
+ const flags = new Set(strings$1(l['flags']));
20066
+ const variant = String(l['variant'] ?? NONE$3);
20008
20067
  const out = {
20009
20068
  kind: kind,
20010
20069
  role: String(l['role']),
@@ -20013,18 +20072,18 @@ function expandLayer(l, beat) {
20013
20072
  };
20014
20073
  if (nonEmpty$2(l['text']))
20015
20074
  out.text = String(l['text']);
20016
- const items = strings(l['items']);
20075
+ const items = strings$1(l['items']);
20017
20076
  if (items.length && kind !== 'gallery')
20018
20077
  out.items = items;
20019
- if (kind === 'photo' && strings(l['photos'])[0])
20020
- out.photo = { id: strings(l['photos'])[0] };
20078
+ if (kind === 'photo' && strings$1(l['photos'])[0])
20079
+ out.photo = { id: strings$1(l['photos'])[0] };
20021
20080
  if (kind === 'gallery')
20022
20081
  out.gallery = expandGallery(l, flags, variant);
20023
20082
  if (kind === 'form')
20024
20083
  out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
20025
20084
  if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
20026
20085
  out.variant = variant;
20027
- if (nonEmpty$2(l['size']) && l['size'] !== NONE$2)
20086
+ if (nonEmpty$2(l['size']) && l['size'] !== NONE$3)
20028
20087
  out.size = String(l['size']);
20029
20088
  if (nonEmpty$2(l['color']))
20030
20089
  out.color = String(l['color']);
@@ -20032,7 +20091,7 @@ function expandLayer(l, beat) {
20032
20091
  out.align = String(l['align']);
20033
20092
  if (num(l['z']))
20034
20093
  out.z = num(l['z']);
20035
- if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$2)
20094
+ if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$3)
20036
20095
  out.bleed = String(l['bleed']);
20037
20096
  if (num(l['rotate']))
20038
20097
  out.rotate = num(l['rotate']);
@@ -20046,23 +20105,23 @@ function expandLayer(l, beat) {
20046
20105
  out.fit = 'contain';
20047
20106
  if (flags.has(SCRUB_FLAG))
20048
20107
  out.scrub = true;
20049
- const enter = String(l['enter'] ?? NONE$2);
20108
+ const enter = String(l['enter'] ?? NONE$3);
20050
20109
  if (enter.startsWith(CLIP_SIDE)) {
20051
20110
  out.enter = CLIP;
20052
20111
  out.from = enter.slice(CLIP_SIDE.length);
20053
20112
  }
20054
- else if (enter !== NONE$2)
20113
+ else if (enter !== NONE$3)
20055
20114
  out.enter = enter;
20056
20115
  if (out.enter)
20057
20116
  out.beat = beat;
20058
- if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$2)
20117
+ if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$3)
20059
20118
  out.depth = String(l['depth']);
20060
20119
  if (num(l['inner']))
20061
20120
  out.inner = num(l['inner']);
20062
20121
  const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
20063
20122
  if (motion.length)
20064
20123
  out.motion = motion;
20065
- if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$2)
20124
+ if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$3)
20066
20125
  out.carry = String(l['carry']).trim();
20067
20126
  return out;
20068
20127
  }
@@ -20075,7 +20134,7 @@ function expandLayer(l, beat) {
20075
20134
  function derivedBeats(layers) {
20076
20135
  const last = LAYOUT_BEAT_DELAY.length - 1;
20077
20136
  let beat = 0;
20078
- return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$2) !== NONE$2 ? Math.min(++beat, last) : 0));
20137
+ return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$3) !== NONE$3 ? Math.min(++beat, last) : 0));
20079
20138
  }
20080
20139
  function expandSection(s) {
20081
20140
  const kind = String(s['kind']);
@@ -20156,16 +20215,16 @@ function layerToWire(l) {
20156
20215
  photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
20157
20216
  source: g?.source ?? '',
20158
20217
  box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
20159
- size: l.size ?? NONE$2,
20218
+ size: l.size ?? NONE$3,
20160
20219
  color: l.color ?? 'ink',
20161
20220
  align: l.align ?? 'start',
20162
20221
  z: l.z ?? 0,
20163
- bleed: l.bleed ?? NONE$2,
20222
+ bleed: l.bleed ?? NONE$3,
20164
20223
  rotate: l.rotate ?? 0,
20165
20224
  to: l.to ?? '',
20166
- variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$2,
20167
- enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$2,
20168
- depth: l.depth ?? NONE$2,
20225
+ variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$3,
20226
+ enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$3,
20227
+ depth: l.depth ?? NONE$3,
20169
20228
  inner: l.inner ?? 0,
20170
20229
  flags,
20171
20230
  perView: typeof g?.perView === 'number' ? g.perView : 0,
@@ -20178,8 +20237,8 @@ function layerToWire(l) {
20178
20237
  /** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
20179
20238
  function carryPlaceToWire(s) {
20180
20239
  const layer = {
20181
- kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$2, color: 'ink', align: 'start',
20182
- z: 0, bleed: NONE$2, rotate: 0, to: '', variant: NONE$2, enter: NONE$2, depth: NONE$2, inner: 0, flags: [], perView: 0, slots: [], motion: [],
20240
+ kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$3, color: 'ink', align: 'start',
20241
+ z: 0, bleed: NONE$3, rotate: 0, to: '', variant: NONE$3, enter: NONE$3, depth: NONE$3, inner: 0, flags: [], perView: 0, slots: [], motion: [],
20183
20242
  carry: s.carry,
20184
20243
  };
20185
20244
  return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
@@ -21446,7 +21505,7 @@ const filled$1 = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.ca
21446
21505
  || s.kind === LayoutSectionKind.Inhale;
21447
21506
  /** Where a layer's ink is in its section (px from the section's top): its cell for what stretches, its words' lines in the
21448
21507
  * cell's middle for the rest, the line of a rule. */
21449
- function inkOf(s, li, rowPx) {
21508
+ function inkOf$1(s, li, rowPx) {
21450
21509
  const l = s.layers[li];
21451
21510
  const t = (l.row[0] - 1) * rowPx;
21452
21511
  const b = (l.row[1] - 1) * rowPx;
@@ -21489,7 +21548,7 @@ function layoutVoids(sections) {
21489
21548
  (s.layers ?? []).forEach((l, li) => {
21490
21549
  if (!Array.isArray(l.row) || !Array.isArray(l.col))
21491
21550
  return;
21492
- const [a, b] = inkOf(s, li, rowPx);
21551
+ const [a, b] = inkOf$1(s, li, rowPx);
21493
21552
  ink.push([top + a, top + b]);
21494
21553
  });
21495
21554
  }
@@ -22546,14 +22605,17 @@ function examineLayout(page, ctx, carried, given) {
22546
22605
  add(LayoutIssueCode.Value, `${lp}.variant`, V.buttonVariants.join(' | '));
22547
22606
  const text = String(l.text ?? (l.items ?? []).join(' '));
22548
22607
  const maxChars = l.size ? L$1.maxChars[l.size] : undefined;
22608
+ // iox-ui#131: a near miss — one size step down holds them — is the composer's to settle.
22609
+ const smaller = placed ? sizeStepDown(l, s, i, judgeColumnPx, daring) : null;
22610
+ const sizeMend = smaller ? { kind: LayoutMendKind.Size, layer: lp, size: smaller } : undefined;
22549
22611
  if (maxChars !== undefined && text.length > maxChars)
22550
- add(LayoutIssueCode.Reading, `${lp}.text`, `${text.length} characters is too long for size ${l.size} (≤ ${maxChars})`);
22612
+ add(LayoutIssueCode.Reading, `${lp}.text`, `${text.length} characters is too long for size ${l.size} (≤ ${maxChars})`, sizeMend);
22551
22613
  if ((l.size === 'm' || l.size === 's') && text.length > LIM.longTextChars && span(l.col) > LIM.longTextColumns) {
22552
22614
  add(LayoutIssueCode.Reading, `${lp}.col`, `long text is never wider than ${LIM.longTextColumns} columns`);
22553
22615
  }
22554
22616
  if (placed && isText(l) && l.size && l.size !== 'screen' && text && !layoutTextFits(l, s, l.size, judgeColumnPx)) {
22555
22617
  const lines = Math.floor(boxPx(l.col, l.row, s, judgeColumnPx).h / (L$1.sizePx[l.size] * LAYOUT_LINE_HEIGHT));
22556
- add(LayoutIssueCode.Reading, `${lp}.row`, `${text.length} characters at ${l.size} do not fit a box of ${span(l.col)} columns × ${span(l.row)} rows (about ${Math.max(0, lines)} line${lines === 1 ? '' : 's'}) — give it more rows or columns, or fewer words`);
22618
+ add(LayoutIssueCode.Reading, `${lp}.row`, `${text.length} characters at ${l.size} do not fit a box of ${span(l.col)} columns × ${span(l.row)} rows (about ${Math.max(0, lines)} line${lines === 1 ? '' : 's'}) — give it more rows or columns, or fewer words`, sizeMend);
22557
22619
  }
22558
22620
  if (l.size === 'screen' || l.size === 'xxl')
22559
22621
  huge++;
@@ -22610,8 +22672,9 @@ function examineLayout(page, ctx, carried, given) {
22610
22672
  }
22611
22673
  if ((l.motion ?? []).some(m => m.prop !== LayoutTrackProp.Opacity))
22612
22674
  add(LayoutIssueCode.Motion, `${lp}.motion`, 'decoration only fades — opacity tracks only');
22675
+ // iox-ui#131: settled alone — a decoration sent back glides as the floor asks (the salon's and store's pages fell on it).
22613
22676
  if (l.depth === 'front')
22614
- add(LayoutIssueCode.Motion, `${lp}.depth`, 'decoration never runs ahead — back or mid');
22677
+ add(LayoutIssueCode.Motion, `${lp}.depth`, 'decoration never runs ahead — back or mid', { kind: LayoutMendKind.Depth, layers: [lp] });
22615
22678
  }
22616
22679
  if (l.kind === LayoutLayerKind.Shape && !layoutShapeHasPurpose(s, j)) {
22617
22680
  add(LayoutIssueCode.Look, lp, 'a shape that is there for nothing — not a rule (one row high), a band, a frame for a picture or a ground for words, and it does not move: an empty box on the page', { kind: LayoutMendKind.Drop, layer: lp });
@@ -22744,13 +22807,17 @@ function examineLayout(page, ctx, carried, given) {
22744
22807
  }
22745
22808
  if (f?.channel?.href)
22746
22809
  add(LayoutIssueCode.Content, `${lp}.form.channel.href`, 'no link — the second channel is filled from the owner\'s facts');
22747
- if (span(l.col) < LIM.formColumns)
22748
- add(LayoutIssueCode.Structure, `${lp}.col`, `a form needs at least ${LIM.formColumns} columns`);
22810
+ if (span(l.col) < LIM.formColumns) {
22811
+ const col = formWidening(s, j, LIM.formColumns, lastCol);
22812
+ add(LayoutIssueCode.Structure, `${lp}.col`, `a form needs at least ${LIM.formColumns} columns`, col ? { kind: LayoutMendKind.Widen, layer: lp, col } : undefined);
22813
+ }
22749
22814
  if (groundPhoto || layers.some(o => o !== l && isPictured(o) && overlaps(o, l)))
22750
22815
  add(LayoutIssueCode.Reading, lp, 'a form never sits on a photo');
22751
22816
  }
22752
22817
  if (l.kind === LayoutLayerKind.Button) {
22753
- accentUses++;
22818
+ // A secondary button wears the ink and a line, never the accent (iox-ui#131): it does not count.
22819
+ if (l.variant !== LayoutButtonVariant.Secondary)
22820
+ accentUses++;
22754
22821
  if (!l.to)
22755
22822
  add(LayoutIssueCode.Content, `${lp}.to`, 'a button leads somewhere: a section id or a page route');
22756
22823
  else if (!ids.has(l.to) && !routes.includes(l.to)) {
@@ -22907,8 +22974,12 @@ function examineLayout(page, ctx, carried, given) {
22907
22974
  add(LayoutIssueCode.Structure, 'sections', `${marquees} marquees — at most ${LIM.marquees}`);
22908
22975
  const minDepth = Math.max(0, (look && inList(LIM.calmLooks, look.id) ? LIM.depthLayersCalm : LIM.depthLayers) - carried.layered);
22909
22976
  if (layered < minDepth) {
22977
+ // iox-ui#131: the floor follows what the page can hold — every layer that may glide without its words meeting
22978
+ // another's takes a depth; a page with none left to give is not refused for it (the salon's Home fell back whole on
22979
+ // "4 layers glide — at least 6" with nothing more that could glide).
22910
22980
  const glide = glideChoice(sections, minDepth - layered);
22911
- add(LayoutIssueCode.Motion, 'sections', `${layered} layers glide by depth or drift — at least ${minDepth}`, glide.length === minDepth - layered ? { kind: LayoutMendKind.Depth, layers: glide } : undefined);
22981
+ if (glide.length)
22982
+ add(LayoutIssueCode.Motion, 'sections', `${layered} layers glide by depth or drift — at least ${minDepth}`, { kind: LayoutMendKind.Depth, layers: glide });
22912
22983
  }
22913
22984
  if (daring) {
22914
22985
  const d = LIM.daring;
@@ -22935,7 +23006,8 @@ function examineLayout(page, ctx, carried, given) {
22935
23006
  if (look) {
22936
23007
  if (accentUses > look.accentMax) {
22937
23008
  const bands = paint ? accentBandMoves(sections, ground => paint.colours[ground], (name, text) => colourHex(name, text)) : [];
22938
- add(LayoutIssueCode.Look, 'sections', `the accent is on ${accentUses} layers (a button counts, an accent ground twice) — the ${look.id} look allows ${look.accentMax}`, { kind: LayoutMendKind.Accent, over: accentUses - look.accentMax, ...(bands.length ? { bands } : {}) });
23009
+ const buttons = accentButtonSteps(sections);
23010
+ add(LayoutIssueCode.Look, 'sections', `the accent is on ${accentUses} layers (a button counts, an accent ground twice) — the ${look.id} look allows ${look.accentMax}`, { kind: LayoutMendKind.Accent, over: accentUses - look.accentMax, ...(bands.length ? { bands } : {}), ...(buttons.length ? { buttons } : {}) });
22939
23011
  }
22940
23012
  if (limits.hugeMax !== undefined && huge > limits.hugeMax)
22941
23013
  add(LayoutIssueCode.Look, 'sections', `${huge} xxl/screen layers — the ${look.id} look allows ${limits.hugeMax}`);
@@ -23070,6 +23142,53 @@ function auditLayoutMotion(nodes) {
23070
23142
  });
23071
23143
  return issues;
23072
23144
  }
23145
+ /** The sizes a near miss may step down from, and the step (iox-ui#131): one step, never below a heading's reading size. */
23146
+ const SIZE_STEP_DOWN = { [LayoutSize.Xxl]: LayoutSize.Xl, [LayoutSize.Xl]: LayoutSize.L, [LayoutSize.L]: LayoutSize.M };
23147
+ /**
23148
+ * iox-ui#131: the size one step down at which a text layer's words fit its box and the size still holds them — the near
23149
+ * miss the composer settles. Never the opening's display (a daring page's one large thing — its own rule), never a word set
23150
+ * to the screen. Null: the model's.
23151
+ */
23152
+ function sizeStepDown(l, s, si, columnPx, daring) {
23153
+ if (!isText(l) || !l.size)
23154
+ return null;
23155
+ const to = SIZE_STEP_DOWN[l.size];
23156
+ // A daring page's opening keeps its display (the daring rule asks one); any other opening's heading may step too.
23157
+ if (!to || (daring && si === 0 && l.size === LayoutSize.Xxl) || l.kind === LayoutLayerKind.Word)
23158
+ return null;
23159
+ const max = L$1.maxChars[to];
23160
+ if (max !== undefined && String(l.text ?? (l.items ?? []).join(" ")).length > max)
23161
+ return null;
23162
+ return layoutTextFits(l, s, to, columnPx) ? to : null;
23163
+ }
23164
+ /**
23165
+ * iox-ui#131: the columns a form narrower than `need` takes by widening into empty cells of its own rows (toward the end,
23166
+ * then the start; never over another layer, never past the grid). Null: no room — the model's.
23167
+ */
23168
+ function formWidening(s, li, need, lastCol) {
23169
+ const l = s.layers[li];
23170
+ let [c0, c1] = l.col;
23171
+ const free = (col) => s.layers.every((o, j) => j === li || !overlaps({ ...l, col }, o));
23172
+ while (c1 - c0 < need && c1 + 1 <= lastCol && free([c0, c1 + 1]))
23173
+ c1++;
23174
+ while (c1 - c0 < need && c0 - 1 >= 1 && free([c0 - 1, c1]))
23175
+ c0--;
23176
+ return c1 - c0 >= need ? [c0, c1] : null;
23177
+ }
23178
+ /**
23179
+ * The primary buttons the accent mend may step to secondary (iox-ui#131), least important first: later sections first,
23180
+ * never the main call to action (the first button that reaches the business — a form's section or a contact word — else
23181
+ * the first button). A secondary one already paints no accent.
23182
+ */
23183
+ function accentButtonSteps(sections) {
23184
+ const buttons = sections.flatMap((s, si) => (s.layers ?? []).map((l, li) => ({ l, si, li })).filter(({ l }) => l.kind === LayoutLayerKind.Button));
23185
+ const formIds = new Set(sections.filter(s => s.layers?.some(l => l.kind === LayoutLayerKind.Form)).map(s => s.id));
23186
+ const main = buttons.find(({ l }) => formIds.has(String(l.to)) || CONTACT_WORDS.test(`${l.to ?? ''} ${l.text ?? ''}`)) ?? buttons[0];
23187
+ return buttons
23188
+ .filter(b => b !== main && b.l.variant !== LayoutButtonVariant.Secondary)
23189
+ .sort((a, b) => b.si - a.si || b.li - a.li)
23190
+ .map(({ si, li }) => `sections[${si}].layers[${li}]`);
23191
+ }
23073
23192
  /** Most important first: which layers take a depth when too few glide (iox-ui#63). */
23074
23193
  const GLIDE_ROLE_ORDER = [LayoutRole.Lead, LayoutRole.Support, undefined, LayoutRole.Decoration];
23075
23194
  /**
@@ -23261,14 +23380,38 @@ function mendLayout(page, issues) {
23261
23380
  const accented = (next.sections ?? []).flatMap((s, si) => (s.layers ?? []).map(l => ({ l, si })))
23262
23381
  .filter(({ l }) => isText(l) && l.color === LayoutColour.Accent)
23263
23382
  .sort((a, b) => MEND_ROLE_ORDER.indexOf(a.l.role) - MEND_ROLE_ORDER.indexOf(b.l.role) || b.si - a.si);
23264
- // words first; a band (an accent ground counts twice) only for what the words cannot give back
23265
- const bands = accented.length >= mend.over ? 0 : Math.ceil((mend.over - accented.length) / ACCENT_GROUND_USES);
23266
- if (bands > (mend.bands?.length ?? 0))
23267
- continue;
23383
+ // words first; a band (an accent ground counts twice) only for what the words cannot give back; then a primary
23384
+ // button that is not the main call to action steps to secondary (iox-ui#131)
23385
+ const available = mend.bands?.length ?? 0;
23386
+ let bands = accented.length >= mend.over ? 0 : Math.ceil((mend.over - accented.length) / ACCENT_GROUND_USES);
23387
+ let steps = [];
23388
+ if (bands > available) {
23389
+ bands = available;
23390
+ const need = mend.over - accented.length - available * ACCENT_GROUND_USES;
23391
+ steps = (mend.buttons ?? []).map(layerAt).filter((b) => !!b).slice(0, need);
23392
+ if (steps.length < need)
23393
+ continue;
23394
+ }
23268
23395
  for (const band of (mend.bands ?? []).slice(0, bands))
23269
23396
  next.sections[band.section].ground = band.ground;
23270
- for (const { l } of accented.slice(0, Math.max(0, mend.over - bands * ACCENT_GROUND_USES)))
23397
+ for (const { l } of accented.slice(0, Math.max(0, mend.over - bands * ACCENT_GROUND_USES - steps.length)))
23271
23398
  delete l.color;
23399
+ for (const b of steps)
23400
+ b.variant = LayoutButtonVariant.Secondary;
23401
+ mended.push(issue);
23402
+ }
23403
+ else if (mend?.kind === LayoutMendKind.Size) {
23404
+ const layer = layerAt(mend.layer);
23405
+ if (!layer)
23406
+ continue;
23407
+ layer.size = mend.size;
23408
+ mended.push(issue);
23409
+ }
23410
+ else if (mend?.kind === LayoutMendKind.Widen) {
23411
+ const layer = layerAt(mend.layer);
23412
+ if (!layer)
23413
+ continue;
23414
+ layer.col = [...mend.col];
23272
23415
  mended.push(issue);
23273
23416
  }
23274
23417
  else if (mend?.kind === LayoutMendKind.Depth) {
@@ -23373,6 +23516,36 @@ function mendLayout(page, issues) {
23373
23516
  }
23374
23517
  return { page: mended.length ? next : page, mended };
23375
23518
  }
23519
+ /** How many times the composer settles a page: a mend can make the next one possible (an accent band moved, then a
23520
+ * depth that no longer meets it), never more. */
23521
+ const LAYOUT_SETTLE_PASSES = 3;
23522
+ /**
23523
+ * iox-ui#131: settle a page as far as the composer can — the mends of what the gate finds, then the gate again on the
23524
+ * mended page, until nothing more is settled (at most `LAYOUT_SETTLE_PASSES`). `issuesOf` is the whole gate the page is
23525
+ * judged by (static + sameness). What is left after it is the model's, or the section fallback's. Pure.
23526
+ */
23527
+ function settleLayoutPage(page, issuesOf) {
23528
+ let current = page;
23529
+ const mended = [];
23530
+ for (let pass = 0; pass < LAYOUT_SETTLE_PASSES; pass++) {
23531
+ const settled = mendLayout(current, issuesOf(current));
23532
+ if (!settled.mended.length)
23533
+ break;
23534
+ current = settled.page;
23535
+ mended.push(...settled.mended);
23536
+ }
23537
+ return { page: current, mended };
23538
+ }
23539
+ /** iox-ui#131: at most this many things left after the one repair is a near miss — asked once more, not given away. */
23540
+ const LAYOUT_NEAR_MISS = 2;
23541
+ /**
23542
+ * iox-ui#131: a repaired page that came close — at most `LAYOUT_NEAR_MISS` things left, and fewer than the check found
23543
+ * before the repair (the model is converging, not wandering) — gets a second repair before its sections are given away.
23544
+ * Pure: the service and a replay ask the same question.
23545
+ */
23546
+ function layoutNearMiss(before, after) {
23547
+ return after.length > 0 && after.length <= LAYOUT_NEAR_MISS && after.length < before.length;
23548
+ }
23376
23549
 
23377
23550
  /**
23378
23551
  * A site's ART DIRECTION (premium-components M7, premium sites PS4): what every picture made for the site shares, so its
@@ -23725,7 +23898,7 @@ const brandPart = (ctx) => {
23725
23898
  return ctx.tagline?.trim() ? node : { ...node, c: (node.c ?? []).filter(n => n.fromBusiness !== 'tagline') };
23726
23899
  };
23727
23900
  /** The columns of a footer's grid: the name's block wider, one column per block it holds. */
23728
- function columnsOf(count) {
23901
+ function columnsOf$1(count) {
23729
23902
  const lay = { display: 'grid', gridTemplateColumns: ['2fr', ...Array.from({ length: count }, () => '1fr')].join(' '), gap: GAP$1 };
23730
23903
  const resp = count >= 3
23731
23904
  ? { tablet: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' }, mobile: { gridTemplateColumns: 'minmax(0, 1fr)' } }
@@ -23768,7 +23941,7 @@ function bodyOf$2(mix, ctx) {
23768
23941
  ];
23769
23942
  }
23770
23943
  default:
23771
- return [{ t: 'Container', es: 'box', ...columnsOf(holds.length), c: [brandPart(ctx), ...holds] }, part$3('rule'), part$3('copyright')];
23944
+ return [{ t: 'Container', es: 'box', ...columnsOf$1(holds.length), c: [brandPart(ctx), ...holds] }, part$3('rule'), part$3('copyright')];
23772
23945
  }
23773
23946
  }
23774
23947
  /** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
@@ -23912,7 +24085,7 @@ const TEXT$1 = 'Text';
23912
24085
  const HEADING$1 = 'Heading';
23913
24086
  const NAV_STYLE = 'nav';
23914
24087
  const DISPLAY = 'display';
23915
- const NONE$1 = 'none';
24088
+ const NONE$2 = 'none';
23916
24089
  const CLICK = 'click';
23917
24090
  const HOME_ROUTE = '/';
23918
24091
  const COMPOSED$2 = { releaseLayoutDefaults: true };
@@ -24000,7 +24173,7 @@ function navShapeOf(globals) {
24000
24173
  return NavShape.Bar;
24001
24174
  return drawer ? NavShape.Drawer : null;
24002
24175
  }
24003
- const hiddenAt = (n) => Object.entries(n.responsive ?? {}).find(([, layer]) => layer?.styleProps?.[DISPLAY] === NONE$1)?.[0] ?? null;
24176
+ const hiddenAt = (n) => Object.entries(n.responsive ?? {}).find(([, layer]) => layer?.styleProps?.[DISPLAY] === NONE$2)?.[0] ?? null;
24004
24177
  /** The breakpoint the phone shape takes over at, read off the header's links row (default Mobile). */
24005
24178
  function navShapeBreakpoint(globals) {
24006
24179
  const links = find(globals, NavRole.Links);
@@ -24114,7 +24287,7 @@ const MENU_DISPLAY = 'inline-flex';
24114
24287
  /** What a header part hidden at every width shows again when the menu goes back to phone widths only. */
24115
24288
  const BUILT_DISPLAY = { [NavRole.Links]: 'flex' };
24116
24289
  function phoneOnly(node, at, display) {
24117
- node.styleProps[DISPLAY] = NONE$1;
24290
+ node.styleProps[DISPLAY] = NONE$2;
24118
24291
  node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: display } } };
24119
24292
  }
24120
24293
  /** At every width (HI-D8): `display` lives in the base styles and no breakpoint overrides it. */
@@ -24134,11 +24307,11 @@ function displayEverywhere(node, display) {
24134
24307
  function menuAtEveryWidth(globals, navId) {
24135
24308
  const root = findNavRoot(globals, navId);
24136
24309
  const menu = root ? find([root], NavRole.MenuButton) : null;
24137
- return !!menu && menu.styleProps?.[DISPLAY] !== NONE$1;
24310
+ return !!menu && menu.styleProps?.[DISPLAY] !== NONE$2;
24138
24311
  }
24139
24312
  /** Hidden at the phone width: the header's links row. */
24140
24313
  function hideAt(node, at) {
24141
- node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: NONE$1 } } };
24314
+ node.responsive = { ...(node.responsive ?? {}), [at]: { ...(node.responsive?.[at] ?? {}), styleProps: { ...(node.responsive?.[at]?.styleProps ?? {}), [DISPLAY]: NONE$2 } } };
24142
24315
  }
24143
24316
  /** Move every `display` override the shape owns to the new breakpoint. */
24144
24317
  function moveDisplayOverride(node, to) {
@@ -24449,12 +24622,12 @@ function planNavShape(globals, shape, options = {}, navId) {
24449
24622
  const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr.id, at, words)) : null;
24450
24623
  for (const p of phoneHiddenParts(root)) {
24451
24624
  if (everyWidth && !KEPT_AT_EVERY_WIDTH.has(roleOf(p))) {
24452
- displayEverywhere(p, NONE$1);
24625
+ displayEverywhere(p, NONE$2);
24453
24626
  continue;
24454
24627
  }
24455
24628
  // Back from every width: the base `none` was this function's, not the author's. Base styles hold ONE display, so
24456
24629
  // the part takes back what its role is built with (the links row is a row), else its type's own.
24457
- if (wasEveryWidth && p.styleProps?.[DISPLAY] === NONE$1) {
24630
+ if (wasEveryWidth && p.styleProps?.[DISPLAY] === NONE$2) {
24458
24631
  const back = BUILT_DISPLAY[roleOf(p) ?? ''];
24459
24632
  if (back)
24460
24633
  p.styleProps[DISPLAY] = back;
@@ -25095,6 +25268,8 @@ var OpeningIngredient;
25095
25268
  OpeningIngredient["Words"] = "words";
25096
25269
  OpeningIngredient["Extras"] = "extras";
25097
25270
  OpeningIngredient["Motion"] = "motion";
25271
+ /** iox-ui#131: what a type-led first screen stands on (none named: the inverse scheme). The harness's alone. */
25272
+ OpeningIngredient["Ground"] = "ground";
25098
25273
  })(OpeningIngredient || (OpeningIngredient = {}));
25099
25274
  var OpeningFrame;
25100
25275
  (function (OpeningFrame) {
@@ -25135,6 +25310,13 @@ var OpeningMotion;
25135
25310
  OpeningMotion["CopyOut"] = "copy-out";
25136
25311
  OpeningMotion["PinnedCovered"] = "pinned-covered";
25137
25312
  })(OpeningMotion || (OpeningMotion = {}));
25313
+ /** iox-ui#131: a type-led first screen's ground — `inverse` is the default and no word (the contract's `typeLedGrounds`). */
25314
+ var OpeningGround;
25315
+ (function (OpeningGround) {
25316
+ OpeningGround["Inverse"] = "inverse";
25317
+ OpeningGround["Accent"] = "accent";
25318
+ OpeningGround["Subtle"] = "subtle";
25319
+ })(OpeningGround || (OpeningGround = {}));
25138
25320
  class OpeningMixError extends Error {
25139
25321
  }
25140
25322
  /** The opening's parts — each a role, so a re-mix finds the owner's part wherever the new mix puts it. */
@@ -25214,7 +25396,7 @@ const ordered = (k, words) => openingWords$1(k).filter(w => words.includes(w));
25214
25396
  function openingMix(partial = {}) {
25215
25397
  const mix = {
25216
25398
  frame: O.defaults['frame'], media: O.defaults['media'], words: O.defaults['words'],
25217
- extras: listOf(O.defaults['extras']), motion: listOf(O.defaults['motion']),
25399
+ extras: listOf(O.defaults['extras']), motion: listOf(O.defaults['motion']), ground: listOf(O.defaults['ground']),
25218
25400
  };
25219
25401
  for (const [k, v] of Object.entries(partial)) {
25220
25402
  if (v === undefined)
@@ -25225,6 +25407,8 @@ function openingMix(partial = {}) {
25225
25407
  for (const w of words)
25226
25408
  if (!INGREDIENTS[k].includes(w))
25227
25409
  throw new OpeningMixError(`an opening's ${k} cannot be "${w}" (${INGREDIENTS[k].join(' · ')})`);
25410
+ if (k === OpeningIngredient.Ground && words.length > 1)
25411
+ throw new OpeningMixError(`an opening stands on one ground ("${words.join('" and "')}")`);
25228
25412
  if (isMany(k))
25229
25413
  mix[k] = ordered(k, words);
25230
25414
  else if (words.length !== 1)
@@ -25367,9 +25551,23 @@ function drawnOpeningMix(mix) {
25367
25551
  }
25368
25552
  /** The fingerprint's prefix for an opening. */
25369
25553
  const OPENING_TOKEN = 'opening';
25370
- /** An opening as the fingerprint sees it: `opening:<frame>/<media>/<words>` — what a visitor takes in at once. */
25554
+ /** What a type-led token says its ground is (`+<ground>`, iox-ui#131). */
25555
+ const GROUND_MARK = '+';
25556
+ /** An opening as the fingerprint sees it: `opening:<frame>/<media>/<words>` — what a visitor takes in at once; a type-led
25557
+ * first screen on a ground other than the inverse adds it (`opening:full/none/wordmark+accent`, iox-ui#131). */
25371
25558
  function openingTokenOf(mix) {
25372
- return `${OPENING_TOKEN}:${O.fingerprint.map(k => mix[k]).join('/')}`;
25559
+ const way = `${OPENING_TOKEN}:${O.fingerprint.map(k => mix[k]).join('/')}`;
25560
+ const ground = mix.media === OpeningMedia.None ? mix.ground?.[0] : undefined;
25561
+ return ground ? `${way}${GROUND_MARK}${ground}` : way;
25562
+ }
25563
+ /** iox-ui#131: a token's way (frame, media, words) and its ground — `inverse` when it names none. */
25564
+ function openingTokenParts(token) {
25565
+ const [way, ground] = token.split(GROUND_MARK);
25566
+ return { way, ground: ground || OpeningGround.Inverse };
25567
+ }
25568
+ /** iox-ui#131: the grounds a type-led first screen may stand on, in the order tried; a calm look never takes the accent. */
25569
+ function typeLedGrounds(calm = false) {
25570
+ return (O.typeLedGrounds ?? [OpeningGround.Inverse]).filter(g => !(calm && g === OpeningGround.Accent));
25373
25571
  }
25374
25572
  /** Every `<ingredient>:<word>` the generator's wire may carry at `tier`: drawn words only (a waiting word is never
25375
25573
  * offered), and the award tier's only at the award tier. */
@@ -25503,6 +25701,8 @@ function checkOpening(mix, ctx) {
25503
25701
  m.extras = m.extras.filter(w => w !== OpeningExtra.Card);
25504
25702
  say(OpeningRepairCode.OneCard, 'the form is the first screen\'s card: the small card is left out');
25505
25703
  }
25704
+ if (m.ground.length && m.media !== OpeningMedia.None)
25705
+ m.ground = [];
25506
25706
  const still = m.media === OpeningMedia.Photo || m.media === OpeningMedia.Diptych || m.media === OpeningMedia.Live;
25507
25707
  if (m.motion.includes(OpeningMotion.SlowZoom) && !still) {
25508
25708
  m.motion = m.motion.filter(w => w !== OpeningMotion.SlowZoom);
@@ -25528,6 +25728,9 @@ const ABS_FILL = { position: 'absolute', top: '0px', left: '0px', width: '100%',
25528
25728
  const MEDIA_FILL = { ...ABS_FILL, aspectRatio: 'auto', borderRadius: '0px', objectFit: 'cover' };
25529
25729
  const OVER = (z) => ({ position: 'relative', zIndex: String(z) });
25530
25730
  const FRAME_PAD = 'clamp(20px, 4vw, 56px)';
25731
+ /** iox-ui#133 (AW-D41, one edge): a frame's words start on the content column every other section starts on — its inline
25732
+ * padding is never less than `space-inline`; the frame itself may bleed, its words do not. */
25733
+ const framePadding = (block) => `${block} max(${block}, ${LAYOUT_INSET})`;
25531
25734
  /** A display line is sized a little under its measured width, so a rounding never wraps it. */
25532
25735
  const FIT = 0.95;
25533
25736
  /** The phone's inset: within the contract's 8–16 px at every phone width. */
@@ -25544,17 +25747,17 @@ function frameNode(mix, children) {
25544
25747
  const inset = mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks;
25545
25748
  const height = mix.media === OpeningMedia.None ? typeLedHeights(mix) : { laptop: OPENING_HEIGHT };
25546
25749
  const phone = {
25547
- ...(inset ? { clipPath: insetClip(openingPhoneInset()), padding: phoneFramePad(mix) } : {}),
25750
+ ...(inset ? { clipPath: insetClip(openingPhoneInset()), padding: framePadding(phoneFramePad(mix)) } : {}),
25548
25751
  ...(height.phone ? { minHeight: height.phone } : {}),
25549
25752
  };
25550
25753
  return {
25551
25754
  // A pictured frame is a box its picture fills; a type-led one (no picture) paints its scheme's own ground — a
25552
25755
  // box paints nothing, and the scheme's light words stood on the page's light ground (the #129 proof's shots).
25553
- t: 'Container', es: mix.media === OpeningMedia.None ? 'section' : 'box', scheme: 'inverse',
25756
+ t: 'Container', es: mix.media === OpeningMedia.None ? 'section' : 'box', scheme: mix.media === OpeningMedia.None ? (mix.ground?.[0] ?? OpeningGround.Inverse) : OpeningGround.Inverse,
25554
25757
  role: mix.frame === OpeningFrame.Shrinks ? OpeningRole.FrameSettles : OpeningRole.Frame,
25555
25758
  lay: {
25556
25759
  position: 'relative', overflow: 'hidden', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', gap: 'var(--iox-space-gap)',
25557
- minHeight: height.laptop, padding: inset ? `calc(${INSET_LAPTOP} + ${FRAME_PAD})` : FRAME_PAD, borderRadius: '0px',
25760
+ minHeight: height.laptop, padding: framePadding(inset ? `calc(${INSET_LAPTOP} + ${FRAME_PAD})` : FRAME_PAD), borderRadius: '0px',
25558
25761
  ...(inset ? { clipPath: insetClip(INSET_LAPTOP) } : {}),
25559
25762
  },
25560
25763
  ...(Object.keys(phone).length ? { resp: { mobile: phone } } : {}),
@@ -25742,7 +25945,7 @@ function wordsNodes(mix, ctx) {
25742
25945
  : { t: 'Heading', es: 'display', level: 'h2', text: w, role: OpeningRole.ApartWord, lay: { fontSize: size, lineHeight: '0.9', margin: '0px', ...place[i] } });
25743
25946
  return [scrim(), {
25744
25947
  t: 'Container', es: 'box', role: OpeningRole.Apart,
25745
- lay: { ...ABS_FILL, zIndex: '1', display: 'grid', gridTemplateRows: 'repeat(3, minmax(0, 1fr))', padding: FRAME_PAD },
25948
+ lay: { ...ABS_FILL, zIndex: '1', display: 'grid', gridTemplateRows: 'repeat(3, minmax(0, 1fr))', padding: framePadding(FRAME_PAD) },
25746
25949
  c: words.map(word),
25747
25950
  }, aside('bottom')];
25748
25951
  }
@@ -27209,6 +27412,22 @@ function lcs(a, b) {
27209
27412
  function sequenceShare(a, b) {
27210
27413
  return lcs(a, b) / Math.max(1, a.length, b.length);
27211
27414
  }
27415
+ /** The sections every page is built from — what two pages share without repeating each other (iox-ui#131): a plain
27416
+ * composition, a split, an inhale. */
27417
+ const GLUE_TOKENS = new Set([LayoutSequenceToken.Composition, LayoutSequenceToken.Split, LayoutSequenceToken.Inhale]);
27418
+ /**
27419
+ * iox-ui#131: a REAL repeat of a page's order of sections — most of the sequence shared (`SPEC_SITE_LAYOUT.sameness.sequence`)
27420
+ * AND as much of its distinctive sections (held, sideways, a photo ground, a gallery, a list mix…), in order. Two pages
27421
+ * that hold their story in different ways are not one page twice because both are mostly plain compositions (the hotel's
27422
+ * visit page was refused as "Boutique law firm · Contact": held vs held-words). Two pages of glue alone are a repeat.
27423
+ */
27424
+ function sequenceRepeats(a, b) {
27425
+ if (sequenceShare(a, b) < SPEC_SITE_LAYOUT.sameness.sequence)
27426
+ return false;
27427
+ const marks = (s) => s.filter(t => !GLUE_TOKENS.has(t));
27428
+ const [x, y] = [marks(a), marks(b)];
27429
+ return (!x.length && !y.length) || sequenceShare(x, y) >= SPEC_SITE_LAYOUT.sameness.sequence;
27430
+ }
27212
27431
  /** #129: an opening mix's token (`opening:<frame>/<media>/<words>`, opening-mix `openingTokenOf`) — a type-led first
27213
27432
  * screen's. Literal here: importing opening-mix from this module reorders the generation-core load (a cycle). */
27214
27433
  const MIX_OPENING = 'opening:';
@@ -27220,7 +27439,8 @@ const signatureWords = (id) => SPEC_SITE_LAYOUT.signatures.find(s => s.id === id
27220
27439
  /**
27221
27440
  * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
27222
27441
  * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
27223
- * signature alone — never a page of THIS site (`sameSite`), which is always the same kind. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
27442
+ * signature alone — never a page of THIS site (`sameSite`, iox-ui#131). The sequence is a repeat only when the distinctive
27443
+ * sections agree too (`sequenceRepeats`), and is compared with real pages only — never a
27224
27444
  * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
27225
27445
  * owner's pick and is never a reason.
27226
27446
  */
@@ -27230,8 +27450,12 @@ function samenessIssues(me, others, businessType) {
27230
27450
  issues.push({ code: LayoutIssueCode.Sameness, path, message });
27231
27451
  };
27232
27452
  for (const o of others) {
27453
+ // iox-ui#131: sameness is judged against the studio's OTHER sites only — a page of this site is never a reason (it
27454
+ // is named in the brief, never refused; m8-gate2 §16 reversed, the lead 2026-11-24).
27455
+ if (o.sameSite)
27456
+ continue;
27233
27457
  const them = o.fingerprint;
27234
- const sameType = !o.sameSite && !!businessType && o.businessType === businessType;
27458
+ const sameType = !!businessType && o.businessType === businessType;
27235
27459
  const opening = me.opening === them.opening;
27236
27460
  const signature = me.signature === them.signature;
27237
27461
  if (opening && (signature || sameType))
@@ -27243,7 +27467,8 @@ function samenessIssues(me, others, businessType) {
27243
27467
  for (const token of (me.lists ?? []).filter(t => (them.lists ?? []).includes(t))) {
27244
27468
  add('sections', `"${o.name}" already shows a list as ${listWords(token)}, and it is the same kind of business — mix this list another way`);
27245
27469
  }
27246
- if (!o.demo && sequenceShare(me.sequence, them.sequence) >= SPEC_SITE_LAYOUT.sameness.sequence) {
27470
+ const repeats = o.replaced ? sequenceShare(me.sequence, them.sequence) >= SPEC_SITE_LAYOUT.sameness.sequence : sequenceRepeats(me.sequence, them.sequence);
27471
+ if (!o.demo && repeats) {
27247
27472
  add('sections', `your sequence (${me.sequence.join(' → ')}) repeats "${o.name}"'s (${them.sequence.join(' → ')}) — change the order and the kinds of sections`);
27248
27473
  }
27249
27474
  }
@@ -27609,7 +27834,7 @@ function rootsOf(page, layout) {
27609
27834
  return out;
27610
27835
  }
27611
27836
  /** The layer a composed layout node belongs to (`<page>-s<section>-l<layer>…`), or null. */
27612
- function layerOf(nodeId) {
27837
+ function layerOf$1(nodeId) {
27613
27838
  const m = /-s(\d+)-l(\d+)(?:-|$)/.exec(nodeId);
27614
27839
  return m ? { section: Number(m[1]), layer: Number(m[2]) } : null;
27615
27840
  }
@@ -27680,11 +27905,29 @@ function chooseTypeLedOpening(plan, context = {}) {
27680
27905
  const ways = [...mine, ...typeLedOpeningWays()];
27681
27906
  const site = openingContextOf({ business: plan.business, design: plan.design, tier: context.tier ?? BASIC, badge: null, cutOut: false });
27682
27907
  const carried = ways.map(m => drawnOpeningMix(m).drawn).filter(m => !checkOpening(m, site).repairs.length);
27683
- const worn = wornOpenings(context.studio ?? []);
27684
- const free = carried.find(m => !worn.has(openingTokenOf(m)));
27908
+ const worn = [...wornOpenings(context.studio ?? [])].map(openingTokenParts);
27909
+ const wornWays = new Set(worn.map(w => w.way));
27910
+ const wayOf = (m) => openingTokenOf({ ...m, ground: [] });
27911
+ const free = carried.find(m => !wornWays.has(wayOf(m)));
27685
27912
  // The contract's last way is every tier's and fits any name (a heading): there is always one.
27686
- const mix = free ?? carried[0] ?? checkOpening(ways[ways.length - 1], site).mix;
27687
- return { mix, token: openingTokenOf(mix), worn: !free };
27913
+ const way = free ?? carried[0] ?? checkOpening(ways[ways.length - 1], site).mix;
27914
+ const ground = typeLedGroundFor(worn.filter(w => w.way.includes(TYPE_LED_MEDIA)), plan);
27915
+ const mix = { ...way, ground: ground === OpeningGround.Inverse ? [] : [ground] };
27916
+ return { mix, token: openingTokenOf(mix), worn: !free, ground };
27917
+ }
27918
+ /** A token's media part when the first screen holds no picture (`opening:<frame>/none/<words>`). */
27919
+ const TYPE_LED_MEDIA = `/${OpeningMedia.None}/`;
27920
+ /** How animated, at which a look is calm: its type-led first screen never stands on the accent. */
27921
+ const CALM_ANIMATE = new Set(['still', 'subtle']);
27922
+ /**
27923
+ * iox-ui#131: what a type-led first screen stands on — the ground the studio's OTHER type-led sites wear least (the
27924
+ * contract's `typeLedGrounds` order breaks a tie, `inverse` first), so six type-led Homes do not all open dark. A calm
27925
+ * look never takes the accent. Pure.
27926
+ */
27927
+ function typeLedGroundFor(others, plan) {
27928
+ const grounds = typeLedGrounds(CALM_ANIMATE.has(String(plan.design?.animate ?? '')));
27929
+ const count = (g) => others.filter(o => o.ground === g).length;
27930
+ return grounds.reduce((best, g) => (count(g) < count(best) ? g : best), grounds[0]);
27688
27931
  }
27689
27932
  /**
27690
27933
  * One round: the plan a composition should have been composed from, given what fills its pictures — or no changes. The
@@ -27725,7 +27968,7 @@ function typeLedRound(plan, composed, filled, context = {}) {
27725
27968
  if (where.opening)
27726
27969
  continue;
27727
27970
  if (where.laid >= 0) {
27728
- const at = layerOf(e.nodeId);
27971
+ const at = layerOf$1(e.nodeId);
27729
27972
  const layers = laid.get(where.laid) ?? new Set();
27730
27973
  if (at && at.section === where.laid)
27731
27974
  layers.add(at.layer);
@@ -27817,7 +28060,7 @@ function typeLedRound(plan, composed, filled, context = {}) {
27817
28060
  if (takes) {
27818
28061
  const words = openingMixWords(chosen.mix);
27819
28062
  next = { ...next, mixes: { ...next.mixes, opening: words } };
27820
- opening = { words, token: chosen.token, ...(chosen.worn ? { worn: true } : {}) };
28063
+ opening = { words, token: chosen.token, ground: chosen.ground, ...(chosen.worn ? { worn: true } : {}) };
27821
28064
  const was = plan.mixes?.opening?.join(' ');
27822
28065
  if (was !== words.join(' ')) {
27823
28066
  changes.push({
@@ -32886,8 +33129,8 @@ class PlanWireShapeError extends Error {
32886
33129
  }
32887
33130
  // ── The format ─────────────────────────────────────────────────────────────────────────────────────────────────────
32888
33131
  const unique = (values) => [...new Set(values)];
32889
- const NONE = '';
32890
- const orNone = (values) => jsonOneOf([NONE, ...values]);
33132
+ const NONE$1 = '';
33133
+ const orNone = (values) => jsonOneOf([NONE$1, ...values]);
32891
33134
  const closedOrText = (values) => (values.length ? jsonOneOf(values) : jsonText());
32892
33135
  const shaped = (entry, properties) => jsonShapedObject(PLAN_WIRE_SHAPE[entry], properties, `wire ${entry}`);
32893
33136
  /** The patterns a page section may use (every non-global one but a film's, which `placeFilm` places), in library order. */
@@ -33000,7 +33243,7 @@ function planWirePartJsonSchema(part, options = {}) {
33000
33243
  return jsonShapedObject(planWirePartShape(part, options), Object.fromEntries(PLAN_PART_KEYS[part].map(k => [k, PLAN_TOP_SCHEMAS[k](options)])), `wire plan ${part}`);
33001
33244
  }
33002
33245
  /** A value standing for "absent": `''` (or nothing at all). */
33003
- const isNone = (v) => v === undefined || v === NONE;
33246
+ const isNone = (v) => v === undefined || v === NONE$1;
33004
33247
  const optional = (name, v, none = isNone) => (none(v) ? {} : { [name]: v });
33005
33248
  const emptyList = (v) => v === undefined || (Array.isArray(v) && v.length === 0);
33006
33249
  /** `[{ <keyName>, <valueName> }]` → `{ key: value }`; anything else is left for the gate to refuse. */
@@ -33129,7 +33372,7 @@ function expandPlanWire(parts, context) {
33129
33372
  ...rest,
33130
33373
  ...expandWireGlobals(globals),
33131
33374
  ...(sells === undefined ? {} : { shop: sells }),
33132
- ...(isPlainObject(direction) && direction['idea'] === NONE ? {} : direction === undefined ? {} : { direction }),
33375
+ ...(isPlainObject(direction) && direction['idea'] === NONE$1 ? {} : direction === undefined ? {} : { direction }),
33133
33376
  version: SITE_PLAN_VERSION,
33134
33377
  source: { ...context.source },
33135
33378
  business: expandWireBusiness(business, context.facts),
@@ -33177,7 +33420,7 @@ function expandWireGlobals(globals) {
33177
33420
  }
33178
33421
  // ── The plan → the wire ────────────────────────────────────────────────────────────────────────────────────────────
33179
33422
  function fieldToWire(field) {
33180
- return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE };
33423
+ return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE$1 };
33181
33424
  }
33182
33425
  function contentTypeToWire(type, options = {}) {
33183
33426
  const played = type.roles;
@@ -33189,37 +33432,37 @@ function contentTypeToWire(type, options = {}) {
33189
33432
  };
33190
33433
  }
33191
33434
  function dataSourceToWire(source) {
33192
- const blank = { alias: source.alias, type: source.type, mode: NONE, contentType: NONE, limit: 0, filterField: NONE, routeParam: NONE, of: NONE, op: NONE, within: NONE };
33435
+ const blank = { alias: source.alias, type: source.type, mode: NONE$1, contentType: NONE$1, limit: 0, filterField: NONE$1, routeParam: NONE$1, of: NONE$1, op: NONE$1, within: NONE$1 };
33193
33436
  if (source.type === PlanDataSourceType.Relative)
33194
33437
  return { ...blank, of: source.of, op: source.op, within: source.within };
33195
33438
  if (source.type === PlanDataSourceType.Shop) {
33196
33439
  return {
33197
33440
  ...blank, mode: source.mode, contentType: source.resource, limit: source.limit ?? 0,
33198
- filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
33441
+ filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
33199
33442
  };
33200
33443
  }
33201
33444
  return {
33202
33445
  ...blank, mode: source.mode, contentType: source.contentType, limit: source.limit ?? 0,
33203
- filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
33446
+ filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
33204
33447
  };
33205
33448
  }
33206
33449
  function sectionToWire(section) {
33207
33450
  return {
33208
33451
  pattern: section.pattern, slots: mapToList(section.slots, 'slot', 'text'), links: mapToList(section.links, 'slot', 'route'),
33209
- binding: section.binding ?? NONE, without: [...(section.without ?? [])], form: section.form ?? NONE, enter: section.enter ?? NONE,
33452
+ binding: section.binding ?? NONE$1, without: [...(section.without ?? [])], form: section.form ?? NONE$1, enter: section.enter ?? NONE$1,
33210
33453
  };
33211
33454
  }
33212
33455
  function pageToWire(page, options = {}) {
33213
33456
  return {
33214
- key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE, need: page.need ?? NONE,
33215
- template: page.template ?? NONE, routeSource: page.routeSource ?? NONE,
33216
- seo: { title: page.seo?.title ?? NONE, description: page.seo?.description ?? NONE },
33457
+ key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE$1, need: page.need ?? NONE$1,
33458
+ template: page.template ?? NONE$1, routeSource: page.routeSource ?? NONE$1,
33459
+ seo: { title: page.seo?.title ?? NONE$1, description: page.seo?.description ?? NONE$1 },
33217
33460
  ...(options.children === false ? {} : { sections: page.sections.map(sectionToWire) }),
33218
33461
  compose: page.compose ?? false,
33219
33462
  };
33220
33463
  }
33221
33464
  const PLAN_TO_WIRE = {
33222
- business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE }),
33465
+ business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE$1 }),
33223
33466
  contentTypes: plan => plan.contentTypes.map(type => contentTypeToWire(type)),
33224
33467
  dataSources: plan => plan.dataSources.map(dataSourceToWire),
33225
33468
  pages: plan => plan.pages.map(page => pageToWire(page)),
@@ -33229,7 +33472,7 @@ const PLAN_TO_WIRE = {
33229
33472
  // AW6: the award tier's wire writes the body ([] = none); every other tier's has no such key (its plan wears none).
33230
33473
  ...(isAward(options) ? { [BODY_WIRE_KEY]: [...(plan.mixes?.body ?? [])] } : {}),
33231
33474
  }),
33232
- direction: plan => ({ idea: plan.direction?.idea ?? NONE, cliche: plan.direction?.cliche ?? NONE, flip: plan.direction?.flip ?? NONE, rules: [...(plan.direction?.rules ?? [])] }),
33475
+ direction: plan => ({ idea: plan.direction?.idea ?? NONE$1, cliche: plan.direction?.cliche ?? NONE$1, flip: plan.direction?.flip ?? NONE$1, rules: [...(plan.direction?.rules ?? [])] }),
33233
33476
  shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
33234
33477
  };
33235
33478
  /** One part of the plan on the wire: what that part's request (asked at `options`' tier) would have answered. */
@@ -33326,11 +33569,11 @@ function additionSourcesOf(typeName) {
33326
33569
  { alias: `${typeName}${ADDITION_ITEM_SOURCE_SUFFIX}`, type: PlanDataSourceType.Cms, mode: PlanDataSourceMode.Single, contentType: typeName, filterByRouteParam: { field: ADDITION_SLUG, routeParam: ADDITION_SLUG } },
33327
33570
  ];
33328
33571
  }
33329
- const list = (value) => (Array.isArray(value) ? value : []);
33330
- const text = (value) => (typeof value === 'string' ? value : '');
33572
+ const list$1 = (value) => (Array.isArray(value) ? value : []);
33573
+ const text$1 = (value) => (typeof value === 'string' ? value : '');
33331
33574
  /** Does the Pages answer ask for content (so the Content request is asked). */
33332
33575
  function additionsNeedContent(pagesAnswer) {
33333
- return isPlainObject(pagesAnswer) && (list(pagesAnswer['newTypes']).length > 0 || list(pagesAnswer['newItems']).length > 0);
33576
+ return isPlainObject(pagesAnswer) && (list$1(pagesAnswer['newTypes']).length > 0 || list$1(pagesAnswer['newItems']).length > 0);
33334
33577
  }
33335
33578
  /**
33336
33579
  * The answers → what the redesign adds. Translates, never repairs (as `expandPlanWire`): a wrong value stays wrong, for
@@ -33339,21 +33582,21 @@ function additionsNeedContent(pagesAnswer) {
33339
33582
  function expandAdditions(pagesAnswer, contentAnswer) {
33340
33583
  const pages = isPlainObject(pagesAnswer) ? pagesAnswer : {};
33341
33584
  const content = isPlainObject(contentAnswer) ? contentAnswer : {};
33342
- const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text(t['name']), label: text(t['label']) }));
33585
+ const newTypes = list$1(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text$1(t['name']), label: text$1(t['label']) }));
33343
33586
  return {
33344
- pages: list(pages['pages']).filter(isPlainObject).map(wire => {
33587
+ pages: list$1(pages['pages']).filter(isPlainObject).map(wire => {
33345
33588
  const { origin, reason, ...page } = wire;
33346
- return { page: expandWirePage(page), origin: origin, reason: text(reason) };
33589
+ return { page: expandWirePage(page), origin: origin, reason: text$1(reason) };
33347
33590
  }),
33348
- contentTypes: list(content['contentTypes']).map(t => expandWireContentType(t)),
33591
+ contentTypes: list$1(content['contentTypes']).map(t => expandWireContentType(t)),
33349
33592
  dataSources: newTypes.filter(t => t.name).flatMap(t => additionSourcesOf(t.name)),
33350
- items: list(content['items']).filter(isPlainObject).map(item => ({
33351
- contentType: text(item['contentType']),
33352
- values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text(v['field']), v['value']])),
33593
+ items: list$1(content['items']).filter(isPlainObject).map(item => ({
33594
+ contentType: text$1(item['contentType']),
33595
+ values: Object.fromEntries(list$1(item['values']).filter(isPlainObject).map(v => [text$1(v['field']), v['value']])),
33353
33596
  })),
33354
33597
  asks: {
33355
33598
  newTypes,
33356
- newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text(n['contentType']), count: Number(n['count']) || 0 })),
33599
+ newItems: list$1(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text$1(n['contentType']), count: Number(n['count']) || 0 })),
33357
33600
  },
33358
33601
  };
33359
33602
  }
@@ -34483,7 +34726,7 @@ const NO_INDEX = -1;
34483
34726
  /** A new page or content type on the wire: its children are edits of their own. */
34484
34727
  const CHILDLESS = { children: false };
34485
34728
  /** A list holding exactly one object: none → absent, one → it (expanded), more → the list (the gate refuses it). */
34486
- const oneOf = (schema, expand, toWire, what) => ({
34729
+ const oneOf$1 = (schema, expand, toWire, what) => ({
34487
34730
  text: `${what}[] — exactly one when the op takes it`,
34488
34731
  none: [],
34489
34732
  schema: () => jsonListOf(schema()),
@@ -34507,12 +34750,12 @@ const EDIT_WIRE = {
34507
34750
  binding: textKey('setSectionData: the list source the section repeats'),
34508
34751
  contentType: textKey('addField: a content type of the plan'),
34509
34752
  newPage: {
34510
- ...oneOf(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
34753
+ ...oneOf$1(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
34511
34754
  text: 'page[] — exactly one when the op takes it, WITHOUT sections: each is an addSection after it',
34512
34755
  },
34513
- newSection: oneOf(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
34756
+ newSection: oneOf$1(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
34514
34757
  newContentType: {
34515
- ...oneOf(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
34758
+ ...oneOf$1(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
34516
34759
  text: "contentType[] — exactly one when the op takes it, WITHOUT fields: each is an addField after it (the samples' values stay in its seed)",
34517
34760
  },
34518
34761
  dataSources: {
@@ -34521,7 +34764,7 @@ const EDIT_WIRE = {
34521
34764
  expand: v => (Array.isArray(v) ? v.map(expandWireDataSource) : v),
34522
34765
  toWire: (v) => v.map(dataSourceToWire),
34523
34766
  },
34524
- newField: oneOf(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
34767
+ newField: oneOf$1(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
34525
34768
  sample: { text: "string | string[] — addField: the samples' value for it", none: '', schema: () => jsonAnyOf([jsonText(), jsonListOf(jsonText())]) },
34526
34769
  };
34527
34770
  /** Each op's keys (`PLAN_EDIT_SHAPE`) → the wire key that carries it. */
@@ -35076,7 +35319,7 @@ const HAND_BUILT_LEGAL = {
35076
35319
  const HEBREW = 'he';
35077
35320
  const MAILER = 'mailer';
35078
35321
  const EMAIL_DELIVERY = 'email';
35079
- const LITERAL_COLOUR = /#[0-9a-f]{3,8}\b|rgba?\(|hsla?\(/i;
35322
+ const LITERAL_COLOUR$1 = /#[0-9a-f]{3,8}\b|rgba?\(|hsla?\(/i;
35080
35323
  const COLOUR_TRAITS = /color|Color|^background$|boxShadow|textShadow/;
35081
35324
  const HEADING_LEVEL = /^h([1-6])$/;
35082
35325
  const DIALOG_TYPE = 'Dialog';
@@ -35392,7 +35635,7 @@ function checkTokens(ctx, snapshot, pages) {
35392
35635
  if (!n.elementStyle)
35393
35636
  return;
35394
35637
  const maps = [n.styleProps, ...Object.values(n.stateStyles ?? {}), ...Object.values(n.responsive ?? {}).map(l => l?.styleProps)];
35395
- const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) => COLOUR_TRAITS.test(k) && LITERAL_COLOUR.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
35638
+ const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) => COLOUR_TRAITS.test(k) && LITERAL_COLOUR$1.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
35396
35639
  if (literal)
35397
35640
  add(ctx, SiteFindingCode.LiteralColour, null, { ...where, nodeId: n.id });
35398
35641
  });
@@ -36630,6 +36873,957 @@ function judgeLayoutRender(measured, pixels = []) {
36630
36873
  return [...issues.values()];
36631
36874
  }
36632
36875
 
36876
+ /**
36877
+ * THE FREE SECTION (award-ingredients plan §11.4, FS3; FS-D15…FS-D18). A free page is ordinary builder-shaped nodes the
36878
+ * model writes itself — Section, Container, Heading, Text, Button, Image, Video — each with styles, a phone layer, a hover
36879
+ * and ONE move, plus SLOTS where a recipe stands (a list bound to content, a form): the model places a slot and never
36880
+ * writes a Repeater or a Form (FS-T1). The look's values stay the look's (tokens only, `checkFree`); layout, overlap,
36881
+ * turn, clip and size are free.
36882
+ *
36883
+ * It is ASKED as the strict FLAT wire (FS-D17): one list of nodes, every key required, no optional key, no union, no
36884
+ * recursion, styles as `"<property>:<value>"` strings — 23 properties, held by `strictSchemaComplexity` — so a parse
36885
+ * failure cannot happen. `expandFreeWire` turns it into the free tree (`FreePage`) the judge reads; `freeToWire` writes a
36886
+ * tree back (fixtures, a repair's starting point); `freeWireIssue` says a judge's tree path in the wire's own words.
36887
+ * The page is written in ONE language: the site's. Every enum is generated from THIS request (R-H2): the material ids,
36888
+ * the slots, the pages. Pure. The prototype's copy is `prototypes/breaking-limits/code/flat5.mjs` (FS-D48 measured it).
36889
+ */
36890
+ /** What a free node is. `Button` is stamped as the builder's ButtonBlock; a `Slot` is a recipe placed by name. */
36891
+ var FreeNodeType;
36892
+ (function (FreeNodeType) {
36893
+ FreeNodeType["Section"] = "Section";
36894
+ FreeNodeType["Container"] = "Container";
36895
+ FreeNodeType["Heading"] = "Heading";
36896
+ FreeNodeType["Text"] = "Text";
36897
+ FreeNodeType["Button"] = "Button";
36898
+ FreeNodeType["Image"] = "Image";
36899
+ FreeNodeType["Video"] = "Video";
36900
+ FreeNodeType["Slot"] = "Slot";
36901
+ })(FreeNodeType || (FreeNodeType = {}));
36902
+ /** The node types that carry words. */
36903
+ const FREE_WORD_TYPES = [FreeNodeType.Heading, FreeNodeType.Text, FreeNodeType.Button];
36904
+ /** The node types that hold children. */
36905
+ const FREE_HOLDERS = [FreeNodeType.Section, FreeNodeType.Container];
36906
+ /** What a free section is for — the fall back picks the ready-made section of the same place by it. */
36907
+ var FreePurpose;
36908
+ (function (FreePurpose) {
36909
+ FreePurpose["Opening"] = "opening";
36910
+ FreePurpose["Videos"] = "videos";
36911
+ FreePurpose["Products"] = "products";
36912
+ FreePurpose["Work"] = "work";
36913
+ FreePurpose["About"] = "about";
36914
+ FreePurpose["Offer"] = "offer";
36915
+ FreePurpose["Proof"] = "proof";
36916
+ FreePurpose["Process"] = "process";
36917
+ FreePurpose["Contact"] = "contact";
36918
+ FreePurpose["Closing"] = "closing";
36919
+ })(FreePurpose || (FreePurpose = {}));
36920
+ /**
36921
+ * The look's element styles a free node may wear, by type — a closed list (the contract has more, e.g. accordion parts,
36922
+ * which belong to their recipes). A word node wears one and changes what it needs on top. The spec holds each id to the
36923
+ * contract's `appliesTo` (`elementStylesFor`).
36924
+ */
36925
+ const FREE_ELEMENT_STYLES = {
36926
+ [FreeNodeType.Section]: ['section'],
36927
+ [FreeNodeType.Container]: ['box', 'card', 'panel'],
36928
+ [FreeNodeType.Heading]: ['display', 'h1', 'h2', 'h3', 'eyebrow'],
36929
+ [FreeNodeType.Text]: ['lead', 'body', 'small', 'eyebrow'],
36930
+ [FreeNodeType.Button]: ['button-primary', 'button-secondary', 'button-ghost'],
36931
+ [FreeNodeType.Image]: ['media'],
36932
+ [FreeNodeType.Video]: ['media'],
36933
+ };
36934
+ /** The builder type each free type is stamped as (and whose element styles it may wear). */
36935
+ const FREE_BUILDER_TYPE = {
36936
+ [FreeNodeType.Section]: 'Section',
36937
+ [FreeNodeType.Container]: 'Container',
36938
+ [FreeNodeType.Heading]: 'Heading',
36939
+ [FreeNodeType.Text]: 'Text',
36940
+ [FreeNodeType.Button]: 'ButtonBlock',
36941
+ [FreeNodeType.Image]: 'Image',
36942
+ [FreeNodeType.Video]: 'Video',
36943
+ [FreeNodeType.Slot]: 'Container',
36944
+ };
36945
+ /** The one role a free node may carry: the heading a visitor reads first. */
36946
+ const FREE_LEAD_ROLE = 'lead';
36947
+ /** How a page treats its pictures — ONE word, recorded and shown (R-H8: information, never a gate). */
36948
+ var FreePictures;
36949
+ (function (FreePictures) {
36950
+ FreePictures["UniformGrid"] = "uniform-grid";
36951
+ FreePictures["EqualSquares"] = "equal-squares";
36952
+ FreePictures["OneFormat"] = "one-format";
36953
+ FreePictures["SingleLarge"] = "single-large";
36954
+ FreePictures["FullBleed"] = "full-bleed";
36955
+ FreePictures["Mixed"] = "mixed";
36956
+ FreePictures["None"] = "none";
36957
+ })(FreePictures || (FreePictures = {}));
36958
+ /** The product's breakpoints a free style layer is written at (`style-compiler/responsive.ts`): the wire asks two. */
36959
+ var FreeLayer;
36960
+ (function (FreeLayer) {
36961
+ FreeLayer["Phone"] = "mobile";
36962
+ FreeLayer["Tablet"] = "tablet";
36963
+ })(FreeLayer || (FreeLayer = {}));
36964
+ /** Layers a phone in portrait reaches (a `mobile` layer reaches `small` by the cascade). */
36965
+ const FREE_PHONE_LAYERS = ['mobile', 'small'];
36966
+ /** What triggers a free node's ONE move. */
36967
+ var FreeTrigger;
36968
+ (function (FreeTrigger) {
36969
+ FreeTrigger["Enter"] = "viewportEnter";
36970
+ FreeTrigger["Scroll"] = "scrollProgress";
36971
+ })(FreeTrigger || (FreeTrigger = {}));
36972
+ /**
36973
+ * The moves a free node may make — the product's own action words (actions-core `ELEMENT_ACTION_DESCRIPTORS`), each with
36974
+ * the one parameter the wire may set. A hover is a style state, never a move.
36975
+ */
36976
+ const FREE_MOVES = {
36977
+ [FreeTrigger.Enter]: {
36978
+ fadeIn: {},
36979
+ moveUp: {},
36980
+ blurIn: {},
36981
+ zoomOut: {},
36982
+ clipReveal: { param: 'from', values: ['start', 'end', 'top', 'bottom', 'centre'] },
36983
+ revealText: { param: 'by', values: ['line', 'word'] },
36984
+ countUp: {},
36985
+ },
36986
+ [FreeTrigger.Scroll]: {
36987
+ parallax: { param: 'depth', values: ['back', 'front'] },
36988
+ },
36989
+ };
36990
+ /** The wire's node keys, in the order a model writes them. Every one is required. */
36991
+ const FREE_WIRE_NODE_KEYS = [
36992
+ 'id', 'parent', 'type', 'purpose', 'style', 'level', 'role', 'text', 'src', 'href', 'slot', 'opts', 'base', 'phone', 'tablet', 'hover', 'motion',
36993
+ ];
36994
+ const SEP = ':';
36995
+ const NONE = 'none';
36996
+ const ENTER = 'enter';
36997
+ const SCROLL = 'scroll';
36998
+ const TRIGGER_WORD = { [FreeTrigger.Enter]: ENTER, [FreeTrigger.Scroll]: SCROLL };
36999
+ /** Every move word the wire offers: `none`, `enter:<action>[:<value>]`, `scroll:parallax:<depth>`. */
37000
+ function freeMoveWords() {
37001
+ const out = [NONE];
37002
+ for (const trigger of Object.values(FreeTrigger)) {
37003
+ for (const [action, spec] of Object.entries(FREE_MOVES[trigger])) {
37004
+ if (spec.values?.length)
37005
+ for (const v of spec.values)
37006
+ out.push([TRIGGER_WORD[trigger], action, v].join(SEP));
37007
+ else
37008
+ out.push([TRIGGER_WORD[trigger], action].join(SEP));
37009
+ }
37010
+ }
37011
+ return out;
37012
+ }
37013
+ const FREE_STYLE_WORDS = [...new Set(Object.values(FREE_ELEMENT_STYLES).flat())];
37014
+ const text = (d) => ({ ...jsonText(), description: d });
37015
+ const oneOf = (values, d) => ({ ...jsonOneOf(values), description: d });
37016
+ const strings = (d) => ({ ...jsonListOf(jsonText()), description: d });
37017
+ const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
37018
+ /** The strict format of ONE free page (FS-D17): 23 properties, 0 optional, 0 unions. */
37019
+ function freeWireJsonSchema(options = {}) {
37020
+ const lang = options.language ?? 'the site\'s language';
37021
+ const node = closed({
37022
+ id: text('unique kebab-case id'),
37023
+ parent: text("the id of the Section or Container it sits in; '' for a Section (the top of the page). A parent is written before its children; siblings in reading order"),
37024
+ type: oneOf(Object.values(FreeNodeType), 'what the node is'),
37025
+ purpose: oneOf(['', ...Object.values(FreePurpose)], "a Section: what it is for; '' for every other node"),
37026
+ style: oneOf(['', ...FREE_STYLE_WORDS], "the look's element style it wears (a Heading, Text and Button always wear one); '' for none"),
37027
+ level: { ...jsonInteger(), description: 'a Heading: 1–4 (exactly one 1 on the page); 0 for other nodes' },
37028
+ role: oneOf(['', FREE_LEAD_ROLE], "'lead' on the heading a visitor reads first (in the first section); '' otherwise"),
37029
+ text: text(`the words (Heading, Text, Button), in ${lang}; '' for none`),
37030
+ src: oneOf(['', ...(options.material ?? [])], "an Image / Video: an id from the material; '' for none"),
37031
+ href: text("a Button: a page route of the site or '#<section id>'; '' for none"),
37032
+ slot: oneOf(['', ...(options.slots ?? [])], "a Slot: the part that stands here, placed and never built; '' for none"),
37033
+ opts: strings("a list Slot: how its items are shown, '<ingredient>:<word>'; [] for none"),
37034
+ base: strings("styles at every width, each '<property>:<value>' (camelCase, one plain value; a size relative to the width is cqi, never vw); [] for none"),
37035
+ phone: strings("the phone layer (≤ 767px), '<property>:<value>'; [] for none"),
37036
+ tablet: strings("the tablet layer (≤ 991px), '<property>:<value>'; [] for none"),
37037
+ hover: strings("on hover, '<property>:<value>' — transform, opacity or a colour token only; [] for none"),
37038
+ motion: oneOf(freeMoveWords(), 'its ONE entrance or scroll move, or none'),
37039
+ });
37040
+ return closed({
37041
+ read: closed({
37042
+ idea: text("one line: the page's idea"),
37043
+ why: text('one line: why it suits this owner'),
37044
+ followed: text(`ONE line the owner can read, in ${lang}: which of THEIR words this page followed, quoting them as written`),
37045
+ }),
37046
+ pictures: oneOf(Object.values(FreePictures), 'how the page treats its pictures, one word'),
37047
+ nodes: jsonListOf(node),
37048
+ }, 'one free page, flat');
37049
+ }
37050
+ const str = (v) => (typeof v === 'string' ? v : '');
37051
+ const list = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
37052
+ const nodeAt = (i, id) => `nodes[${i}]${id ? ` ("${id}")` : ''}`;
37053
+ /** `["fontSize:4rem", …]` → a style map, split at each line's FIRST colon; a line with none is a fault. */
37054
+ function styleOf(lines, at, faults) {
37055
+ const out = {};
37056
+ list(lines).forEach((line, k) => {
37057
+ const i = line.indexOf(SEP);
37058
+ if (i <= 0)
37059
+ faults.push({ path: `${at}[${k}]`, message: `"${line}" — write each style as <property>:<value>` });
37060
+ else
37061
+ out[line.slice(0, i).trim()] = line.slice(i + 1).trim();
37062
+ });
37063
+ return out;
37064
+ }
37065
+ /** `enter:clipReveal:start` → a move; `none`, or a word the format does not hold, → none. */
37066
+ function freeMoveOf(word) {
37067
+ const [where, action, value] = String(word ?? '').split(SEP);
37068
+ const trigger = Object.keys(TRIGGER_WORD).find(t => TRIGGER_WORD[t] === where);
37069
+ const spec = trigger ? FREE_MOVES[trigger][action] : undefined;
37070
+ if (!trigger || !spec)
37071
+ return null;
37072
+ return { trigger, action, ...(spec.param && value ? { params: { [spec.param]: value } } : {}) };
37073
+ }
37074
+ /** A move → its wire word. */
37075
+ function freeMoveWord(move) {
37076
+ if (!move)
37077
+ return NONE;
37078
+ const value = Object.values(move.params ?? {})[0];
37079
+ return [TRIGGER_WORD[move.trigger], move.action, ...(value ? [value] : [])].join(SEP);
37080
+ }
37081
+ /**
37082
+ * The wire → the free tree. A node whose parent is not written before it, a top node that is not a Section, a child of a
37083
+ * node that holds none, a repeated id — each is a FAULT and the node is left out: never guessed, never repaired here.
37084
+ */
37085
+ function expandFreeWire(wire) {
37086
+ const faults = [];
37087
+ const w = isPlainObject(wire) ? wire : {};
37088
+ const read = isPlainObject(w['read']) ? w['read'] : {};
37089
+ const sections = [];
37090
+ const made = new Map();
37091
+ const pathOf = new Map();
37092
+ const paths = {};
37093
+ (Array.isArray(w['nodes']) ? w['nodes'] : []).forEach((raw, i) => {
37094
+ if (!isPlainObject(raw)) {
37095
+ faults.push({ path: `nodes[${i}]`, message: 'not a node' });
37096
+ return;
37097
+ }
37098
+ const id = str(raw['id']);
37099
+ const at = nodeAt(i, id);
37100
+ const type = str(raw['type']);
37101
+ if (!Object.values(FreeNodeType).includes(type)) {
37102
+ faults.push({ path: at, message: `"${type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}` });
37103
+ return;
37104
+ }
37105
+ if (!id || made.has(id)) {
37106
+ faults.push({ path: at, message: id ? `the id "${id}" is used twice` : 'every node needs its own id' });
37107
+ return;
37108
+ }
37109
+ const node = { id, type, styleProps: styleOf(raw['base'], `${at}.base`, faults) };
37110
+ if (type === FreeNodeType.Section)
37111
+ node.purpose = str(raw['purpose']);
37112
+ if (str(raw['style']))
37113
+ node.elementStyle = str(raw['style']);
37114
+ if (type === FreeNodeType.Heading)
37115
+ node.level = typeof raw['level'] === 'number' ? raw['level'] : 0;
37116
+ if (str(raw['role']))
37117
+ node.role = str(raw['role']);
37118
+ if (FREE_WORD_TYPES.includes(type))
37119
+ node.text = str(raw['text']);
37120
+ if (str(raw['src']))
37121
+ node.src = str(raw['src']);
37122
+ if (type === FreeNodeType.Button)
37123
+ node.href = str(raw['href']);
37124
+ if (type === FreeNodeType.Slot) {
37125
+ node.slot = str(raw['slot']);
37126
+ node.opts = list(raw['opts']);
37127
+ }
37128
+ const responsive = {};
37129
+ for (const [key, layer] of [['phone', FreeLayer.Phone], ['tablet', FreeLayer.Tablet]]) {
37130
+ const style = styleOf(raw[key], `${at}.${key}`, faults);
37131
+ if (Object.keys(style).length)
37132
+ responsive[layer] = style;
37133
+ }
37134
+ if (Object.keys(responsive).length)
37135
+ node.responsive = responsive;
37136
+ const hover = styleOf(raw['hover'], `${at}.hover`, faults);
37137
+ if (Object.keys(hover).length)
37138
+ node.hover = hover;
37139
+ const motion = str(raw['motion']);
37140
+ const move = freeMoveOf(motion);
37141
+ if (move)
37142
+ node.move = move;
37143
+ else if (motion && motion !== NONE)
37144
+ faults.push({ path: `${at}.motion`, message: `"${motion}" is not a move — ${freeMoveWords().join(', ')}` });
37145
+ const parentId = str(raw['parent']);
37146
+ if (!parentId) {
37147
+ if (type !== FreeNodeType.Section) {
37148
+ faults.push({ path: at, message: 'only a Section sits at the top of the page — give it a parent' });
37149
+ return;
37150
+ }
37151
+ pathOf.set(node, `sections[${sections.length}]`);
37152
+ sections.push(node);
37153
+ }
37154
+ else {
37155
+ const parent = made.get(parentId);
37156
+ if (!parent) {
37157
+ faults.push({ path: at, message: `its parent "${parentId}" is not written before it` });
37158
+ return;
37159
+ }
37160
+ if (!FREE_HOLDERS.includes(parent.type)) {
37161
+ faults.push({ path: at, message: `a ${parent.type} holds no children` });
37162
+ return;
37163
+ }
37164
+ if (type === FreeNodeType.Section) {
37165
+ faults.push({ path: at, message: 'a Section sits at the top of the page only — use a Container inside' });
37166
+ return;
37167
+ }
37168
+ (parent.children ??= []).push(node);
37169
+ pathOf.set(node, `${pathOf.get(parent)}.children[${parent.children.length - 1}]`);
37170
+ }
37171
+ made.set(id, node);
37172
+ paths[pathOf.get(node)] = i;
37173
+ });
37174
+ const page = {
37175
+ read: { idea: str(read['idea']), why: str(read['why']), followed: str(read['followed']) },
37176
+ pictures: str(w['pictures']),
37177
+ sections,
37178
+ };
37179
+ return { page, paths, faults };
37180
+ }
37181
+ function walkFree(sections) {
37182
+ const out = [];
37183
+ const visit = (node, path, section, up) => {
37184
+ out.push({ node, path, section, up });
37185
+ (node.children ?? []).forEach((c, i) => visit(c, `${path}.children[${i}]`, section, [...up, node]));
37186
+ };
37187
+ sections.forEach((s, i) => visit(s, `sections[${i}]`, i, []));
37188
+ return out;
37189
+ }
37190
+ const lines = (style) => Object.entries(style ?? {}).map(([k, v]) => `${k}${SEP}${v}`);
37191
+ /** The free tree → the wire (a ready-made place is left out: it is not the model's). */
37192
+ function freeToWire(page) {
37193
+ const nodes = walkFree(page.sections.filter(s => !s.readyMade)).map(({ node: n, up }) => ({
37194
+ id: n.id, parent: up.length ? up[up.length - 1].id : '', type: n.type, purpose: n.purpose ?? '', style: n.elementStyle ?? '',
37195
+ level: n.type === FreeNodeType.Heading ? n.level ?? 0 : 0, role: n.role ?? '', text: n.text ?? '', src: n.src ?? '', href: n.href ?? '',
37196
+ slot: n.slot ?? '', opts: [...(n.opts ?? [])], base: lines(n.styleProps), phone: lines(n.responsive?.[FreeLayer.Phone]),
37197
+ tablet: lines(n.responsive?.[FreeLayer.Tablet]), hover: lines(n.hover), motion: freeMoveWord(n.move),
37198
+ }));
37199
+ return { read: { ...page.read }, pictures: page.pictures, nodes };
37200
+ }
37201
+ /** A tree key → the wire key it came from. */
37202
+ const WIRE_KEY = [
37203
+ [`responsive.${FreeLayer.Phone}`, 'phone'],
37204
+ [`responsive.${FreeLayer.Tablet}`, 'tablet'],
37205
+ ['responsive', 'phone'],
37206
+ ['styleProps', 'base'],
37207
+ ['hover', 'hover'],
37208
+ ['move', 'motion'],
37209
+ ['elementStyle', 'style'],
37210
+ ['text', 'text'],
37211
+ ['opts', 'opts'],
37212
+ ];
37213
+ /**
37214
+ * A judge's path into the tree (`sections[0].children[1].styleProps.fontSize`) said against the wire
37215
+ * (`nodes[2] ("shop-title").base.fontSize`) — a repair names wire paths. A path that names no node stays as written.
37216
+ */
37217
+ function freeWirePath(path, paths, wire) {
37218
+ const m = /^(sections\[\d+\](?:\.children\[\d+\])*)(?:\.(.*))?$/.exec(path);
37219
+ if (!m || paths[m[1]] === undefined)
37220
+ return path;
37221
+ const i = paths[m[1]];
37222
+ const rest = m[2] ?? '';
37223
+ const hit = WIRE_KEY.find(([k]) => rest === k || rest.startsWith(`${k}.`));
37224
+ const where = hit ? `.${hit[1]}${rest.length > hit[0].length ? rest.slice(hit[0].length) : ''}` : rest ? `.${rest}` : '';
37225
+ return `${nodeAt(i, wire.nodes?.[i]?.id ?? '')}${where}`;
37226
+ }
37227
+ /** A repair's edits remove a node: what sat inside it goes too, so no orphan is left. */
37228
+ function withoutFreeOrphans(wire) {
37229
+ const ids = new Set();
37230
+ const nodes = (wire.nodes ?? []).filter(n => {
37231
+ if (n?.parent && !ids.has(n.parent))
37232
+ return false;
37233
+ if (n?.id)
37234
+ ids.add(n.id);
37235
+ return true;
37236
+ });
37237
+ return { ...wire, nodes };
37238
+ }
37239
+
37240
+ /**
37241
+ * THE FREE PAGE'S JUDGE (award plan §11.4 gates 1 + 2, FS3): every reason a free page may not be stamped, path first,
37242
+ * in words the model can act on in its one repair. It judges SAFETY, LAW and TRUTH — never taste (R-H18): what is the
37243
+ * look's stays a token (R-H1), a phone layer exists where a phone needs one (R-H4), no fact is invented (R-H6, the ONE
37244
+ * `factIssues`), only what exists is named (R-H2), the words read on their ground (R-H12), and the answer says which of
37245
+ * the owner's words it followed (R-H17). A place the fall back gave to a ready-made section (`readyMade`) is the plan's,
37246
+ * not the model's: it is skipped, and the page rules that section would answer are relaxed. Pure.
37247
+ */
37248
+ var FreeIssueCode;
37249
+ (function (FreeIssueCode) {
37250
+ /** The page's structure: section count, ids, nesting, h1, lead, a closing action, a phone layout. */
37251
+ FreeIssueCode["Structure"] = "structure";
37252
+ /** A word node's words or element style. */
37253
+ FreeIssueCode["Words"] = "words";
37254
+ /** A style: a property outside the list, a value that is not one plain value, a side that is not start / end. */
37255
+ FreeIssueCode["Style"] = "style";
37256
+ /** A value the look owns written as something other than its token. */
37257
+ FreeIssueCode["Token"] = "token";
37258
+ /** A node a phone cannot hold as written, with no phone layer. */
37259
+ FreeIssueCode["Phone"] = "phone";
37260
+ /** A move: not the product's, two on a node, on the wrong node. */
37261
+ FreeIssueCode["Motion"] = "motion";
37262
+ /** A fact the owner never gave, a material id, a slot or a link that does not exist. */
37263
+ FreeIssueCode["Content"] = "content";
37264
+ /** Words that do not read on their ground (AA). */
37265
+ FreeIssueCode["Contrast"] = "contrast";
37266
+ /** The followed line is missing or quotes none of the owner's words. */
37267
+ FreeIssueCode["Prompt"] = "prompt";
37268
+ })(FreeIssueCode || (FreeIssueCode = {}));
37269
+ /** A free page is this many sections. */
37270
+ const FREE_SECTIONS = { min: 4, max: 9 };
37271
+ /** Above this, a node needs its own phone layer. */
37272
+ const FREE_PHONE_LIMITS = { width: 340, fontSize: 44, turn: 8 };
37273
+ /** WCAG AA: words, and large words (display, h1, h2). */
37274
+ const FREE_CONTRAST = { text: 4.5, large: 3 };
37275
+ const LARGE_STYLES = ['display', 'h1', 'h2'];
37276
+ /** The style properties whose value is the LOOK's: a token of this type, or one of the listed plain words. */
37277
+ const FREE_TOKEN_PROPS = {
37278
+ color: 'color', backgroundColor: 'color', borderColor: 'color', outlineColor: 'color', textDecorationColor: 'color',
37279
+ fontFamily: 'font', borderRadius: 'radius', boxShadow: 'shadow', transitionDuration: 'duration', transitionTimingFunction: 'easing',
37280
+ };
37281
+ const TOKEN_PLAIN = {
37282
+ color: ['transparent', 'currentColor', 'inherit'], font: ['inherit'], radius: ['0', '0px', '50%'], shadow: ['none'], duration: [], easing: [],
37283
+ };
37284
+ /** A colour token may be either of these token types. */
37285
+ const COLOUR_TYPES = ['color', 'paint'];
37286
+ /** The free properties: geometry, arrangement, type scale and rhythm, clipping, blending. */
37287
+ const FREE_STYLE_PROPS = [
37288
+ 'display', 'position', 'top', 'bottom', 'insetInlineStart', 'insetInlineEnd', 'zIndex', 'order',
37289
+ 'width', 'minWidth', 'maxWidth', 'height', 'minHeight', 'maxHeight', 'aspectRatio', 'overflow',
37290
+ 'margin', 'marginTop', 'marginBottom', 'marginInlineStart', 'marginInlineEnd', 'marginInline', 'marginBlock',
37291
+ 'padding', 'paddingTop', 'paddingBottom', 'paddingInlineStart', 'paddingInlineEnd', 'paddingInline', 'paddingBlock',
37292
+ 'gridTemplateColumns', 'gridTemplateRows', 'gridColumn', 'gridRow', 'gap', 'rowGap', 'columnGap',
37293
+ 'flexDirection', 'flexWrap', 'flex', 'alignItems', 'alignContent', 'justifyContent', 'alignSelf', 'justifySelf', 'placeItems', 'placeSelf',
37294
+ 'fontSize', 'fontWeight', 'lineHeight', 'letterSpacing', 'textTransform', 'textAlign', 'fontStyle', 'textWrap', 'whiteSpace',
37295
+ 'translateX', 'translateY', 'rotate', 'scaleX', 'scaleY', 'transformOrigin',
37296
+ 'clipPath', 'opacity', 'mixBlendMode', 'objectFit', 'objectPosition', 'borderWidth', 'borderStyle', 'filter', 'backdropFilter',
37297
+ ];
37298
+ /** A hover changes position, scale, turn, opacity or a colour token — never layout (Emil: transform / opacity only). */
37299
+ const FREE_HOVER_PROPS = ['translateX', 'translateY', 'scaleX', 'scaleY', 'rotate', 'opacity', 'color', 'backgroundColor', 'borderColor', 'boxShadow'];
37300
+ const PHYSICAL = /^(left|right|marginLeft|marginRight|paddingLeft|paddingRight|borderLeft.*|borderRight.*|insetLeft|insetRight)$/;
37301
+ const UNSAFE = /[;{}<>\\]|!important|url\s*\(|expression|@import|javascript:/i;
37302
+ const LITERAL_COLOUR = /#[0-9a-f]{3,8}\b|\b(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|hwb)\s*\(/i;
37303
+ const NAMED_COLOUR = /\b(white|black|red|blue|green|yellow|orange|purple|pink|gray|grey|gold|navy|teal|beige|ivory|cream)\b/i;
37304
+ const TOKEN_REF = /var\(\s*--iox-([a-z0-9-]+)\s*(?:,[^)]*)?\)/g;
37305
+ const ONE_TOKEN = /^var\(--iox-([a-z0-9-]+)\)$/;
37306
+ const COLOUR_MIX = /^color-mix\(in (oklab|srgb), var\(--iox-[a-z0-9-]+\) \d{1,3}%, transparent\)$/;
37307
+ const ANCHOR = /^#[a-z][\w-]*$/;
37308
+ /** FS-T5: a size relative to the WINDOW's width (vw and its kin) — on the canvas, a transformed frame, the window is not
37309
+ * the page. A size relative to the width is `cqi` (the page's / section's inline size), and only `cqi`. */
37310
+ const WINDOW_WIDTH_UNIT = /(-?\d*\.?\d+)(?:[dsl]?vw|[dsl]?vi|[dsl]?vmin|[dsl]?vmax)(?![a-z])/i;
37311
+ const OTHER_CQ_UNIT = /(-?\d*\.?\d+)(?:cqw|cqh|cqb|cqmin|cqmax)(?![a-z])/i;
37312
+ const A_NUMBER = /^\D{0,3}\d[\d,.]*\D{0,3}$/;
37313
+ /** The ground a page paints when no node does. */
37314
+ const PAGE_GROUND = 'page-bg';
37315
+ const tokensIn = (v) => [...v.matchAll(TOKEN_REF)].map(m => m[1]);
37316
+ const oneToken = (v) => ONE_TOKEN.exec(String(v ?? '').trim())?.[1];
37317
+ const px = (v) => { const m = /^(-?[\d.]+)px$/.exec(String(v ?? '').trim()); return m ? Number(m[1]) : null; };
37318
+ const columnsOf = (v) => {
37319
+ const s = String(v ?? '').trim();
37320
+ const rep = /repeat\(\s*(\d+)/.exec(s);
37321
+ return rep ? Number(rep[1]) : s.split(/\s+(?![^(]*\))/).filter(Boolean).length;
37322
+ };
37323
+ const hasPhoneLayer = (n) => FREE_PHONE_LAYERS.some(bp => Object.keys(n.responsive?.[bp] ?? {}).length > 0);
37324
+ /** One style map against the rules: a known property, one clean value, the look's token where the look owns it. */
37325
+ function freeStyleIssues(style, path, ctx) {
37326
+ const out = [];
37327
+ const types = new Map(ctx.tokens.map(t => [t.name, t.type]));
37328
+ const say = (code, prop, message) => out.push({ code, path: `${path}.${prop}`, message });
37329
+ for (const [prop, raw] of Object.entries(style ?? {})) {
37330
+ const v = String(raw).trim();
37331
+ const kind = FREE_TOKEN_PROPS[prop];
37332
+ if (PHYSICAL.test(prop)) {
37333
+ say(FreeIssueCode.Style, prop, 'write sides as start / end (insetInlineStart, marginInlineEnd …) — the site also runs right to left');
37334
+ continue;
37335
+ }
37336
+ if (!kind && !FREE_STYLE_PROPS.includes(prop)) {
37337
+ say(FreeIssueCode.Style, prop, 'not a style property this language has');
37338
+ continue;
37339
+ }
37340
+ if (!v || UNSAFE.test(v)) {
37341
+ say(FreeIssueCode.Style, prop, 'a value is one plain value — no url(), no ; { } !important');
37342
+ continue;
37343
+ }
37344
+ if (prop === 'textAlign' && /^(left|right)$/.test(v)) {
37345
+ say(FreeIssueCode.Style, prop, 'start | end | center');
37346
+ continue;
37347
+ }
37348
+ const win = WINDOW_WIDTH_UNIT.exec(v);
37349
+ if (win) {
37350
+ say(FreeIssueCode.Style, prop, `"${win[0]}" follows the window, not the page — a size relative to the width is cqi: ${win[1]}cqi`);
37351
+ continue;
37352
+ }
37353
+ const cq = OTHER_CQ_UNIT.exec(v);
37354
+ if (cq) {
37355
+ say(FreeIssueCode.Style, prop, `"${cq[0]}" — a size relative to the width is cqi only: ${cq[1]}cqi`);
37356
+ continue;
37357
+ }
37358
+ if (LITERAL_COLOUR.test(v) || (kind === 'color' && NAMED_COLOUR.test(v))) {
37359
+ say(FreeIssueCode.Token, prop, 'a literal colour — colours are the look\'s tokens: var(--iox-<colour token>)');
37360
+ continue;
37361
+ }
37362
+ if (!kind)
37363
+ continue;
37364
+ const named = tokensIn(v);
37365
+ const plain = TOKEN_PLAIN[kind].includes(v);
37366
+ const mixed = kind === 'color' && COLOUR_MIX.test(v);
37367
+ if (!plain && !mixed && !(named.length === 1 && v === `var(--iox-${named[0]})`)) {
37368
+ const words = TOKEN_PLAIN[kind].length ? ` or ${TOKEN_PLAIN[kind].join(' / ')}` : '';
37369
+ say(FreeIssueCode.Token, prop, `the look owns this — var(--iox-<${kind} token>)${words}${kind === 'color' ? ', or color-mix(in oklab, var(--iox-…) N%, transparent)' : ''}`);
37370
+ continue;
37371
+ }
37372
+ for (const name of named) {
37373
+ const type = types.get(name);
37374
+ const fits = kind === 'color' ? COLOUR_TYPES.includes(type ?? '') : type === kind;
37375
+ if (!fits)
37376
+ say(FreeIssueCode.Token, prop, `--iox-${name} is ${type ? `a ${type} token` : 'not a token of this look'} — a ${kind} token belongs here`);
37377
+ }
37378
+ }
37379
+ return out;
37380
+ }
37381
+ /** Every reason a free page may not be stamped (gate 1), contrast included (gate 2's tree half). */
37382
+ function checkFree(page, ctx) {
37383
+ return judgeFree(page, ctx, false);
37384
+ }
37385
+ /**
37386
+ * FS-D19 Basic: ONE free signature section on a page otherwise made of the plan's ready-made sections. The answer is a
37387
+ * free page holding one Section; it is judged in its place (`at`) among the plan's sections — so the page rules hold
37388
+ * for the page as the visitor sees it (a ready-made opening carries the h1 and the lead, a ready-made close the action;
37389
+ * the section count is the plan's) — and every issue is said against the answer (`sections[0]…`), for its one repair.
37390
+ */
37391
+ function checkFreeSection(answer, ctx, place) {
37392
+ const sections = Array.isArray(answer?.sections) ? answer.sections : [];
37393
+ if (sections.length !== 1 || place.at < 0 || place.at >= place.plan.length) {
37394
+ return [{ code: FreeIssueCode.Structure, path: 'sections', message: `a signature section is ONE Section (this answer has ${sections.length})` }];
37395
+ }
37396
+ const page = freeSignaturePage(answer, place.plan, place.at);
37397
+ const here = `sections[${place.at}]`;
37398
+ return judgeFree(page, ctx, true).map(i => ({ ...i, path: i.path === here || i.path.startsWith(`${here}.`) ? `sections[0]${i.path.slice(here.length)}` : i.path }));
37399
+ }
37400
+ /** The page a signature section stands in: the plan's ready-made sections, the free one at `at` in place of that one. */
37401
+ function freeSignaturePage(answer, plan, at) {
37402
+ return {
37403
+ ...answer,
37404
+ sections: plan.map((p, i) => (i === at ? answer.sections[0] : { id: `ready-${i}`, type: FreeNodeType.Section, styleProps: {}, readyMade: { at: i, pattern: p.pattern } })),
37405
+ };
37406
+ }
37407
+ function judgeFree(page, ctx, signature) {
37408
+ const issues = [];
37409
+ const say = (code, path, message) => issues.push({ code, path, message });
37410
+ const sections = Array.isArray(page?.sections) ? page.sections : [];
37411
+ if (!signature && (sections.length < FREE_SECTIONS.min || sections.length > FREE_SECTIONS.max))
37412
+ say(FreeIssueCode.Structure, 'sections', `a page is ${FREE_SECTIONS.min} to ${FREE_SECTIONS.max} sections (this one has ${sections.length})`);
37413
+ const ready = (i) => !!sections[i]?.readyMade;
37414
+ const walked = walkFree(sections).filter(w => !ready(w.section));
37415
+ const ids = new Set(walkFree(sections).map(w => w.node.id));
37416
+ const seen = new Set();
37417
+ const texts = [];
37418
+ let h1 = 0;
37419
+ for (const { node, path, up } of walked) {
37420
+ if (!Object.values(FreeNodeType).includes(node.type)) {
37421
+ say(FreeIssueCode.Structure, path, `"${node.type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}`);
37422
+ continue;
37423
+ }
37424
+ if (!node.id || seen.has(node.id))
37425
+ say(FreeIssueCode.Structure, path, node.id ? `the id "${node.id}" is used twice` : 'every node needs its own id');
37426
+ seen.add(node.id);
37427
+ if ((node.type === FreeNodeType.Section) !== (up.length === 0))
37428
+ say(FreeIssueCode.Structure, path, up.length ? 'a Section sits at the top of the page only — use a Container inside' : 'the top of the page holds Sections only');
37429
+ if (node.type === FreeNodeType.Section && !Object.values(FreePurpose).includes(node.purpose))
37430
+ say(FreeIssueCode.Structure, path, `a section says what it is for — purpose: ${Object.values(FreePurpose).join(' | ')}`);
37431
+ if (node.children?.length && !FREE_HOLDERS.includes(node.type))
37432
+ say(FreeIssueCode.Structure, path, `a ${node.type} holds no children`);
37433
+ const styles = FREE_ELEMENT_STYLES[node.type] ?? [];
37434
+ if (node.elementStyle && !styles.includes(node.elementStyle))
37435
+ say(FreeIssueCode.Words, `${path}.elementStyle`, styles.length ? `"${node.elementStyle}" is not a style a ${node.type} wears — ${styles.join(', ')}` : `a ${node.type} wears no element style`);
37436
+ if (FREE_WORD_TYPES.includes(node.type)) {
37437
+ if (!String(node.text ?? '').trim())
37438
+ say(FreeIssueCode.Words, `${path}.text`, 'its words are missing');
37439
+ else
37440
+ texts.push({ path: `${path}.text`, text: String(node.text) });
37441
+ if (!node.elementStyle)
37442
+ say(FreeIssueCode.Words, `${path}.elementStyle`, `a ${node.type} wears one of the look's element styles (${styles.join(', ')}) and changes what it needs on top`);
37443
+ if (node.type === FreeNodeType.Heading) {
37444
+ if (!Number.isInteger(node.level) || node.level < 1 || node.level > 4)
37445
+ say(FreeIssueCode.Words, `${path}.level`, 'a Heading is level 1 to 4');
37446
+ if (node.level === 1)
37447
+ h1++;
37448
+ }
37449
+ if (node.type === FreeNodeType.Button && !ctx.pages.includes(node.href ?? '') && !(ANCHOR.test(node.href ?? '') && ids.has(node.href.slice(1)))) {
37450
+ say(FreeIssueCode.Content, `${path}.href`, `a button goes to a page of this site (${ctx.pages.join(', ')}) or to a section of this page (#id)`);
37451
+ }
37452
+ }
37453
+ if (node.role && (node.role !== FREE_LEAD_ROLE || node.type !== FreeNodeType.Heading))
37454
+ say(FreeIssueCode.Structure, `${path}.role`, 'role "lead" is for the heading a visitor reads first');
37455
+ if (node.type === FreeNodeType.Image || node.type === FreeNodeType.Video) {
37456
+ const m = ctx.material[node.src ?? ''];
37457
+ if (!m)
37458
+ say(FreeIssueCode.Content, `${path}.src`, `"${node.src ?? ''}" is not in the material — use an id from the list`);
37459
+ else if ((node.type === FreeNodeType.Video) !== (m.kind === 'video'))
37460
+ say(FreeIssueCode.Content, `${path}.src`, `"${node.src}" is a${m.kind === 'image' ? 'n image' : ' video'} — ${node.type === FreeNodeType.Video ? 'a Video plays a video' : 'an Image shows a picture'}`);
37461
+ }
37462
+ if (node.type === FreeNodeType.Slot) {
37463
+ const offer = ctx.slots?.[node.slot ?? ''];
37464
+ if (!offer)
37465
+ say(FreeIssueCode.Content, `${path}.slot`, `"${node.slot ?? ''}" is not a part this page may place — ${Object.keys(ctx.slots ?? {}).join(', ') || 'none'}`);
37466
+ else
37467
+ for (const [k, o] of (node.opts ?? []).entries())
37468
+ if (!(offer.opts ?? []).includes(o))
37469
+ say(FreeIssueCode.Content, `${path}.opts[${k}]`, `"${o}" is not how this part may show — ${(offer.opts ?? []).join(', ') || 'no options'}`);
37470
+ }
37471
+ else if (node.slot || node.opts?.length)
37472
+ say(FreeIssueCode.Structure, path, 'only a Slot places a part');
37473
+ // styles, layer by layer
37474
+ issues.push(...freeStyleIssues(node.styleProps, `${path}.styleProps`, ctx));
37475
+ for (const [bp, style] of Object.entries(node.responsive ?? {})) {
37476
+ if (!Object.values(FreeLayer).includes(bp)) {
37477
+ say(FreeIssueCode.Style, `${path}.responsive.${bp}`, `not a width — ${Object.values(FreeLayer).join(', ')}`);
37478
+ continue;
37479
+ }
37480
+ issues.push(...freeStyleIssues(style, `${path}.responsive.${bp}`, ctx));
37481
+ }
37482
+ for (const prop of Object.keys(node.hover ?? {}))
37483
+ if (!FREE_HOVER_PROPS.includes(prop))
37484
+ say(FreeIssueCode.Style, `${path}.hover.${prop}`, `a hover changes position, scale, turn, opacity or a colour token only (${FREE_HOVER_PROPS.join(', ')}) — never layout`);
37485
+ issues.push(...freeStyleIssues(Object.fromEntries(Object.entries(node.hover ?? {}).filter(([p]) => FREE_HOVER_PROPS.includes(p))), `${path}.hover`, ctx));
37486
+ // the one move
37487
+ if (node.move) {
37488
+ const spec = FREE_MOVES[node.move.trigger]?.[node.move.action];
37489
+ if (!spec)
37490
+ say(FreeIssueCode.Motion, `${path}.move`, `under ${node.move.trigger} one of: ${Object.keys(FREE_MOVES[node.move.trigger] ?? {}).join(', ')}`);
37491
+ else {
37492
+ const value = spec.param ? node.move.params?.[spec.param] : undefined;
37493
+ if (spec.param && value !== undefined && !spec.values?.includes(value))
37494
+ say(FreeIssueCode.Motion, `${path}.move`, `${spec.param} is one of ${spec.values?.join(', ')}`);
37495
+ if (node.move.action === 'revealText' && node.type !== FreeNodeType.Heading && node.type !== FreeNodeType.Text)
37496
+ say(FreeIssueCode.Motion, `${path}.move`, 'revealText lights words — on a Heading or a Text');
37497
+ if (node.move.action === 'countUp' && !A_NUMBER.test(String(node.text ?? '').trim()))
37498
+ say(FreeIssueCode.Motion, `${path}.move`, 'countUp counts a number — on a Heading or Text whose words ARE a number the owner gave');
37499
+ if (node.move.trigger === FreeTrigger.Scroll && up.length === 0)
37500
+ say(FreeIssueCode.Motion, `${path}.move`, 'a whole section never travels with the scroll — move a layer inside it');
37501
+ }
37502
+ }
37503
+ // the phone: anything a 390px screen cannot hold as written needs its own layer
37504
+ const base = node.styleProps ?? {};
37505
+ const needs = [];
37506
+ if (base['gridTemplateColumns'] && columnsOf(base['gridTemplateColumns']) >= 2)
37507
+ needs.push('its columns');
37508
+ if (base['position'] === 'absolute')
37509
+ needs.push('its absolute place');
37510
+ if ((px(base['width']) ?? 0) > FREE_PHONE_LIMITS.width || (px(base['minWidth']) ?? 0) > FREE_PHONE_LIMITS.width)
37511
+ needs.push('its fixed width');
37512
+ if ((px(base['fontSize']) ?? 0) > FREE_PHONE_LIMITS.fontSize)
37513
+ needs.push('its type size (or write it as clamp(min, cqi, max))');
37514
+ if (base['rotate'] && FREE_WORD_TYPES.includes(node.type) && Math.abs(parseFloat(base['rotate'])) > FREE_PHONE_LIMITS.turn)
37515
+ needs.push('its turn');
37516
+ if (needs.length && !hasPhoneLayer(node))
37517
+ say(FreeIssueCode.Phone, `${path}.responsive`, `needs a phone layer for ${needs.join(', ')}`);
37518
+ }
37519
+ // facts: the ONE judge, numbers included (R-H6)
37520
+ for (const i of factIssues(texts, { avoidWords: ctx.avoidWords ?? [], facts: ctx.facts, known: ctx.known, numbers: true, quotes: true }))
37521
+ say(FreeIssueCode.Content, i.path, i.message);
37522
+ // the page
37523
+ const openingReady = ready(0);
37524
+ if (openingReady ? h1 !== 0 : h1 !== 1)
37525
+ say(FreeIssueCode.Structure, 'sections', openingReady ? 'the opening carries the page\'s level-1 heading — use level 2 or lower' : `a page has exactly one Heading of level 1 (this one has ${h1})`);
37526
+ if (sections[0] && !openingReady && !walkFree([sections[0]]).some(w => w.node.role === FREE_LEAD_ROLE))
37527
+ say(FreeIssueCode.Structure, 'sections[0]', 'the first section names its lead — role "lead" on the heading a visitor reads first');
37528
+ sections.forEach((s, i) => {
37529
+ if (!ready(i) && !walkFree([s]).some(w => hasPhoneLayer(w.node)))
37530
+ say(FreeIssueCode.Phone, `sections[${i}]`, 'a phone layout is required — at least one node of every section carries a phone layer');
37531
+ });
37532
+ const last = sections.length - 1;
37533
+ if (last >= 0 && !ready(last) && !walkFree([sections[last]]).some(w => w.node.type === FreeNodeType.Button))
37534
+ say(FreeIssueCode.Structure, `sections[${last}]`, 'the page ends on something to do — a Button in the last section');
37535
+ const hasVideos = Object.values(ctx.material).some(m => m.kind === 'video');
37536
+ if (ctx.home && hasVideos && !sections.some(s => s.readyMade) && !walked.some(w => w.node.type === FreeNodeType.Video))
37537
+ say(FreeIssueCode.Content, 'sections', 'this business has videos — the home page plays at least one (a Video node)');
37538
+ if (!Object.values(FreePictures).includes(page?.pictures))
37539
+ say(FreeIssueCode.Structure, 'pictures', `one word: ${Object.values(FreePictures).join(', ')}`);
37540
+ issues.push(...followedIssues(page, ctx));
37541
+ issues.push(...freeContrastIssues(page, ctx));
37542
+ return issues;
37543
+ }
37544
+ /**
37545
+ * THE OWNER'S PROMPT LEADS (§11.4a, R-H17): the followed line is there, and — when the reading took words from the prompt
37546
+ * — it quotes at least one AS WRITTEN. Never a judgement of taste.
37547
+ */
37548
+ function followedIssues(page, ctx) {
37549
+ const line = String(page?.read?.followed ?? '').trim();
37550
+ if (!line)
37551
+ return [{ code: FreeIssueCode.Prompt, path: 'read.followed', message: 'say in one line the owner can read which of their words this page followed' }];
37552
+ const said = (ctx.said ?? []).map(w => String(w).trim()).filter(Boolean);
37553
+ const lower = line.toLowerCase();
37554
+ if (said.length && !said.some(w => lower.includes(w.toLowerCase()))) {
37555
+ return [{ code: FreeIssueCode.Prompt, path: 'read.followed', message: `the line names none of the owner's own words — quote at least one as they wrote it (${said.slice(0, 6).join(', ')})` }];
37556
+ }
37557
+ return [];
37558
+ }
37559
+ /** The token a node's words are painted in: its own colour, else its element style's; `inherit` reads up the tree. */
37560
+ function inkOf(node, up) {
37561
+ for (const n of [node, ...[...up].reverse()]) {
37562
+ const v = n.styleProps?.['color'] ?? elementStyleById(n.elementStyle)?.base['color'];
37563
+ if (v === undefined || v === 'inherit' || v === 'currentColor')
37564
+ continue;
37565
+ return oneToken(v);
37566
+ }
37567
+ return 'text';
37568
+ }
37569
+ /**
37570
+ * The tokens a node's words may sit on, nearest first: its own ground, then each ancestor's, then the page's. `null` in
37571
+ * the list is a ground that is no single token (a colour-mix): nothing past it can be judged from tokens.
37572
+ */
37573
+ function groundsOf(node, up) {
37574
+ const out = [];
37575
+ for (const n of [node, ...[...up].reverse()]) {
37576
+ const v = n.styleProps?.['backgroundColor'] ?? elementStyleById(n.elementStyle)?.base['backgroundColor'];
37577
+ if (v === undefined || v === 'transparent')
37578
+ continue;
37579
+ out.push(oneToken(v) ?? null);
37580
+ }
37581
+ return [...out, PAGE_GROUND];
37582
+ }
37583
+ /** A resolved ground that paints nothing (`transparent`, an alpha of 0) lets the one behind it show. */
37584
+ const CLEAR = /^(transparent|rgba?\([^)]*,\s*0(\.0+)?\s*\)|#[0-9a-f]{6}00)$/i;
37585
+ /** The hex the words sit on in one mode, or null when it cannot be told from tokens (left to the real pixels). */
37586
+ function groundHex(grounds, values) {
37587
+ for (const token of grounds) {
37588
+ if (token === null)
37589
+ return null;
37590
+ const value = String(values[token] ?? '').trim();
37591
+ if (CLEAR.test(value))
37592
+ continue;
37593
+ return parseHexColor(value) ? { token, hex: value } : null;
37594
+ }
37595
+ return null;
37596
+ }
37597
+ /**
37598
+ * THE TREE PAIR CHECK (R-H12, gate 2's tree half — `auditDesignContrast` judges the look, not a tree): each Heading's and
37599
+ * Text's ink token against the ground token of the nearest painted node, resolved in every mode the site shows, AA
37600
+ * (4.5, 3 for display / h1 / h2). A pair that is not two hex tokens (a colour-mix, a picture behind) is left to the
37601
+ * real-pixel check. A Button paints its own pair through its element style, which the look's audit already covers.
37602
+ */
37603
+ function freeContrastIssues(page, ctx) {
37604
+ const out = [];
37605
+ const resolved = (ctx.modes?.length ? ctx.modes : ['light']).map(mode => ({ mode, values: resolveTokenValues(ctx.tokens, mode) }));
37606
+ for (const { node, path, up, section } of walkFree(page?.sections ?? [])) {
37607
+ if (page.sections[section]?.readyMade)
37608
+ continue;
37609
+ if (node.type !== FreeNodeType.Heading && node.type !== FreeNodeType.Text)
37610
+ continue;
37611
+ const ink = inkOf(node, up);
37612
+ if (!ink)
37613
+ continue;
37614
+ const grounds = groundsOf(node, up);
37615
+ const need = LARGE_STYLES.includes(node.elementStyle ?? '') ? FREE_CONTRAST.large : FREE_CONTRAST.text;
37616
+ for (const { mode, values } of resolved) {
37617
+ const a = values[ink];
37618
+ const ground = groundHex(grounds, values);
37619
+ if (!a || !ground || !parseHexColor(a))
37620
+ continue;
37621
+ const ratio = wcagContrastRatio(a, ground.hex);
37622
+ if (ratio < need) {
37623
+ out.push({ code: FreeIssueCode.Contrast, path: `${path}.styleProps.color`, message: `--iox-${ink} on --iox-${ground.token} is ${ratio.toFixed(1)}:1 in ${mode} (needs ${need}) — another colour token for the words or the ground` });
37624
+ break;
37625
+ }
37626
+ }
37627
+ }
37628
+ return out;
37629
+ }
37630
+
37631
+ /**
37632
+ * WHAT THE OWNER'S PROMPT RULED OUT, AS A READY-MADE SECTION CAN BREAK IT (award plan FS-D47, R-H20). The reading keeps
37633
+ * the owner's refused and asked words as they wrote them (§11.4a); a ready-made section can only break the few of them
37634
+ * that a pattern decides by its parts — pictures, a video, motion. Those are read here, in English and Hebrew, from the
37635
+ * reading's own lists (never guessed from taste words), and judged against a plan section's pattern as it would be
37636
+ * stamped (its `without` parts left out). The fall back picks only among sections that honour them; when it cannot, the
37637
+ * followed line SAYS which of the owner's words the page no longer follows. Pure.
37638
+ */
37639
+ var PromptLimit;
37640
+ (function (PromptLimit) {
37641
+ /** "no pictures", "only the names", "mostly words". */
37642
+ PromptLimit["NoPictures"] = "no-pictures";
37643
+ PromptLimit["NoVideo"] = "no-video";
37644
+ /** "nothing moving", "no animation". */
37645
+ PromptLimit["NoMotion"] = "no-motion";
37646
+ })(PromptLimit || (PromptLimit = {}));
37647
+ /** A refused entry that IS one of these words rules the thing out ("pictures"; never "stock photos", which refuses stock). */
37648
+ const REFUSED_WORDS = {
37649
+ [PromptLimit.NoPictures]: ['pictures', 'photos', 'photographs', 'images', 'תמונות', 'צילומים'],
37650
+ [PromptLimit.NoVideo]: ['video', 'videos', 'film', 'films', 'וידאו', 'סרטון', 'סרטונים'],
37651
+ [PromptLimit.NoMotion]: ['motion', 'animation', 'animations', 'movement', 'תנועה', 'אנימציה', 'אנימציות'],
37652
+ };
37653
+ /** A phrase that rules the thing out wherever the reading kept it (asked, said or refused). */
37654
+ const RULING_PHRASES = {
37655
+ [PromptLimit.NoPictures]: ['no pictures', 'no photos', 'no images', 'without pictures', 'without photos', 'mostly words', 'only words', 'just words', 'בלי תמונות', 'ללא תמונות', 'רק מילים', 'בלי צילומים'],
37656
+ [PromptLimit.NoVideo]: ['no video', 'no videos', 'without video', 'בלי וידאו', 'בלי סרטונים', 'ללא וידאו', 'ללא סרטונים'],
37657
+ [PromptLimit.NoMotion]: ['no motion', 'no animation', 'no animations', 'nothing moving', 'without motion', 'בלי תנועה', 'בלי אנימציה', 'בלי אנימציות', 'ללא תנועה'],
37658
+ };
37659
+ const plain = (s) => String(s ?? '').normalize('NFKC').toLowerCase().replace(/^(any|no|בלי|ללא)\s+/, '').trim();
37660
+ /** What the owner's words rule out that a ready-made section could break. */
37661
+ function promptLimitsOf(reading) {
37662
+ const refused = (reading?.refused ?? []).map(plain);
37663
+ const all = [...(reading?.refused ?? []), ...(reading?.asked ?? []), ...(reading?.said ?? [])].map(s => String(s ?? ''));
37664
+ return Object.values(PromptLimit).filter(limit => refused.some(r => REFUSED_WORDS[limit].includes(r))
37665
+ || RULING_PHRASES[limit].some(phrase => all.some(text => wordPattern(phrase).test(text.normalize('NFKC').toLowerCase()))));
37666
+ }
37667
+ const PICTURE_TYPES = ['Image', 'Gallery'];
37668
+ const CARD_RECIPE = 'card';
37669
+ const CARD_MEDIA = 'media';
37670
+ const IMAGE_BIND = 'image';
37671
+ function shows(node, without, out) {
37672
+ if (node.optional && without.has(node.optional))
37673
+ return;
37674
+ // a picture node, or a recipe that draws one: a card keeps its media part unless switched off, a bound image
37675
+ if (PICTURE_TYPES.includes(node.t) || (node.recipe === CARD_RECIPE && node.parts?.[CARD_MEDIA] !== false) || node.binds?.[IMAGE_BIND])
37676
+ out.add(PromptLimit.NoPictures);
37677
+ if (node.t === 'Video')
37678
+ out.add(PromptLimit.NoVideo);
37679
+ if (node.tracks?.length)
37680
+ out.add(PromptLimit.NoMotion);
37681
+ for (const child of node.c ?? [])
37682
+ shows(child, without, out);
37683
+ }
37684
+ /** The owner's limits a plan section would break, stamped as planned (an unknown pattern breaks none it can be judged on). */
37685
+ function sectionBreaks(section, limits) {
37686
+ const pattern = patternById(section.pattern);
37687
+ if (!pattern || !limits.length)
37688
+ return [];
37689
+ const found = new Set();
37690
+ if (pattern.scene || pattern.film)
37691
+ found.add(PromptLimit.NoMotion);
37692
+ shows(pattern.node, new Set(section.without ?? []), found);
37693
+ return limits.filter(l => found.has(l));
37694
+ }
37695
+ /** One sentence per limit broken, in the site's language: n sections are ready-made and do what the owner ruled out. */
37696
+ const UNFOLLOWED = {
37697
+ en: {
37698
+ [PromptLimit.NoPictures]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'shows' : 'show'} pictures, which you asked to leave out.`,
37699
+ [PromptLimit.NoVideo]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'plays a video' : 'play videos'}, which you asked to leave out.`,
37700
+ [PromptLimit.NoMotion]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'moves' : 'move'} as the page scrolls, which you asked to leave out.`,
37701
+ },
37702
+ he: {
37703
+ [PromptLimit.NoPictures]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג' : `${n} חלקים מוכנים מראש ומציגים`} תמונות, אף שביקשת בלי תמונות.`,
37704
+ [PromptLimit.NoVideo]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג סרטון' : `${n} חלקים מוכנים מראש ומציגים סרטונים`}, אף שביקשת בלי סרטונים.`,
37705
+ [PromptLimit.NoMotion]: n => `${n === 1 ? 'חלק אחד מוכן מראש וזז' : `${n} חלקים מוכנים מראש וזזים`} עם הגלילה, אף שביקשת בלי תנועה.`,
37706
+ },
37707
+ };
37708
+ /** The followed line after a fall back: the model's line, then what the page no longer follows (never a claim kept). */
37709
+ function followedAfter(line, broken, language) {
37710
+ const words = UNFOLLOWED[language === 'he' ? 'he' : 'en'];
37711
+ const said = Object.values(PromptLimit).filter(l => (broken.get(l) ?? 0) > 0).map(l => words[l](broken.get(l)));
37712
+ return [String(line ?? '').trim(), ...said].filter(Boolean).join(' ');
37713
+ }
37714
+
37715
+ /**
37716
+ * THE FREE PAGE'S SILENT FALL BACK (award plan §11.4 gate 6, R-H7): a free section that still breaks a rule after the
37717
+ * one repair is given to the plan's ready-made section for its place — through the ONE `fallBackBySection` (never a copy
37718
+ * of its rules: the opening and the close always swap, a middle section takes the best fit by list, form and words or is
37719
+ * dropped, a ready-made section that repeats a kept one is never a fit, and a page that still fails falls back whole).
37720
+ * This file only ADAPTS: a free section is read as the layout language's section (its words as layers, a list slot as
37721
+ * its gallery source, a form slot as a form) so the fit is scored the same way, and the judge it hands over re-runs
37722
+ * `checkFree` on the free page the swaps leave. Pure.
37723
+ *
37724
+ * FS-D47 / R-H20: given the owner's limits (`promptLimitsOf` the reading), the ready-made section is chosen against them
37725
+ * and the followed line is rewritten when one had to be used anyway.
37726
+ */
37727
+ /** A free judge's issue code, in the layout language's codes (the fall back reads only paths and messages). */
37728
+ const FREE_TO_LAYOUT_CODE = {
37729
+ [FreeIssueCode.Structure]: LayoutIssueCode.Structure,
37730
+ [FreeIssueCode.Words]: LayoutIssueCode.Content,
37731
+ [FreeIssueCode.Style]: LayoutIssueCode.Look,
37732
+ [FreeIssueCode.Token]: LayoutIssueCode.Look,
37733
+ [FreeIssueCode.Phone]: LayoutIssueCode.Structure,
37734
+ [FreeIssueCode.Motion]: LayoutIssueCode.Motion,
37735
+ [FreeIssueCode.Content]: LayoutIssueCode.Content,
37736
+ [FreeIssueCode.Contrast]: LayoutIssueCode.Reading,
37737
+ [FreeIssueCode.Prompt]: LayoutIssueCode.Content,
37738
+ };
37739
+ const asLayoutIssue = (i) => ({ code: FREE_TO_LAYOUT_CODE[i.code], path: i.path, message: i.message });
37740
+ const WORD_LAYER = {
37741
+ [FreeNodeType.Heading]: LayoutLayerKind.Heading,
37742
+ [FreeNodeType.Text]: LayoutLayerKind.Text,
37743
+ [FreeNodeType.Button]: LayoutLayerKind.Button,
37744
+ };
37745
+ const AT = { col: [1, 1], row: [1, 1] };
37746
+ /** One free node as the layer the fall back's fit reads (words, a list's source, a form), or none. */
37747
+ function layerOf(node) {
37748
+ const word = WORD_LAYER[node.type];
37749
+ if (word)
37750
+ return { kind: word, text: node.text ?? '', ...AT };
37751
+ if (node.type === FreeNodeType.Image)
37752
+ return { kind: LayoutLayerKind.Photo, photo: { id: node.src ?? '' }, ...AT };
37753
+ if (node.type !== FreeNodeType.Slot)
37754
+ return null;
37755
+ const [kind, ref] = String(node.slot ?? '').split(':');
37756
+ if (kind === 'list')
37757
+ return { kind: LayoutLayerKind.Gallery, gallery: { slides: [], source: ref }, ...AT };
37758
+ if (kind === 'form')
37759
+ return { kind: LayoutLayerKind.Form, form: { preset: ref }, ...AT };
37760
+ return null;
37761
+ }
37762
+ /** A free section read as a layout section (for the fit only — never stamped). */
37763
+ function freeSectionAsLayout(section) {
37764
+ const layers = walkFree([section]).map(w => layerOf(w.node)).filter((l) => !!l);
37765
+ return { id: section.id, screens: 1, rows: 1, layers, ...(section.readyMade ? { readyMade: section.readyMade } : {}) };
37766
+ }
37767
+ /**
37768
+ * Give each free section the issues name to the plan's ready-made section, then judge once more. `plan` is the page's
37769
+ * ready-made sections (`PagePlan.sections`), in order; `issues` what `checkFree` still finds after the one repair.
37770
+ * With the owner's limits (FS-D47), the fall back first chooses only among sections that honour them — a middle place
37771
+ * nothing honest fits is dropped where the page's minimums allow; only when that fails is the closest section used, and
37772
+ * the followed line then says which of the owner's words the page no longer follows.
37773
+ */
37774
+ function fallBackFree(page, plan, issues, ctx, prompt) {
37775
+ const limits = prompt?.limits ?? [];
37776
+ const lastAt = plan.length - 1;
37777
+ const honest = plan.map((_, i) => i).filter(i => i === 0 || i === lastAt || !sectionBreaks(plan[i], limits).length);
37778
+ const first = limits.length && honest.length < plan.length ? fallBackOn(page, plan, honest, issues, ctx) : null;
37779
+ const done = first && !first.lastResort ? first : fallBackOn(page, plan, plan.map((_, i) => i), issues, ctx);
37780
+ if (done.lastResort || !limits.length)
37781
+ return done;
37782
+ const broken = new Map();
37783
+ for (const s of done.page.sections) {
37784
+ if (s.readyMade)
37785
+ for (const l of sectionBreaks(plan[s.readyMade.at], limits))
37786
+ broken.set(l, (broken.get(l) ?? 0) + 1);
37787
+ }
37788
+ if (!broken.size)
37789
+ return done;
37790
+ return {
37791
+ ...done,
37792
+ page: { ...done.page, read: { ...done.page.read, followed: followedAfter(done.page.read.followed, broken, prompt?.language) } },
37793
+ unfollowed: Object.fromEntries(broken),
37794
+ };
37795
+ }
37796
+ /** The ONE fall back over the plan sections `use` (by their index in `plan`); ready-made places name the FULL plan. */
37797
+ function fallBackOn(page, plan, use, issues, ctx) {
37798
+ const byId = new Map(page.sections.map(s => [s.id, s]));
37799
+ const real = (at) => use[at] ?? at;
37800
+ const toFree = (layout) => ({
37801
+ ...page,
37802
+ sections: layout.sections.map(s => {
37803
+ const was = byId.get(s.id);
37804
+ return s.readyMade && !was.readyMade
37805
+ ? { id: s.id, type: FreeNodeType.Section, styleProps: {}, readyMade: { at: real(s.readyMade.at), pattern: s.readyMade.pattern } }
37806
+ : was;
37807
+ }),
37808
+ });
37809
+ // A place already ready-made names the FULL plan; the fall back reads it against the plan it is given.
37810
+ const asGiven = (section) => {
37811
+ const layout = freeSectionAsLayout(section);
37812
+ return layout.readyMade ? { ...layout, readyMade: { ...layout.readyMade, at: use.indexOf(layout.readyMade.at) } } : layout;
37813
+ };
37814
+ let last = [...issues];
37815
+ const judged = fallBackBySection({ dial: 'distinct', sections: page.sections.map(asGiven) }, use.map(i => plan[i]), issues.map(asLayoutIssue), layout => {
37816
+ last = checkFree(toFree(layout), ctx);
37817
+ return { page: layout, issues: last.map(asLayoutIssue) };
37818
+ });
37819
+ return {
37820
+ page: toFree(judged.page),
37821
+ swaps: judged.swaps.map(w => (w.readyMade ? { ...w, readyMade: { ...w.readyMade, at: real(w.readyMade.at) } } : w)),
37822
+ left: judged.left.length ? last : [],
37823
+ ...(judged.lastResort ? { lastResort: judged.lastResort } : {}),
37824
+ };
37825
+ }
37826
+
36633
37827
  /**
36634
37828
  * Where the composed pages' photos come from (M8-G2-D10 — the Plan step's Pictures line: "Your 4 photos go first · 8 from
36635
37829
  * your photo library · 0 empty boxes"): every distinct photo id the plan's composed layouts name, by source. Pure.
@@ -37097,6 +38291,8 @@ const ROW_ROLES = {
37097
38291
  [OpeningIngredient.Words]: [OpeningRole.Words, OpeningRole.Title, OpeningRole.Lead, OpeningRole.Action, OpeningRole.Apart, OpeningRole.ApartWord, OpeningRole.Aside, OpeningRole.Cutout, OpeningRole.Scrim],
37098
38292
  [OpeningIngredient.Extras]: [OpeningRole.Card, OpeningRole.Badge, OpeningRole.Cue],
37099
38293
  [OpeningIngredient.Motion]: [],
38294
+ // iox-ui#131: a type-led first screen's ground is its frame's scheme.
38295
+ [OpeningIngredient.Ground]: [OpeningRole.Frame, OpeningRole.FrameSettles],
37100
38296
  };
37101
38297
  /** The props that are the owner's CONTENT (words, pictures, a film, a form's identity) — never a sign of a hand edit. */
37102
38298
  const CONTENT_PROPS = [OPENING_MIX_PROP, 'src', 'poster', 'frames', 'formId', 'name'];
@@ -37842,5 +39038,5 @@ function siteGlobalsOf(globals) {
37842
39038
  * Generated bundle index. Do not edit.
37843
39039
  */
37844
39040
 
37845
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
39041
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeMoveOf, freeMoveWord, freeMoveWords, freeSectionAsLayout, freeSignaturePage, freeStyleIssues, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
37846
39042
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map