@plitzi/sdk-shared 0.39.3 → 0.39.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/clients/index.d.ts +60 -0
  3. package/dist/clients/index.mjs +47 -0
  4. package/dist/conditions/types.d.ts +1 -1
  5. package/dist/credentials/index.d.ts +4 -0
  6. package/dist/credentials/index.mjs +3 -0
  7. package/dist/credentials/kinds.d.ts +54 -0
  8. package/dist/credentials/kinds.mjs +326 -0
  9. package/dist/credentials/problems.d.ts +14 -0
  10. package/dist/credentials/problems.mjs +43 -0
  11. package/dist/csrf/csrf.d.ts +36 -0
  12. package/dist/csrf/csrf.mjs +62 -0
  13. package/dist/csrf/index.d.ts +2 -0
  14. package/dist/csrf/index.mjs +1 -0
  15. package/dist/helpers/deepEqual/deepEqual.mjs +3 -2
  16. package/dist/helpers/lodash/cloneDeep.d.ts +3 -3
  17. package/dist/helpers/lodash/cloneDeep.mjs +24 -27
  18. package/dist/helpers/lodash/has.d.ts +2 -1
  19. package/dist/helpers/lodash/has.mjs +8 -8
  20. package/dist/helpers/lodash/index.d.ts +1 -1
  21. package/dist/helpers/lodash/omit.mjs +2 -2
  22. package/dist/helpers/twigWrapper/charClass.mjs +21 -16
  23. package/dist/helpers/twigWrapper/filters/arrays.mjs +43 -42
  24. package/dist/helpers/twigWrapper/filters/filters.mjs +3 -3
  25. package/dist/helpers/twigWrapper/filters/index.mjs +4 -4
  26. package/dist/helpers/twigWrapper/filters/misc.mjs +14 -13
  27. package/dist/helpers/twigWrapper/filters/objects.mjs +50 -49
  28. package/dist/helpers/twigWrapper/filters/strings.mjs +41 -40
  29. package/dist/helpers/twigWrapper/filters/types.d.ts +4 -0
  30. package/dist/helpers/twigWrapper/filters/types.mjs +2 -2
  31. package/dist/hooks/index.d.ts +2 -1
  32. package/dist/hooks/index.mjs +3 -2
  33. package/dist/hooks/usePrePaint.d.ts +12 -0
  34. package/dist/hooks/usePrePaint.mjs +8 -0
  35. package/dist/navigation/index.d.ts +2 -1
  36. package/dist/navigation/index.mjs +4 -3
  37. package/dist/navigation/notFoundPages.d.ts +25 -0
  38. package/dist/navigation/notFoundPages.mjs +11 -0
  39. package/dist/navigation/routes.d.ts +2 -0
  40. package/dist/navigation/routes.mjs +2 -1
  41. package/dist/navigation/sitemap.d.ts +8 -0
  42. package/dist/navigation/sitemap.mjs +7 -4
  43. package/dist/network/graphql/builder/Mutations/Space/SpaceCancelDeployMutation.d.ts +7 -0
  44. package/dist/network/graphql/builder/Mutations/Space/SpaceCancelDeployMutation.mjs +3 -0
  45. package/dist/network/graphql/builder/Mutations/Space/SpaceCancelScheduledPublishMutation.d.ts +6 -0
  46. package/dist/network/graphql/builder/Mutations/Space/SpaceCancelScheduledPublishMutation.mjs +3 -0
  47. package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.d.ts +1 -1
  48. package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +1 -1
  49. package/dist/network/graphql/builder/Mutations/Space/SpaceRedeployMutation.d.ts +5 -0
  50. package/dist/network/graphql/builder/Mutations/Space/SpaceRedeployMutation.mjs +3 -0
  51. package/dist/network/graphql/builder/Mutations/Space/SpaceRollbackMutation.d.ts +5 -0
  52. package/dist/network/graphql/builder/Mutations/Space/SpaceRollbackMutation.mjs +3 -0
  53. package/dist/network/graphql/builder/Mutations/Space/SpaceSchedulePublishMutation.d.ts +5 -0
  54. package/dist/network/graphql/builder/Mutations/Space/SpaceSchedulePublishMutation.mjs +3 -0
  55. package/dist/network/graphql/builder/Mutations/Space/SpaceSetTargetMutation.d.ts +10 -0
  56. package/dist/network/graphql/builder/Mutations/Space/SpaceSetTargetMutation.mjs +3 -0
  57. package/dist/network/graphql/builder/Mutations/Space/SpaceTargetAutomationMutation.d.ts +11 -0
  58. package/dist/network/graphql/builder/Mutations/Space/SpaceTargetAutomationMutation.mjs +3 -0
  59. package/dist/network/graphql/builder/Mutations/index.d.ts +14 -0
  60. package/dist/network/graphql/builder/Mutations/index.mjs +88 -74
  61. package/dist/network/graphql/builder/Queries/Space/SpaceDeployDetailQuery.d.ts +7 -0
  62. package/dist/network/graphql/builder/Queries/Space/SpaceDeployDetailQuery.mjs +3 -0
  63. package/dist/network/graphql/builder/Queries/Space/SpacePublishCheckQuery.d.ts +7 -0
  64. package/dist/network/graphql/builder/Queries/Space/SpacePublishCheckQuery.mjs +3 -0
  65. package/dist/network/graphql/builder/Queries/Space/SpaceReleasesQuery.d.ts +7 -0
  66. package/dist/network/graphql/builder/Queries/Space/SpaceReleasesQuery.mjs +3 -0
  67. package/dist/network/graphql/builder/Queries/Space/SpaceScheduledPublishesQuery.d.ts +7 -0
  68. package/dist/network/graphql/builder/Queries/Space/SpaceScheduledPublishesQuery.mjs +3 -0
  69. package/dist/network/graphql/builder/Queries/Space/SpaceSnapshotsQuery.d.ts +7 -0
  70. package/dist/network/graphql/builder/Queries/Space/SpaceSnapshotsQuery.mjs +3 -0
  71. package/dist/network/graphql/builder/Queries/Space/SpaceTargetsQuery.d.ts +7 -0
  72. package/dist/network/graphql/builder/Queries/Space/SpaceTargetsQuery.mjs +3 -0
  73. package/dist/network/graphql/builder/Queries/Space/SpaceVersionChangesQuery.d.ts +7 -0
  74. package/dist/network/graphql/builder/Queries/Space/SpaceVersionChangesQuery.mjs +3 -0
  75. package/dist/network/graphql/builder/Queries/index.d.ts +14 -0
  76. package/dist/network/graphql/builder/Queries/index.mjs +38 -24
  77. package/dist/react/index.d.ts +1 -1
  78. package/dist/refusals/index.d.ts +112 -0
  79. package/dist/refusals/index.mjs +94 -0
  80. package/dist/schema/aiCrawlers.d.ts +25 -0
  81. package/dist/schema/aiCrawlers.mjs +34 -0
  82. package/dist/schema/documentParts.d.ts +45 -0
  83. package/dist/schema/documentParts.mjs +73 -0
  84. package/dist/schema/index.d.ts +3 -0
  85. package/dist/schema/index.mjs +21 -18
  86. package/dist/schema/pageAccess.d.ts +6 -0
  87. package/dist/schema/pageAccess.mjs +23 -23
  88. package/dist/schema/plitziMark.d.ts +9 -0
  89. package/dist/schema/plitziMark.mjs +3 -0
  90. package/dist/schema/schemaSettings.d.ts +1 -1
  91. package/dist/schema/schemaSettings.mjs +1 -1
  92. package/dist/schema/serverElements.d.ts +5 -0
  93. package/dist/store/runtimeStatePersist.mjs +10 -10
  94. package/dist/store/storeHooks.d.ts +45 -45
  95. package/dist/style/runtimeStyle.d.ts +5 -2
  96. package/dist/style/runtimeStyle.mjs +1 -1
  97. package/dist/types/ActionTypes.d.ts +2 -0
  98. package/dist/types/AuthTypes.d.ts +5 -0
  99. package/dist/types/SchemaTypes.d.ts +31 -4
  100. package/dist/types/ServerTypes.d.ts +6 -0
  101. package/dist/types/SpaceTypes.d.ts +277 -6
  102. package/dist/types/StoreTypes.d.ts +11 -0
  103. package/eslint.config.mjs +123 -100
  104. package/package.json +9 -13
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The AI crawlers a space's `/robots.txt` may keep out, by what they do — so whoever owns the space decides each on its
3
+ * own (`settings.blockAiCrawlers`). One switch for all of them kept assistants out of a product whose way in is an
4
+ * agent; now a site may refuse to train a model and still be read for a person who asked.
5
+ *
6
+ * - `training` — gathering pages to train models.
7
+ * - `assistants` — an assistant fetching a page because a person asked it to, now.
8
+ * - `search` — building the index an AI search answers from.
9
+ *
10
+ * Each by the user agent it reads `/robots.txt` as. A search engine's own crawler is none of them: Googlebot reads on,
11
+ * Google-Extended (the one that trains) does not.
12
+ */
13
+ export declare const AI_CRAWLERS: {
14
+ readonly training: readonly ["GPTBot", "ClaudeBot", "anthropic-ai", "Google-Extended", "Applebot-Extended", "CCBot", "Bytespider", "Amazonbot", "meta-externalagent"];
15
+ readonly assistants: readonly ["ChatGPT-User", "Claude-User", "Perplexity-User", "MistralAI-User"];
16
+ readonly search: readonly ["OAI-SearchBot", "Claude-SearchBot", "PerplexityBot"];
17
+ };
18
+ /** The kinds, in the order a setting lists them: a tuple, so a schema validator can take it as its values. */
19
+ export declare const AI_CRAWLER_KINDS: readonly ["training", "assistants", "search"];
20
+ export type AiCrawlerKind = (typeof AI_CRAWLER_KINDS)[number];
21
+ /** What each kind is, in the words a setting shows its owner. */
22
+ export declare const AI_CRAWLER_KIND_LABEL: Record<AiCrawlerKind, string>;
23
+ export declare const isAiCrawlerKind: (value: unknown) => value is AiCrawlerKind;
24
+ /** The user agents a space keeps out, for the kinds it names — none when it names none, or names them wrong. */
25
+ export declare const blockedAiCrawlers: (kinds: unknown) => string[];
@@ -0,0 +1,34 @@
1
+ // src/schema/aiCrawlers.ts
2
+ var e = {
3
+ training: [
4
+ "GPTBot",
5
+ "ClaudeBot",
6
+ "anthropic-ai",
7
+ "Google-Extended",
8
+ "Applebot-Extended",
9
+ "CCBot",
10
+ "Bytespider",
11
+ "Amazonbot",
12
+ "meta-externalagent"
13
+ ],
14
+ assistants: [
15
+ "ChatGPT-User",
16
+ "Claude-User",
17
+ "Perplexity-User",
18
+ "MistralAI-User"
19
+ ],
20
+ search: [
21
+ "OAI-SearchBot",
22
+ "Claude-SearchBot",
23
+ "PerplexityBot"
24
+ ]
25
+ }, t = [
26
+ "training",
27
+ "assistants",
28
+ "search"
29
+ ], n = {
30
+ training: "Crawlers that train AI models",
31
+ assistants: "Assistants fetching a page for a person",
32
+ search: "AI search indexes"
33
+ }, r = (t) => typeof t == "string" && t in e, i = (t) => Array.isArray(t) ? t.filter(r).flatMap((t) => [...e[t]]) : [];
34
+ export { e as AI_CRAWLERS, t as AI_CRAWLER_KINDS, n as AI_CRAWLER_KIND_LABEL, i as blockedAiCrawlers, r as isAiCrawlerKind };
@@ -0,0 +1,45 @@
1
+ import { Element, Schema } from '../types';
2
+ /**
3
+ * The space sent in parts: a shell — everything but the pages' and layouts' own elements — and a part
4
+ * per page and per layout, fetched as a page that needs it is opened. A visitor of one page downloads that page and its
5
+ * layouts, not the whole site.
6
+ *
7
+ * The shell keeps every root — each page and layout element itself, with its attributes and its `items` — so the space
8
+ * routes, lists its pages and resolves a page's layouts as the whole did; `schema.parts` names, for each root whose
9
+ * elements are elsewhere, the part that holds them. Only a page server sends it this way: the SDK alone, the builder
10
+ * and the MCP read the whole document, which has no `parts`.
11
+ */
12
+ /** The elements of one root (a page or a layout) that the shell leaves out. */
13
+ export type DocumentPart = {
14
+ root: string;
15
+ flat: Record<string, Element>;
16
+ };
17
+ /** A schema split: its shell, and its parts by the name the shell gives them. */
18
+ export type SplitSchema = {
19
+ shell: Schema;
20
+ parts: ReadonlyMap<string, DocumentPart>;
21
+ };
22
+ /** A page's layouts, innermost first: what must be drawn around it. */
23
+ export declare const pageLayouts: (flat: Schema["flat"], pageId: string) => string[];
24
+ /**
25
+ * The schema as a shell and parts. A page `withheld` from this visitor (`withholdPages`) has no part; nor has a layout no
26
+ * page of theirs is drawn in — a console's shell, to a visitor of the website — which the shell names with `''`: only the
27
+ * server draws it, so a link to such a page loads it from there. `nameOf` names a part by its content.
28
+ */
29
+ export declare const splitSchema: (schema: Schema, nameOf: (part: DocumentPart) => string, withheld?: readonly string[]) => SplitSchema;
30
+ /**
31
+ * The roots a page needs and the shell does not hold: the page's own part and its layouts', by root; the parts of the
32
+ * pages at its address; and, for a page withheld from this visitor, the page the space draws in its place
33
+ * (`settings.withheldPage`). A page at its address that is withheld from this visitor — a part named `''`, its layouts
34
+ * too — is not among them: the router changes to it only once the visitor changes, and a page kept from the visitor the
35
+ * document was sent for is loaded from the server then. Counted, a guest's every link to the home loaded the whole page
36
+ * from the server, for the signed-in home beside it.
37
+ */
38
+ export declare const missingParts: (schema: Pick<Schema, "flat" | "parts" | "pages"> & Partial<Pick<Schema, "settings">>, pageId: string) => string[];
39
+ /**
40
+ * The schema with parts put in: their elements in `flat`, their roots off `parts` — a new object, so whatever is kept
41
+ * by the old one (a page's element types) is worked out again. `parts` goes once nothing is left out.
42
+ */
43
+ export declare const withParts: (schema: Schema, added: readonly DocumentPart[]) => Schema;
44
+ /** The shell with a page's own part and its layouts' in it: the document a page server sends with that page. */
45
+ export declare const schemaForPage: (split: SplitSchema, pageId: string) => Schema;
@@ -0,0 +1,73 @@
1
+ import { resolveLayoutChain as e } from "./layoutChain.mjs";
2
+ import { pageWithheldOf as t, withheldPageOf as n } from "./pageAccess.mjs";
3
+ // src/schema/documentParts.ts
4
+ var r = (e, t) => {
5
+ let n = e?.attributes[t];
6
+ return typeof n == "string" ? n : "";
7
+ }, i = (t, n) => {
8
+ let i = t[n];
9
+ return i ? e((e) => t[e], r(i, "layout"), r(i, "layoutContainer")).map((e) => e.layout) : [];
10
+ }, a = (e, t, n) => {
11
+ let i = {}, a = [...e[t]?.definition.items ?? []];
12
+ for (; a.length > 0;) {
13
+ let t = a.pop();
14
+ if (t === void 0 || Object.hasOwn(i, t) || n.has(t)) continue;
15
+ let o = e[t];
16
+ if (!o) continue;
17
+ i[t] = o, a.push(...o.definition.items ?? []);
18
+ let s = r(o, "referenceId");
19
+ o.definition.type === "reference" && s && o.attributes.referenceType !== "component" && a.push(s);
20
+ }
21
+ return i;
22
+ }, o = (e, t, n = []) => {
23
+ let { flat: r } = e, o = new Set(Object.keys(r).filter((e) => r[e].definition.rootId === e)), s = new Set(n), c = e.pages.filter((e) => o.has(e) && !s.has(e)), l = new Set(c.flatMap((e) => i(r, e))), u = {}, d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set();
24
+ for (let n of o) {
25
+ let i = e.pages.includes(n), c = r[n].definition.type === "layoutContainer";
26
+ if (!i && !c) continue;
27
+ let p = a(r, n, o);
28
+ if (Object.keys(p).length === 0) continue;
29
+ for (let e of Object.keys(p)) f.add(e);
30
+ if (i && s.has(n) || c && !i && !l.has(n)) {
31
+ u[n] = "";
32
+ continue;
33
+ }
34
+ let m = {
35
+ root: n,
36
+ flat: p
37
+ }, h = t(m);
38
+ u[n] = h, d.set(h, m);
39
+ }
40
+ let p = {};
41
+ for (let [e, t] of Object.entries(r)) (!f.has(e) || o.has(e)) && (p[e] = t);
42
+ return {
43
+ shell: {
44
+ ...e,
45
+ flat: p,
46
+ parts: u
47
+ },
48
+ parts: d
49
+ };
50
+ }, s = (e, a) => {
51
+ let { parts: o } = e;
52
+ if (!o) return [];
53
+ let s = e.flat[a], c = t(s?.attributes) ? n(e) : void 0, l = (e) => typeof e?.attributes.slug == "string" ? `${r(e, "folder")}/${e.attributes.slug}` : void 0, u = l(s), d = u === void 0 ? [] : e.pages.filter((t) => t !== a && l(e.flat[t]) === u), f = [a, ...i(e.flat, a)], p = d.flatMap((t) => [t, ...i(e.flat, t)]).filter((e) => o[e] !== "");
54
+ return [.../* @__PURE__ */ new Set([
55
+ ...f,
56
+ ...p,
57
+ ...c ? [c] : []
58
+ ])].filter((e) => Object.hasOwn(o, e));
59
+ }, c = (e, t) => {
60
+ if (t.length === 0 || !e.parts) return e;
61
+ let n = { ...e.flat };
62
+ for (let e of t) Object.assign(n, e.flat);
63
+ let r = new Set(t.map((e) => e.root)), i = Object.fromEntries(Object.entries(e.parts).filter(([e]) => !r.has(e))), a = {
64
+ ...e,
65
+ flat: n,
66
+ parts: i
67
+ };
68
+ return Object.keys(i).length === 0 && delete a.parts, a;
69
+ }, l = (e, t) => c(e.shell, s(e.shell, t).flatMap((t) => {
70
+ let n = e.shell.parts?.[t], r = n ? e.parts.get(n) : void 0;
71
+ return r ? [r] : [];
72
+ }));
73
+ export { s as missingParts, i as pageLayouts, l as schemaForPage, o as splitSchema, c as withParts };
@@ -1,12 +1,15 @@
1
+ export * from './aiCrawlers';
1
2
  export * from './anchor';
2
3
  export * from './schemaConstants';
3
4
  export * from './layoutChain';
5
+ export * from './documentParts';
4
6
  export * from './serverElements';
5
7
  export * from './providerAnswer';
6
8
  export * from './providerWhen';
7
9
  export * from './serverInput';
8
10
  export * from './serverQuery';
9
11
  export * from './pageHead';
12
+ export * from './plitziMark';
10
13
  export * from './schemaSettings';
11
14
  export * from './snippet';
12
15
  export * from './motion';
@@ -1,18 +1,21 @@
1
- import { ANCHOR_PATTERN as e, anchorOf as t, isAnchor as n, uniqueAnchor as r } from "./anchor.mjs";
2
- import { COMPONENT_PROPS_SOURCE as i, EMPTY_SCHEMA as a, VARIABLE_REGEX as o } from "./schemaConstants.mjs";
3
- import { findLayoutCycle as s, resolveLayoutChain as c } from "./layoutChain.mjs";
4
- import { RSC_FAILURE as l, collectServerElements as u, hasServerElements as d, jsonForScript as f, notFoundProvider as p, pageNotFound as m, pageSeoText as h, pageServerContext as g, pageStructuredData as _, rscFailureOf as v } from "./serverElements.mjs";
5
- import { isEmptyAnswer as y } from "./providerAnswer.mjs";
6
- import { isRuleGroup as b, serverProviderSource as x, serverWhenValues as S, whenOf as C, whenPaths as w, whenProviders as T, whenUnknownToServer as E } from "./providerWhen.mjs";
7
- import { browserServerInput as D, inputProviders as O, inputReadings as k, serverInputOf as A } from "./serverInput.mjs";
8
- import { serverQueryOf as j, serverQueryProblem as M } from "./serverQuery.mjs";
9
- import { DEFAULT_FAVICON as N, OG_TYPES as P, absoluteAddress as F, isHeadAddress as I, isOgType as L, pageHeadTags as R, spaceIdentity as z, spaceIdentityProblems as B } from "./pageHead.mjs";
10
- import { SCHEMA_SETTINGS as V, isSchemaSetting as H } from "./schemaSettings.mjs";
11
- import { isSnippet as U } from "./snippet.mjs";
12
- import { MOTION_DEFAULT_DURATION as W, MOTION_EASING_KEYWORDS as G, MOTION_ENTERS as K, MOTION_ENTER_EASING as q, MOTION_ENTER_FRAMES as J, MOTION_ENTER_FROM as Y, MOTION_ENTER_TRAVEL as X, MOTION_LOOPS as Z, MOTION_LOOP_FRAMES as Q, MOTION_MAX_DISTANCE as $, MOTION_MAX_MS as ee, MOTION_PLAY_CSS as te, MOTION_SEEN_ATTRIBUTE as ne, MOTION_SEEN_CSS as re, MOTION_STILL_CSS as ie, MOTION_TRAVEL_PROPERTY as ae, MOTION_TRIGGERS as oe, MOTION_VIEW_SELECTOR as se, MOVING_SELECTOR as ce, isMotion as le, isMotionAnimation as ue, isMotionEasing as de, motionAttributes as fe, motionProblems as pe, travelled as me } from "./motion.mjs";
13
- import { revealOnView as he } from "./motionReveal.mjs";
14
- import { elementFromWire as ge, schemaFromWire as _e, schemaToWire as ve } from "./wire.mjs";
15
- import { pageElementTypes as ye } from "./pageElements.mjs";
16
- import { headingText as be, markdownHeadings as xe } from "./markdownHeadings.mjs";
17
- import { NOT_FOUND_WHEN_REFUSED as Se, WITHHELD_ATTRIBUTE as Ce, mayReceive as we, notFoundWhenRefused as Te, pageAccessOf as Ee, pageAccessRefusal as De, pageWithheldOf as Oe, withheldPageOf as ke, withholdPages as Ae } from "./pageAccess.mjs";
18
- export { e as ANCHOR_PATTERN, i as COMPONENT_PROPS_SOURCE, N as DEFAULT_FAVICON, a as EMPTY_SCHEMA, W as MOTION_DEFAULT_DURATION, G as MOTION_EASING_KEYWORDS, K as MOTION_ENTERS, q as MOTION_ENTER_EASING, J as MOTION_ENTER_FRAMES, Y as MOTION_ENTER_FROM, X as MOTION_ENTER_TRAVEL, Z as MOTION_LOOPS, Q as MOTION_LOOP_FRAMES, $ as MOTION_MAX_DISTANCE, ee as MOTION_MAX_MS, te as MOTION_PLAY_CSS, ne as MOTION_SEEN_ATTRIBUTE, re as MOTION_SEEN_CSS, ie as MOTION_STILL_CSS, ae as MOTION_TRAVEL_PROPERTY, oe as MOTION_TRIGGERS, se as MOTION_VIEW_SELECTOR, ce as MOVING_SELECTOR, Se as NOT_FOUND_WHEN_REFUSED, P as OG_TYPES, l as RSC_FAILURE, V as SCHEMA_SETTINGS, o as VARIABLE_REGEX, Ce as WITHHELD_ATTRIBUTE, F as absoluteAddress, t as anchorOf, D as browserServerInput, u as collectServerElements, ge as elementFromWire, s as findLayoutCycle, d as hasServerElements, be as headingText, O as inputProviders, k as inputReadings, n as isAnchor, y as isEmptyAnswer, I as isHeadAddress, le as isMotion, ue as isMotionAnimation, de as isMotionEasing, L as isOgType, b as isRuleGroup, H as isSchemaSetting, U as isSnippet, f as jsonForScript, xe as markdownHeadings, we as mayReceive, fe as motionAttributes, pe as motionProblems, p as notFoundProvider, Te as notFoundWhenRefused, Ee as pageAccessOf, De as pageAccessRefusal, ye as pageElementTypes, R as pageHeadTags, m as pageNotFound, h as pageSeoText, g as pageServerContext, _ as pageStructuredData, Oe as pageWithheldOf, c as resolveLayoutChain, he as revealOnView, v as rscFailureOf, _e as schemaFromWire, ve as schemaToWire, A as serverInputOf, x as serverProviderSource, j as serverQueryOf, M as serverQueryProblem, S as serverWhenValues, z as spaceIdentity, B as spaceIdentityProblems, me as travelled, r as uniqueAnchor, C as whenOf, w as whenPaths, T as whenProviders, E as whenUnknownToServer, ke as withheldPageOf, Ae as withholdPages };
1
+ import { AI_CRAWLERS as e, AI_CRAWLER_KINDS as t, AI_CRAWLER_KIND_LABEL as n, blockedAiCrawlers as r, isAiCrawlerKind as i } from "./aiCrawlers.mjs";
2
+ import { ANCHOR_PATTERN as a, anchorOf as o, isAnchor as s, uniqueAnchor as c } from "./anchor.mjs";
3
+ import { COMPONENT_PROPS_SOURCE as l, EMPTY_SCHEMA as u, VARIABLE_REGEX as d } from "./schemaConstants.mjs";
4
+ import { findLayoutCycle as f, resolveLayoutChain as p } from "./layoutChain.mjs";
5
+ import { missingParts as m, pageLayouts as h, schemaForPage as g, splitSchema as _, withParts as v } from "./documentParts.mjs";
6
+ import { RSC_FAILURE as y, collectServerElements as b, hasServerElements as x, jsonForScript as S, notFoundProvider as C, pageNotFound as w, pageSeoText as T, pageServerContext as E, pageStructuredData as D, rscFailureOf as O } from "./serverElements.mjs";
7
+ import { isEmptyAnswer as k } from "./providerAnswer.mjs";
8
+ import { isRuleGroup as A, serverProviderSource as j, serverWhenValues as M, whenOf as N, whenPaths as P, whenProviders as F, whenUnknownToServer as I } from "./providerWhen.mjs";
9
+ import { browserServerInput as L, inputProviders as R, inputReadings as z, serverInputOf as B } from "./serverInput.mjs";
10
+ import { serverQueryOf as V, serverQueryProblem as H } from "./serverQuery.mjs";
11
+ import { DEFAULT_FAVICON as U, OG_TYPES as W, absoluteAddress as G, isHeadAddress as K, isOgType as q, pageHeadTags as J, spaceIdentity as Y, spaceIdentityProblems as X } from "./pageHead.mjs";
12
+ import { PLITZI_MARK_DATA_URL as Z, PLITZI_MARK_SVG as Q } from "./plitziMark.mjs";
13
+ import { SCHEMA_SETTINGS as $, isSchemaSetting as ee } from "./schemaSettings.mjs";
14
+ import { isSnippet as te } from "./snippet.mjs";
15
+ import { MOTION_DEFAULT_DURATION as ne, MOTION_EASING_KEYWORDS as re, MOTION_ENTERS as ie, MOTION_ENTER_EASING as ae, MOTION_ENTER_FRAMES as oe, MOTION_ENTER_FROM as se, MOTION_ENTER_TRAVEL as ce, MOTION_LOOPS as le, MOTION_LOOP_FRAMES as ue, MOTION_MAX_DISTANCE as de, MOTION_MAX_MS as fe, MOTION_PLAY_CSS as pe, MOTION_SEEN_ATTRIBUTE as me, MOTION_SEEN_CSS as he, MOTION_STILL_CSS as ge, MOTION_TRAVEL_PROPERTY as _e, MOTION_TRIGGERS as ve, MOTION_VIEW_SELECTOR as ye, MOVING_SELECTOR as be, isMotion as xe, isMotionAnimation as Se, isMotionEasing as Ce, motionAttributes as we, motionProblems as Te, travelled as Ee } from "./motion.mjs";
16
+ import { revealOnView as De } from "./motionReveal.mjs";
17
+ import { elementFromWire as Oe, schemaFromWire as ke, schemaToWire as Ae } from "./wire.mjs";
18
+ import { pageElementTypes as je } from "./pageElements.mjs";
19
+ import { headingText as Me, markdownHeadings as Ne } from "./markdownHeadings.mjs";
20
+ import { NOT_FOUND_WHEN_REFUSED as Pe, WITHHELD_ATTRIBUTE as Fe, mayReceive as Ie, notFoundWhenRefused as Le, pageAccessOf as Re, pageAccessRefusal as ze, pageWithheldOf as Be, protectedAccessOf as Ve, withheldPageOf as He, withholdPages as Ue } from "./pageAccess.mjs";
21
+ export { e as AI_CRAWLERS, t as AI_CRAWLER_KINDS, n as AI_CRAWLER_KIND_LABEL, a as ANCHOR_PATTERN, l as COMPONENT_PROPS_SOURCE, U as DEFAULT_FAVICON, u as EMPTY_SCHEMA, ne as MOTION_DEFAULT_DURATION, re as MOTION_EASING_KEYWORDS, ie as MOTION_ENTERS, ae as MOTION_ENTER_EASING, oe as MOTION_ENTER_FRAMES, se as MOTION_ENTER_FROM, ce as MOTION_ENTER_TRAVEL, le as MOTION_LOOPS, ue as MOTION_LOOP_FRAMES, de as MOTION_MAX_DISTANCE, fe as MOTION_MAX_MS, pe as MOTION_PLAY_CSS, me as MOTION_SEEN_ATTRIBUTE, he as MOTION_SEEN_CSS, ge as MOTION_STILL_CSS, _e as MOTION_TRAVEL_PROPERTY, ve as MOTION_TRIGGERS, ye as MOTION_VIEW_SELECTOR, be as MOVING_SELECTOR, Pe as NOT_FOUND_WHEN_REFUSED, W as OG_TYPES, Z as PLITZI_MARK_DATA_URL, Q as PLITZI_MARK_SVG, y as RSC_FAILURE, $ as SCHEMA_SETTINGS, d as VARIABLE_REGEX, Fe as WITHHELD_ATTRIBUTE, G as absoluteAddress, o as anchorOf, r as blockedAiCrawlers, L as browserServerInput, b as collectServerElements, Oe as elementFromWire, f as findLayoutCycle, x as hasServerElements, Me as headingText, R as inputProviders, z as inputReadings, i as isAiCrawlerKind, s as isAnchor, k as isEmptyAnswer, K as isHeadAddress, xe as isMotion, Se as isMotionAnimation, Ce as isMotionEasing, q as isOgType, A as isRuleGroup, ee as isSchemaSetting, te as isSnippet, S as jsonForScript, Ne as markdownHeadings, Ie as mayReceive, m as missingParts, we as motionAttributes, Te as motionProblems, C as notFoundProvider, Le as notFoundWhenRefused, Re as pageAccessOf, ze as pageAccessRefusal, je as pageElementTypes, J as pageHeadTags, h as pageLayouts, w as pageNotFound, T as pageSeoText, E as pageServerContext, D as pageStructuredData, Be as pageWithheldOf, Ve as protectedAccessOf, p as resolveLayoutChain, De as revealOnView, O as rscFailureOf, g as schemaForPage, ke as schemaFromWire, Ae as schemaToWire, B as serverInputOf, j as serverProviderSource, V as serverQueryOf, H as serverQueryProblem, M as serverWhenValues, Y as spaceIdentity, X as spaceIdentityProblems, _ as splitSchema, Ee as travelled, c as uniqueAnchor, N as whenOf, P as whenPaths, F as whenProviders, I as whenUnknownToServer, v as withParts, He as withheldPageOf, Ue as withholdPages };
@@ -24,6 +24,12 @@ export declare const NOT_FOUND_WHEN_REFUSED = "notFound";
24
24
  export declare const notFoundWhenRefused: (attributes: Record<string, unknown> | undefined) => boolean;
25
25
  /** A page's access, when its attributes declare one — at least one permission, each a name — or nothing. */
26
26
  export declare const pageAccessOf: (attributes: Record<string, unknown> | undefined) => PageAccess | undefined;
27
+ /**
28
+ * What keeps a page from a visitor, or nothing for a page anybody may open: the permissions it declares (`access`) — or,
29
+ * for one only for signed-in visitors (`accessLevel: 'authenticated'`), a session and no permission. What the server
30
+ * withholds a page by (`withholdPages`), and what the builder marks a protected page and folder with.
31
+ */
32
+ export declare const protectedAccessOf: (attributes: Record<string, unknown> | undefined) => PageAccess | undefined;
27
33
  /** Why this visitor may not see a page that declares `access`, or nothing when they may — or when it declares none. */
28
34
  export declare const pageAccessRefusal: (access: PageAccess | undefined, caller: AccessCaller) => "unauthenticated" | "forbidden" | undefined;
29
35
  /** The attribute a withheld page carries in the space the browser is sent: why it was withheld. */
@@ -7,59 +7,59 @@ var t = "notFound", n = (e) => e?.unauthorizedBehaviour === t, r = (e) => {
7
7
  if (!Array.isArray(n)) return;
8
8
  let r = n.filter((e) => typeof e == "string" && e !== "");
9
9
  return r.length > 0 ? { permissions: r } : void 0;
10
- }, i = (t, n) => t ? e({
10
+ }, i = (e) => r(e) ?? (e?.accessLevel === "authenticated" ? { permissions: [] } : void 0), a = (t, n) => t ? e({
11
11
  mode: "role",
12
12
  permissions: t.permissions
13
- }, n) : void 0, a = "withheld", o = (e) => {
14
- let t = e?.[a];
13
+ }, n) : void 0, o = "withheld", s = (e) => {
14
+ let t = e?.[o];
15
15
  return t === "unauthenticated" || t === "forbidden" ? t : void 0;
16
- }, s = (e) => {
16
+ }, c = (e) => {
17
17
  let t = e.settings?.withheldPage;
18
18
  if (t === void 0 || !e.pages?.includes(t)) return;
19
19
  let n = e.flat[t];
20
20
  return n && !r(n.attributes) ? t : void 0;
21
- }, c = (e, t) => {
22
- let a = /* @__PURE__ */ new Map(), o = [];
21
+ }, l = (e, t) => {
22
+ let r = /* @__PURE__ */ new Map(), o = [];
23
23
  for (let s of e.pages) {
24
- let c = e.flat[s]?.attributes, l = n(c), u = r(c) ?? (l && c?.accessLevel === "authenticated" ? { permissions: [] } : void 0);
24
+ let c = e.flat[s]?.attributes, l = n(c), u = i(c);
25
25
  if (!u) continue;
26
- let d = i(u, t);
27
- d ? a.set(s, l ? "hidden" : d) : o.push(u);
26
+ let d = a(u, t);
27
+ d ? r.set(s, l ? "hidden" : d) : o.push(u);
28
28
  }
29
- return a.size === 0 ? {
29
+ return r.size === 0 ? {
30
30
  schema: e,
31
31
  withheld: [],
32
32
  kept: o
33
33
  } : {
34
- schema: d(e, a),
35
- withheld: [...a.keys()],
34
+ schema: f(e, r),
35
+ withheld: [...r.keys()],
36
36
  kept: o
37
37
  };
38
- }, l = /* @__PURE__ */ new WeakMap(), u = 16, d = (e, t) => {
39
- let n = [...t].map(([e, t]) => `${e}:${t}`).join("\n"), r = l.get(e) ?? /* @__PURE__ */ new Map();
40
- l.set(e, r);
38
+ }, u = /* @__PURE__ */ new WeakMap(), d = 16, f = (e, t) => {
39
+ let n = [...t].map(([e, t]) => `${e}:${t}`).join("\n"), r = u.get(e) ?? /* @__PURE__ */ new Map();
40
+ u.set(e, r);
41
41
  let i = r.get(n);
42
42
  if (i) return i;
43
- let o = {};
43
+ let a = {};
44
44
  for (let [n, r] of Object.entries(e.flat)) {
45
45
  let e = t.get(n);
46
- e !== "hidden" && (e ? o[n] = {
46
+ e !== "hidden" && (e ? a[n] = {
47
47
  ...r,
48
48
  attributes: {
49
49
  ...r.attributes,
50
- [a]: e
50
+ [o]: e
51
51
  },
52
52
  definition: {
53
53
  ...r.definition,
54
54
  items: []
55
55
  }
56
- } : n !== r.definition.rootId && t.has(r.definition.rootId) || (o[n] = r));
56
+ } : n !== r.definition.rootId && t.has(r.definition.rootId) || (a[n] = r));
57
57
  }
58
58
  let s = [...t].filter(([, e]) => e === "hidden").map(([e]) => e), c = {
59
59
  ...e,
60
- flat: o,
60
+ flat: a,
61
61
  ...s.length > 0 ? { pages: e.pages.filter((e) => !s.includes(e)) } : {}
62
62
  };
63
- return r.size >= u && r.delete(r.keys().next().value ?? ""), r.set(n, c), c;
64
- }, f = (e, t) => e.every((e) => i(e, t) === void 0);
65
- export { t as NOT_FOUND_WHEN_REFUSED, a as WITHHELD_ATTRIBUTE, f as mayReceive, n as notFoundWhenRefused, r as pageAccessOf, i as pageAccessRefusal, o as pageWithheldOf, s as withheldPageOf, c as withholdPages };
63
+ return r.size >= d && r.delete(r.keys().next().value ?? ""), r.set(n, c), c;
64
+ }, p = (e, t) => e.every((e) => a(e, t) === void 0);
65
+ export { t as NOT_FOUND_WHEN_REFUSED, o as WITHHELD_ATTRIBUTE, p as mayReceive, n as notFoundWhenRefused, r as pageAccessOf, a as pageAccessRefusal, s as pageWithheldOf, i as protectedAccessOf, c as withheldPageOf, l as withholdPages };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Plitzi's mark — the stacked layers, the home's, which the spaces draw as Font Awesome's `layer-group` glyph
3
+ * — as a picture: white layers on the brand's violet, in a rounded square that reads at a tab's 16 px. The one drawing
4
+ * every surface shows where it cannot draw the glyph: a tab that names no icon, the builder's bar, a static deploy, a
5
+ * mail (rasterized). The layers are Font Awesome Free's glyph, CC BY 4.0, its attribution kept in the drawing.
6
+ */
7
+ export declare const PLITZI_MARK_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><!-- The layers: Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0) Copyright 2026 Fonticons, Inc. --><rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#5b3df5\"/><path fill=\"#ffffff\" transform=\"translate(102 102) scale(0.6)\" d=\"M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z\"/></svg>";
8
+ /** The mark as an address a page can draw it from without asking any site for it: `<img src>`, a link's icon. */
9
+ export declare const PLITZI_MARK_DATA_URL: string;
@@ -0,0 +1,3 @@
1
+ // src/schema/plitziMark.ts
2
+ var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><!-- The layers: Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0) Copyright 2026 Fonticons, Inc. --><rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#5b3df5\"/><path fill=\"#ffffff\" transform=\"translate(102 102) scale(0.6)\" d=\"M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z\"/></svg>", t = `data:image/svg+xml,${encodeURIComponent(e)}`;
3
+ export { t as PLITZI_MARK_DATA_URL, e as PLITZI_MARK_SVG };
@@ -4,7 +4,7 @@ import { Schema } from '../types';
4
4
  * builder writes (`SCHEMA_UPDATE_SETTINGS`) and the reader of a space keeps. A key outside it is one nothing reads any
5
5
  * more — `head`, from before a space declared its fonts.
6
6
  */
7
- export declare const SCHEMA_SETTINGS: readonly ["keepState", "stateStorage", "transientState", "keptState", "paintedState", "browserState", "robotsTxt", "blockAiCrawlers", "viewTransitions", "siteName", "language", "favicon", "shareImage", "themeColor", "customCss", "withheldPage", "visitorRoles", "userProvider", "tokenStorage", "loginUrl", "userUrl", "refreshUrl", "logoutUrl", "revokeUrl", "detailsPath", "tokenPath", "refreshTokenPath", "expirationTimePath", "refreshExpirationTimePath", "sessionHintCookie", "sessionExchangeUrl", "mfaUrl", "sessionGate", "sessionRevalidateSeconds", "debugMode", "computed", "channels"];
7
+ export declare const SCHEMA_SETTINGS: readonly ["keepState", "stateStorage", "transientState", "keptState", "paintedState", "browserState", "robotsTxt", "securityTxt", "llmsTxt", "blockAiCrawlers", "viewTransitions", "siteName", "language", "favicon", "shareImage", "themeColor", "customCss", "withheldPage", "wholeDocument", "visitorRoles", "userProvider", "tokenStorage", "loginUrl", "userUrl", "refreshUrl", "logoutUrl", "revokeUrl", "detailsPath", "tokenPath", "refreshTokenPath", "expirationTimePath", "refreshExpirationTimePath", "sessionHintCookie", "sessionExchangeUrl", "mfaUrl", "sessionGate", "sessionRevalidateSeconds", "debugMode", "computed", "channels"];
8
8
  /** Whether a key is a setting a space may carry: one the builder may write, though the space has no value for it yet. */
9
9
  export declare const isSchemaSetting: (key: string) => key is (typeof SCHEMA_SETTINGS)[number];
10
10
  /**
@@ -1,3 +1,3 @@
1
1
  // src/schema/schemaSettings.ts
2
- var e = /* @__PURE__ */ "keepState.stateStorage.transientState.keptState.paintedState.browserState.robotsTxt.blockAiCrawlers.viewTransitions.siteName.language.favicon.shareImage.themeColor.customCss.withheldPage.visitorRoles.userProvider.tokenStorage.loginUrl.userUrl.refreshUrl.logoutUrl.revokeUrl.detailsPath.tokenPath.refreshTokenPath.expirationTimePath.refreshExpirationTimePath.sessionHintCookie.sessionExchangeUrl.mfaUrl.sessionGate.sessionRevalidateSeconds.debugMode.computed.channels".split("."), t = new Set(e), n = (e) => t.has(e);
2
+ var e = /* @__PURE__ */ "keepState.stateStorage.transientState.keptState.paintedState.browserState.robotsTxt.securityTxt.llmsTxt.blockAiCrawlers.viewTransitions.siteName.language.favicon.shareImage.themeColor.customCss.withheldPage.wholeDocument.visitorRoles.userProvider.tokenStorage.loginUrl.userUrl.refreshUrl.logoutUrl.revokeUrl.detailsPath.tokenPath.refreshTokenPath.expirationTimePath.refreshExpirationTimePath.sessionHintCookie.sessionExchangeUrl.mfaUrl.sessionGate.sessionRevalidateSeconds.debugMode.computed.channels".split("."), t = new Set(e), n = (e) => t.has(e);
3
3
  export { e as SCHEMA_SETTINGS, n as isSchemaSetting };
@@ -6,6 +6,11 @@ export declare const hasServerElements: (schema: Schema, pageId: string | undefi
6
6
  export type ServerNavigation = {
7
7
  routeParams: Record<string, unknown>;
8
8
  queryParams: Record<string, unknown>;
9
+ /**
10
+ * The page's own origin, as the browser's `navigation.origin` says it: an absolute address a page's JSON-LD or picture
11
+ * writes as `{{ navigation.origin }}/…`. Absent when the request names no host it can be built from.
12
+ */
13
+ origin?: string;
9
14
  };
10
15
  /**
11
16
  * The server provider of a page whose answer says the address shows nothing — its `notFound`, a template against
@@ -61,8 +61,8 @@ var d = /* @__PURE__ */ new Set([
61
61
  let b = p(y), x = o.runtime?.state;
62
62
  if (!m) {
63
63
  m = !0;
64
- let e = c(d);
65
- if (e && e.owner !== b) {
64
+ let e = c(d), i = u.userProvider === "server";
65
+ if (e && e.owner !== b && !i) {
66
66
  let i = r(u), a = new Set([...v].filter((n) => !i.has(n) && t(x) && n in x && JSON.stringify(x[n]) === JSON.stringify(e.values[n])));
67
67
  if (t(x) && a.size > 0) {
68
68
  n.setState("runtime.state", g(x, a));
@@ -150,20 +150,20 @@ var d = /* @__PURE__ */ new Set([
150
150
  return i ? m(i, p(r)) : !1;
151
151
  }
152
152
  });
153
- return (i) => {
154
- let o = n(i), s = i.getState().runtime?.state, c = f(i.getState()), l = C(i, e), u = E(i, e);
153
+ return (i, o) => {
154
+ let s = n(i, o), c = i.getState().runtime?.state, l = f(i.getState()), u = C(i, e), d = E(i, e);
155
155
  return {
156
- ...o,
156
+ ...s,
157
157
  onChange: (e) => {
158
- let n = c, d = f(i.getState());
159
- if (d !== void 0 && (c = d), n?.kind === "account" && d !== void 0 && p(d) !== p(n)) {
160
- let e = _(i.getState()), n = b(i.getState().runtime?.state, (t) => r(e).has(t)), o = t(s) ? g(s, a(e)) : s, c = Object.keys(n).length > 0 ? {
158
+ let n = l, o = f(i.getState());
159
+ if (o !== void 0 && (l = o), n?.kind === "account" && o !== void 0 && p(o) !== p(n)) {
160
+ let e = _(i.getState()), n = b(i.getState().runtime?.state, (t) => r(e).has(t)), o = t(c) ? g(c, a(e)) : c, s = Object.keys(n).length > 0 ? {
161
161
  ...t(o) ? o : {},
162
162
  ...n
163
163
  } : o;
164
- i.setState("runtime.state", c);
164
+ i.setState("runtime.state", s);
165
165
  }
166
- o?.onChange?.(e), l(), u();
166
+ s?.onChange?.(e), u(), d();
167
167
  }
168
168
  };
169
169
  };