@selvajs/selva 4.21.0-beta.12 → 4.21.0-beta.13

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 (173) hide show
  1. package/build/adapter-node.js +2 -2
  2. package/build/client/_app/immutable/assets/0.DOeHn583.css +2 -0
  3. package/build/client/_app/immutable/assets/0.DOeHn583.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.DOeHn583.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm +0 -0
  6. package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm.br +0 -0
  7. package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm.gz +0 -0
  8. package/build/client/_app/immutable/chunks/2rFska3d.js +1 -0
  9. package/build/client/_app/immutable/chunks/2rFska3d.js.br +1 -0
  10. package/build/client/_app/immutable/chunks/2rFska3d.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{BgqLT1eu.js → 5M5n6ftO.js} +57 -56
  12. package/build/client/_app/immutable/chunks/5M5n6ftO.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/5M5n6ftO.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/71J-lVIC.js +7 -0
  15. package/build/client/_app/immutable/chunks/71J-lVIC.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/71J-lVIC.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{BFXrROAz.js → BCbumNc2.js} +1 -1
  18. package/build/client/_app/immutable/chunks/BCbumNc2.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BCbumNc2.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/BEzPIk5e.js +1 -0
  21. package/build/client/_app/immutable/chunks/BEzPIk5e.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BEzPIk5e.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/B_4x1b7P.js +1 -0
  24. package/build/client/_app/immutable/chunks/B_4x1b7P.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/B_4x1b7P.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/{D-7q85bk.js → Bs2bQTgl.js} +1 -1
  27. package/build/client/_app/immutable/chunks/Bs2bQTgl.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/Bs2bQTgl.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{C3KJF0qD.js → CzHxHvr2.js} +1 -1
  30. package/build/client/_app/immutable/chunks/CzHxHvr2.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CzHxHvr2.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/Db9exncB.js +1 -0
  33. package/build/client/_app/immutable/chunks/Db9exncB.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/Db9exncB.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/{BfaVYyF5.js → FIoX_cjM.js} +1 -1
  36. package/build/client/_app/immutable/chunks/FIoX_cjM.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/FIoX_cjM.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/{D1Hh95EK.js → aBYenH6-.js} +1 -1
  39. package/build/client/_app/immutable/chunks/aBYenH6-.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/aBYenH6-.js.gz +0 -0
  41. package/build/client/_app/immutable/entry/{app.DkBodfd-.js → app.BP5swwM7.js} +2 -2
  42. package/build/client/_app/immutable/entry/app.BP5swwM7.js.br +0 -0
  43. package/build/client/_app/immutable/entry/app.BP5swwM7.js.gz +0 -0
  44. package/build/client/_app/immutable/nodes/{1.rWI13pjK.js → 1.DmBjtFLw.js} +1 -1
  45. package/build/client/_app/immutable/nodes/1.DmBjtFLw.js.br +0 -0
  46. package/build/client/_app/immutable/nodes/1.DmBjtFLw.js.gz +0 -0
  47. package/build/client/_app/immutable/nodes/{2.BC_cXN9D.js → 2.CWOFnTAV.js} +1 -1
  48. package/build/client/_app/immutable/nodes/2.CWOFnTAV.js.br +0 -0
  49. package/build/client/_app/immutable/nodes/2.CWOFnTAV.js.gz +0 -0
  50. package/build/client/_app/immutable/nodes/{20.BcDEIVaI.js → 20.4vwwwrQ_.js} +1 -1
  51. package/build/client/_app/immutable/nodes/20.4vwwwrQ_.js.br +0 -0
  52. package/build/client/_app/immutable/nodes/20.4vwwwrQ_.js.gz +0 -0
  53. package/build/client/_app/immutable/nodes/21.C1xtue6U.js +1 -0
  54. package/build/client/_app/immutable/nodes/21.C1xtue6U.js.br +0 -0
  55. package/build/client/_app/immutable/nodes/21.C1xtue6U.js.gz +0 -0
  56. package/build/client/_app/immutable/nodes/{25.BhiThFEd.js → 25.DR2ojPn5.js} +1 -1
  57. package/build/client/_app/immutable/nodes/25.DR2ojPn5.js.br +0 -0
  58. package/build/client/_app/immutable/nodes/25.DR2ojPn5.js.gz +0 -0
  59. package/build/client/_app/immutable/nodes/{3.BVyOvlCQ.js → 3.GtVSkcEP.js} +1 -1
  60. package/build/client/_app/immutable/nodes/3.GtVSkcEP.js.br +0 -0
  61. package/build/client/_app/immutable/nodes/3.GtVSkcEP.js.gz +0 -0
  62. package/build/client/_app/immutable/nodes/{30.B6pd-F-z.js → 30.Cd56Qv6o.js} +5 -6
  63. package/build/client/_app/immutable/nodes/30.Cd56Qv6o.js.br +0 -0
  64. package/build/client/_app/immutable/nodes/30.Cd56Qv6o.js.gz +0 -0
  65. package/build/client/_app/immutable/nodes/{5.Cf8uTJgI.js → 5.wbpOzblK.js} +1 -1
  66. package/build/client/_app/immutable/nodes/5.wbpOzblK.js.br +0 -0
  67. package/build/client/_app/immutable/nodes/5.wbpOzblK.js.gz +0 -0
  68. package/build/client/_app/immutable/nodes/{6.DMoGaSJA.js → 6.B2HdJrZB.js} +1 -1
  69. package/build/client/_app/immutable/nodes/6.B2HdJrZB.js.br +0 -0
  70. package/build/client/_app/immutable/nodes/6.B2HdJrZB.js.gz +0 -0
  71. package/build/client/_app/immutable/nodes/{7.DTPvNOH_.js → 7.BuWU0YDv.js} +1 -1
  72. package/build/client/_app/immutable/nodes/7.BuWU0YDv.js.br +0 -0
  73. package/build/client/_app/immutable/nodes/7.BuWU0YDv.js.gz +0 -0
  74. package/build/client/_app/version.json +1 -1
  75. package/build/client/_app/version.json.br +0 -0
  76. package/build/client/_app/version.json.gz +0 -0
  77. package/build/server/.vite/manifest.json +17 -1
  78. package/build/server/_app/immutable/assets/_layout.DOeHn583.css +2 -0
  79. package/build/server/_app/immutable/assets/rhino3dm.CWOyICcB.wasm +0 -0
  80. package/build/server/chunks/grasshopper.js +17 -10
  81. package/build/server/chunks/grasshopper.js.map +1 -1
  82. package/build/server/chunks/instance.js +3 -3
  83. package/build/server/chunks/internal.js +1 -1
  84. package/build/server/chunks/localeContext.svelte.js +70 -0
  85. package/build/server/chunks/localeContext.svelte.js.map +1 -1
  86. package/build/server/chunks/package.js +1 -1
  87. package/build/server/chunks/package.js.map +1 -1
  88. package/build/server/chunks/providers.server.js +42 -0
  89. package/build/server/chunks/providers.server.js.map +1 -1
  90. package/build/server/chunks/rhino3dm.js +5 -0
  91. package/build/server/chunks/rhino3dm.js.map +1 -0
  92. package/build/server/chunks/schema.js +1 -1
  93. package/build/server/chunks/schema.js.map +1 -1
  94. package/build/server/entries/hooks.server.js +29 -1
  95. package/build/server/entries/hooks.server.js.map +1 -1
  96. package/build/server/entries/pages/admin/organizations/_page.server.ts.js +4 -9
  97. package/build/server/entries/pages/admin/organizations/_page.server.ts.js.map +1 -1
  98. package/build/server/entries/pages/library/_guid_/_page.svelte.js +7219 -1202
  99. package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
  100. package/build/server/entries/pages/team/_page.server.ts.js +1 -1
  101. package/build/server/entries/pages/team/_page.server.ts.js.map +1 -1
  102. package/build/server/entries/pages/team/members/_page.server.ts.js +4 -2
  103. package/build/server/entries/pages/team/members/_page.server.ts.js.map +1 -1
  104. package/build/server/entries/pages/team/members/_page.svelte.js +6 -5
  105. package/build/server/entries/pages/team/members/_page.svelte.js.map +1 -1
  106. package/build/server/entries/pages/team/projects/_page.server.ts.js +4 -10
  107. package/build/server/entries/pages/team/projects/_page.server.ts.js.map +1 -1
  108. package/build/server/entries/pages/team/reclaim/_page.server.ts.js +6 -13
  109. package/build/server/entries/pages/team/reclaim/_page.server.ts.js.map +1 -1
  110. package/build/server/manifest-full.js +1 -1
  111. package/build/server/manifest.js +1 -1
  112. package/build/server/nodes/0.js +2 -2
  113. package/build/server/nodes/1.js +1 -1
  114. package/build/server/nodes/2.js +1 -1
  115. package/build/server/nodes/20.js +1 -1
  116. package/build/server/nodes/21.js +1 -1
  117. package/build/server/nodes/25.js +1 -1
  118. package/build/server/nodes/3.js +1 -1
  119. package/build/server/nodes/30.js +1 -1
  120. package/build/server/nodes/5.js +1 -1
  121. package/build/server/nodes/6.js +1 -1
  122. package/build/server/nodes/7.js +1 -1
  123. package/build/server/server.js +1 -1
  124. package/package.json +10 -10
  125. package/templates/.env.example +4 -1
  126. package/build/client/_app/immutable/assets/0.BNUTD3F8.css +0 -2
  127. package/build/client/_app/immutable/assets/0.BNUTD3F8.css.br +0 -0
  128. package/build/client/_app/immutable/assets/0.BNUTD3F8.css.gz +0 -0
  129. package/build/client/_app/immutable/chunks/BFXrROAz.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/BFXrROAz.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/BfaVYyF5.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/BfaVYyF5.js.gz +0 -0
  133. package/build/client/_app/immutable/chunks/BgqLT1eu.js.br +0 -0
  134. package/build/client/_app/immutable/chunks/BgqLT1eu.js.gz +0 -0
  135. package/build/client/_app/immutable/chunks/C3KJF0qD.js.br +0 -0
  136. package/build/client/_app/immutable/chunks/C3KJF0qD.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/CUlE4Eja.js +0 -1
  138. package/build/client/_app/immutable/chunks/CUlE4Eja.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/CUlE4Eja.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/D-7q85bk.js.br +0 -0
  141. package/build/client/_app/immutable/chunks/D-7q85bk.js.gz +0 -0
  142. package/build/client/_app/immutable/chunks/D1Hh95EK.js.br +0 -0
  143. package/build/client/_app/immutable/chunks/D1Hh95EK.js.gz +0 -0
  144. package/build/client/_app/immutable/chunks/HozuTQAd.js +0 -1
  145. package/build/client/_app/immutable/chunks/HozuTQAd.js.br +0 -1
  146. package/build/client/_app/immutable/chunks/HozuTQAd.js.gz +0 -0
  147. package/build/client/_app/immutable/entry/app.DkBodfd-.js.br +0 -0
  148. package/build/client/_app/immutable/entry/app.DkBodfd-.js.gz +0 -0
  149. package/build/client/_app/immutable/nodes/1.rWI13pjK.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/1.rWI13pjK.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/2.BC_cXN9D.js.br +0 -0
  152. package/build/client/_app/immutable/nodes/2.BC_cXN9D.js.gz +0 -0
  153. package/build/client/_app/immutable/nodes/20.BcDEIVaI.js.br +0 -0
  154. package/build/client/_app/immutable/nodes/20.BcDEIVaI.js.gz +0 -0
  155. package/build/client/_app/immutable/nodes/21.BVYhZ3RX.js +0 -1
  156. package/build/client/_app/immutable/nodes/21.BVYhZ3RX.js.br +0 -0
  157. package/build/client/_app/immutable/nodes/21.BVYhZ3RX.js.gz +0 -0
  158. package/build/client/_app/immutable/nodes/25.BhiThFEd.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/25.BhiThFEd.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/3.BVyOvlCQ.js.br +0 -0
  161. package/build/client/_app/immutable/nodes/3.BVyOvlCQ.js.gz +0 -0
  162. package/build/client/_app/immutable/nodes/30.B6pd-F-z.js.br +0 -0
  163. package/build/client/_app/immutable/nodes/30.B6pd-F-z.js.gz +0 -0
  164. package/build/client/_app/immutable/nodes/5.Cf8uTJgI.js.br +0 -2
  165. package/build/client/_app/immutable/nodes/5.Cf8uTJgI.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/6.DMoGaSJA.js.br +0 -0
  167. package/build/client/_app/immutable/nodes/6.DMoGaSJA.js.gz +0 -0
  168. package/build/client/_app/immutable/nodes/7.DTPvNOH_.js.br +0 -0
  169. package/build/client/_app/immutable/nodes/7.DTPvNOH_.js.gz +0 -0
  170. package/build/server/_app/immutable/assets/_layout.BNUTD3F8.css +0 -2
  171. /package/build/client/_app/immutable/nodes/{0.BQwy8qtV.js → 0.CXQcjMDK.js} +0 -0
  172. /package/build/client/_app/immutable/nodes/{0.BQwy8qtV.js.br → 0.CXQcjMDK.js.br} +0 -0
  173. /package/build/client/_app/immutable/nodes/{0.BQwy8qtV.js.gz → 0.CXQcjMDK.js.gz} +0 -0
@@ -213,7 +213,7 @@ function server_data_serializer(event, state) {
213
213
  let promise_id = 1;
214
214
  let max_nodes = -1;
215
215
  const iterator = create_async_iterator();
216
- const global = "__sveltekit_x2w90f";
216
+ const global = "__sveltekit_1lusyn0";
217
217
  /** @param {number} index */
218
218
  function get_replacer(index) {
219
219
  /** @param {any} thing */
@@ -1443,7 +1443,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1443
1443
  "crossorigin"
1444
1444
  ]);
1445
1445
  }
1446
- const global = "__sveltekit_x2w90f";
1446
+ const global = "__sveltekit_1lusyn0";
1447
1447
  const { data, chunks } = data_serializer.get_data(csp);
1448
1448
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!(state.prerendering || state.prerender_default === true))).join("\n ")}`;
1449
1449
  if (page_config.csr && client) {
@@ -1467,7 +1467,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1467
1467
  }
1468
1468
  }
1469
1469
  const blocks = [];
1470
- const properties = [`base: ${base_expression}`, `version: ${s("1794902780005")}`];
1470
+ const properties = [`base: ${base_expression}`, `version: ${s("1794916383307")}`];
1471
1471
  if (assets) properties.push(`assets: ${s(assets)}`);
1472
1472
  if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval$1(rendered_env)}`);
1473
1473
  if (chunks) {
@@ -2363,7 +2363,7 @@ function redirect_response(status, location) {
2363
2363
  * @param {Response} response
2364
2364
  */
2365
2365
  function with_version_header(response) {
2366
- response.headers.set("x-sveltekit-version", "1794902780005");
2366
+ response.headers.set("x-sveltekit-version", "1794916383307");
2367
2367
  return response;
2368
2368
  }
2369
2369
  /**
@@ -134,6 +134,41 @@ var VIEWER_MESSAGES = {
134
134
  geometryPickSubdOther: "Pick SubDs",
135
135
  geometryPickBlockOne: "Pick a block",
136
136
  geometryPickBlockOther: "Pick blocks",
137
+ curveDrawPoint: "Point",
138
+ curveDrawLine: "Line",
139
+ curveDrawPolyline: "Polyline",
140
+ curveDrawCurve: "Curve",
141
+ curveImport: "Import",
142
+ curveEdit: "Edit points",
143
+ curveReset: "Reset",
144
+ curveUndo: "Undo",
145
+ curveDone: "Done",
146
+ curveHintDraw: "Click in the viewer. Enter finishes, Esc steps back.",
147
+ curveHintPoint: "Click in the viewer to place points. Done or Esc ends it.",
148
+ curveHintLine: "Click two points in the viewer. Type a length, or length<angle, and press Enter. Shift locks the angle.",
149
+ curveHintPolyline: "Click points in the viewer. Click the first point to close, the last one again or Enter to finish. Type a length for an exact segment.",
150
+ curveHintCurve: "Click control points in the viewer. Click the last one again or press Enter to finish.",
151
+ curveHintMove: "Click a point, then where it goes. Delete removes it, Esc puts it back.",
152
+ curveGrid: "Grid",
153
+ curveGridOff: "Off",
154
+ curveDimensions: "Dimensions",
155
+ curveNeedsSolve: "Available after the first solve.",
156
+ curveEmpty: "Nothing drawn yet",
157
+ curveCountOne: "{count} curve",
158
+ curveCountOther: "{count} curves",
159
+ curveCountLineOne: "{count} line",
160
+ curveCountLineOther: "{count} lines",
161
+ curveCountPointOne: "{count} point",
162
+ curveCountPointOther: "{count} points",
163
+ curveImportEmpty: "The file has nothing this input can take.",
164
+ curveImportSkippedOne: "{count} object was left out: this input does not take it.",
165
+ curveImportSkippedOther: "{count} objects were left out: this input does not take them.",
166
+ curveImportOverLimitOne: "This input takes one object: the first of {count} was imported.",
167
+ curveImportOverLimitOther: "This input takes {max} objects: the first {max} of {count} were imported.",
168
+ curveImportTooMany: "The file has more than {max} objects. Import a smaller selection.",
169
+ curveImportUnsupported: "Choose a DXF or 3DM file.",
170
+ curveImportFailed: "The file could not be read.",
171
+ curveEncodeFailed: "The curve could not be sent: the Rhino file library failed to load.",
137
172
  fileModeUpload: "Upload",
138
173
  fileModeUrl: "URL",
139
174
  fileUrlLabel: "File URL",
@@ -330,6 +365,41 @@ var VIEWER_MESSAGES = {
330
365
  geometryPickSubdOther: "SubDs wählen",
331
366
  geometryPickBlockOne: "Block wählen",
332
367
  geometryPickBlockOther: "Blöcke wählen",
368
+ curveDrawPoint: "Punkt",
369
+ curveDrawLine: "Linie",
370
+ curveDrawPolyline: "Polylinie",
371
+ curveDrawCurve: "Kurve",
372
+ curveImport: "Importieren",
373
+ curveEdit: "Punkte bearbeiten",
374
+ curveReset: "Zurücksetzen",
375
+ curveUndo: "Rückgängig",
376
+ curveDone: "Fertig",
377
+ curveHintDraw: "Im Viewer klicken. Enter beendet, Esc geht einen Schritt zurück.",
378
+ curveHintPoint: "Im Viewer klicken, um Punkte zu setzen. Fertig oder Esc beendet.",
379
+ curveHintLine: "Zwei Punkte im Viewer klicken. Länge oder Länge<Winkel tippen und Enter drücken. Shift rastet den Winkel.",
380
+ curveHintPolyline: "Punkte im Viewer klicken. Ersten Punkt klicken zum Schliessen, letzten erneut oder Enter zum Beenden. Länge tippen für ein exaktes Segment.",
381
+ curveHintCurve: "Kontrollpunkte im Viewer klicken. Letzten erneut klicken oder Enter zum Beenden.",
382
+ curveHintMove: "Punkt klicken, dann das Ziel. Entf löscht ihn, Esc setzt ihn zurück.",
383
+ curveGrid: "Raster",
384
+ curveGridOff: "Aus",
385
+ curveDimensions: "Bemassung",
386
+ curveNeedsSolve: "Nach der ersten Berechnung verfügbar.",
387
+ curveEmpty: "Noch nichts gezeichnet",
388
+ curveCountOne: "{count} Kurve",
389
+ curveCountOther: "{count} Kurven",
390
+ curveCountLineOne: "{count} Linie",
391
+ curveCountLineOther: "{count} Linien",
392
+ curveCountPointOne: "{count} Punkt",
393
+ curveCountPointOther: "{count} Punkte",
394
+ curveImportEmpty: "Die Datei enthält nichts, was diese Eingabe annimmt.",
395
+ curveImportSkippedOne: "{count} Objekt ausgelassen: Diese Eingabe nimmt es nicht an.",
396
+ curveImportSkippedOther: "{count} Objekte ausgelassen: Diese Eingabe nimmt sie nicht an.",
397
+ curveImportOverLimitOne: "Diese Eingabe nimmt ein Objekt an: das erste von {count} wurde importiert.",
398
+ curveImportOverLimitOther: "Diese Eingabe nimmt {max} Objekte an: die ersten {max} von {count} wurden importiert.",
399
+ curveImportTooMany: "Die Datei enthält mehr als {max} Objekte. Eine kleinere Auswahl importieren.",
400
+ curveImportUnsupported: "Eine DXF- oder 3DM-Datei wählen.",
401
+ curveImportFailed: "Die Datei konnte nicht gelesen werden.",
402
+ curveEncodeFailed: "Die Kurve konnte nicht gesendet werden: Die Rhino-Dateibibliothek liess sich nicht laden.",
333
403
  fileModeUpload: "Hochladen",
334
404
  fileModeUrl: "URL",
335
405
  fileUrlLabel: "Datei-URL",
@@ -1 +1 @@
1
- {"version":3,"file":"localeContext.svelte.js","names":[],"sources":["../../../../ui/src/lib/i18n/messages.ts","../../../../ui/src/lib/i18n/localeContext.svelte.ts"],"sourcesContent":["// ============================================================================\n// Viewer message catalog (library-owned strings)\n// ============================================================================\n//\n// Only the strings @selvajs/ui renders itself. Names coming from a Grasshopper\n// definition — meshes, layers, metadata keys — live in the user's .gh file and\n// cannot be translated here.\n//\n// A `{name}` in a message is a placeholder the component fills in. Pairs ending in\n// `One`/`Other` are the singular and plural forms of one message.\n\nexport type Locale = 'en' | 'de';\n\nexport interface ViewerMessages {\n\t// Tools menu\n\ttoolsMenu: string;\n\tswitchToOrthographic: string;\n\tswitchToPerspective: string;\n\tfitToView: string;\n\tviews: string;\n\tmeasure: string;\n\tgrid: string;\n\tdisplay: string;\n\tedges: string;\n\tsceneManager: string;\n\tscreenshot: string;\n\tfullscreen: string;\n\texitFullscreen: string;\n\n\t// View presets\n\tviewTop: string;\n\tviewFront: string;\n\tviewRight: string;\n\tviewBack: string;\n\tviewLeft: string;\n\tviewBottom: string;\n\tviewIso: string;\n\n\t// Display looks\n\tlookTechnical: string;\n\tlookStudio: string;\n\tlookShowcase: string;\n\tlookNight: string;\n\tnightMode: string;\n\tlookArctic: string;\n\tlookXray: string;\n\tlookLineart: string;\n\tlookWireframe: string;\n\n\t// Scene manager\n\tsearchObjects: string;\n\tclearSearch: string;\n\texpandLayer: string;\n\tcollapseLayer: string;\n\texpandAll: string;\n\tcollapseAll: string;\n\tshowLayer: string;\n\thideLayer: string;\n\tshowObject: string;\n\thideObject: string;\n\tnoObjects: string;\n\t/** `{query}` is replaced with the current search text. */\n\tnoResultsFor: string;\n\n\t// Metadata dialog\n\tobjectFallbackName: string;\n\tnoMetadata: string;\n\n\t// App layout / compute shell\n\tloadingSchema: string;\n\tsolveBlocked: string;\n\tsolveBlockedTitle: string;\n\tsolveMessagesTitle: string;\n\tsolveMessagesDescription: string;\n\tsolveMessagesConfirm: string;\n\tsolveMessagesDiscard: string;\n\tsolveMessagesAbort: string;\n\t/** Stands in for Abort where the page can't take a click mid-solve. */\n\tsolveMessagesEscHint: string;\n\tsolveMessagesDismiss: string;\n\tsolveSolving: string;\n\t/** A visible solve has landed; followed by how long it took. */\n\tsolveDone: string;\n\t/** A visible solve was aborted; the previous result stays. */\n\tsolveStopped: string;\n\t/** A solve passed its deadline. `{seconds}` is replaced with the deadline. */\n\tsolveTimedOut: string;\n\t/** A field's help button. `{label}` is the field's label. */\n\thelpFor: string;\n\tparametersTab: string;\n\tmoreTab: string;\n\tscrollTabsBack: string;\n\tscrollTabsForward: string;\n\t/** `{side}` is replaced with `panelSideLeft` / `panelSideRight`. */\n\texpandSidePanel: string;\n\tpanelSideLeft: string;\n\tpanelSideRight: string;\n\ttabNoGroups: string;\n\n\t// Solve controls\n\tsolving: string;\n\tsolvingEllipsis: string;\n\tsolvingSubtitle: string;\n\tpressToCalculate: string;\n\tcalculate: string;\n\tupToDate: string;\n\t/** The panel footer's ⋯ menu: saving and loading inputs, plus the host's own actions. */\n\tmoreActions: string;\n\t/** Under a menu action that solves before it runs, while the inputs have changed. */\n\tcalculatesFirst: string;\n\n\t// Footer and message centre\n\t/** `{count}` is replaced with the number of errors. */\n\terrorCountOne: string;\n\terrorCountOther: string;\n\t/** `{count}` is replaced with the number of warnings. */\n\twarningCountOne: string;\n\twarningCountOther: string;\n\t/** `{count}` is replaced with the number of notes. */\n\tnoteCountOne: string;\n\tnoteCountOther: string;\n\t/** `{count}` is replaced with the number of messages. */\n\tlastSolveMessagesOne: string;\n\tlastSolveMessagesOther: string;\n\tmessagesTitle: string;\n\t/** `{name}` is replaced with the copyright holder, `{year}` with the current year. */\n\tcopyright: string;\n\tclose: string;\n\ttoggleTheme: string;\n\terrorTitle: string;\n\tgoHome: string;\n\n\t// Input fields\n\tselectOption: string;\n\tnoOptionsYet: string;\n\t/** `{min}` is replaced with the field's minimum. */\n\tminValue: string;\n\t/** `{max}` is replaced with the field's maximum. */\n\tmaxValue: string;\n\tfineDragHint: string;\n\t/** `{max}` is replaced with the field's character limit. */\n\tmaxLength: string;\n\tinvalidFormat: string;\n\t/** Trigger label; `{color}` is the current hex value. */\n\tcolorPick: string;\n\tcolorArea: string;\n\t/** `{s}` and `{v}` are percentages. */\n\tcolorAreaValue: string;\n\tcolorHue: string;\n\tcolorHex: string;\n\tcolorHexInvalid: string;\n\tcolorPresets: string;\n\tcolorEyedropper: string;\n\tinvalidPattern: string;\n\n\t// Geometry input (Rhino only)\n\t/** The pick button when the input takes several kinds of object. */\n\tgeometryPickAnyOne: string;\n\tgeometryPickAnyOther: string;\n\t/** Shown while Rhino's viewport prompt for a pick is open. */\n\tgeometryPicking: string;\n\t/** Where this page may not pick, such as a browser tab beside the Rhino panel. */\n\tgeometryPickInPanel: string;\n\tgeometryPickAgain: string;\n\tgeometryClear: string;\n\t// The pick button when the input takes one kind: `One` picks a single object, `Other` several.\n\tgeometryPickPointOne: string;\n\tgeometryPickPointOther: string;\n\tgeometryPickPointCloudOne: string;\n\tgeometryPickPointCloudOther: string;\n\tgeometryPickCurveOne: string;\n\tgeometryPickCurveOther: string;\n\tgeometryPickLineOne: string;\n\tgeometryPickLineOther: string;\n\tgeometryPickPlaneOne: string;\n\tgeometryPickPlaneOther: string;\n\tgeometryPickSurfaceOne: string;\n\tgeometryPickSurfaceOther: string;\n\tgeometryPickPolysurfaceOne: string;\n\tgeometryPickPolysurfaceOther: string;\n\tgeometryPickExtrusionOne: string;\n\tgeometryPickExtrusionOther: string;\n\tgeometryPickMeshOne: string;\n\tgeometryPickMeshOther: string;\n\tgeometryPickSubdOne: string;\n\tgeometryPickSubdOther: string;\n\tgeometryPickBlockOne: string;\n\tgeometryPickBlockOther: string;\n\n\t// File input\n\tfileModeUpload: string;\n\tfileModeUrl: string;\n\tfileUrlLabel: string;\n\tfetchFile: string;\n\tfetchingFile: string;\n\tfileUrlPublic: string;\n\tchooseFile: string;\n\t/** `{formats}` is replaced with the accepted extensions. */\n\tacceptedFormats: string;\n\t/** `{ext}` is replaced with the file's extension. */\n\tuploadedFile: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in MB. */\n\tuploadedFileSize: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in KB. */\n\tfileLoaded: string;\n\turlInvalid: string;\n\turlProtocolUnsupported: string;\n\t/** `{status}` is replaced with the HTTP status the server answered with. */\n\turlServerError: string;\n\t/** `{ext}` is replaced with the rejected extension, `{formats}` with the accepted ones. */\n\tfileFormatNotAccepted: string;\n\t/** `{size}` is replaced with the file's size in MB, `{max}` with the limit in MB. */\n\tfileTooLarge: string;\n\tfileTooLargeUseUpload: string;\n\tfileReadFailed: string;\n\t/** `{host}` is replaced with the URL's host name. */\n\turlUnreachable: string;\n\turlUnreachableHint: string;\n\turlHintSharePoint: string;\n\turlHintGoogleDrive: string;\n\turlHintDropbox: string;\n\tunknownError: string;\n\n\t// Outputs\n\twaitingForData: string;\n\twaitingForFiles: string;\n\t/** `{count}` is replaced with the number of files. */\n\tfileCount: string;\n\tduplicateFilesTitle: string;\n\tduplicatePathsOne: string;\n\tduplicatePathsOther: string;\n\tduplicateFilesHint: string;\n\tdownloadFile: string;\n\t/** `{count}` is replaced with the number of files. */\n\tdownloadFiles: string;\n\tdownloading: string;\n\tdownloadFailed: string;\n\t/** A preview skipped this output's files; a click makes them. */\n\tfilesMadeOnDownload: string;\n\tdownload: string;\n\tmakingFiles: string;\n\t/** `{seconds}` is replaced with how long the full solve took. */\n\tfilesMadeIn: string;\n\tnoFilesForInputs: string;\n\ttryAgain: string;\n\tcancel: string;\n\tcopy: string;\n\tcopied: string;\n\tchartReceiving: string;\n\tchartRenderFailed: string;\n\tdownloadChartImage: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\tfullscreenUnavailable: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\texitFullscreenFailed: string;\n\n\t// Image output\n\timageViewer: string;\n\timageLoading: string;\n\t/** `{ext}` is replaced with the file's extension, `{formats}` with the supported ones. */\n\timageUnsupported: string;\n\timageUnknownFormat: string;\n\t/** `{file}` is replaced with the file's name. */\n\timageDecodeFailed: string;\n\tpreviousImage: string;\n\tnextImage: string;\n\tzoomHint: string;\n\tzoomIn: string;\n\tzoomOut: string;\n\tzoomFit: string;\n\tzoomActual: string;\n\tdownloadImage: string;\n}\n\nconst en: ViewerMessages = {\n\ttoolsMenu: 'Viewer tools',\n\tswitchToOrthographic: 'Orthographic camera',\n\tswitchToPerspective: 'Perspective camera',\n\tfitToView: 'Fit to view',\n\tviews: 'Views',\n\tmeasure: 'Measure',\n\tgrid: 'Grid',\n\tdisplay: 'Display',\n\tedges: 'Edges',\n\tsceneManager: 'Scene manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Fullscreen',\n\texitFullscreen: 'Exit fullscreen',\n\n\tviewTop: 'Top',\n\tviewFront: 'Front',\n\tviewRight: 'Right',\n\tviewBack: 'Back',\n\tviewLeft: 'Left',\n\tviewBottom: 'Bottom',\n\tviewIso: 'Isometric',\n\n\tlookTechnical: 'Technical',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Showcase',\n\tlookNight: 'Night',\n\tnightMode: 'Night mode',\n\tlookArctic: 'Arctic',\n\tlookXray: 'X-Ray',\n\tlookLineart: 'Line Art',\n\tlookWireframe: 'Wireframe',\n\n\tsearchObjects: 'Search objects...',\n\tclearSearch: 'Clear search',\n\texpandLayer: 'Expand layer',\n\tcollapseLayer: 'Collapse layer',\n\texpandAll: 'Expand all',\n\tcollapseAll: 'Collapse all',\n\tshowLayer: 'Show layer',\n\thideLayer: 'Hide layer',\n\tshowObject: 'Show object',\n\thideObject: 'Hide object',\n\tnoObjects: 'No objects',\n\tnoResultsFor: 'No results for \"{query}\"',\n\n\tobjectFallbackName: 'Object',\n\tnoMetadata: 'No metadata',\n\n\tloadingSchema: 'Loading…',\n\tsolveBlocked: 'The definition stopped this solve. No results were produced.',\n\tsolveBlockedTitle: 'Solve stopped',\n\tsolveMessagesTitle: 'Solve messages',\n\tsolveMessagesDescription: 'This solve reported the following. Continue to see the result.',\n\tsolveMessagesConfirm: 'Continue',\n\tsolveMessagesDiscard: 'Discard',\n\tsolveMessagesAbort: 'Abort',\n\tsolveMessagesEscHint: 'Esc aborts the solve',\n\tsolveMessagesDismiss: 'Dismiss',\n\tsolveSolving: 'Solving…',\n\tsolveDone: 'Done',\n\tsolveStopped: 'Stopped',\n\tsolveTimedOut: 'The solve took longer than {seconds} s and was stopped.',\n\thelpFor: 'Help for {label}',\n\tparametersTab: 'Parameters',\n\tmoreTab: 'More',\n\tscrollTabsBack: 'Previous tabs',\n\tscrollTabsForward: 'More tabs',\n\texpandSidePanel: 'Expand {side} panel',\n\tpanelSideLeft: 'left',\n\tpanelSideRight: 'right',\n\ttabNoGroups: 'This tab has no groups configured.',\n\n\tsolving: 'Solving',\n\tsolvingEllipsis: 'Solving...',\n\tsolvingSubtitle: 'This can take a moment…',\n\tpressToCalculate: 'Press to calculate',\n\tcalculate: 'Calculate',\n\tupToDate: 'Up to date',\n\tmoreActions: 'More actions',\n\tcalculatesFirst: 'Calculates first',\n\n\terrorCountOne: '{count} error',\n\terrorCountOther: '{count} errors',\n\twarningCountOne: '{count} warning',\n\twarningCountOther: '{count} warnings',\n\tnoteCountOne: '{count} note',\n\tnoteCountOther: '{count} notes',\n\tlastSolveMessagesOne: '{count} message from the last solve',\n\tlastSolveMessagesOther: '{count} messages from the last solve',\n\tmessagesTitle: 'Messages',\n\tcopyright: 'by {name} © {year}',\n\tclose: 'Close',\n\ttoggleTheme: 'Toggle theme',\n\terrorTitle: 'Error',\n\tgoHome: 'Go Home',\n\n\tselectOption: 'Select an option...',\n\tnoOptionsYet: 'No options available yet.',\n\tminValue: 'Minimum value is {min}',\n\tmaxValue: 'Maximum value is {max}',\n\tfineDragHint: 'Hold Shift to drag finely',\n\tmaxLength: 'Maximum {max} characters allowed',\n\tinvalidFormat: 'Invalid format',\n\tcolorPick: 'Choose color, currently {color}',\n\tcolorArea: 'Saturation and brightness',\n\tcolorAreaValue: 'Saturation {s}%, brightness {v}%',\n\tcolorHue: 'Hue',\n\tcolorHex: 'Hex color',\n\tcolorHexInvalid: 'Enter a hex color such as #2f6fd6',\n\tcolorPresets: 'Presets',\n\tcolorEyedropper: 'Pick a color from the screen',\n\tinvalidPattern: 'Invalid validation pattern configured',\n\n\tgeometryPickAnyOne: 'Pick an object',\n\tgeometryPickAnyOther: 'Pick objects',\n\tgeometryPicking: 'Pick in the viewport, Esc to cancel',\n\tgeometryPickInPanel: 'Pick in the Rhino panel',\n\tgeometryPickAgain: 'Pick again',\n\tgeometryClear: 'Clear',\n\tgeometryPickPointOne: 'Pick a point',\n\tgeometryPickPointOther: 'Pick points',\n\tgeometryPickPointCloudOne: 'Pick a point cloud',\n\tgeometryPickPointCloudOther: 'Pick point clouds',\n\tgeometryPickCurveOne: 'Pick a curve',\n\tgeometryPickCurveOther: 'Pick curves',\n\tgeometryPickLineOne: 'Pick a line',\n\tgeometryPickLineOther: 'Pick lines',\n\tgeometryPickPlaneOne: 'Pick a plane',\n\tgeometryPickPlaneOther: 'Pick planes',\n\tgeometryPickSurfaceOne: 'Pick a surface',\n\tgeometryPickSurfaceOther: 'Pick surfaces',\n\tgeometryPickPolysurfaceOne: 'Pick a polysurface',\n\tgeometryPickPolysurfaceOther: 'Pick polysurfaces',\n\tgeometryPickExtrusionOne: 'Pick an extrusion',\n\tgeometryPickExtrusionOther: 'Pick extrusions',\n\tgeometryPickMeshOne: 'Pick a mesh',\n\tgeometryPickMeshOther: 'Pick meshes',\n\tgeometryPickSubdOne: 'Pick a SubD',\n\tgeometryPickSubdOther: 'Pick SubDs',\n\tgeometryPickBlockOne: 'Pick a block',\n\tgeometryPickBlockOther: 'Pick blocks',\n\n\tfileModeUpload: 'Upload',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'File URL',\n\tfetchFile: 'Fetch',\n\tfetchingFile: 'Fetching...',\n\tfileUrlPublic: 'URL must be publicly accessible (no login required).',\n\tchooseFile: 'Choose File or Drag & Drop',\n\tacceptedFormats: 'Accepted formats: {formats}',\n\tuploadedFile: 'Uploaded file ({ext})',\n\tuploadedFileSize: 'Uploaded file ({ext}, {size}MB)',\n\tfileLoaded: 'Loaded {ext} ({size} KB)',\n\turlInvalid: 'Invalid URL — make sure it starts with https://',\n\turlProtocolUnsupported: 'Only http:// and https:// URLs are supported.',\n\turlServerError: 'Server returned {status}. Check the URL is correct and publicly accessible.',\n\tfileFormatNotAccepted: 'File format \"{ext}\" is not accepted. Allowed: {formats}',\n\tfileTooLarge: 'File too large: {size}MB (max {max}MB).',\n\tfileTooLargeUseUpload: 'Download it and use Upload instead.',\n\tfileReadFailed: 'Failed to read the downloaded file.',\n\turlUnreachable:\n\t\t'Could not reach \"{host}\" — the file may not exist, or the server does not allow browser access.',\n\turlUnreachableHint:\n\t\t'Check that the URL is correct and the file is publicly accessible. If the server requires login, download the file and use the Upload option instead.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive blocks browser access. Open the file in SharePoint, use \"Download\" to save it locally, then upload it here.',\n\turlHintGoogleDrive:\n\t\t'Google Drive blocks browser access. Use \"Download\" in Google Drive to save the file locally, then upload it here.',\n\turlHintDropbox:\n\t\t'Dropbox links may block browser access. Try changing \"?dl=0\" to \"?dl=1\" in the URL, or download and upload instead.',\n\tunknownError: 'Unknown error',\n\n\twaitingForData: 'Waiting for data...',\n\twaitingForFiles: 'Waiting for file data...',\n\tfileCount: '{count} files',\n\tduplicateFilesTitle: 'Duplicate file names detected',\n\tduplicatePathsOne: 'The following path appears more than once:',\n\tduplicatePathsOther: 'The following paths appear more than once:',\n\tduplicateFilesHint:\n\t\t'Rename outputs in your Grasshopper definition so each file has a unique name.',\n\tdownloadFile: 'Download File',\n\tdownloadFiles: 'Download {count} Files',\n\tdownloading: 'Downloading...',\n\tdownloadFailed: 'Download failed',\n\tfilesMadeOnDownload: 'Made when you download',\n\tdownload: 'Download',\n\tmakingFiles: 'Making files',\n\tfilesMadeIn: 'Made in {seconds} s',\n\tnoFilesForInputs: 'Nothing to download for these inputs.',\n\ttryAgain: 'Try again',\n\tcancel: 'Cancel',\n\tcopy: 'Copy',\n\tcopied: 'Copied!',\n\tchartReceiving: 'Receiving chart data...',\n\tchartRenderFailed: 'Failed to render chart',\n\tdownloadChartImage: 'Download plot as image',\n\tfullscreenUnavailable: 'Fullscreen unavailable: {error}',\n\texitFullscreenFailed: 'Exit fullscreen failed: {error}',\n\n\timageViewer: 'image viewer',\n\timageLoading: 'Loading image…',\n\timageUnsupported: 'Unsupported image format: {ext}. Supported: {formats}',\n\timageUnknownFormat: '(unknown)',\n\timageDecodeFailed: \"Couldn't decode {file}\",\n\tpreviousImage: 'Previous image',\n\tnextImage: 'Next image',\n\tzoomHint: 'Hold Ctrl or ⌘ and scroll to zoom',\n\tzoomIn: 'Zoom in',\n\tzoomOut: 'Zoom out',\n\tzoomFit: 'Fit',\n\tzoomActual: 'Actual pixels',\n\tdownloadImage: 'Download image'\n};\n\nconst de: ViewerMessages = {\n\ttoolsMenu: 'Viewer-Werkzeuge',\n\tswitchToOrthographic: 'Orthografische Kamera',\n\tswitchToPerspective: 'Perspektivische Kamera',\n\tfitToView: 'Ansicht anpassen',\n\tviews: 'Ansichten',\n\tmeasure: 'Messen',\n\tgrid: 'Raster',\n\tdisplay: 'Darstellung',\n\tedges: 'Kanten',\n\tsceneManager: 'Szenen-Manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Vollbild',\n\texitFullscreen: 'Vollbild beenden',\n\n\tviewTop: 'Oben',\n\tviewFront: 'Vorne',\n\tviewRight: 'Rechts',\n\tviewBack: 'Hinten',\n\tviewLeft: 'Links',\n\tviewBottom: 'Unten',\n\tviewIso: 'Isometrisch',\n\n\tlookTechnical: 'Technisch',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Präsentation',\n\tlookNight: 'Nacht',\n\tnightMode: 'Nachtmodus',\n\tlookArctic: 'Arktis',\n\tlookXray: 'Röntgen',\n\tlookLineart: 'Strichzeichnung',\n\tlookWireframe: 'Drahtgitter',\n\n\tsearchObjects: 'Objekte suchen...',\n\tclearSearch: 'Suche löschen',\n\texpandLayer: 'Ebene aufklappen',\n\tcollapseLayer: 'Ebene zuklappen',\n\texpandAll: 'Alle aufklappen',\n\tcollapseAll: 'Alle zuklappen',\n\tshowLayer: 'Ebene einblenden',\n\thideLayer: 'Ebene ausblenden',\n\tshowObject: 'Objekt einblenden',\n\thideObject: 'Objekt ausblenden',\n\tnoObjects: 'Keine Objekte',\n\tnoResultsFor: 'Keine Ergebnisse für „{query}“',\n\n\tobjectFallbackName: 'Objekt',\n\tnoMetadata: 'Keine Metadaten',\n\n\tloadingSchema: 'Wird geladen…',\n\tsolveBlocked: 'Die Definition hat diese Berechnung gestoppt. Es wurden keine Ergebnisse erzeugt.',\n\tsolveBlockedTitle: 'Berechnung gestoppt',\n\tsolveMessagesTitle: 'Meldungen zur Berechnung',\n\tsolveMessagesDescription:\n\t\t'Diese Berechnung hat Folgendes gemeldet. Weiter, um das Ergebnis zu sehen.',\n\tsolveMessagesConfirm: 'Weiter',\n\tsolveMessagesDiscard: 'Verwerfen',\n\tsolveMessagesAbort: 'Abbrechen',\n\tsolveMessagesEscHint: 'Esc bricht die Berechnung ab',\n\tsolveMessagesDismiss: 'Schliessen',\n\tsolveSolving: 'Berechnung läuft…',\n\tsolveDone: 'Fertig',\n\tsolveStopped: 'Abgebrochen',\n\tsolveTimedOut: 'Die Berechnung dauerte länger als {seconds} s und wurde abgebrochen.',\n\thelpFor: 'Hilfe zu {label}',\n\tparametersTab: 'Parameter',\n\tmoreTab: 'Mehr',\n\tscrollTabsBack: 'Vorherige Tabs',\n\tscrollTabsForward: 'Weitere Tabs',\n\texpandSidePanel: '{side} Bereich aufklappen',\n\tpanelSideLeft: 'Linken',\n\tpanelSideRight: 'Rechten',\n\ttabNoGroups: 'Für diesen Tab sind keine Gruppen konfiguriert.',\n\n\tsolving: 'Berechnung läuft',\n\tsolvingEllipsis: 'Berechnung läuft...',\n\tsolvingSubtitle: 'Das kann einen Moment dauern…',\n\tpressToCalculate: 'Berechnen',\n\tcalculate: 'Berechnen',\n\tupToDate: 'Berechnet',\n\tmoreActions: 'Weitere Aktionen',\n\tcalculatesFirst: 'Berechnet zuerst',\n\n\terrorCountOne: '{count} Fehler',\n\terrorCountOther: '{count} Fehler',\n\twarningCountOne: '{count} Warnung',\n\twarningCountOther: '{count} Warnungen',\n\tnoteCountOne: '{count} Hinweis',\n\tnoteCountOther: '{count} Hinweise',\n\tlastSolveMessagesOne: '{count} Meldung der letzten Berechnung',\n\tlastSolveMessagesOther: '{count} Meldungen der letzten Berechnung',\n\tmessagesTitle: 'Meldungen',\n\tcopyright: 'von {name} © {year}',\n\tclose: 'Schliessen',\n\ttoggleTheme: 'Farbschema wechseln',\n\terrorTitle: 'Fehler',\n\tgoHome: 'Zur Startseite',\n\n\tselectOption: 'Option wählen…',\n\tnoOptionsYet: 'Noch keine Optionen verfügbar.',\n\tminValue: 'Der kleinste erlaubte Wert ist {min}',\n\tmaxValue: 'Der grösste erlaubte Wert ist {max}',\n\tfineDragHint: 'Umschalttaste halten für feine Schritte',\n\tmaxLength: 'Höchstens {max} Zeichen erlaubt',\n\tinvalidFormat: 'Ungültiges Format',\n\tcolorPick: 'Farbe wählen, aktuell {color}',\n\tcolorArea: 'Sättigung und Helligkeit',\n\tcolorAreaValue: 'Sättigung {s} %, Helligkeit {v} %',\n\tcolorHue: 'Farbton',\n\tcolorHex: 'Hex-Farbe',\n\tcolorHexInvalid: 'Hex-Farbe eingeben, z. B. #2f6fd6',\n\tcolorPresets: 'Vorgaben',\n\tcolorEyedropper: 'Farbe vom Bildschirm aufnehmen',\n\tinvalidPattern: 'Ungültiges Prüfmuster hinterlegt',\n\n\tgeometryPickAnyOne: 'Objekt wählen',\n\tgeometryPickAnyOther: 'Objekte wählen',\n\tgeometryPicking: 'Im Ansichtsfenster wählen, Esc bricht ab',\n\tgeometryPickInPanel: 'Im Rhino-Panel wählen',\n\tgeometryPickAgain: 'Neu wählen',\n\tgeometryClear: 'Leeren',\n\tgeometryPickPointOne: 'Punkt wählen',\n\tgeometryPickPointOther: 'Punkte wählen',\n\tgeometryPickPointCloudOne: 'Punktwolke wählen',\n\tgeometryPickPointCloudOther: 'Punktwolken wählen',\n\tgeometryPickCurveOne: 'Kurve wählen',\n\tgeometryPickCurveOther: 'Kurven wählen',\n\tgeometryPickLineOne: 'Linie wählen',\n\tgeometryPickLineOther: 'Linien wählen',\n\tgeometryPickPlaneOne: 'Ebene wählen',\n\tgeometryPickPlaneOther: 'Ebenen wählen',\n\tgeometryPickSurfaceOne: 'Fläche wählen',\n\tgeometryPickSurfaceOther: 'Flächen wählen',\n\tgeometryPickPolysurfaceOne: 'Flächenverband wählen',\n\tgeometryPickPolysurfaceOther: 'Flächenverbände wählen',\n\tgeometryPickExtrusionOne: 'Extrusion wählen',\n\tgeometryPickExtrusionOther: 'Extrusionen wählen',\n\tgeometryPickMeshOne: 'Netz wählen',\n\tgeometryPickMeshOther: 'Netze wählen',\n\tgeometryPickSubdOne: 'SubD wählen',\n\tgeometryPickSubdOther: 'SubDs wählen',\n\tgeometryPickBlockOne: 'Block wählen',\n\tgeometryPickBlockOther: 'Blöcke wählen',\n\n\tfileModeUpload: 'Hochladen',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'Datei-URL',\n\tfetchFile: 'Abrufen',\n\tfetchingFile: 'Wird abgerufen…',\n\tfileUrlPublic: 'Die URL muss öffentlich erreichbar sein (ohne Anmeldung).',\n\tchooseFile: 'Datei wählen oder hierher ziehen',\n\tacceptedFormats: 'Erlaubte Formate: {formats}',\n\tuploadedFile: 'Hochgeladene Datei ({ext})',\n\tuploadedFileSize: 'Hochgeladene Datei ({ext}, {size} MB)',\n\tfileLoaded: '{ext} geladen ({size} KB)',\n\turlInvalid: 'Ungültige URL – sie muss mit https:// beginnen',\n\turlProtocolUnsupported: 'Nur http://- und https://-URLs werden unterstützt.',\n\turlServerError:\n\t\t'Der Server antwortete mit {status}. Ist die URL korrekt und öffentlich erreichbar?',\n\tfileFormatNotAccepted: 'Dateiformat „{ext}“ ist nicht erlaubt. Erlaubt: {formats}',\n\tfileTooLarge: 'Datei zu gross: {size} MB (höchstens {max} MB).',\n\tfileTooLargeUseUpload: 'Datei herunterladen und stattdessen über „Hochladen“ einfügen.',\n\tfileReadFailed: 'Die heruntergeladene Datei konnte nicht gelesen werden.',\n\turlUnreachable:\n\t\t'„{host}“ ist nicht erreichbar – die Datei existiert vielleicht nicht, oder der Server erlaubt keinen Zugriff aus dem Browser.',\n\turlUnreachableHint:\n\t\t'Prüfen, ob die URL stimmt und die Datei öffentlich erreichbar ist. Verlangt der Server eine Anmeldung: Datei herunterladen und über „Hochladen“ einfügen.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive sperrt den Zugriff aus dem Browser. Datei in SharePoint öffnen, mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintGoogleDrive:\n\t\t'Google Drive sperrt den Zugriff aus dem Browser. Datei in Google Drive mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintDropbox:\n\t\t'Dropbox-Links sperren den Zugriff aus dem Browser oft. In der URL „?dl=0“ durch „?dl=1“ ersetzen oder die Datei herunterladen und hochladen.',\n\tunknownError: 'Unbekannter Fehler',\n\n\twaitingForData: 'Noch keine Daten',\n\twaitingForFiles: 'Noch keine Dateien',\n\tfileCount: '{count} Dateien',\n\tduplicateFilesTitle: 'Doppelte Dateinamen',\n\tduplicatePathsOne: 'Dieser Pfad kommt mehrfach vor:',\n\tduplicatePathsOther: 'Diese Pfade kommen mehrfach vor:',\n\tduplicateFilesHint:\n\t\t'Ausgaben in der Grasshopper-Definition umbenennen, damit jede Datei einen eindeutigen Namen hat.',\n\tdownloadFile: 'Datei herunterladen',\n\tdownloadFiles: '{count} Dateien herunterladen',\n\tdownloading: 'Wird heruntergeladen…',\n\tdownloadFailed: 'Download fehlgeschlagen',\n\tfilesMadeOnDownload: 'Wird beim Herunterladen erstellt',\n\tdownload: 'Herunterladen',\n\tmakingFiles: 'Dateien werden erstellt',\n\tfilesMadeIn: 'Erstellt in {seconds} s',\n\tnoFilesForInputs: 'Für diese Eingaben gibt es nichts herunterzuladen.',\n\ttryAgain: 'Erneut versuchen',\n\tcancel: 'Abbrechen',\n\tcopy: 'Kopieren',\n\tcopied: 'Kopiert!',\n\tchartReceiving: 'Diagrammdaten werden empfangen…',\n\tchartRenderFailed: 'Diagramm konnte nicht dargestellt werden',\n\tdownloadChartImage: 'Diagramm als Bild herunterladen',\n\tfullscreenUnavailable: 'Vollbild nicht verfügbar: {error}',\n\texitFullscreenFailed: 'Vollbild konnte nicht beendet werden: {error}',\n\n\timageViewer: 'Bildbetrachter',\n\timageLoading: 'Bild wird geladen…',\n\timageUnsupported: 'Bildformat nicht unterstützt: {ext}. Unterstützt: {formats}',\n\timageUnknownFormat: '(unbekannt)',\n\timageDecodeFailed: '{file} konnte nicht gelesen werden',\n\tpreviousImage: 'Vorheriges Bild',\n\tnextImage: 'Nächstes Bild',\n\tzoomHint: 'Zum Zoomen Strg oder ⌘ halten und scrollen',\n\tzoomIn: 'Vergrössern',\n\tzoomOut: 'Verkleinern',\n\tzoomFit: 'Einpassen',\n\tzoomActual: 'Originalgrösse',\n\tdownloadImage: 'Bild herunterladen'\n};\n\nexport const VIEWER_MESSAGES: Record<Locale, ViewerMessages> = { en, de };\n\nexport const DEFAULT_LOCALE: Locale = 'en';\n\n/** Resolve a catalog for a locale, falling back to English for unknown locales. */\nexport function messagesFor(locale: Locale | undefined): ViewerMessages {\n\treturn VIEWER_MESSAGES[locale ?? DEFAULT_LOCALE] ?? VIEWER_MESSAGES[DEFAULT_LOCALE];\n}\n\n/** Layers a host's partial overrides over a full catalog. An `undefined` entry keeps the base string. */\nexport function withOverrides(\n\tbase: ViewerMessages,\n\toverrides: Partial<ViewerMessages> | undefined\n): ViewerMessages {\n\tif (!overrides) return base;\n\tconst merged = { ...base };\n\tfor (const [key, value] of Object.entries(overrides) as [keyof ViewerMessages, string][]) {\n\t\tif (value !== undefined) merged[key] = value;\n\t}\n\treturn merged;\n}\n\n/** Fills each `{name}` placeholder from `vars`; an unknown placeholder is left as written. */\nexport function formatMessage(template: string, vars: Record<string, string | number>): string {\n\treturn template.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n\t\tname in vars ? String(vars[name]) : placeholder\n\t);\n}\n\n/** Picks the singular or plural form for `count` and fills its `{count}`. */\nexport function formatCount(count: number, one: string, other: string): string {\n\treturn formatMessage(count === 1 ? one : other, { count });\n}\n","import { getContext, setContext } from 'svelte';\nimport {\n\ttype Locale,\n\ttype ViewerMessages,\n\tmessagesFor,\n\twithOverrides,\n\tDEFAULT_LOCALE\n} from './messages';\n\n// Carries the UI locale down to the viewer and its panels without threading a\n// `lang` prop through every layer.\n//\n// Resolution order for any consuming component:\n// explicit `lang` prop → nearest locale context → English default\n// and the strings are that locale's catalog with any `messages` overrides on top.\n//\n// Two ways to provide it:\n// - Standalone: <Viewer lang=\"de\" /> — Viewer provides the context itself.\n// - In an app: call setLocaleContext(() => app.locale) once at the root; the\n// viewer (and anything else) reads it.\n\nconst LOCALE_CONTEXT_KEY = Symbol('viewer-locale-context');\n\nexport interface LocaleContext {\n\treadonly locale: Locale;\n\treadonly messages: ViewerMessages;\n}\n\n/**\n * Provide the locale to descendants. Pass getters, not values: they are re-read on every\n * consumer render, so a reactive source (a `$state`, the app's Paraglide locale) switches\n * the language live. `getOverrides` replaces individual strings of the resolved catalog.\n */\nexport function setLocaleContext(\n\tgetLocale: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): void {\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLocale() ?? DEFAULT_LOCALE;\n\t\t},\n\t\tget messages() {\n\t\t\treturn withOverrides(messagesFor(getLocale()), getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n}\n\n/**\n * Re-provides the nearest context for a component that takes its own `lang`/`messages` props.\n * Without `lang`, or with the inherited locale, the subtree keeps the overrides an outer provider\n * applied; a different `lang` starts from that locale's catalog, since those overrides were\n * written for another language.\n */\nexport function layerLocaleContext(\n\tgetLang: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): LocaleContext {\n\tconst outer = getLocaleContext();\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLang() ?? outer.locale;\n\t\t},\n\t\tget messages() {\n\t\t\tconst lang = getLang();\n\t\t\tconst base = lang === undefined || lang === outer.locale ? outer.messages : messagesFor(lang);\n\t\t\treturn withOverrides(base, getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n\treturn ctx;\n}\n\n/**\n * Falls back to an English-only context when no provider exists (a primitive used in\n * isolation), so consumers never need a null check.\n */\nexport function getLocaleContext(): LocaleContext {\n\treturn (\n\t\tgetContext<LocaleContext | undefined>(LOCALE_CONTEXT_KEY) ?? {\n\t\t\tget locale() {\n\t\t\t\treturn DEFAULT_LOCALE;\n\t\t\t},\n\t\t\tget messages() {\n\t\t\t\treturn messagesFor(DEFAULT_LOCALE);\n\t\t\t}\n\t\t}\n\t);\n}\n"],"mappings":";;AAksBA,IAAa,kBAAkD;CAAE;EA/ahE,WAAW;EACX,sBAAsB;EACtB,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,SAAS;EACT,MAAM;EACN,SAAS;EACT,OAAO;EACP,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAEhB,SAAS;EACT,WAAW;EACX,WAAW;EACX,UAAU;EACV,UAAU;EACV,YAAY;EACZ,SAAS;EAET,eAAe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,aAAa;EACb,eAAe;EAEf,eAAe;EACf,aAAa;EACb,aAAa;EACb,eAAe;EACf,WAAW;EACX,aAAa;EACb,WAAW;EACX,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,WAAW;EACX,cAAc;EAEd,oBAAoB;EACpB,YAAY;EAEZ,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,0BAA0B;EAC1B,sBAAsB;EACtB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,sBAAsB;EACtB,cAAc;EACd,WAAW;EACX,cAAc;EACd,eAAe;EACf,SAAS;EACT,eAAe;EACf,SAAS;EACT,gBAAgB;EAChB,mBAAmB;EACnB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,aAAa;EAEb,SAAS;EACT,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX,UAAU;EACV,aAAa;EACb,iBAAiB;EAE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AAkB,KAAA;EACvD,IAAI,SAAS;GACZ,OAAA;EACD;EACA,IAAI,WAAW;GACd,OAAO,YAAA,IAA0B;EAClC;;AAGH"}
1
+ {"version":3,"file":"localeContext.svelte.js","names":[],"sources":["../../../../ui/src/lib/i18n/messages.ts","../../../../ui/src/lib/i18n/localeContext.svelte.ts"],"sourcesContent":["// ============================================================================\n// Viewer message catalog (library-owned strings)\n// ============================================================================\n//\n// Only the strings @selvajs/ui renders itself. Names coming from a Grasshopper\n// definition — meshes, layers, metadata keys — live in the user's .gh file and\n// cannot be translated here.\n//\n// A `{name}` in a message is a placeholder the component fills in. Pairs ending in\n// `One`/`Other` are the singular and plural forms of one message.\n\nexport type Locale = 'en' | 'de';\n\nexport interface ViewerMessages {\n\t// Tools menu\n\ttoolsMenu: string;\n\tswitchToOrthographic: string;\n\tswitchToPerspective: string;\n\tfitToView: string;\n\tviews: string;\n\tmeasure: string;\n\tgrid: string;\n\tdisplay: string;\n\tedges: string;\n\tsceneManager: string;\n\tscreenshot: string;\n\tfullscreen: string;\n\texitFullscreen: string;\n\n\t// View presets\n\tviewTop: string;\n\tviewFront: string;\n\tviewRight: string;\n\tviewBack: string;\n\tviewLeft: string;\n\tviewBottom: string;\n\tviewIso: string;\n\n\t// Display looks\n\tlookTechnical: string;\n\tlookStudio: string;\n\tlookShowcase: string;\n\tlookNight: string;\n\tnightMode: string;\n\tlookArctic: string;\n\tlookXray: string;\n\tlookLineart: string;\n\tlookWireframe: string;\n\n\t// Scene manager\n\tsearchObjects: string;\n\tclearSearch: string;\n\texpandLayer: string;\n\tcollapseLayer: string;\n\texpandAll: string;\n\tcollapseAll: string;\n\tshowLayer: string;\n\thideLayer: string;\n\tshowObject: string;\n\thideObject: string;\n\tnoObjects: string;\n\t/** `{query}` is replaced with the current search text. */\n\tnoResultsFor: string;\n\n\t// Metadata dialog\n\tobjectFallbackName: string;\n\tnoMetadata: string;\n\n\t// App layout / compute shell\n\tloadingSchema: string;\n\tsolveBlocked: string;\n\tsolveBlockedTitle: string;\n\tsolveMessagesTitle: string;\n\tsolveMessagesDescription: string;\n\tsolveMessagesConfirm: string;\n\tsolveMessagesDiscard: string;\n\tsolveMessagesAbort: string;\n\t/** Stands in for Abort where the page can't take a click mid-solve. */\n\tsolveMessagesEscHint: string;\n\tsolveMessagesDismiss: string;\n\tsolveSolving: string;\n\t/** A visible solve has landed; followed by how long it took. */\n\tsolveDone: string;\n\t/** A visible solve was aborted; the previous result stays. */\n\tsolveStopped: string;\n\t/** A solve passed its deadline. `{seconds}` is replaced with the deadline. */\n\tsolveTimedOut: string;\n\t/** A field's help button. `{label}` is the field's label. */\n\thelpFor: string;\n\tparametersTab: string;\n\tmoreTab: string;\n\tscrollTabsBack: string;\n\tscrollTabsForward: string;\n\t/** `{side}` is replaced with `panelSideLeft` / `panelSideRight`. */\n\texpandSidePanel: string;\n\tpanelSideLeft: string;\n\tpanelSideRight: string;\n\ttabNoGroups: string;\n\n\t// Solve controls\n\tsolving: string;\n\tsolvingEllipsis: string;\n\tsolvingSubtitle: string;\n\tpressToCalculate: string;\n\tcalculate: string;\n\tupToDate: string;\n\t/** The panel footer's ⋯ menu: saving and loading inputs, plus the host's own actions. */\n\tmoreActions: string;\n\t/** Under a menu action that solves before it runs, while the inputs have changed. */\n\tcalculatesFirst: string;\n\n\t// Footer and message centre\n\t/** `{count}` is replaced with the number of errors. */\n\terrorCountOne: string;\n\terrorCountOther: string;\n\t/** `{count}` is replaced with the number of warnings. */\n\twarningCountOne: string;\n\twarningCountOther: string;\n\t/** `{count}` is replaced with the number of notes. */\n\tnoteCountOne: string;\n\tnoteCountOther: string;\n\t/** `{count}` is replaced with the number of messages. */\n\tlastSolveMessagesOne: string;\n\tlastSolveMessagesOther: string;\n\tmessagesTitle: string;\n\t/** `{name}` is replaced with the copyright holder, `{year}` with the current year. */\n\tcopyright: string;\n\tclose: string;\n\ttoggleTheme: string;\n\terrorTitle: string;\n\tgoHome: string;\n\n\t// Input fields\n\tselectOption: string;\n\tnoOptionsYet: string;\n\t/** `{min}` is replaced with the field's minimum. */\n\tminValue: string;\n\t/** `{max}` is replaced with the field's maximum. */\n\tmaxValue: string;\n\tfineDragHint: string;\n\t/** `{max}` is replaced with the field's character limit. */\n\tmaxLength: string;\n\tinvalidFormat: string;\n\t/** Trigger label; `{color}` is the current hex value. */\n\tcolorPick: string;\n\tcolorArea: string;\n\t/** `{s}` and `{v}` are percentages. */\n\tcolorAreaValue: string;\n\tcolorHue: string;\n\tcolorHex: string;\n\tcolorHexInvalid: string;\n\tcolorPresets: string;\n\tcolorEyedropper: string;\n\tinvalidPattern: string;\n\n\t// Geometry input (Rhino only)\n\t/** The pick button when the input takes several kinds of object. */\n\tgeometryPickAnyOne: string;\n\tgeometryPickAnyOther: string;\n\t/** Shown while Rhino's viewport prompt for a pick is open. */\n\tgeometryPicking: string;\n\t/** Where this page may not pick, such as a browser tab beside the Rhino panel. */\n\tgeometryPickInPanel: string;\n\tgeometryPickAgain: string;\n\tgeometryClear: string;\n\t// The pick button when the input takes one kind: `One` picks a single object, `Other` several.\n\tgeometryPickPointOne: string;\n\tgeometryPickPointOther: string;\n\tgeometryPickPointCloudOne: string;\n\tgeometryPickPointCloudOther: string;\n\tgeometryPickCurveOne: string;\n\tgeometryPickCurveOther: string;\n\tgeometryPickLineOne: string;\n\tgeometryPickLineOther: string;\n\tgeometryPickPlaneOne: string;\n\tgeometryPickPlaneOther: string;\n\tgeometryPickSurfaceOne: string;\n\tgeometryPickSurfaceOther: string;\n\tgeometryPickPolysurfaceOne: string;\n\tgeometryPickPolysurfaceOther: string;\n\tgeometryPickExtrusionOne: string;\n\tgeometryPickExtrusionOther: string;\n\tgeometryPickMeshOne: string;\n\tgeometryPickMeshOther: string;\n\tgeometryPickSubdOne: string;\n\tgeometryPickSubdOther: string;\n\tgeometryPickBlockOne: string;\n\tgeometryPickBlockOther: string;\n\n\t// Drawn input (Selva): a Get Line, Get Point or Get Geometry, drawn in the viewer or imported\n\tcurveDrawPoint: string;\n\tcurveDrawLine: string;\n\tcurveDrawPolyline: string;\n\t/** A free-form curve pulled toward its control points. */\n\tcurveDrawCurve: string;\n\tcurveImport: string;\n\t/** Starts moving the points of what is drawn. */\n\tcurveEdit: string;\n\t/** Back to the definition's own curves. */\n\tcurveReset: string;\n\tcurveUndo: string;\n\tcurveDone: string;\n\t/** Shown while each drawing mode is on. */\n\t/** For a drawing mode the host supplies. */\n\tcurveHintDraw: string;\n\tcurveHintPoint: string;\n\tcurveHintLine: string;\n\tcurveHintPolyline: string;\n\tcurveHintCurve: string;\n\tcurveHintMove: string;\n\t/** Label of the grid-snap spacing field, and its placeholder when the grid is off. */\n\tcurveGrid: string;\n\tcurveGridOff: string;\n\t/** Label of the checkbox that shows segment lengths in the viewer. */\n\tcurveDimensions: string;\n\t/** Before the first solve the model's units are unknown, so nothing can be drawn to scale. */\n\tcurveNeedsSolve: string;\n\t/** In place of the count, while the input holds no curve. */\n\tcurveEmpty: string;\n\tcurveCountOne: string;\n\tcurveCountOther: string;\n\tcurveCountLineOne: string;\n\tcurveCountLineOther: string;\n\tcurveCountPointOne: string;\n\tcurveCountPointOther: string;\n\tcurveImportEmpty: string;\n\tcurveImportSkippedOne: string;\n\tcurveImportSkippedOther: string;\n\t/** The input takes `{max}` curves and the file had `{count}`. */\n\tcurveImportOverLimitOne: string;\n\tcurveImportOverLimitOther: string;\n\t/** `{max}` is the most curves any import may hold. */\n\tcurveImportTooMany: string;\n\tcurveImportUnsupported: string;\n\tcurveImportFailed: string;\n\t/** rhino3dm, which writes curves in Rhino's format, could not be downloaded. */\n\tcurveEncodeFailed: string;\n\n\t// File input\n\tfileModeUpload: string;\n\tfileModeUrl: string;\n\tfileUrlLabel: string;\n\tfetchFile: string;\n\tfetchingFile: string;\n\tfileUrlPublic: string;\n\tchooseFile: string;\n\t/** `{formats}` is replaced with the accepted extensions. */\n\tacceptedFormats: string;\n\t/** `{ext}` is replaced with the file's extension. */\n\tuploadedFile: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in MB. */\n\tuploadedFileSize: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in KB. */\n\tfileLoaded: string;\n\turlInvalid: string;\n\turlProtocolUnsupported: string;\n\t/** `{status}` is replaced with the HTTP status the server answered with. */\n\turlServerError: string;\n\t/** `{ext}` is replaced with the rejected extension, `{formats}` with the accepted ones. */\n\tfileFormatNotAccepted: string;\n\t/** `{size}` is replaced with the file's size in MB, `{max}` with the limit in MB. */\n\tfileTooLarge: string;\n\tfileTooLargeUseUpload: string;\n\tfileReadFailed: string;\n\t/** `{host}` is replaced with the URL's host name. */\n\turlUnreachable: string;\n\turlUnreachableHint: string;\n\turlHintSharePoint: string;\n\turlHintGoogleDrive: string;\n\turlHintDropbox: string;\n\tunknownError: string;\n\n\t// Outputs\n\twaitingForData: string;\n\twaitingForFiles: string;\n\t/** `{count}` is replaced with the number of files. */\n\tfileCount: string;\n\tduplicateFilesTitle: string;\n\tduplicatePathsOne: string;\n\tduplicatePathsOther: string;\n\tduplicateFilesHint: string;\n\tdownloadFile: string;\n\t/** `{count}` is replaced with the number of files. */\n\tdownloadFiles: string;\n\tdownloading: string;\n\tdownloadFailed: string;\n\t/** A preview skipped this output's files; a click makes them. */\n\tfilesMadeOnDownload: string;\n\tdownload: string;\n\tmakingFiles: string;\n\t/** `{seconds}` is replaced with how long the full solve took. */\n\tfilesMadeIn: string;\n\tnoFilesForInputs: string;\n\ttryAgain: string;\n\tcancel: string;\n\tcopy: string;\n\tcopied: string;\n\tchartReceiving: string;\n\tchartRenderFailed: string;\n\tdownloadChartImage: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\tfullscreenUnavailable: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\texitFullscreenFailed: string;\n\n\t// Image output\n\timageViewer: string;\n\timageLoading: string;\n\t/** `{ext}` is replaced with the file's extension, `{formats}` with the supported ones. */\n\timageUnsupported: string;\n\timageUnknownFormat: string;\n\t/** `{file}` is replaced with the file's name. */\n\timageDecodeFailed: string;\n\tpreviousImage: string;\n\tnextImage: string;\n\tzoomHint: string;\n\tzoomIn: string;\n\tzoomOut: string;\n\tzoomFit: string;\n\tzoomActual: string;\n\tdownloadImage: string;\n}\n\nconst en: ViewerMessages = {\n\ttoolsMenu: 'Viewer tools',\n\tswitchToOrthographic: 'Orthographic camera',\n\tswitchToPerspective: 'Perspective camera',\n\tfitToView: 'Fit to view',\n\tviews: 'Views',\n\tmeasure: 'Measure',\n\tgrid: 'Grid',\n\tdisplay: 'Display',\n\tedges: 'Edges',\n\tsceneManager: 'Scene manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Fullscreen',\n\texitFullscreen: 'Exit fullscreen',\n\n\tviewTop: 'Top',\n\tviewFront: 'Front',\n\tviewRight: 'Right',\n\tviewBack: 'Back',\n\tviewLeft: 'Left',\n\tviewBottom: 'Bottom',\n\tviewIso: 'Isometric',\n\n\tlookTechnical: 'Technical',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Showcase',\n\tlookNight: 'Night',\n\tnightMode: 'Night mode',\n\tlookArctic: 'Arctic',\n\tlookXray: 'X-Ray',\n\tlookLineart: 'Line Art',\n\tlookWireframe: 'Wireframe',\n\n\tsearchObjects: 'Search objects...',\n\tclearSearch: 'Clear search',\n\texpandLayer: 'Expand layer',\n\tcollapseLayer: 'Collapse layer',\n\texpandAll: 'Expand all',\n\tcollapseAll: 'Collapse all',\n\tshowLayer: 'Show layer',\n\thideLayer: 'Hide layer',\n\tshowObject: 'Show object',\n\thideObject: 'Hide object',\n\tnoObjects: 'No objects',\n\tnoResultsFor: 'No results for \"{query}\"',\n\n\tobjectFallbackName: 'Object',\n\tnoMetadata: 'No metadata',\n\n\tloadingSchema: 'Loading…',\n\tsolveBlocked: 'The definition stopped this solve. No results were produced.',\n\tsolveBlockedTitle: 'Solve stopped',\n\tsolveMessagesTitle: 'Solve messages',\n\tsolveMessagesDescription: 'This solve reported the following. Continue to see the result.',\n\tsolveMessagesConfirm: 'Continue',\n\tsolveMessagesDiscard: 'Discard',\n\tsolveMessagesAbort: 'Abort',\n\tsolveMessagesEscHint: 'Esc aborts the solve',\n\tsolveMessagesDismiss: 'Dismiss',\n\tsolveSolving: 'Solving…',\n\tsolveDone: 'Done',\n\tsolveStopped: 'Stopped',\n\tsolveTimedOut: 'The solve took longer than {seconds} s and was stopped.',\n\thelpFor: 'Help for {label}',\n\tparametersTab: 'Parameters',\n\tmoreTab: 'More',\n\tscrollTabsBack: 'Previous tabs',\n\tscrollTabsForward: 'More tabs',\n\texpandSidePanel: 'Expand {side} panel',\n\tpanelSideLeft: 'left',\n\tpanelSideRight: 'right',\n\ttabNoGroups: 'This tab has no groups configured.',\n\n\tsolving: 'Solving',\n\tsolvingEllipsis: 'Solving...',\n\tsolvingSubtitle: 'This can take a moment…',\n\tpressToCalculate: 'Press to calculate',\n\tcalculate: 'Calculate',\n\tupToDate: 'Up to date',\n\tmoreActions: 'More actions',\n\tcalculatesFirst: 'Calculates first',\n\n\terrorCountOne: '{count} error',\n\terrorCountOther: '{count} errors',\n\twarningCountOne: '{count} warning',\n\twarningCountOther: '{count} warnings',\n\tnoteCountOne: '{count} note',\n\tnoteCountOther: '{count} notes',\n\tlastSolveMessagesOne: '{count} message from the last solve',\n\tlastSolveMessagesOther: '{count} messages from the last solve',\n\tmessagesTitle: 'Messages',\n\tcopyright: 'by {name} © {year}',\n\tclose: 'Close',\n\ttoggleTheme: 'Toggle theme',\n\terrorTitle: 'Error',\n\tgoHome: 'Go Home',\n\n\tselectOption: 'Select an option...',\n\tnoOptionsYet: 'No options available yet.',\n\tminValue: 'Minimum value is {min}',\n\tmaxValue: 'Maximum value is {max}',\n\tfineDragHint: 'Hold Shift to drag finely',\n\tmaxLength: 'Maximum {max} characters allowed',\n\tinvalidFormat: 'Invalid format',\n\tcolorPick: 'Choose color, currently {color}',\n\tcolorArea: 'Saturation and brightness',\n\tcolorAreaValue: 'Saturation {s}%, brightness {v}%',\n\tcolorHue: 'Hue',\n\tcolorHex: 'Hex color',\n\tcolorHexInvalid: 'Enter a hex color such as #2f6fd6',\n\tcolorPresets: 'Presets',\n\tcolorEyedropper: 'Pick a color from the screen',\n\tinvalidPattern: 'Invalid validation pattern configured',\n\n\tgeometryPickAnyOne: 'Pick an object',\n\tgeometryPickAnyOther: 'Pick objects',\n\tgeometryPicking: 'Pick in the viewport, Esc to cancel',\n\tgeometryPickInPanel: 'Pick in the Rhino panel',\n\tgeometryPickAgain: 'Pick again',\n\tgeometryClear: 'Clear',\n\tgeometryPickPointOne: 'Pick a point',\n\tgeometryPickPointOther: 'Pick points',\n\tgeometryPickPointCloudOne: 'Pick a point cloud',\n\tgeometryPickPointCloudOther: 'Pick point clouds',\n\tgeometryPickCurveOne: 'Pick a curve',\n\tgeometryPickCurveOther: 'Pick curves',\n\tgeometryPickLineOne: 'Pick a line',\n\tgeometryPickLineOther: 'Pick lines',\n\tgeometryPickPlaneOne: 'Pick a plane',\n\tgeometryPickPlaneOther: 'Pick planes',\n\tgeometryPickSurfaceOne: 'Pick a surface',\n\tgeometryPickSurfaceOther: 'Pick surfaces',\n\tgeometryPickPolysurfaceOne: 'Pick a polysurface',\n\tgeometryPickPolysurfaceOther: 'Pick polysurfaces',\n\tgeometryPickExtrusionOne: 'Pick an extrusion',\n\tgeometryPickExtrusionOther: 'Pick extrusions',\n\tgeometryPickMeshOne: 'Pick a mesh',\n\tgeometryPickMeshOther: 'Pick meshes',\n\tgeometryPickSubdOne: 'Pick a SubD',\n\tgeometryPickSubdOther: 'Pick SubDs',\n\tgeometryPickBlockOne: 'Pick a block',\n\tgeometryPickBlockOther: 'Pick blocks',\n\n\tcurveDrawPoint: 'Point',\n\tcurveDrawLine: 'Line',\n\tcurveDrawPolyline: 'Polyline',\n\tcurveDrawCurve: 'Curve',\n\tcurveImport: 'Import',\n\tcurveEdit: 'Edit points',\n\tcurveReset: 'Reset',\n\tcurveUndo: 'Undo',\n\tcurveDone: 'Done',\n\tcurveHintDraw: 'Click in the viewer. Enter finishes, Esc steps back.',\n\tcurveHintPoint: 'Click in the viewer to place points. Done or Esc ends it.',\n\tcurveHintLine:\n\t\t'Click two points in the viewer. Type a length, or length<angle, and press Enter. Shift locks the angle.',\n\tcurveHintPolyline:\n\t\t'Click points in the viewer. Click the first point to close, the last one again or Enter to finish. Type a length for an exact segment.',\n\tcurveHintCurve:\n\t\t'Click control points in the viewer. Click the last one again or press Enter to finish.',\n\tcurveHintMove: 'Click a point, then where it goes. Delete removes it, Esc puts it back.',\n\tcurveGrid: 'Grid',\n\tcurveGridOff: 'Off',\n\tcurveDimensions: 'Dimensions',\n\tcurveNeedsSolve: 'Available after the first solve.',\n\tcurveEmpty: 'Nothing drawn yet',\n\tcurveCountOne: '{count} curve',\n\tcurveCountOther: '{count} curves',\n\tcurveCountLineOne: '{count} line',\n\tcurveCountLineOther: '{count} lines',\n\tcurveCountPointOne: '{count} point',\n\tcurveCountPointOther: '{count} points',\n\tcurveImportEmpty: 'The file has nothing this input can take.',\n\tcurveImportSkippedOne: '{count} object was left out: this input does not take it.',\n\tcurveImportSkippedOther: '{count} objects were left out: this input does not take them.',\n\tcurveImportOverLimitOne: 'This input takes one object: the first of {count} was imported.',\n\tcurveImportOverLimitOther:\n\t\t'This input takes {max} objects: the first {max} of {count} were imported.',\n\tcurveImportTooMany: 'The file has more than {max} objects. Import a smaller selection.',\n\tcurveImportUnsupported: 'Choose a DXF or 3DM file.',\n\tcurveImportFailed: 'The file could not be read.',\n\tcurveEncodeFailed: 'The curve could not be sent: the Rhino file library failed to load.',\n\n\tfileModeUpload: 'Upload',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'File URL',\n\tfetchFile: 'Fetch',\n\tfetchingFile: 'Fetching...',\n\tfileUrlPublic: 'URL must be publicly accessible (no login required).',\n\tchooseFile: 'Choose File or Drag & Drop',\n\tacceptedFormats: 'Accepted formats: {formats}',\n\tuploadedFile: 'Uploaded file ({ext})',\n\tuploadedFileSize: 'Uploaded file ({ext}, {size}MB)',\n\tfileLoaded: 'Loaded {ext} ({size} KB)',\n\turlInvalid: 'Invalid URL — make sure it starts with https://',\n\turlProtocolUnsupported: 'Only http:// and https:// URLs are supported.',\n\turlServerError: 'Server returned {status}. Check the URL is correct and publicly accessible.',\n\tfileFormatNotAccepted: 'File format \"{ext}\" is not accepted. Allowed: {formats}',\n\tfileTooLarge: 'File too large: {size}MB (max {max}MB).',\n\tfileTooLargeUseUpload: 'Download it and use Upload instead.',\n\tfileReadFailed: 'Failed to read the downloaded file.',\n\turlUnreachable:\n\t\t'Could not reach \"{host}\" — the file may not exist, or the server does not allow browser access.',\n\turlUnreachableHint:\n\t\t'Check that the URL is correct and the file is publicly accessible. If the server requires login, download the file and use the Upload option instead.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive blocks browser access. Open the file in SharePoint, use \"Download\" to save it locally, then upload it here.',\n\turlHintGoogleDrive:\n\t\t'Google Drive blocks browser access. Use \"Download\" in Google Drive to save the file locally, then upload it here.',\n\turlHintDropbox:\n\t\t'Dropbox links may block browser access. Try changing \"?dl=0\" to \"?dl=1\" in the URL, or download and upload instead.',\n\tunknownError: 'Unknown error',\n\n\twaitingForData: 'Waiting for data...',\n\twaitingForFiles: 'Waiting for file data...',\n\tfileCount: '{count} files',\n\tduplicateFilesTitle: 'Duplicate file names detected',\n\tduplicatePathsOne: 'The following path appears more than once:',\n\tduplicatePathsOther: 'The following paths appear more than once:',\n\tduplicateFilesHint:\n\t\t'Rename outputs in your Grasshopper definition so each file has a unique name.',\n\tdownloadFile: 'Download File',\n\tdownloadFiles: 'Download {count} Files',\n\tdownloading: 'Downloading...',\n\tdownloadFailed: 'Download failed',\n\tfilesMadeOnDownload: 'Made when you download',\n\tdownload: 'Download',\n\tmakingFiles: 'Making files',\n\tfilesMadeIn: 'Made in {seconds} s',\n\tnoFilesForInputs: 'Nothing to download for these inputs.',\n\ttryAgain: 'Try again',\n\tcancel: 'Cancel',\n\tcopy: 'Copy',\n\tcopied: 'Copied!',\n\tchartReceiving: 'Receiving chart data...',\n\tchartRenderFailed: 'Failed to render chart',\n\tdownloadChartImage: 'Download plot as image',\n\tfullscreenUnavailable: 'Fullscreen unavailable: {error}',\n\texitFullscreenFailed: 'Exit fullscreen failed: {error}',\n\n\timageViewer: 'image viewer',\n\timageLoading: 'Loading image…',\n\timageUnsupported: 'Unsupported image format: {ext}. Supported: {formats}',\n\timageUnknownFormat: '(unknown)',\n\timageDecodeFailed: \"Couldn't decode {file}\",\n\tpreviousImage: 'Previous image',\n\tnextImage: 'Next image',\n\tzoomHint: 'Hold Ctrl or ⌘ and scroll to zoom',\n\tzoomIn: 'Zoom in',\n\tzoomOut: 'Zoom out',\n\tzoomFit: 'Fit',\n\tzoomActual: 'Actual pixels',\n\tdownloadImage: 'Download image'\n};\n\nconst de: ViewerMessages = {\n\ttoolsMenu: 'Viewer-Werkzeuge',\n\tswitchToOrthographic: 'Orthografische Kamera',\n\tswitchToPerspective: 'Perspektivische Kamera',\n\tfitToView: 'Ansicht anpassen',\n\tviews: 'Ansichten',\n\tmeasure: 'Messen',\n\tgrid: 'Raster',\n\tdisplay: 'Darstellung',\n\tedges: 'Kanten',\n\tsceneManager: 'Szenen-Manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Vollbild',\n\texitFullscreen: 'Vollbild beenden',\n\n\tviewTop: 'Oben',\n\tviewFront: 'Vorne',\n\tviewRight: 'Rechts',\n\tviewBack: 'Hinten',\n\tviewLeft: 'Links',\n\tviewBottom: 'Unten',\n\tviewIso: 'Isometrisch',\n\n\tlookTechnical: 'Technisch',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Präsentation',\n\tlookNight: 'Nacht',\n\tnightMode: 'Nachtmodus',\n\tlookArctic: 'Arktis',\n\tlookXray: 'Röntgen',\n\tlookLineart: 'Strichzeichnung',\n\tlookWireframe: 'Drahtgitter',\n\n\tsearchObjects: 'Objekte suchen...',\n\tclearSearch: 'Suche löschen',\n\texpandLayer: 'Ebene aufklappen',\n\tcollapseLayer: 'Ebene zuklappen',\n\texpandAll: 'Alle aufklappen',\n\tcollapseAll: 'Alle zuklappen',\n\tshowLayer: 'Ebene einblenden',\n\thideLayer: 'Ebene ausblenden',\n\tshowObject: 'Objekt einblenden',\n\thideObject: 'Objekt ausblenden',\n\tnoObjects: 'Keine Objekte',\n\tnoResultsFor: 'Keine Ergebnisse für „{query}“',\n\n\tobjectFallbackName: 'Objekt',\n\tnoMetadata: 'Keine Metadaten',\n\n\tloadingSchema: 'Wird geladen…',\n\tsolveBlocked: 'Die Definition hat diese Berechnung gestoppt. Es wurden keine Ergebnisse erzeugt.',\n\tsolveBlockedTitle: 'Berechnung gestoppt',\n\tsolveMessagesTitle: 'Meldungen zur Berechnung',\n\tsolveMessagesDescription:\n\t\t'Diese Berechnung hat Folgendes gemeldet. Weiter, um das Ergebnis zu sehen.',\n\tsolveMessagesConfirm: 'Weiter',\n\tsolveMessagesDiscard: 'Verwerfen',\n\tsolveMessagesAbort: 'Abbrechen',\n\tsolveMessagesEscHint: 'Esc bricht die Berechnung ab',\n\tsolveMessagesDismiss: 'Schliessen',\n\tsolveSolving: 'Berechnung läuft…',\n\tsolveDone: 'Fertig',\n\tsolveStopped: 'Abgebrochen',\n\tsolveTimedOut: 'Die Berechnung dauerte länger als {seconds} s und wurde abgebrochen.',\n\thelpFor: 'Hilfe zu {label}',\n\tparametersTab: 'Parameter',\n\tmoreTab: 'Mehr',\n\tscrollTabsBack: 'Vorherige Tabs',\n\tscrollTabsForward: 'Weitere Tabs',\n\texpandSidePanel: '{side} Bereich aufklappen',\n\tpanelSideLeft: 'Linken',\n\tpanelSideRight: 'Rechten',\n\ttabNoGroups: 'Für diesen Tab sind keine Gruppen konfiguriert.',\n\n\tsolving: 'Berechnung läuft',\n\tsolvingEllipsis: 'Berechnung läuft...',\n\tsolvingSubtitle: 'Das kann einen Moment dauern…',\n\tpressToCalculate: 'Berechnen',\n\tcalculate: 'Berechnen',\n\tupToDate: 'Berechnet',\n\tmoreActions: 'Weitere Aktionen',\n\tcalculatesFirst: 'Berechnet zuerst',\n\n\terrorCountOne: '{count} Fehler',\n\terrorCountOther: '{count} Fehler',\n\twarningCountOne: '{count} Warnung',\n\twarningCountOther: '{count} Warnungen',\n\tnoteCountOne: '{count} Hinweis',\n\tnoteCountOther: '{count} Hinweise',\n\tlastSolveMessagesOne: '{count} Meldung der letzten Berechnung',\n\tlastSolveMessagesOther: '{count} Meldungen der letzten Berechnung',\n\tmessagesTitle: 'Meldungen',\n\tcopyright: 'von {name} © {year}',\n\tclose: 'Schliessen',\n\ttoggleTheme: 'Farbschema wechseln',\n\terrorTitle: 'Fehler',\n\tgoHome: 'Zur Startseite',\n\n\tselectOption: 'Option wählen…',\n\tnoOptionsYet: 'Noch keine Optionen verfügbar.',\n\tminValue: 'Der kleinste erlaubte Wert ist {min}',\n\tmaxValue: 'Der grösste erlaubte Wert ist {max}',\n\tfineDragHint: 'Umschalttaste halten für feine Schritte',\n\tmaxLength: 'Höchstens {max} Zeichen erlaubt',\n\tinvalidFormat: 'Ungültiges Format',\n\tcolorPick: 'Farbe wählen, aktuell {color}',\n\tcolorArea: 'Sättigung und Helligkeit',\n\tcolorAreaValue: 'Sättigung {s} %, Helligkeit {v} %',\n\tcolorHue: 'Farbton',\n\tcolorHex: 'Hex-Farbe',\n\tcolorHexInvalid: 'Hex-Farbe eingeben, z. B. #2f6fd6',\n\tcolorPresets: 'Vorgaben',\n\tcolorEyedropper: 'Farbe vom Bildschirm aufnehmen',\n\tinvalidPattern: 'Ungültiges Prüfmuster hinterlegt',\n\n\tgeometryPickAnyOne: 'Objekt wählen',\n\tgeometryPickAnyOther: 'Objekte wählen',\n\tgeometryPicking: 'Im Ansichtsfenster wählen, Esc bricht ab',\n\tgeometryPickInPanel: 'Im Rhino-Panel wählen',\n\tgeometryPickAgain: 'Neu wählen',\n\tgeometryClear: 'Leeren',\n\tgeometryPickPointOne: 'Punkt wählen',\n\tgeometryPickPointOther: 'Punkte wählen',\n\tgeometryPickPointCloudOne: 'Punktwolke wählen',\n\tgeometryPickPointCloudOther: 'Punktwolken wählen',\n\tgeometryPickCurveOne: 'Kurve wählen',\n\tgeometryPickCurveOther: 'Kurven wählen',\n\tgeometryPickLineOne: 'Linie wählen',\n\tgeometryPickLineOther: 'Linien wählen',\n\tgeometryPickPlaneOne: 'Ebene wählen',\n\tgeometryPickPlaneOther: 'Ebenen wählen',\n\tgeometryPickSurfaceOne: 'Fläche wählen',\n\tgeometryPickSurfaceOther: 'Flächen wählen',\n\tgeometryPickPolysurfaceOne: 'Flächenverband wählen',\n\tgeometryPickPolysurfaceOther: 'Flächenverbände wählen',\n\tgeometryPickExtrusionOne: 'Extrusion wählen',\n\tgeometryPickExtrusionOther: 'Extrusionen wählen',\n\tgeometryPickMeshOne: 'Netz wählen',\n\tgeometryPickMeshOther: 'Netze wählen',\n\tgeometryPickSubdOne: 'SubD wählen',\n\tgeometryPickSubdOther: 'SubDs wählen',\n\tgeometryPickBlockOne: 'Block wählen',\n\tgeometryPickBlockOther: 'Blöcke wählen',\n\n\tcurveDrawPoint: 'Punkt',\n\tcurveDrawLine: 'Linie',\n\tcurveDrawPolyline: 'Polylinie',\n\tcurveDrawCurve: 'Kurve',\n\tcurveImport: 'Importieren',\n\tcurveEdit: 'Punkte bearbeiten',\n\tcurveReset: 'Zurücksetzen',\n\tcurveUndo: 'Rückgängig',\n\tcurveDone: 'Fertig',\n\tcurveHintDraw: 'Im Viewer klicken. Enter beendet, Esc geht einen Schritt zurück.',\n\tcurveHintPoint: 'Im Viewer klicken, um Punkte zu setzen. Fertig oder Esc beendet.',\n\tcurveHintLine:\n\t\t'Zwei Punkte im Viewer klicken. Länge oder Länge<Winkel tippen und Enter drücken. Shift rastet den Winkel.',\n\tcurveHintPolyline:\n\t\t'Punkte im Viewer klicken. Ersten Punkt klicken zum Schliessen, letzten erneut oder Enter zum Beenden. Länge tippen für ein exaktes Segment.',\n\tcurveHintCurve:\n\t\t'Kontrollpunkte im Viewer klicken. Letzten erneut klicken oder Enter zum Beenden.',\n\tcurveHintMove: 'Punkt klicken, dann das Ziel. Entf löscht ihn, Esc setzt ihn zurück.',\n\tcurveGrid: 'Raster',\n\tcurveGridOff: 'Aus',\n\tcurveDimensions: 'Bemassung',\n\tcurveNeedsSolve: 'Nach der ersten Berechnung verfügbar.',\n\tcurveEmpty: 'Noch nichts gezeichnet',\n\tcurveCountOne: '{count} Kurve',\n\tcurveCountOther: '{count} Kurven',\n\tcurveCountLineOne: '{count} Linie',\n\tcurveCountLineOther: '{count} Linien',\n\tcurveCountPointOne: '{count} Punkt',\n\tcurveCountPointOther: '{count} Punkte',\n\tcurveImportEmpty: 'Die Datei enthält nichts, was diese Eingabe annimmt.',\n\tcurveImportSkippedOne: '{count} Objekt ausgelassen: Diese Eingabe nimmt es nicht an.',\n\tcurveImportSkippedOther: '{count} Objekte ausgelassen: Diese Eingabe nimmt sie nicht an.',\n\tcurveImportOverLimitOne:\n\t\t'Diese Eingabe nimmt ein Objekt an: das erste von {count} wurde importiert.',\n\tcurveImportOverLimitOther:\n\t\t'Diese Eingabe nimmt {max} Objekte an: die ersten {max} von {count} wurden importiert.',\n\tcurveImportTooMany:\n\t\t'Die Datei enthält mehr als {max} Objekte. Eine kleinere Auswahl importieren.',\n\tcurveImportUnsupported: 'Eine DXF- oder 3DM-Datei wählen.',\n\tcurveImportFailed: 'Die Datei konnte nicht gelesen werden.',\n\tcurveEncodeFailed:\n\t\t'Die Kurve konnte nicht gesendet werden: Die Rhino-Dateibibliothek liess sich nicht laden.',\n\n\tfileModeUpload: 'Hochladen',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'Datei-URL',\n\tfetchFile: 'Abrufen',\n\tfetchingFile: 'Wird abgerufen…',\n\tfileUrlPublic: 'Die URL muss öffentlich erreichbar sein (ohne Anmeldung).',\n\tchooseFile: 'Datei wählen oder hierher ziehen',\n\tacceptedFormats: 'Erlaubte Formate: {formats}',\n\tuploadedFile: 'Hochgeladene Datei ({ext})',\n\tuploadedFileSize: 'Hochgeladene Datei ({ext}, {size} MB)',\n\tfileLoaded: '{ext} geladen ({size} KB)',\n\turlInvalid: 'Ungültige URL – sie muss mit https:// beginnen',\n\turlProtocolUnsupported: 'Nur http://- und https://-URLs werden unterstützt.',\n\turlServerError:\n\t\t'Der Server antwortete mit {status}. Ist die URL korrekt und öffentlich erreichbar?',\n\tfileFormatNotAccepted: 'Dateiformat „{ext}“ ist nicht erlaubt. Erlaubt: {formats}',\n\tfileTooLarge: 'Datei zu gross: {size} MB (höchstens {max} MB).',\n\tfileTooLargeUseUpload: 'Datei herunterladen und stattdessen über „Hochladen“ einfügen.',\n\tfileReadFailed: 'Die heruntergeladene Datei konnte nicht gelesen werden.',\n\turlUnreachable:\n\t\t'„{host}“ ist nicht erreichbar – die Datei existiert vielleicht nicht, oder der Server erlaubt keinen Zugriff aus dem Browser.',\n\turlUnreachableHint:\n\t\t'Prüfen, ob die URL stimmt und die Datei öffentlich erreichbar ist. Verlangt der Server eine Anmeldung: Datei herunterladen und über „Hochladen“ einfügen.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive sperrt den Zugriff aus dem Browser. Datei in SharePoint öffnen, mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintGoogleDrive:\n\t\t'Google Drive sperrt den Zugriff aus dem Browser. Datei in Google Drive mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintDropbox:\n\t\t'Dropbox-Links sperren den Zugriff aus dem Browser oft. In der URL „?dl=0“ durch „?dl=1“ ersetzen oder die Datei herunterladen und hochladen.',\n\tunknownError: 'Unbekannter Fehler',\n\n\twaitingForData: 'Noch keine Daten',\n\twaitingForFiles: 'Noch keine Dateien',\n\tfileCount: '{count} Dateien',\n\tduplicateFilesTitle: 'Doppelte Dateinamen',\n\tduplicatePathsOne: 'Dieser Pfad kommt mehrfach vor:',\n\tduplicatePathsOther: 'Diese Pfade kommen mehrfach vor:',\n\tduplicateFilesHint:\n\t\t'Ausgaben in der Grasshopper-Definition umbenennen, damit jede Datei einen eindeutigen Namen hat.',\n\tdownloadFile: 'Datei herunterladen',\n\tdownloadFiles: '{count} Dateien herunterladen',\n\tdownloading: 'Wird heruntergeladen…',\n\tdownloadFailed: 'Download fehlgeschlagen',\n\tfilesMadeOnDownload: 'Wird beim Herunterladen erstellt',\n\tdownload: 'Herunterladen',\n\tmakingFiles: 'Dateien werden erstellt',\n\tfilesMadeIn: 'Erstellt in {seconds} s',\n\tnoFilesForInputs: 'Für diese Eingaben gibt es nichts herunterzuladen.',\n\ttryAgain: 'Erneut versuchen',\n\tcancel: 'Abbrechen',\n\tcopy: 'Kopieren',\n\tcopied: 'Kopiert!',\n\tchartReceiving: 'Diagrammdaten werden empfangen…',\n\tchartRenderFailed: 'Diagramm konnte nicht dargestellt werden',\n\tdownloadChartImage: 'Diagramm als Bild herunterladen',\n\tfullscreenUnavailable: 'Vollbild nicht verfügbar: {error}',\n\texitFullscreenFailed: 'Vollbild konnte nicht beendet werden: {error}',\n\n\timageViewer: 'Bildbetrachter',\n\timageLoading: 'Bild wird geladen…',\n\timageUnsupported: 'Bildformat nicht unterstützt: {ext}. Unterstützt: {formats}',\n\timageUnknownFormat: '(unbekannt)',\n\timageDecodeFailed: '{file} konnte nicht gelesen werden',\n\tpreviousImage: 'Vorheriges Bild',\n\tnextImage: 'Nächstes Bild',\n\tzoomHint: 'Zum Zoomen Strg oder ⌘ halten und scrollen',\n\tzoomIn: 'Vergrössern',\n\tzoomOut: 'Verkleinern',\n\tzoomFit: 'Einpassen',\n\tzoomActual: 'Originalgrösse',\n\tdownloadImage: 'Bild herunterladen'\n};\n\nexport const VIEWER_MESSAGES: Record<Locale, ViewerMessages> = { en, de };\n\nexport const DEFAULT_LOCALE: Locale = 'en';\n\n/** Resolve a catalog for a locale, falling back to English for unknown locales. */\nexport function messagesFor(locale: Locale | undefined): ViewerMessages {\n\treturn VIEWER_MESSAGES[locale ?? DEFAULT_LOCALE] ?? VIEWER_MESSAGES[DEFAULT_LOCALE];\n}\n\n/** Layers a host's partial overrides over a full catalog. An `undefined` entry keeps the base string. */\nexport function withOverrides(\n\tbase: ViewerMessages,\n\toverrides: Partial<ViewerMessages> | undefined\n): ViewerMessages {\n\tif (!overrides) return base;\n\tconst merged = { ...base };\n\tfor (const [key, value] of Object.entries(overrides) as [keyof ViewerMessages, string][]) {\n\t\tif (value !== undefined) merged[key] = value;\n\t}\n\treturn merged;\n}\n\n/** Fills each `{name}` placeholder from `vars`; an unknown placeholder is left as written. */\nexport function formatMessage(template: string, vars: Record<string, string | number>): string {\n\treturn template.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n\t\tname in vars ? String(vars[name]) : placeholder\n\t);\n}\n\n/** Picks the singular or plural form for `count` and fills its `{count}`. */\nexport function formatCount(count: number, one: string, other: string): string {\n\treturn formatMessage(count === 1 ? one : other, { count });\n}\n","import { getContext, setContext } from 'svelte';\nimport {\n\ttype Locale,\n\ttype ViewerMessages,\n\tmessagesFor,\n\twithOverrides,\n\tDEFAULT_LOCALE\n} from './messages';\n\n// Carries the UI locale down to the viewer and its panels without threading a\n// `lang` prop through every layer.\n//\n// Resolution order for any consuming component:\n// explicit `lang` prop → nearest locale context → English default\n// and the strings are that locale's catalog with any `messages` overrides on top.\n//\n// Two ways to provide it:\n// - Standalone: <Viewer lang=\"de\" /> — Viewer provides the context itself.\n// - In an app: call setLocaleContext(() => app.locale) once at the root; the\n// viewer (and anything else) reads it.\n\nconst LOCALE_CONTEXT_KEY = Symbol('viewer-locale-context');\n\nexport interface LocaleContext {\n\treadonly locale: Locale;\n\treadonly messages: ViewerMessages;\n}\n\n/**\n * Provide the locale to descendants. Pass getters, not values: they are re-read on every\n * consumer render, so a reactive source (a `$state`, the app's Paraglide locale) switches\n * the language live. `getOverrides` replaces individual strings of the resolved catalog.\n */\nexport function setLocaleContext(\n\tgetLocale: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): void {\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLocale() ?? DEFAULT_LOCALE;\n\t\t},\n\t\tget messages() {\n\t\t\treturn withOverrides(messagesFor(getLocale()), getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n}\n\n/**\n * Re-provides the nearest context for a component that takes its own `lang`/`messages` props.\n * Without `lang`, or with the inherited locale, the subtree keeps the overrides an outer provider\n * applied; a different `lang` starts from that locale's catalog, since those overrides were\n * written for another language.\n */\nexport function layerLocaleContext(\n\tgetLang: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): LocaleContext {\n\tconst outer = getLocaleContext();\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLang() ?? outer.locale;\n\t\t},\n\t\tget messages() {\n\t\t\tconst lang = getLang();\n\t\t\tconst base = lang === undefined || lang === outer.locale ? outer.messages : messagesFor(lang);\n\t\t\treturn withOverrides(base, getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n\treturn ctx;\n}\n\n/**\n * Falls back to an English-only context when no provider exists (a primitive used in\n * isolation), so consumers never need a null check.\n */\nexport function getLocaleContext(): LocaleContext {\n\treturn (\n\t\tgetContext<LocaleContext | undefined>(LOCALE_CONTEXT_KEY) ?? {\n\t\t\tget locale() {\n\t\t\t\treturn DEFAULT_LOCALE;\n\t\t\t},\n\t\t\tget messages() {\n\t\t\t\treturn messagesFor(DEFAULT_LOCALE);\n\t\t\t}\n\t\t}\n\t);\n}\n"],"mappings":";;AAs0BA,IAAa,kBAAkD;CAAE;EAlgBhE,WAAW;EACX,sBAAsB;EACtB,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,SAAS;EACT,MAAM;EACN,SAAS;EACT,OAAO;EACP,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAEhB,SAAS;EACT,WAAW;EACX,WAAW;EACX,UAAU;EACV,UAAU;EACV,YAAY;EACZ,SAAS;EAET,eAAe;EACf,YAAY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AM,MAAA;EACL,IAAI,SAAS;GACZ,OAAO,QAAA,KAAa,MAAM;EAC3B;EACA,IAAI,WAAW;GACd,MAAM,OAAO,QAAA;GAEb,OAAO,cADM,SAAS,KAAA,KAAa,SAAS,MAAM,SAAS,MAAM,WAAW,YAAY,IAAI,GACjE,eAAA,CAAA;EAC5B;;CAED,WAAW,oBAAoB,GAAG;CAClC,OAAO;AACR;;;;;AAMA,SAAgB,mBAAkC;CACjD,OACC,WAAsC,kBAAkB,KAAA;EACvD,IAAI,SAAS;GACZ,OAAA;EACD;EACA,IAAI,WAAW;GACd,OAAO,YAAA,IAA0B;EAClC;;AAGH"}
@@ -1,6 +1,6 @@
1
1
  var package_default = {
2
2
  name: "@selvajs/selva",
3
- version: "4.21.0-beta.12",
3
+ version: "4.21.0-beta.13",
4
4
  description: "Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.",
5
5
  license: "MIT",
6
6
  author: "VektorNode",
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.21.0-beta.12\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"selva\": {\n\t\t\"dataFormat\": 3\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
1
+ {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.21.0-beta.13\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"selva\": {\n\t\t\"dataFormat\": 3\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
@@ -2023,6 +2023,15 @@ var LocalOrgStore = class LocalOrgStore {
2023
2023
  const m = orgMembers.find((m) => m.orgId === orgId && m.userId === userId);
2024
2024
  return m && isLive$1(m) ? m : null;
2025
2025
  }
2026
+ async countOrgMembers(_ctx, orgIds) {
2027
+ const { orgMembers } = await this.loader.get();
2028
+ const counts = new Map(orgIds.map((id) => [id, 0]));
2029
+ for (const m of orgMembers) {
2030
+ const n = counts.get(m.orgId);
2031
+ if (n !== void 0 && isLive$1(m)) counts.set(m.orgId, n + 1);
2032
+ }
2033
+ return counts;
2034
+ }
2026
2035
  async getOrgMembersFor(_ctx, orgIds, userId) {
2027
2036
  const { orgMembers } = await this.loader.get();
2028
2037
  const byOrgId = new Map(orgMembers.filter((m) => m.userId === userId && isLive$1(m)).map((m) => [m.orgId, m]));
@@ -2258,6 +2267,15 @@ var LocalProjectStore = class {
2258
2267
  const byProjectId = new Map(projectMembers.filter((m) => m.userId === userId && isLive(m)).map((m) => [m.projectId, m]));
2259
2268
  return new Map(projectIds.map((id) => [id, byProjectId.get(id) ?? null]));
2260
2269
  }
2270
+ async countProjectMembers(_ctx, projectIds) {
2271
+ const { projectMembers } = await this.loader.get();
2272
+ const counts = new Map(projectIds.map((id) => [id, 0]));
2273
+ for (const m of projectMembers) {
2274
+ const n = counts.get(m.projectId);
2275
+ if (n !== void 0 && isLive(m)) counts.set(m.projectId, n + 1);
2276
+ }
2277
+ return counts;
2278
+ }
2261
2279
  async addProjectMember(ctx, member) {
2262
2280
  const store = await this.loader.get();
2263
2281
  const existing = store.projectMembers.find((m) => m.projectId === member.projectId && m.userId === member.userId);
@@ -3619,6 +3637,18 @@ var SupabaseOrgStore = class {
3619
3637
  if (error) throw mapPostgrestError(error);
3620
3638
  return data ? rowToOrgMember(data) : null;
3621
3639
  }
3640
+ async countOrgMembers(ctx, orgIds) {
3641
+ const client = this.clients.forRequest(ctx);
3642
+ const counts = await Promise.all(orgIds.map(async (orgId) => {
3643
+ const { count, error } = await client.from("org_members").select("user_id", {
3644
+ count: "exact",
3645
+ head: true
3646
+ }).eq("org_id", orgId).is("deleted_at", null);
3647
+ if (error) throw mapPostgrestError(error);
3648
+ return [orgId, count ?? 0];
3649
+ }));
3650
+ return new Map(counts);
3651
+ }
3622
3652
  async getOrgMembersFor(ctx, orgIds, userId) {
3623
3653
  const result = new Map(orgIds.map((id) => [id, null]));
3624
3654
  if (orgIds.length === 0) return result;
@@ -3895,6 +3925,18 @@ var SupabaseProjectStore = class {
3895
3925
  for (const row of data ?? []) result.set(row.project_id, rowToProjectMember(row));
3896
3926
  return result;
3897
3927
  }
3928
+ async countProjectMembers(ctx, projectIds) {
3929
+ const client = this.clients.forRequest(ctx);
3930
+ const counts = await Promise.all(projectIds.map(async (projectId) => {
3931
+ const { count, error } = await client.from("project_members").select("user_id", {
3932
+ count: "exact",
3933
+ head: true
3934
+ }).eq("project_id", projectId).is("deleted_at", null);
3935
+ if (error) throw mapPostgrestError(error);
3936
+ return [projectId, count ?? 0];
3937
+ }));
3938
+ return new Map(counts);
3939
+ }
3898
3940
  async addProjectMember(ctx, member) {
3899
3941
  const row = {
3900
3942
  ...projectMemberToRow(member),