kaabalah 6.4.4 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -8932,7 +8932,7 @@ var import_config3 = require("dotenv/config");
8932
8932
  // package.json
8933
8933
  var package_default = {
8934
8934
  name: "kaabalah",
8935
- version: "6.4.4",
8935
+ version: "6.6.0",
8936
8936
  description: "The de-facto library for any esoteric calculations and tooling",
8937
8937
  engines: {
8938
8938
  node: ">=18.18.0"
@@ -9215,11 +9215,20 @@ var COMMANDS = [
9215
9215
  args: [],
9216
9216
  flags: [
9217
9217
  { name: "system", type: "string", default: "kaabalah", description: "Tree system: kaabalah, hermetic-qabalah, lurianic-kabbalah" },
9218
- { name: "units", type: "string", default: "both", description: "Coordinate space: percentages, viewBoxUnits, or both" }
9218
+ { name: "units", type: "string", default: "both", description: "Coordinate space: percentages, viewBoxUnits, or both" },
9219
+ { name: "render-model", type: "boolean", default: false, description: "Return activation-aware render model geometry instead of the basic layout" },
9220
+ { name: "activations", type: "string", description: "Path to activation JSON array or object with an activations array" },
9221
+ { name: "palette", type: "string", default: "color", description: 'Render-model palette metadata: "color" or "monochrome"' },
9222
+ { name: "daath-layer", type: "string", default: "front", description: 'Render-model Daath layer: "front" or "back"' },
9223
+ { name: "viewbox-width", type: "number", description: "Override render-model viewBox width" },
9224
+ { name: "viewbox-height", type: "number", description: "Override render-model viewBox height" },
9225
+ { name: "viewbox-min-x", type: "number", default: 0, description: "Override render-model viewBox min-x" },
9226
+ { name: "viewbox-min-y", type: "number", default: 0, description: "Override render-model viewBox min-y" }
9219
9227
  ],
9220
9228
  examples: [
9221
9229
  "kaabalah tree:layout --json --compact",
9222
- "kaabalah tree:layout --system=hermetic-qabalah --units=percentages --json"
9230
+ "kaabalah tree:layout --system=hermetic-qabalah --units=percentages --json",
9231
+ "kaabalah tree:layout --render-model --activations=activations.json --json --compact"
9223
9232
  ]
9224
9233
  },
9225
9234
  {
@@ -9233,6 +9242,7 @@ var COMMANDS = [
9233
9242
  { name: "background", type: "string", default: "white", description: 'Background fill color, or "transparent"' },
9234
9243
  { name: "palette", type: "string", default: "color", description: 'Palette: "color" or "monochrome"' },
9235
9244
  { name: "daath-layer", type: "string", default: "front", description: 'Render Daath in front of or behind the paths: "front" or "back"' },
9245
+ { name: "activations", type: "string", description: "Path to activation JSON array or object with an activations array" },
9236
9246
  { name: "output", type: "string", description: "Write the SVG to a file instead of stdout" },
9237
9247
  { name: "viewbox-width", type: "number", description: "Override SVG viewBox width" },
9238
9248
  { name: "viewbox-height", type: "number", description: "Override SVG viewBox height" },
@@ -9242,7 +9252,8 @@ var COMMANDS = [
9242
9252
  examples: [
9243
9253
  "kaabalah tree:svg --json --compact --fields=svg",
9244
9254
  "kaabalah tree:svg --background=transparent --palette=monochrome --output=tree.svg --json",
9245
- "kaabalah tree:svg --background=transparent --daath-layer=back --json --compact"
9255
+ "kaabalah tree:svg --background=transparent --daath-layer=back --json --compact",
9256
+ "kaabalah tree:svg --background=transparent --activations=activations.json --json --compact --fields=svg"
9246
9257
  ]
9247
9258
  },
9248
9259
  {
@@ -22870,6 +22881,212 @@ function cmdTarotSpread(cardQueries, flags) {
22870
22881
  var import_node_fs2 = require("fs");
22871
22882
  var import_node_path2 = require("path");
22872
22883
 
22884
+ // src/visual/astro-glyph-assets.ts
22885
+ var rawGlyph = (markup) => [
22886
+ { kind: "raw", markup }
22887
+ ];
22888
+ var raw100 = (markup) => rawGlyph(`<g transform="scale(0.01)">${markup}</g>`);
22889
+ var SOURCE_POINT_TEXT_GLYPH = (text) => rawGlyph(
22890
+ `<g transform="scale(0.01)"><text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="Arial Narrow, Liberation Sans Narrow, Arial, Helvetica, sans-serif" font-size="78" font-weight="500" fill="currentColor" stroke="none">${text}</text></g>`
22891
+ );
22892
+ var SOURCE_ZODIAC_GLYPH_PRIMITIVES = {
22893
+ "Aries": [{ kind: "raw", markup: '<g transform="scale(0.0172864) translate(-66.624999 -71.429581)"><path d="M 64.28125,95.179581 L 64.28125,91.398331 C 64.281226,88.419171 63.635393,83.106676 62.34375,75.460831 C 61.760395,71.856687 60.802062,68.106691 59.46875,64.210831 C 58.114565,60.252532 56.6979,57.148369 55.21875,54.898331 C 54.072902,53.190039 52.70832,52.335874 51.125,52.335831 C 49.333324,52.335874 48.083325,53.023373 47.375,54.398331 C 46.72916,55.669204 46.406243,57.054619 46.40625,58.554581 C 46.406243,61.721281 47.541659,64.585861 49.8125,67.148331 L 44.5,67.148331 C 42.666664,64.335862 41.749998,61.367115 41.75,58.242081 C 41.749998,54.971288 42.624997,52.40879 44.375,50.554581 C 46.187494,48.637961 48.385408,47.679628 50.96875,47.679581 C 54.302069,47.679628 56.906233,49.054627 58.78125,51.804581 C 60.906229,54.908788 62.67706,58.679617 64.09375,63.117081 C 65.093725,66.346276 65.937474,69.919189 66.625,73.835831 C 67.312472,69.919189 68.156222,66.346276 69.15625,63.117081 C 70.489553,58.783784 72.260384,55.012954 74.46875,51.804581 C 76.343713,49.054627 78.947878,47.679628 82.28125,47.679581 C 84.864538,47.679628 87.062453,48.637961 88.875,50.554581 C 90.624949,52.40879 91.499948,54.971288 91.5,58.242081 C 91.499948,61.367115 90.583283,64.335862 88.75,67.148331 L 83.4375,67.148331 C 85.708287,64.585861 86.843703,61.721281 86.84375,58.554581 C 86.843703,57.054619 86.520787,55.669204 85.875,54.398331 C 85.166621,53.023373 83.916623,52.335874 82.125,52.335831 C 80.541626,52.335874 79.177044,53.190039 78.03125,54.898331 C 76.552047,57.148369 75.135381,60.252532 73.78125,64.210831 C 72.447884,68.106691 71.489552,71.856687 70.90625,75.460831 C 69.614554,83.106676 68.968721,88.419171 68.96875,91.398331 L 68.96875,95.179581 L 64.28125,95.179581" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22894
+ "Taurus": [{ kind: "raw", markup: '<g transform="scale(0.0175287) translate(-155.375000 -71.429581)"><path d="M 140.9375,59.023331 C 140.37499,57.690034 139.57291,56.502535 138.53125,55.460831 C 137.57291,54.502537 136.39583,53.710871 135,53.085831 C 133.79166,52.544206 132.40625,52.273373 130.84375,52.273331 L 130.84375,47.585831 C 132.98958,47.585877 134.96874,47.971294 136.78125,48.742081 C 138.67707,49.554626 140.36457,50.690041 141.84375,52.148331 C 143.34374,53.627538 144.48957,55.325453 145.28125,57.242081 C 145.84373,58.57545 146.64582,59.762949 147.6875,60.804581 C 148.64581,61.762947 149.8229,62.554613 151.21875,63.179581 C 152.42706,63.721278 153.81247,63.992111 155.375,63.992081 C 156.87497,63.992111 158.26039,63.721278 159.53125,63.179581 C 160.86455,62.617112 162.04163,61.825447 163.0625,60.804581 C 164.10413,59.762949 164.90621,58.57545 165.46875,57.242081 C 166.26038,55.325453 167.40621,53.627538 168.90625,52.148331 C 170.38537,50.690041 172.07287,49.554626 173.96875,48.742081 C 175.7812,47.971294 177.76037,47.585877 179.90625,47.585831 L 179.90625,52.273331 C 178.3437,52.273373 176.95828,52.544206 175.75,53.085831 C 174.35412,53.710871 173.17704,54.502537 172.21875,55.460831 C 171.17704,56.502535 170.37496,57.690034 169.8125,59.023331 C 169.02079,60.919197 167.87496,62.617112 166.375,64.117081 C 165.6458,64.846277 164.69788,65.585859 163.53125,66.335831 C 164.69788,67.085858 165.6458,67.825441 166.375,68.554581 C 167.87496,70.054605 169.02079,71.75252 169.8125,73.648331 C 170.58329,75.52335 170.96871,77.533764 170.96875,79.679581 C 170.96871,81.762927 170.58329,83.742091 169.8125,85.617081 C 168.99996,87.533754 167.85413,89.231669 166.375,90.710831 C 164.8958,92.169166 163.2083,93.304582 161.3125,94.117081 C 159.49997,94.887914 157.5208,95.27333 155.375,95.273331 C 153.12498,95.27333 151.14581,94.887914 149.4375,94.117081 C 147.45831,93.221249 145.77082,92.085833 144.375,90.710831 C 142.89582,89.231669 141.74999,87.533754 140.9375,85.617081 C 140.16666,83.742091 139.78124,81.762927 139.78125,79.679581 C 139.78124,77.533764 140.16666,75.52335 140.9375,73.648331 C 141.77082,71.62752 142.91665,69.929605 144.375,68.554581 C 145.27082,67.700441 146.22915,66.960858 147.25,66.335831 C 146.20832,65.710859 145.24998,64.971277 144.375,64.117081 C 142.91665,62.700446 141.77082,61.002531 140.9375,59.023331 M 159.53125,69.492081 C 158.26039,68.950439 156.87497,68.679606 155.375,68.679581 C 153.87497,68.679606 152.48956,68.950439 151.21875,69.492081 C 149.92706,70.075438 148.74998,70.867104 147.6875,71.867081 C 146.60415,72.992102 145.80207,74.179601 145.28125,75.429581 C 144.73957,76.742098 144.46873,78.158764 144.46875,79.679581 C 144.46873,81.137927 144.73957,82.523343 145.28125,83.835831 C 145.80207,85.08584 146.60415,86.273339 147.6875,87.398331 C 148.74998,88.398337 149.92706,89.190003 151.21875,89.773331 C 152.48956,90.315001 153.87497,90.585834 155.375,90.585831 C 156.87497,90.585834 158.26039,90.315001 159.53125,89.773331 C 160.82288,89.190003 161.99997,88.398337 163.0625,87.398331 C 164.1458,86.273339 164.94788,85.08584 165.46875,83.835831 C 166.01038,82.523343 166.28121,81.137927 166.28125,79.679581 C 166.28121,78.158764 166.01038,76.742098 165.46875,75.429581 C 164.94788,74.179601 164.1458,72.992102 163.0625,71.867081 C 161.99997,70.867104 160.82288,70.075438 159.53125,69.492081" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22895
+ "Gemini": [{ kind: "raw", markup: '<g transform="scale(0.0177663) translate(-244.125000 -71.429581)"><path d="M 257.25,89.007706 C 260.72912,89.486878 264.12495,90.143127 267.4375,90.976456 L 267.4375,95.632706 C 260.06246,93.77854 252.29163,92.851458 244.125,92.851456 C 235.95831,92.851458 228.18749,93.77854 220.8125,95.632706 L 220.8125,90.976456 C 224.12499,90.143127 227.52082,89.486878 231,89.007706 L 231,53.851456 C 227.52082,53.37233 224.12499,52.716081 220.8125,51.882706 L 220.8125,47.226456 C 228.18749,49.080668 235.95831,50.00775 244.125,50.007706 C 252.29163,50.00775 260.06246,49.080668 267.4375,47.226456 L 267.4375,51.882706 C 264.12495,52.716081 260.72912,53.37233 257.25,53.851456 L 257.25,89.007706 M 252.5625,54.351456 C 249.79163,54.580663 246.97914,54.695246 244.125,54.695206 C 241.27081,54.695246 238.45831,54.580663 235.6875,54.351456 L 235.6875,88.507706 C 238.45831,88.278545 241.27081,88.163962 244.125,88.163956 C 246.97914,88.163962 249.79163,88.278545 252.5625,88.507706 L 252.5625,54.351456" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22896
+ "Cancer": [{ kind: "raw", markup: '<g transform="scale(0.0190187) translate(-332.875000 -71.429584)"><path d="M 310.26562,78.913956 C 312.16145,80.122304 313.98437,81.101469 315.73438,81.851456 C 320.19269,83.788967 325.14061,84.757716 330.57812,84.757706 C 333.99476,84.757716 337.23434,84.372299 340.29688,83.601456 C 340.02601,83.3723 339.77601,83.143134 339.54688,82.913956 C 338.60934,81.955635 337.92184,80.934803 337.48438,79.851456 C 337.02601,78.726472 336.79684,77.528556 336.79688,76.257706 C 336.79684,75.007725 337.02601,73.820227 337.48438,72.695206 C 337.96351,71.507729 338.65101,70.486897 339.54688,69.632706 C 340.52601,68.695232 341.53642,68.007732 342.57812,67.570206 C 343.66142,67.1119 344.84892,66.882734 346.14062,66.882706 C 347.49475,66.882734 348.68225,67.1119 349.70312,67.570206 C 350.91141,68.111899 351.92183,68.799398 352.73438,69.632706 C 353.67183,70.591063 354.35933,71.611896 354.79688,72.695206 C 355.25516,73.820227 355.48433,75.007725 355.48438,76.257706 C 355.48433,77.507723 355.25516,78.705638 354.79688,79.851456 C 354.29683,81.101469 353.50516,82.174385 352.42188,83.070206 C 350.901,84.320216 349.16142,85.361882 347.20312,86.195206 C 342.11976,88.361879 336.57809,89.445211 330.57812,89.445206 C 324.43227,89.445211 318.89061,88.361879 313.95312,86.195206 C 312.68229,85.632715 311.45312,85.038965 310.26562,84.413956 L 310.26562,78.913956 M 344.35938,80.632706 C 344.901,80.861886 345.49475,80.976469 346.14062,80.976456 C 346.78642,80.976469 347.38017,80.861886 347.92188,80.632706 C 348.48433,80.38272 348.99475,80.03897 349.45312,79.601456 C 349.86975,79.184805 350.2135,78.674388 350.48438,78.070206 C 350.7135,77.507723 350.82808,76.903557 350.82812,76.257706 C 350.82808,75.632725 350.7135,75.038975 350.48438,74.476456 C 350.25516,73.93481 349.91141,73.424394 349.45312,72.945206 C 349.05725,72.549395 348.54683,72.205645 347.92188,71.913956 C 347.38017,71.684812 346.78642,71.570229 346.14062,71.570206 C 345.49475,71.570229 344.901,71.684812 344.35938,71.913956 C 343.79684,72.163978 343.28642,72.507728 342.82812,72.945206 C 342.41142,73.361894 342.06767,73.87231 341.79688,74.476456 C 341.56767,75.038975 341.45309,75.632725 341.45312,76.257706 C 341.45309,76.903557 341.56767,77.507723 341.79688,78.070206 C 342.02601,78.611889 342.36976,79.122305 342.82812,79.601456 C 343.22392,79.997304 343.73434,80.341053 344.35938,80.632706 M 355.48438,63.945206 C 353.58849,62.736904 351.76558,61.757739 350.01562,61.007706 C 345.55725,59.070241 340.60934,58.101492 335.17188,58.101456 C 331.75518,58.101492 328.5156,58.486909 325.45312,59.257706 C 325.72394,59.486908 325.97394,59.716074 326.20312,59.945206 C 327.1406,60.903573 327.8281,61.924405 328.26562,63.007706 C 328.72394,64.132736 328.9531,65.330652 328.95312,66.601456 C 328.9531,67.851483 328.72394,69.038981 328.26562,70.163956 C 327.78644,71.351479 327.09894,72.372311 326.20312,73.226456 C 325.22394,74.163976 324.21352,74.851476 323.17188,75.288956 C 322.08853,75.747308 320.90103,75.976474 319.60938,75.976456 C 318.2552,75.976474 317.0677,75.747308 316.04688,75.288956 C 314.83853,74.747309 313.82812,74.05981 313.01562,73.226456 C 312.07812,72.268145 311.39062,71.247313 310.95312,70.163956 C 310.49479,69.038981 310.26562,67.851483 310.26562,66.601456 C 310.26562,65.351485 310.49479,64.15357 310.95312,63.007706 C 311.45312,61.757739 312.24479,60.684823 313.32812,59.788956 C 314.84895,58.538992 316.58853,57.497326 318.54688,56.663956 C 323.63019,54.497329 329.17185,53.413997 335.17188,53.413956 C 341.31767,53.413997 346.85933,54.497329 351.79688,56.663956 C 353.06766,57.226493 354.29683,57.820243 355.48438,58.445206 L 355.48438,63.945206 M 321.39062,62.226456 C 320.84894,61.997322 320.25519,61.882739 319.60938,61.882706 C 318.96353,61.882739 318.36978,61.997322 317.82812,62.226456 C 317.26561,62.476488 316.7552,62.820238 316.29688,63.257706 C 315.8802,63.674403 315.53645,64.18482 315.26562,64.788956 C 315.03645,65.351485 314.92187,65.955651 314.92188,66.601456 C 314.92187,67.226483 315.03645,67.820233 315.26562,68.382706 C 315.49478,68.924398 315.83853,69.434814 316.29688,69.913956 C 316.6927,70.309813 317.20311,70.653563 317.82812,70.945206 C 318.36978,71.174396 318.96353,71.288979 319.60938,71.288956 C 320.25519,71.288979 320.84894,71.174396 321.39062,70.945206 C 321.95311,70.69523 322.46353,70.35148 322.92188,69.913956 C 323.33852,69.497314 323.68227,68.986898 323.95312,68.382706 C 324.18227,67.820233 324.29686,67.226483 324.29688,66.601456 C 324.29686,65.955651 324.18227,65.351485 323.95312,64.788956 C 323.72394,64.24732 323.38019,63.736903 322.92188,63.257706 C 322.52603,62.861904 322.01561,62.518155 321.39062,62.226456" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22897
+ "Leo": [{ kind: "raw", markup: '<g transform="scale(0.0177663) translate(-66.624996 -181.929585)"><path d="M 74.09375,195.41396 C 73.906216,196.14313 73.812466,196.7473 73.8125,197.22646 C 73.812466,197.95563 73.906216,198.54938 74.09375,199.00771 C 74.343715,199.54938 74.635382,199.97646 74.96875,200.28896 C 75.343714,200.64313 75.760381,200.92438 76.21875,201.13271 C 76.677046,201.34104 77.385379,201.44521 78.34375,201.44521 C 79.197877,201.44521 79.947876,201.29938 80.59375,201.00771 C 81.406208,200.65354 82.093708,200.20563 82.65625,199.66396 L 85.96875,202.97646 C 85.052038,203.85146 83.843706,204.64312 82.34375,205.35146 C 81.260375,205.87229 79.927043,206.1327 78.34375,206.13271 C 76.739546,206.1327 75.447881,205.91396 74.46875,205.47646 C 73.343716,204.97646 72.406217,204.35146 71.65625,203.60146 C 70.822885,202.76812 70.197886,201.84104 69.78125,200.82021 C 69.364554,199.77854 69.156221,198.58063 69.15625,197.22646 C 69.156221,195.7473 69.37497,194.45563 69.8125,193.35146 C 71.395802,189.45564 72.937467,186.51814 74.4375,184.53896 C 76.312463,182.05981 77.760379,179.4244 78.78125,176.63271 C 79.239544,175.40357 79.46871,174.00774 79.46875,172.44521 C 79.46871,170.75774 79.239544,169.35149 78.78125,168.22646 C 78.343711,167.14316 77.656212,166.12233 76.71875,165.16396 C 75.906214,164.33066 74.895798,163.64316 73.6875,163.10146 C 72.666634,162.64316 71.479135,162.414 70.125,162.41396 C 68.833304,162.414 67.645805,162.64316 66.5625,163.10146 C 65.520807,163.539 64.510392,164.2265 63.53125,165.16396 C 62.635394,166.01816 61.947894,167.03899 61.46875,168.22646 C 61.010395,169.35149 60.781229,170.54941 60.78125,171.82021 C 60.781229,173.1744 61.010395,174.3619 61.46875,175.38271 C 62.031228,176.6119 62.83331,178.15357 63.875,180.00771 C 65.270808,182.44523 65.968724,184.75773 65.96875,186.94521 C 65.968724,188.19522 65.739557,189.38272 65.28125,190.50771 C 64.843725,191.59105 64.156226,192.61188 63.21875,193.57021 C 62.406227,194.40355 61.395812,195.09105 60.1875,195.63271 C 59.166647,196.09105 57.979148,196.32021 56.625,196.32021 C 55.333318,196.32021 54.145819,196.09105 53.0625,195.63271 C 52.020821,195.19522 51.010405,194.50772 50.03125,193.57021 C 49.135407,192.71605 48.447908,191.69522 47.96875,190.50771 C 47.510409,189.38272 47.281242,188.19522 47.28125,186.94521 C 47.281242,185.67439 47.510409,184.47648 47.96875,183.35146 C 48.406241,182.26815 49.093741,181.24731 50.03125,180.28896 C 50.843739,179.45565 51.854154,178.76815 53.0625,178.22646 C 54.083319,177.76815 55.270818,177.53898 56.625,177.53896 L 57.15625,177.53896 C 56.4479,175.93482 56.093734,174.03899 56.09375,171.85146 C 56.093734,169.83066 56.437483,168.01816 57.125,166.41396 C 57.874982,164.664 58.906231,163.13275 60.21875,161.82021 C 61.531228,160.50775 63.05206,159.48692 64.78125,158.75771 C 66.406223,158.07025 68.187471,157.7265 70.125,157.72646 C 72.166634,157.7265 73.947882,158.07025 75.46875,158.75771 C 77.281212,159.57025 78.802044,160.59108 80.03125,161.82021 C 81.406208,163.19525 82.437457,164.7265 83.125,166.41396 C 83.812456,168.10149 84.156205,170.12232 84.15625,172.47646 C 84.156205,174.80982 83.812456,176.7994 83.125,178.44521 C 81.833291,181.59106 80.239543,184.48689 78.34375,187.13271 C 76.19788,190.19522 74.781215,192.95563 74.09375,195.41396 M 58.40625,182.57021 C 57.864565,182.34106 57.270816,182.22648 56.625,182.22646 C 55.97915,182.22648 55.385401,182.34106 54.84375,182.57021 C 54.281235,182.82023 53.770819,183.16398 53.3125,183.60146 C 52.854153,184.08064 52.510404,184.59106 52.28125,185.13271 C 52.052071,185.69523 51.937488,186.29939 51.9375,186.94521 C 51.937488,187.57022 52.052071,188.16397 52.28125,188.72646 C 52.510404,189.26814 52.854153,189.77855 53.3125,190.25771 C 53.770819,190.69522 54.281235,191.03897 54.84375,191.28896 C 55.385401,191.51814 55.97915,191.63272 56.625,191.63271 C 57.270816,191.63272 57.864565,191.51814 58.40625,191.28896 C 58.968731,191.03897 59.479147,190.69522 59.9375,190.25771 C 60.395813,189.77855 60.739562,189.26814 60.96875,188.72646 C 61.197895,188.16397 61.312478,187.57022 61.3125,186.94521 C 61.312478,186.29939 61.197895,185.69523 60.96875,185.13271 C 60.739562,184.59106 60.395813,184.08064 59.9375,183.60146 C 59.479147,183.16398 58.968731,182.82023 58.40625,182.57021" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22898
+ "Virgo": [{ kind: "raw", markup: '<g transform="scale(0.0144235) translate(-155.375000 -181.929580)"><path d="M 168.35938,197.39833 C 170.67183,195.065 172.44267,192.40875 173.67188,189.42958 C 174.901,186.42959 175.51558,183.26293 175.51562,179.92958 C 175.51558,177.03377 175.3385,174.92961 174.98438,173.61708 C 174.44266,171.59628 173.69266,170.58586 172.73438,170.58583 C 172.19267,170.58586 171.43225,171.56503 170.45312,173.52333 C 169.05725,176.31502 168.35934,179.44002 168.35938,182.89833 L 168.35938,197.39833 M 164.60938,206.02333 C 163.71351,206.50249 162.79684,206.95041 161.85938,207.36708 C 159.54684,208.38791 157.02601,209.04415 154.29688,209.33583 L 154.29688,204.61708 C 156.35935,204.32541 158.28643,203.79416 160.07812,203.02333 C 161.36976,202.46083 162.58851,201.815 163.73438,201.08583 C 163.69267,200.60666 163.67184,200.10666 163.67188,199.58583 L 163.67188,170.83583 C 163.67184,167.12753 163.45309,164.32545 163.01562,162.42958 C 162.34893,159.51295 161.52601,158.05462 160.54688,158.05458 C 159.54684,158.05462 158.16143,159.9192 156.39062,163.64833 C 154.99477,166.58586 154.29685,169.71086 154.29688,173.02333 L 154.29688,199.61708 L 149.60938,199.61708 L 149.60938,170.83583 C 149.60935,167.14836 149.3906,164.34628 148.95312,162.42958 C 148.30727,159.51295 147.48436,158.05462 146.48438,158.05458 C 145.48436,158.05462 144.09894,159.9192 142.32812,163.64833 C 140.93228,166.58586 140.23436,169.71086 140.23438,173.02333 L 140.23438,199.61708 L 135.54688,199.61708 L 135.54688,170.83583 C 135.54687,166.4817 134.98437,162.61712 133.85938,159.24208 C 133.21354,157.30462 132.10937,155.34629 130.54688,153.36708 L 135.35938,153.36708 C 136.17187,154.17963 136.89062,155.17963 137.51562,156.36708 C 138.22395,157.74212 138.78645,159.28379 139.20312,160.99208 C 139.82811,159.13795 140.66145,157.53379 141.70312,156.17958 C 143.80728,153.47129 145.52603,152.11713 146.85938,152.11708 C 148.33852,152.11713 149.91144,153.53379 151.57812,156.36708 C 152.22394,157.45046 152.78643,158.99212 153.26562,160.99208 C 153.8906,159.13795 154.72393,157.53379 155.76562,156.17958 C 157.86976,153.47129 159.69268,152.11713 161.23438,152.11708 C 162.71351,152.11713 164.28642,153.53379 165.95312,156.36708 C 166.84892,157.86712 167.41142,159.40879 167.64062,160.99208 C 167.95309,163.17962 168.16142,165.6692 168.26562,168.46083 C 168.68225,167.6067 169.20309,166.80461 169.82812,166.05458 C 171.34892,164.24212 172.68225,163.33587 173.82812,163.33583 C 175.49475,163.33587 176.94266,164.9817 178.17188,168.27333 C 179.52599,171.89836 180.20307,175.78377 180.20312,179.92958 C 180.20307,183.9921 179.47391,187.75251 178.01562,191.21083 C 176.43224,194.96084 174.25516,198.19 171.48438,200.89833 C 170.60933,201.7525 169.69267,202.55458 168.73438,203.30458 C 168.9635,204.28374 169.26559,205.23166 169.64062,206.14833 C 170.45308,208.12749 171.7135,209.99207 173.42188,211.74208 L 167.35938,211.74208 C 166.42184,210.24207 165.73434,208.97124 165.29688,207.92958 C 165.04684,207.30457 164.81767,206.66916 164.60938,206.02333" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22899
+ "Libra": [{ kind: "raw", markup: '<g transform="scale(0.0184450) translate(-244.125000 -181.929585)"><path d="M 238.65625,189.07021 L 220.8125,189.07021 L 220.8125,184.38271 L 231.5625,184.38271 C 230.81249,183.4244 230.18749,182.38273 229.6875,181.25771 C 228.91666,179.4869 228.53124,177.6119 228.53125,175.63271 C 228.53124,173.59107 228.91666,171.68482 229.6875,169.91396 C 230.49999,168.08066 231.64582,166.46608 233.125,165.07021 C 234.60415,163.67441 236.29165,162.59108 238.1875,161.82021 C 239.99998,161.09108 241.97914,160.7265 244.125,160.72646 C 246.37497,160.7265 248.35414,161.09108 250.0625,161.82021 C 252.04163,162.67442 253.72913,163.75775 255.125,165.07021 C 256.60413,166.46608 257.74996,168.08066 258.5625,169.91396 C 259.33329,171.68482 259.71871,173.59107 259.71875,175.63271 C 259.71871,177.6119 259.33329,179.4869 258.5625,181.25771 C 258.06246,182.38273 257.43746,183.4244 256.6875,184.38271 L 267.4375,184.38271 L 267.4375,189.07021 L 249.5625,189.07021 L 249.5625,184.38271 C 250.35413,183.94523 251.10413,183.41398 251.8125,182.78896 C 252.8333,181.89315 253.63538,180.78898 254.21875,179.47646 C 254.76038,178.24732 255.03121,176.95565 255.03125,175.60146 C 255.03121,174.22649 254.76038,172.92441 254.21875,171.69521 C 253.65621,170.46607 252.85413,169.36191 251.8125,168.38271 C 250.8333,167.48691 249.65622,166.74733 248.28125,166.16396 C 247.09372,165.664 245.7083,165.414 244.125,165.41396 C 242.62497,165.414 241.23956,165.664 239.96875,166.16396 C 238.65623,166.68483 237.47915,167.42441 236.4375,168.38271 C 235.39582,169.36191 234.59373,170.46607 234.03125,171.69521 C 233.48957,172.92441 233.21873,174.22649 233.21875,175.60146 C 233.21873,176.95565 233.48957,178.24732 234.03125,179.47646 C 234.59373,180.70565 235.39582,181.80981 236.4375,182.78896 C 237.08331,183.39315 237.8229,183.92439 238.65625,184.38271 L 238.65625,189.07021 M 220.8125,203.13271 L 220.8125,198.44521 L 267.4375,198.44521 L 267.4375,203.13271 L 220.8125,203.13271" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22900
+ "Scorpio": [{ kind: "raw", markup: '<g transform="scale(0.0142149) translate(-332.875000 -181.929580)"><path d="M 349.8125,208.08583 C 348.20829,208.08582 346.91663,207.86707 345.9375,207.42958 C 344.81246,206.92957 343.87496,206.30457 343.125,205.55458 C 342.29163,204.72124 341.66663,203.79416 341.25,202.77333 C 340.8333,201.73166 340.62497,200.52333 340.625,199.14833 L 340.625,170.39833 C 340.62497,166.69003 340.40622,163.88795 339.96875,161.99208 C 339.30205,159.07545 338.47913,157.61712 337.5,157.61708 C 336.49997,157.61712 335.11455,159.4817 333.34375,163.21083 C 331.94789,166.14836 331.24998,169.27336 331.25,172.58583 L 331.25,199.17958 L 326.5625,199.17958 L 326.5625,170.39833 C 326.56248,166.71086 326.34373,163.90878 325.90625,161.99208 C 325.2604,159.07545 324.43748,157.61712 323.4375,157.61708 C 322.43748,157.61712 321.05207,159.4817 319.28125,163.21083 C 317.88541,166.14836 317.18749,169.27336 317.1875,172.58583 L 317.1875,199.17958 L 312.5,199.17958 L 312.5,170.39833 C 312.49999,166.0442 311.93749,162.17962 310.8125,158.80458 C 310.16666,156.86712 309.0625,154.90879 307.5,152.92958 L 312.3125,152.92958 C 313.12499,153.74213 313.84374,154.74213 314.46875,155.92958 C 315.17707,157.30462 315.73957,158.84629 316.15625,160.55458 C 316.78124,158.70045 317.61457,157.09629 318.65625,155.74208 C 320.7604,153.03379 322.47915,151.67963 323.8125,151.67958 C 325.29165,151.67963 326.86456,153.09629 328.53125,155.92958 C 329.17706,157.01296 329.73956,158.55462 330.21875,160.55458 C 330.84373,158.70045 331.67706,157.09629 332.71875,155.74208 C 334.82289,153.03379 336.6458,151.67963 338.1875,151.67958 C 339.66663,151.67963 341.23955,153.09629 342.90625,155.92958 C 343.80205,157.42962 344.36455,158.97129 344.59375,160.55458 C 345.01038,163.45045 345.21871,165.94003 345.21875,168.02333 L 345.21875,199.17958 C 345.21871,199.97125 345.31246,200.565 345.5,200.96083 C 345.74996,201.5025 346.04163,201.92958 346.375,202.24208 C 346.74996,202.59624 347.16663,202.87749 347.625,203.08583 C 348.08329,203.29416 348.79162,203.39833 349.75,203.39833 L 351.5625,203.39833 L 351.5625,199.33583 L 358.25,205.74208 L 351.5625,212.17958 L 351.5625,208.08583 L 349.8125,208.08583" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22901
+ "Sagittarius": [{ kind: "raw", markup: '<g transform="scale(0.0218934) translate(-66.625000 -292.429565)"><path d="M 81.5625,280.82019 L 64.6875,297.69519 L 73.15625,306.16394 L 69.84375,309.47644 L 61.375,301.00769 L 50.3125,312.07019 L 47,308.75769 L 58.0625,297.69519 L 49.59375,289.22644 L 52.90625,285.91394 L 61.375,294.38269 L 78.28125,277.47644 L 65.4375,277.47644 L 65.4375,272.78894 L 86.25,272.78894 L 86.25,293.60144 L 81.5625,293.60144 L 81.5625,280.82019" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22902
+ "Capricorn": [{ kind: "raw", markup: '<g transform="scale(0.0176523) translate(-155.375000 -292.429565)"><path d="M 156.70312,301.82019 C 156.3281,301.2577 155.97393,300.66396 155.64062,300.03894 C 153.9531,296.87229 153.10935,293.38271 153.10938,289.57019 L 153.10938,286.94519 C 153.10935,283.23689 152.8906,280.43481 152.45312,278.53894 C 151.78643,275.62231 150.96352,274.16398 149.98438,274.16394 C 148.98435,274.16398 147.59894,276.02856 145.82812,279.75769 C 144.43228,282.69522 143.73436,285.82022 143.73438,289.13269 L 143.73438,296.97644 L 139.04688,296.97644 L 139.04688,286.94519 C 139.04686,283.25772 138.77603,280.45564 138.23438,278.53894 C 137.40103,275.62231 135.74478,274.16398 133.26562,274.16394 L 131.01562,274.16394 L 131.01562,268.22644 L 133.64062,268.22644 C 136.78645,268.22649 139.1927,269.64315 140.85938,272.47644 C 141.77603,274.03898 142.39061,275.58065 142.70312,277.10144 C 143.32811,275.24731 144.16144,273.64315 145.20312,272.28894 C 147.30727,269.58065 149.13019,268.22649 150.67188,268.22644 C 152.15102,268.22649 153.72393,269.64315 155.39062,272.47644 C 156.28643,273.97648 156.84893,275.51815 157.07812,277.10144 C 157.49476,279.99731 157.7031,282.48689 157.70312,284.57019 L 157.70312,288.03894 C 157.7031,291.01813 158.09893,293.57021 158.89062,295.69519 C 159.66143,294.00771 160.53643,292.66396 161.51562,291.66394 C 162.45309,290.70563 163.70309,289.91397 165.26562,289.28894 C 166.51559,288.78897 167.9635,288.53897 169.60938,288.53894 C 171.00517,288.53897 172.29683,288.78897 173.48438,289.28894 C 174.69266,289.78897 175.78641,290.52855 176.76562,291.50769 C 177.72391,292.46605 178.46349,293.57021 178.98438,294.82019 C 179.48432,296.04938 179.73432,297.35146 179.73438,298.72644 C 179.73432,300.08062 179.48432,301.37229 178.98438,302.60144 C 178.46349,303.85145 177.72391,304.95562 176.76562,305.91394 C 175.86974,306.80978 174.776,307.54937 173.48438,308.13269 C 172.38016,308.6327 170.98433,308.8827 169.29688,308.88269 C 167.5885,308.8827 165.98434,308.6327 164.48438,308.13269 C 162.96351,307.6327 161.55726,306.86187 160.26562,305.82019 C 159.91143,306.73687 159.53643,307.60145 159.14062,308.41394 C 158.22393,310.24728 157.13018,311.69519 155.85938,312.75769 C 154.21352,314.13269 152.68227,315.09102 151.26562,315.63269 C 149.55727,316.29936 147.76561,316.63269 145.89062,316.63269 L 144.14062,316.63269 L 144.14062,311.94519 L 145.89062,311.94519 C 147.28644,311.94519 148.47394,311.72644 149.45312,311.28894 C 150.66144,310.76811 151.65102,310.14311 152.42188,309.41394 C 153.29685,308.62228 154.02602,307.6952 154.60938,306.63269 C 155.27601,305.42437 155.97393,303.8202 156.70312,301.82019 M 162.01562,300.60144 C 163.57809,302.30979 165.0885,303.37229 166.54688,303.78894 C 167.48434,304.05979 168.41142,304.1952 169.32812,304.19519 C 170.30725,304.1952 171.09892,304.05979 171.70312,303.78894 C 172.36975,303.49729 172.9635,303.10145 173.48438,302.60144 C 173.98433,302.10145 174.39058,301.5077 174.70312,300.82019 C 174.97391,300.21604 175.10933,299.51812 175.10938,298.72644 C 175.10933,297.97646 174.97391,297.26813 174.70312,296.60144 C 174.45308,295.97646 174.04683,295.38271 173.48438,294.82019 C 172.9635,294.32021 172.36975,293.92438 171.70312,293.63269 C 171.07808,293.36188 170.39058,293.22646 169.64062,293.22644 C 168.93225,293.22646 168.19267,293.36188 167.42188,293.63269 C 166.56767,293.94521 165.92184,294.34105 165.48438,294.82019 C 164.00517,296.48688 162.84892,298.41396 162.01562,300.60144" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22903
+ "Aquarius": [{ kind: "raw", markup: '<g transform="scale(0.0172973) translate(-244.125000 -292.429570)"><path d="M 236.04688,288.74207 L 232.42188,282.49207 L 221.60938,288.74207 L 219.26562,284.71082 L 234.17188,276.11707 L 237.76562,282.36707 L 248.60938,276.11707 L 252.20312,282.36707 L 263.04688,276.11707 L 268.98438,286.39832 L 264.92188,288.74207 L 261.29688,282.49207 L 250.48438,288.74207 L 246.85938,282.49207 L 236.04688,288.74207 M 236.04688,308.74207 L 232.42188,302.49207 L 221.60938,308.74207 L 219.26562,304.71082 L 234.17188,296.11707 L 237.76562,302.36707 L 248.60938,296.11707 L 252.20312,302.36707 L 263.04688,296.11707 L 268.98438,306.39832 L 264.92188,308.74207 L 261.29688,302.49207 L 250.48438,308.74207 L 246.85938,302.49207 L 236.04688,308.74207" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22904
+ "Pisces": [{ kind: "raw", markup: '<g transform="scale(0.0184327) translate(-332.875000 -292.429565)"><path d="M 337.78125,294.78894 L 327.96875,294.78894 C 327.71873,298.91396 326.85415,302.7577 325.375,306.32019 C 324.02082,309.59103 322.06248,312.73686 319.5,315.75769 L 313.03125,315.75769 C 316.84374,312.04936 319.5104,308.29936 321.03125,304.50769 C 322.28123,301.42437 323.02082,298.18479 323.25,294.78894 L 313.96875,294.78894 L 313.96875,290.10144 L 323.25,290.10144 C 323.02082,286.70564 322.28123,283.46606 321.03125,280.38269 C 319.48957,276.59106 316.82291,272.83065 313.03125,269.10144 L 319.5,269.10144 C 322.04165,272.12232 323.99998,275.27856 325.375,278.57019 C 326.87498,282.13272 327.73956,285.97647 327.96875,290.10144 L 337.78125,290.10144 C 338.01038,285.97647 338.87497,282.13272 340.375,278.57019 C 341.74996,275.27856 343.7083,272.12232 346.25,269.10144 L 352.71875,269.10144 C 348.92704,272.83065 346.26038,276.59106 344.71875,280.38269 C 343.46871,283.46606 342.72913,286.70564 342.5,290.10144 L 351.46875,290.10144 L 351.46875,294.78894 L 342.5,294.78894 C 342.72913,298.18479 343.46871,301.42437 344.71875,304.50769 C 346.23954,308.29936 348.90621,312.04936 352.71875,315.75769 L 346.25,315.75769 C 343.68746,312.73686 341.72913,309.59103 340.375,306.32019 C 338.8958,302.6952 338.03122,298.85146 337.78125,294.78894" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }]
22905
+ };
22906
+ var SOURCE_PLANET_GLYPH_PRIMITIVES = {
22907
+ "sun": [{ kind: "raw", markup: '<g transform="scale(0.0244444) translate(-34.000000 -37.000000)"><path d="M 49.396475 36.70454 A 15.623922 16.319134 0 1 1 18.14863,36.70454 A 15.623922 16.319134 0 1 1 49.396475 36.70454 z" transform="matrix(1.022388,0,0,0.979597,-0.532287,1.029379)" fill="none" stroke="currentColor" stroke-width="1.99847329" stroke-linecap="round" stroke-linejoin="round"/><path d="M 38 37 A 4 5 0 1 1 30,37 A 4 5 0 1 1 38 37 z" transform="matrix(1,0,0,0.8,-5.551115e-16,7.4)" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22908
+ "moon": [{ kind: "raw", markup: '<g transform="scale(0.0244444) translate(-227.000000 -37.000000)"><path d="M 226.375 21 C 225.04184 21.050727 223.76172 21.267003 222.53125 21.625 C 229.15932 23.580213 234 29.7412 234 37 C 234 44.2588 229.15932 50.419787 222.53125 52.375 C 223.95102 52.788074 225.4475 53 227 53 C 235.832 53 243 45.832 243 37 C 243 28.168 235.832 21 227 21 C 226.793 21 226.5801 20.992196 226.375 21 z " fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22909
+ "mercury": [{ kind: "raw", markup: '<g transform="scale(0.0176000) translate(-100.000000 -37.000000)"><path d="M 112 36.5 A 11.5 11.5 0 1 1 89,36.5 A 11.5 11.5 0 1 1 112 36.5 z" transform="matrix(0.96,0,0,0.96,3.52,0.96)" fill="none" stroke="currentColor" stroke-width="2.08333325" stroke-linecap="round" stroke-linejoin="round"/><path d="M 111.9469,37.603862 A 11.5,11.5 0 0 1 89.052015,37.592533" transform="matrix(0.96,0,0,0.96,3.56,-22.08)" fill="none" stroke="currentColor" stroke-width="2.08333325" stroke-linecap="round" stroke-linejoin="round"/><path d="M 100,47 L 100,59" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 95,54 L 105,54" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22910
+ "venus": [{ kind: "raw", markup: '<g transform="scale(0.0258824) translate(-165.000000 -44.000000)"><path d="M 176 33 A 11 11 0 1 1 154,33 A 11 11 0 1 1 176 33 z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 165,44 L 165,58" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 159,52 L 171,52" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22911
+ "mars": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-101.000000 -116.000000)"><path d="M 110 115.5 A 11.5 11.5 0 1 1 87,115.5 A 11.5 11.5 0 1 1 110 115.5 z" transform="matrix(1.04,0,0,1.04,-3.44,-4.12)" fill="none" stroke="currentColor" stroke-width="1.92307687" stroke-linecap="round" stroke-linejoin="round"/><path d="M 109.63106,110.4341 L 118.49032,105.79584" fill="none" stroke="currentColor" stroke-width="1.99999928" stroke-linecap="round" stroke-linejoin="round"/><path d="M 111.74156,103.68534 L 118.49032,105.79584 L 116.37982,112.5446" fill="none" stroke="currentColor" stroke-width="1.99999928" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22912
+ "jupiter": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-165.000000 -115.000000)"><path d="M 174,95 L 174,134" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 180,124 L 151,124" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 154,109 C 153,109 151,108 151,104 C 151,100 155,96 159,96 C 163,96 167,99 167,106 C 167,113 162,124 152,124" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 156 109.5 A 0.5 0.5 0 1 1 155,109.5 A 0.5 0.5 0 1 1 156 109.5 z" transform="matrix(3.85432,0,0,3.99998,-445.3468,-329.9978)" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22913
+ "saturn": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-226.000000 -116.000000)"><path d="M 226,98 L 226,127" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 222,104 L 234,104" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 240,133 C 239,134 238,135 237,135 C 236,135 234,134 234,132 C 234,130 235,128 237,126 C 239,124 241,120 241,116 C 241,112 239,108 235,108 C 231.21681,108 228,110 226,114" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22914
+ "uranus": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-36.000000 -195.000000)"><path d="M 25,204 L 18,204 L 18,203 L 23,202 L 23,182 L 18,181 L 18,180 L 25,180 L 25,204 z " fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M 47,204 L 54,204 L 54,203 L 49,202 L 49,182 L 54,181 L 54,180 L 47,180 L 47,204 z " fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M 24,192 L 48,192" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 36,180 L 36,206" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 40 211 A 4 4 0 1 1 32,211 A 4 4 0 1 1 40 211 z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22915
+ "neptune": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-101.000000 -195.000000)"><path d="M 89,176 C 86,196 91,199 101,199 C 111,199 116,196 113,176" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 101,178 L 101,215" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 93,207 L 109,207" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22916
+ "pluto": [{ kind: "raw", markup: '<g transform="scale(0.0209524) translate(-165.000000 -195.000000)"><path d="M 157,205 L 173,205" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 165,213 L 165,196" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 172 184 A 7 7 0 1 1 158,184 A 7 7 0 1 1 172 184 z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 177,184 A 12,12 0 1 1 153,184" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22917
+ "earth": [{ kind: "raw", markup: '<g transform="scale(0.0244444) translate(-34.000000 -117.000000)"><path d="M 49 116.5 A 15.5 15.5 0 1 1 18,116.5 A 15.5 15.5 0 1 1 49 116.5 z" transform="matrix(1.030303,0,0,1.030303,-0.515152,-3.030303)" fill="none" stroke="currentColor" stroke-width="1.94117641" stroke-linecap="round" stroke-linejoin="round"/><path d="M 18,117 L 50,117" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M 34,101 L 34,133" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
22918
+ "chiron": [{ kind: "raw", markup: '<g transform="scale(0.003) translate(0 -20)"><circle cx="0" cy="145" r="75" fill="none" stroke="currentColor" stroke-width="18" stroke-linecap="round"/><line x1="0" y1="70" x2="0" y2="-180" stroke="currentColor" stroke-width="18" stroke-linecap="round"/><line x1="0" y1="-60" x2="100" y2="-180" stroke="currentColor" stroke-width="18" stroke-linecap="round"/><line x1="0" y1="-60" x2="100" y2="40" stroke="currentColor" stroke-width="18" stroke-linecap="round"/></g>' }],
22919
+ "north node": rawGlyph('<g transform="scale(0.0095)"><path d="M-30,20 C-38,-12 -28,-44 0,-44 C28,-44 38,-12 30,20" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/><circle cx="-30" cy="31" r="9" fill="none" stroke="currentColor" stroke-width="7"/><circle cx="30" cy="31" r="9" fill="none" stroke="currentColor" stroke-width="7"/></g>'),
22920
+ "south node": rawGlyph('<g transform="scale(0.0095)"><path d="M-30,-20 C-38,12 -28,44 0,44 C28,44 38,12 30,-20" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/><circle cx="-30" cy="-31" r="9" fill="none" stroke="currentColor" stroke-width="7"/><circle cx="30" cy="-31" r="9" fill="none" stroke="currentColor" stroke-width="7"/></g>'),
22921
+ "lilith": rawGlyph('<g transform="scale(0.0085)"><path d="M12,-47 C-13,-42 -31,-20 -31,3 C-31,21 -18,34 -2,37 C-15,20 -14,-16 17,-39 C23,-43 20,-49 12,-47 Z" fill="currentColor"/><path d="M-2,35 L-2,55 M-16,46 L12,46" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/></g>'),
22922
+ "pars fortunae": rawGlyph('<g transform="scale(0.01)"><circle cx="0" cy="0" r="38" fill="none" stroke="currentColor" stroke-width="7"/><path d="M-27,-27 L27,27 M27,-27 L-27,27" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/></g>'),
22923
+ "ascendant": SOURCE_POINT_TEXT_GLYPH("AC"),
22924
+ "midheaven": SOURCE_POINT_TEXT_GLYPH("MC"),
22925
+ "descendant": SOURCE_POINT_TEXT_GLYPH("DC"),
22926
+ "nadir": SOURCE_POINT_TEXT_GLYPH("IC"),
22927
+ "vertex": SOURCE_POINT_TEXT_GLYPH("Vx"),
22928
+ "retrograde": SOURCE_POINT_TEXT_GLYPH("Rx")
22929
+ };
22930
+ var SOURCE_ASPECT_GLYPH_PRIMITIVES = {
22931
+ "conjunction": raw100(
22932
+ `<circle cx="-18" cy="22" r="13" fill="none" stroke="currentColor" stroke-width="7"/><path d="M-9,13 L30,-40" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round"/>`
22933
+ ),
22934
+ "opposition": raw100(
22935
+ `<circle cx="-26" cy="26" r="11" fill="none" stroke="currentColor" stroke-width="7"/><circle cx="26" cy="-26" r="11" fill="none" stroke="currentColor" stroke-width="7"/><path d="M-18,18 L18,-18" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round"/>`
22936
+ ),
22937
+ "square": raw100(
22938
+ `<rect x="-32" y="-32" width="64" height="64" fill="none" stroke="currentColor" stroke-width="7" stroke-linejoin="miter"/>`
22939
+ ),
22940
+ "trine": raw100(
22941
+ `<path d="M0,-36 L36,32 L-36,32 Z" fill="none" stroke="currentColor" stroke-width="7" stroke-linejoin="miter"/>`
22942
+ ),
22943
+ "sextile": raw100(
22944
+ `<path d="M0,-38 L0,38 M-33,-19 L33,19 M33,-19 L-33,19" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>`
22945
+ ),
22946
+ "semisquare": raw100(
22947
+ `<path d="M-32,34 L8,34 L32,-34" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="square" stroke-linejoin="miter"/>`
22948
+ ),
22949
+ "sesquisquare": raw100(
22950
+ `<path d="M-30,-34 L30,-34 L30,22 L-30,22 L-30,-34 M0,22 L0,42 L30,42" fill="none" stroke="currentColor" stroke-width="7" stroke-linejoin="miter" stroke-linecap="square"/>`
22951
+ ),
22952
+ "semisextile": raw100(
22953
+ `<path d="M-34,34 L34,34 M-24,-32 L0,28 L24,-32" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>`
22954
+ ),
22955
+ "inconjunct": raw100(
22956
+ `<path d="M-34,-32 L34,-32 M-24,-26 L-8,36 M24,-26 L8,36" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>`
22957
+ )
22958
+ };
22959
+
22960
+ // src/visual/astro-glyph-registry.ts
22961
+ var ZODIAC_GLYPH_PRIMITIVES = SOURCE_ZODIAC_GLYPH_PRIMITIVES;
22962
+ var PLANET_GLYPH_PRIMITIVES = SOURCE_PLANET_GLYPH_PRIMITIVES;
22963
+ var ASPECT_GLYPH_PRIMITIVES = SOURCE_ASPECT_GLYPH_PRIMITIVES;
22964
+ var ANGLE_GLYPH_PRIMITIVES = {
22965
+ asc: SOURCE_PLANET_GLYPH_PRIMITIVES.ascendant,
22966
+ mc: SOURCE_PLANET_GLYPH_PRIMITIVES.midheaven,
22967
+ dsc: SOURCE_PLANET_GLYPH_PRIMITIVES.descendant,
22968
+ ic: SOURCE_PLANET_GLYPH_PRIMITIVES.nadir,
22969
+ vertex: SOURCE_PLANET_GLYPH_PRIMITIVES.vertex
22970
+ };
22971
+ var PLANET_ALIASES = {
22972
+ "north node": ["mean node", "true node", "ascending node", "north lunar node", "\u260A"],
22973
+ "south node": ["descending node", "south lunar node", "\u260B"],
22974
+ lilith: ["black moon lilith", "mean lilith", "true lilith", "lilith mean", "lilith true", "\u26B8"],
22975
+ "pars fortunae": ["part of fortune", "lot of fortune", "wheel of fortune", "fortune", "\u2297"],
22976
+ ascendant: ["asc", "ac"],
22977
+ midheaven: ["mc", "medium coeli"],
22978
+ descendant: ["dsc", "dc"],
22979
+ nadir: ["ic", "imum coeli"],
22980
+ vertex: ["vx", "vtx"],
22981
+ retrograde: ["rx"]
22982
+ };
22983
+ var ASPECT_ALIASES = {
22984
+ semisquare: ["semi-square", "octile"],
22985
+ sesquisquare: ["sesqui-square", "sesquiquadrate", "trioctile"],
22986
+ semisextile: ["semi-sextile", "duodecile"],
22987
+ inconjunct: ["quincunx"]
22988
+ };
22989
+ var ZODIAC_GLYPHS = mapGlyphRecord(
22990
+ ZODIAC_GLYPH_PRIMITIVES,
22991
+ (key, primitives) => ({
22992
+ key: normalizeGlyphKey(key),
22993
+ label: key,
22994
+ category: "zodiac",
22995
+ primitives
22996
+ })
22997
+ );
22998
+ var PLANET_GLYPHS = mapGlyphRecord(
22999
+ PLANET_GLYPH_PRIMITIVES,
23000
+ (key, primitives) => ({
23001
+ key,
23002
+ label: titleCaseGlyphKey(key),
23003
+ category: "planet",
23004
+ primitives,
23005
+ aliases: PLANET_ALIASES[key]
23006
+ })
23007
+ );
23008
+ var ASPECT_GLYPHS = mapGlyphRecord(
23009
+ ASPECT_GLYPH_PRIMITIVES,
23010
+ (key, primitives) => ({
23011
+ key,
23012
+ label: titleCaseGlyphKey(key),
23013
+ category: "aspect",
23014
+ primitives,
23015
+ aliases: ASPECT_ALIASES[key]
23016
+ })
23017
+ );
23018
+ function mapGlyphRecord(source, mapper) {
23019
+ const result = {};
23020
+ for (const key of typedKeys(source)) {
23021
+ result[key] = mapper(key, source[key]);
23022
+ }
23023
+ return result;
23024
+ }
23025
+ function typedKeys(object) {
23026
+ return Object.keys(object);
23027
+ }
23028
+ var ANGLE_GLYPHS = {
23029
+ asc: {
23030
+ key: "asc",
23031
+ label: "ASC",
23032
+ category: "angle",
23033
+ primitives: ANGLE_GLYPH_PRIMITIVES.asc,
23034
+ aliases: ["ac"]
23035
+ },
23036
+ mc: {
23037
+ key: "mc",
23038
+ label: "MC",
23039
+ category: "angle",
23040
+ primitives: ANGLE_GLYPH_PRIMITIVES.mc
23041
+ },
23042
+ dsc: {
23043
+ key: "dsc",
23044
+ label: "DSC",
23045
+ category: "angle",
23046
+ primitives: ANGLE_GLYPH_PRIMITIVES.dsc,
23047
+ aliases: ["dc"]
23048
+ },
23049
+ ic: {
23050
+ key: "ic",
23051
+ label: "IC",
23052
+ category: "angle",
23053
+ primitives: ANGLE_GLYPH_PRIMITIVES.ic
23054
+ },
23055
+ vertex: {
23056
+ key: "vertex",
23057
+ label: "Vertex",
23058
+ category: "angle",
23059
+ primitives: ANGLE_GLYPH_PRIMITIVES.vertex,
23060
+ aliases: ["vx", "vtx"]
23061
+ }
23062
+ };
23063
+ var ASTRO_GLYPHS = buildAstroGlyphRegistry();
23064
+ function buildAstroGlyphRegistry() {
23065
+ const registry = {};
23066
+ for (const glyph of [
23067
+ ...Object.values(ZODIAC_GLYPHS),
23068
+ ...Object.values(PLANET_GLYPHS),
23069
+ ...Object.values(ASPECT_GLYPHS),
23070
+ ...Object.values(ANGLE_GLYPHS)
23071
+ ]) {
23072
+ registry[normalizeGlyphKey(glyph.key)] = glyph;
23073
+ registry[normalizeGlyphKey(glyph.label)] = glyph;
23074
+ for (const alias of glyph.aliases ?? []) {
23075
+ registry[normalizeGlyphKey(alias)] = glyph;
23076
+ }
23077
+ }
23078
+ return registry;
23079
+ }
23080
+ function normalizeGlyphKey(value) {
23081
+ return value.trim().toLocaleLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ");
23082
+ }
23083
+ function titleCaseGlyphKey(value) {
23084
+ return normalizeGlyphKey(value).split(" ").map((part) => part.charAt(0).toLocaleUpperCase() + part.slice(1)).join(" ");
23085
+ }
23086
+
23087
+ // src/visual/astro-wheel.ts
23088
+ var TAU = Math.PI * 2;
23089
+
22873
23090
  // src/visual/tree-svg.ts
22874
23091
  var TREE_SVG_DEFAULT_VIEWBOX = {
22875
23092
  minX: 0,
@@ -22906,6 +23123,9 @@ var DEFAULT_SPHERE_RADIUS = 30;
22906
23123
  var DEFAULT_PATH_EDGE_WIDTH = 26;
22907
23124
  var DEFAULT_PATH_MAIN_WIDTH = 22;
22908
23125
  var DEFAULT_PATH_HIGHLIGHT_WIDTH = 8;
23126
+ var DEFAULT_SPHERE_HIT_RADIUS = DEFAULT_SPHERE_RADIUS + 8;
23127
+ var DEFAULT_PATH_HIT_STROKE_WIDTH = DEFAULT_PATH_EDGE_WIDTH + 8;
23128
+ var MUTED_TARGET_COLOR = "#AAA";
22909
23129
  var sphereId = (name) => id("sphere" /* SPHERE */, name);
22910
23130
  var pathId = (pathNumber) => id("path" /* PATH */, String(pathNumber));
22911
23131
  var TREE_SPHERE_IDS = TREE_SPHERE_NAMES.map(
@@ -22943,6 +23163,155 @@ function getTreeLayout(system = "kaabalah") {
22943
23163
  viewBoxUnits
22944
23164
  };
22945
23165
  }
23166
+ function getTreeRenderModel(options = {}) {
23167
+ const system = options.system ?? "kaabalah";
23168
+ const tree = createTree({ system, parts: ["colors"] });
23169
+ const viewBox = normalizeViewBox(options.viewBox);
23170
+ const palette = resolvePalette(options.palette);
23171
+ const highlights = resolveHighlights(options.highlights);
23172
+ const activationMap = resolveActivationMap(options.activations);
23173
+ const layout = getTreeLayout(system);
23174
+ const spherePositions = scaleCoordinates(CANONICAL_SPHERE_PERCENTAGES, viewBox);
23175
+ const viewBoxLayout = buildLayoutMap(tree, spherePositions);
23176
+ const scale = Math.min(
23177
+ viewBox.width / TREE_SVG_DEFAULT_VIEWBOX.width,
23178
+ viewBox.height / TREE_SVG_DEFAULT_VIEWBOX.height
23179
+ );
23180
+ const radius = round(DEFAULT_SPHERE_RADIUS * scale);
23181
+ const pathEdgeWidth = round(DEFAULT_PATH_EDGE_WIDTH * scale);
23182
+ const pathMainWidth = round(DEFAULT_PATH_MAIN_WIDTH * scale);
23183
+ const pathHighlightWidth = round(DEFAULT_PATH_HIGHLIGHT_WIDTH * scale);
23184
+ const sphereHitRadius = round(DEFAULT_SPHERE_HIT_RADIUS * scale);
23185
+ const pathHitStrokeWidth = round(DEFAULT_PATH_HIT_STROKE_WIDTH * scale);
23186
+ const layers = [
23187
+ { name: "background", order: 0, description: "Background rectangle when requested." },
23188
+ ...options.daathLayer === "back" ? [{ name: "spheres-behind-paths", order: 1, description: "Daath behind the paths." }] : [],
23189
+ { name: "paths", order: options.daathLayer === "back" ? 2 : 1, description: "Canonical paths and activation emphasis." },
23190
+ { name: "spheres", order: options.daathLayer === "back" ? 3 : 2, description: "Canonical sphere material and activation halos." },
23191
+ { name: "hit-targets", order: options.daathLayer === "back" ? 4 : 3, description: "Invisible anchors for interaction." }
23192
+ ];
23193
+ const layerOrder = layers.map((layer) => layer.name);
23194
+ const spheres = TREE_SPHERE_NAMES.map((sphereName) => {
23195
+ const sphereIdValue = sphereId(sphereName);
23196
+ const canonicalColor = resolveSphereCanonicalColor({
23197
+ palette,
23198
+ sphereId: sphereIdValue,
23199
+ tree
23200
+ });
23201
+ const point = spherePositions[sphereIdValue];
23202
+ const activation = resolveTargetActivation({
23203
+ activation: activationMap.get(sphereIdValue),
23204
+ canonicalColor
23205
+ });
23206
+ const activeFill = resolveSphereDisplayFill({
23207
+ palette,
23208
+ highlights,
23209
+ sphereId: sphereIdValue,
23210
+ canonicalColor,
23211
+ activation
23212
+ });
23213
+ return {
23214
+ id: sphereIdValue,
23215
+ name: sphereName,
23216
+ slug: sphereName.toLowerCase(),
23217
+ canonicalColor,
23218
+ geometry: {
23219
+ percentages: {
23220
+ center: { ...layout.percentages.spheres[sphereIdValue] },
23221
+ anchor: getPercentageAnchor(layout.percentages.spheres[sphereIdValue])
23222
+ },
23223
+ viewBoxUnits: {
23224
+ center: { ...point },
23225
+ anchor: getViewBoxAnchor(point, viewBox),
23226
+ hitTarget: {
23227
+ kind: "circle",
23228
+ cx: point.x,
23229
+ cy: point.y,
23230
+ r: sphereHitRadius
23231
+ }
23232
+ },
23233
+ radius: {
23234
+ viewBoxUnits: radius
23235
+ }
23236
+ },
23237
+ material: getSphereMaterial({
23238
+ sphereName,
23239
+ preserveSpecialMaterial: shouldPreserveSpecialRenderer({
23240
+ palette,
23241
+ highlights,
23242
+ hasPaintOverride: activation !== null || highlights.sphereFills[sphereIdValue] !== void 0,
23243
+ activation
23244
+ })
23245
+ }),
23246
+ activation,
23247
+ displayFill: activeFill
23248
+ };
23249
+ });
23250
+ const paths = TREE_PATH_IDS.map((pathIdValue) => {
23251
+ const canonicalColor = resolvePathCanonicalColor({
23252
+ palette,
23253
+ tree,
23254
+ pathId: pathIdValue
23255
+ });
23256
+ const path = viewBoxLayout.paths[pathIdValue];
23257
+ const activation = resolveTargetActivation({
23258
+ activation: activationMap.get(pathIdValue),
23259
+ canonicalColor
23260
+ });
23261
+ const displayColor = activation ? resolvePathDisplayColor({
23262
+ canonicalColor,
23263
+ activation
23264
+ }) : resolvePathBaseColor({
23265
+ canonicalColor,
23266
+ highlights,
23267
+ pathId: pathIdValue
23268
+ });
23269
+ return {
23270
+ id: pathIdValue,
23271
+ canonicalColor,
23272
+ geometry: {
23273
+ percentages: {
23274
+ from: { ...layout.percentages.paths[pathIdValue].from },
23275
+ to: { ...layout.percentages.paths[pathIdValue].to },
23276
+ anchor: getPercentagePathAnchor(layout.percentages.paths[pathIdValue])
23277
+ },
23278
+ viewBoxUnits: {
23279
+ from: { ...path.from },
23280
+ to: { ...path.to },
23281
+ anchor: getViewBoxPathAnchor(path, viewBox),
23282
+ hitTarget: {
23283
+ kind: "line",
23284
+ x1: path.from.x,
23285
+ y1: path.from.y,
23286
+ x2: path.to.x,
23287
+ y2: path.to.y,
23288
+ strokeWidth: pathHitStrokeWidth
23289
+ }
23290
+ },
23291
+ widths: {
23292
+ edge: pathEdgeWidth,
23293
+ main: pathMainWidth,
23294
+ highlight: pathHighlightWidth,
23295
+ hitTarget: pathHitStrokeWidth
23296
+ }
23297
+ },
23298
+ activation,
23299
+ displayColor
23300
+ };
23301
+ });
23302
+ return {
23303
+ system,
23304
+ viewBox,
23305
+ scale,
23306
+ layout,
23307
+ layerOrder,
23308
+ layers,
23309
+ spheres,
23310
+ paths,
23311
+ sphereById: Object.fromEntries(spheres.map((entry) => [entry.id, entry])),
23312
+ pathById: Object.fromEntries(paths.map((entry) => [entry.id, entry]))
23313
+ };
23314
+ }
22946
23315
  function generateTreeSvg(options = {}) {
22947
23316
  const system = options.system ?? "kaabalah";
22948
23317
  const daathLayer = options.daathLayer ?? "front";
@@ -22950,6 +23319,7 @@ function generateTreeSvg(options = {}) {
22950
23319
  const viewBox = normalizeViewBox(options.viewBox);
22951
23320
  const palette = resolvePalette(options.palette);
22952
23321
  const highlights = resolveHighlights(options.highlights);
23322
+ const activationMap = resolveActivationMap(options.activations);
22953
23323
  const spherePositions = scaleCoordinates(CANONICAL_SPHERE_PERCENTAGES, viewBox);
22954
23324
  const layout = buildLayoutMap(tree, spherePositions);
22955
23325
  const scale = Math.min(
@@ -23027,6 +23397,14 @@ function generateTreeSvg(options = {}) {
23027
23397
  push(`<g id="spheres-behind-paths">`);
23028
23398
  renderSphere(push, {
23029
23399
  highlights,
23400
+ activation: resolveTargetActivation({
23401
+ activation: activationMap.get(sphereId("Daath")),
23402
+ canonicalColor: resolveSphereCanonicalColor({
23403
+ palette,
23404
+ sphereId: sphereId("Daath"),
23405
+ tree
23406
+ })
23407
+ }),
23030
23408
  tree,
23031
23409
  palette,
23032
23410
  radius,
@@ -23039,12 +23417,24 @@ function generateTreeSvg(options = {}) {
23039
23417
  push(`<g id="paths">`);
23040
23418
  for (const currentPathId of TREE_PATH_IDS) {
23041
23419
  const path = layout.paths[currentPathId];
23042
- const color = resolvePathColor({
23043
- highlights,
23420
+ const canonicalColor = resolvePathCanonicalColor({
23044
23421
  palette,
23045
23422
  tree,
23046
23423
  pathId: currentPathId
23047
23424
  });
23425
+ const baseColor = resolvePathBaseColor({
23426
+ canonicalColor,
23427
+ highlights,
23428
+ pathId: currentPathId
23429
+ });
23430
+ const activation = resolveTargetActivation({
23431
+ activation: activationMap.get(currentPathId),
23432
+ canonicalColor
23433
+ });
23434
+ const color = activation ? resolvePathDisplayColor({
23435
+ canonicalColor,
23436
+ activation
23437
+ }) : baseColor;
23048
23438
  const edgeColor = resolvePathEdgeColor({
23049
23439
  palette,
23050
23440
  pathColor: color
@@ -23052,6 +23442,11 @@ function generateTreeSvg(options = {}) {
23052
23442
  push(
23053
23443
  `<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr(edgeColor)}" stroke-width="${pathEdgeWidth}" stroke-linecap="round"${palette.pathEdgeUseFilter ? ` filter="url(#pathDarken)"` : ""}/>`
23054
23444
  );
23445
+ if (activation?.visible && activation.emphasis > 0) {
23446
+ push(
23447
+ `<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr(color)}" stroke-opacity="${round(0.18 + activation.emphasis * 0.28)}" stroke-width="${round(pathEdgeWidth + activation.emphasis * 10)}" stroke-linecap="round"/>`
23448
+ );
23449
+ }
23055
23450
  push(
23056
23451
  `<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr(color)}" stroke-width="${pathMainWidth}" stroke-linecap="round"/>`
23057
23452
  );
@@ -23063,8 +23458,18 @@ function generateTreeSvg(options = {}) {
23063
23458
  const frontSphereNames = daathLayer === "back" ? TREE_SPHERE_NAMES.filter((name) => name !== "Daath") : TREE_SPHERE_NAMES;
23064
23459
  push(`<g id="spheres">`);
23065
23460
  for (const sphereName of frontSphereNames) {
23461
+ const currentSphereId = sphereId(sphereName);
23462
+ const canonicalColor = resolveSphereCanonicalColor({
23463
+ palette,
23464
+ sphereId: currentSphereId,
23465
+ tree
23466
+ });
23066
23467
  renderSphere(push, {
23067
23468
  highlights,
23469
+ activation: resolveTargetActivation({
23470
+ activation: activationMap.get(currentSphereId),
23471
+ canonicalColor
23472
+ }),
23068
23473
  tree,
23069
23474
  palette,
23070
23475
  radius,
@@ -23093,9 +23498,23 @@ function renderSphere(push, params) {
23093
23498
  sphereId: currentSphereId,
23094
23499
  defaultColors: colorData
23095
23500
  });
23096
- const highlightFill = params.highlights.sphereFills[currentSphereId];
23097
- const activeFill = highlightFill ?? sphereFill;
23098
- const preserveSpecialRenderer = params.palette.specialSphereMode === "preserve" && (highlightFill === void 0 || params.highlights.specialSphereMode === "preserve");
23501
+ const activationFill = params.activation && (params.activation.state === "inactive" || params.activation.colorOverride) ? params.activation.displayColor : void 0;
23502
+ const highlightFill = activationFill ?? params.highlights.sphereFills[currentSphereId];
23503
+ const activeFill = params.activation ? params.activation.displayColor : highlightFill ?? sphereFill;
23504
+ const preserveSpecialRenderer = shouldPreserveSpecialRenderer({
23505
+ palette: params.palette,
23506
+ highlights: params.highlights,
23507
+ hasPaintOverride: highlightFill !== void 0,
23508
+ activation: params.activation
23509
+ });
23510
+ if (params.activation?.visible && params.activation.emphasis > 0) {
23511
+ const haloStrokeWidth = round(3.2 + params.activation.emphasis * 4.8);
23512
+ const haloRadius = round(params.radius + haloStrokeWidth / 2 + 0.7);
23513
+ const haloColor = params.activation.displayColor;
23514
+ push(
23515
+ `<circle cx="${point.x}" cy="${point.y}" r="${haloRadius}" fill="none" stroke="${escapeAttr(haloColor)}" stroke-opacity="${round(0.24 + params.activation.emphasis * 0.28)}" stroke-width="${haloStrokeWidth}"/>`
23516
+ );
23517
+ }
23099
23518
  push(`<g id="sphere-${slug}" clip-path="url(#clip-${slug})">`);
23100
23519
  if (preserveSpecialRenderer) {
23101
23520
  if (params.sphereName === "Kether") {
@@ -23199,6 +23618,160 @@ function normalizeViewBox(viewBox) {
23199
23618
  height: viewBox?.height ?? TREE_SVG_DEFAULT_VIEWBOX.height
23200
23619
  };
23201
23620
  }
23621
+ function resolveActivationMap(activations) {
23622
+ const map = /* @__PURE__ */ new Map();
23623
+ for (const activation of activations ?? []) {
23624
+ map.set(activation.targetId, activation);
23625
+ }
23626
+ return map;
23627
+ }
23628
+ function resolveTargetActivation(params) {
23629
+ if (!params.activation) {
23630
+ return null;
23631
+ }
23632
+ const state = params.activation.state ?? (params.activation.count > 0 ? "active" : "inactive");
23633
+ const strength = clamp01(
23634
+ params.activation.strength ?? (params.activation.total > 0 ? params.activation.count / params.activation.total : 0)
23635
+ );
23636
+ const displayColor = state === "inactive" ? params.activation.color ?? MUTED_TARGET_COLOR : params.activation.color ?? params.canonicalColor;
23637
+ return {
23638
+ state,
23639
+ count: params.activation.count,
23640
+ total: params.activation.total,
23641
+ strength,
23642
+ canonicalColor: params.canonicalColor,
23643
+ displayColor,
23644
+ colorOverride: params.activation.color,
23645
+ mutedColor: MUTED_TARGET_COLOR,
23646
+ visible: state !== "inactive",
23647
+ emphasis: state === "selected" ? clamp01(Math.max(strength, 0.9)) : state === "hovered" ? clamp01(Math.max(strength, 0.72)) : state === "active" ? clamp01(Math.max(strength, 0.56)) : 0
23648
+ };
23649
+ }
23650
+ function resolveSphereCanonicalColor(params) {
23651
+ const override = params.palette.sphereFills[params.sphereId];
23652
+ if (override) {
23653
+ return toPrimaryFill(override, params.palette.defaultSphereFill);
23654
+ }
23655
+ if (params.palette.mode === "monochrome" || params.palette.mode === "custom") {
23656
+ return params.palette.defaultSphereFill;
23657
+ }
23658
+ const treeColor = params.tree.relatedFirst(params.sphereId, "color" /* COLOR */)?.data?.colorHexCodes?.[0];
23659
+ return treeColor ?? params.palette.defaultSphereFill;
23660
+ }
23661
+ function resolvePathCanonicalColor(params) {
23662
+ const override = params.palette.pathColors[params.pathId];
23663
+ if (override) {
23664
+ return override;
23665
+ }
23666
+ if (params.palette.mode === "monochrome" || params.palette.mode === "custom") {
23667
+ return params.palette.defaultPathColor;
23668
+ }
23669
+ const treeColor = params.tree.relatedFirst(params.pathId, "color" /* COLOR */)?.data?.colorHexCodes?.[0];
23670
+ return treeColor ?? params.palette.defaultPathColor;
23671
+ }
23672
+ function resolvePathBaseColor(params) {
23673
+ const highlightOverride = params.highlights.pathColors[params.pathId];
23674
+ if (highlightOverride) {
23675
+ return highlightOverride;
23676
+ }
23677
+ return params.canonicalColor;
23678
+ }
23679
+ function resolveSphereDisplayFill(params) {
23680
+ const highlightOverride = params.highlights.sphereFills[params.sphereId];
23681
+ const fallbackFill = Array.isArray(params.canonicalColor) ? params.canonicalColor[0] ?? params.palette.defaultSphereFill : params.canonicalColor;
23682
+ if (params.activation) {
23683
+ if (params.activation.state !== "inactive" && !params.activation.colorOverride) {
23684
+ return params.canonicalColor ?? fallbackFill;
23685
+ }
23686
+ return params.activation.displayColor;
23687
+ }
23688
+ if (highlightOverride) {
23689
+ return highlightOverride;
23690
+ }
23691
+ return params.canonicalColor ?? fallbackFill;
23692
+ }
23693
+ function resolvePathDisplayColor(params) {
23694
+ if (!params.activation) {
23695
+ return params.canonicalColor;
23696
+ }
23697
+ return params.activation.displayColor;
23698
+ }
23699
+ function getPercentageAnchor(point) {
23700
+ return {
23701
+ x: point.x,
23702
+ y: point.y,
23703
+ vertical: point.y < 18 ? "below" : "above"
23704
+ };
23705
+ }
23706
+ function getViewBoxAnchor(point, viewBox) {
23707
+ return {
23708
+ x: point.x,
23709
+ y: point.y,
23710
+ vertical: point.y - viewBox.minY < viewBox.height * 0.18 ? "below" : "above"
23711
+ };
23712
+ }
23713
+ function getPercentagePathAnchor(path) {
23714
+ const y = round((path.from.y + path.to.y) / 2);
23715
+ return {
23716
+ x: round((path.from.x + path.to.x) / 2),
23717
+ y,
23718
+ vertical: y < 18 ? "below" : "above"
23719
+ };
23720
+ }
23721
+ function getViewBoxPathAnchor(path, viewBox) {
23722
+ const y = round((path.from.y + path.to.y) / 2);
23723
+ return {
23724
+ x: round((path.from.x + path.to.x) / 2),
23725
+ y,
23726
+ vertical: y - viewBox.minY < viewBox.height * 0.18 ? "below" : "above"
23727
+ };
23728
+ }
23729
+ function shouldPreserveSpecialRenderer(params) {
23730
+ return params.palette.specialSphereMode === "preserve" && (params.activation !== null || !params.hasPaintOverride || params.highlights.specialSphereMode === "preserve");
23731
+ }
23732
+ function getSphereMaterial(params) {
23733
+ if (!params.preserveSpecialMaterial) {
23734
+ return {
23735
+ kind: "standard",
23736
+ preserveOnActivation: false
23737
+ };
23738
+ }
23739
+ if (params.sphereName === "Kether") {
23740
+ return {
23741
+ kind: "special",
23742
+ specialSphereName: "Kether",
23743
+ preserveOnActivation: true
23744
+ };
23745
+ }
23746
+ if (params.sphereName === "Chokhmah") {
23747
+ return {
23748
+ kind: "special",
23749
+ specialSphereName: "Chokhmah",
23750
+ preserveOnActivation: true
23751
+ };
23752
+ }
23753
+ if (params.sphereName === "Daath") {
23754
+ return {
23755
+ kind: "special",
23756
+ specialSphereName: "Daath",
23757
+ preserveOnActivation: true
23758
+ };
23759
+ }
23760
+ if (params.sphereName === "Malkuth") {
23761
+ return {
23762
+ kind: "special",
23763
+ specialSphereName: "Malkuth",
23764
+ preserveOnActivation: true
23765
+ };
23766
+ }
23767
+ return {
23768
+ kind: "standard",
23769
+ preserveOnActivation: false
23770
+ };
23771
+ }
23772
+ function clamp01(value) {
23773
+ return Math.max(0, Math.min(1, value));
23774
+ }
23202
23775
  function resolvePalette(palette) {
23203
23776
  if (palette === void 0 || palette === "color") {
23204
23777
  return {
@@ -23252,21 +23825,6 @@ function resolveHighlights(highlights) {
23252
23825
  specialSphereMode: highlights?.specialSphereMode ?? "preserve"
23253
23826
  };
23254
23827
  }
23255
- function resolvePathColor(params) {
23256
- const highlightOverride = params.highlights.pathColors[params.pathId];
23257
- if (highlightOverride) {
23258
- return highlightOverride;
23259
- }
23260
- const override = params.palette.pathColors[params.pathId];
23261
- if (override) {
23262
- return override;
23263
- }
23264
- if (params.palette.mode === "monochrome" || params.palette.mode === "custom") {
23265
- return params.palette.defaultPathColor;
23266
- }
23267
- const treeColor = params.tree.relatedFirst(params.pathId, "color" /* COLOR */)?.data?.colorHexCodes?.[0];
23268
- return treeColor ?? params.palette.defaultPathColor;
23269
- }
23270
23828
  function resolvePathEdgeColor(params) {
23271
23829
  if (params.palette.mode === "color") {
23272
23830
  return params.pathColor;
@@ -23595,6 +24153,20 @@ function serializeLayout(layout, units) {
23595
24153
  }
23596
24154
  return base;
23597
24155
  }
24156
+ function serializeRenderModel(model) {
24157
+ return {
24158
+ system: model.system,
24159
+ viewBox: model.viewBox,
24160
+ scale: model.scale,
24161
+ layerOrder: model.layerOrder,
24162
+ layers: model.layers,
24163
+ layout: model.layout,
24164
+ spheres: model.spheres,
24165
+ paths: model.paths,
24166
+ sphereById: model.sphereById,
24167
+ pathById: model.pathById
24168
+ };
24169
+ }
23598
24170
  function buildViewBox(flags) {
23599
24171
  const width = getFlagNumber(flags, "viewbox-width");
23600
24172
  const height = getFlagNumber(flags, "viewbox-height");
@@ -23617,6 +24189,97 @@ function buildViewBox(flags) {
23617
24189
  height
23618
24190
  };
23619
24191
  }
24192
+ var TREE_SPHERE_ID_SET = new Set(TREE_SPHERE_IDS);
24193
+ var TREE_PATH_ID_SET = new Set(TREE_PATH_IDS);
24194
+ var TREE_TARGET_STATES = /* @__PURE__ */ new Set(["active", "hovered", "selected", "inactive"]);
24195
+ function readJsonFile(pathFlag, flags) {
24196
+ const filePath = (0, import_node_path2.resolve)(pathFlag);
24197
+ let raw;
24198
+ try {
24199
+ raw = (0, import_node_fs2.readFileSync)(filePath, "utf8");
24200
+ } catch (err) {
24201
+ exitWithError(
24202
+ "INVALID_ARGUMENT",
24203
+ `Could not read activations file "${filePath}": ${err instanceof Error ? err.message : String(err)}.`,
24204
+ flags
24205
+ );
24206
+ }
24207
+ try {
24208
+ return JSON.parse(raw);
24209
+ } catch {
24210
+ exitWithError(
24211
+ "INVALID_JSON",
24212
+ `Invalid JSON in activations file "${filePath}".`,
24213
+ flags
24214
+ );
24215
+ }
24216
+ }
24217
+ function validateActivationEntry(entry, index, flags) {
24218
+ const label = `activations[${index}]`;
24219
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
24220
+ exitWithError("INVALID_JSON", `${label} must be a JSON object.`, flags);
24221
+ }
24222
+ const raw = entry;
24223
+ const targetId = raw.targetId;
24224
+ const targetType = raw.targetType;
24225
+ const count = raw.count;
24226
+ const total = raw.total;
24227
+ const strength = raw.strength;
24228
+ const state = raw.state;
24229
+ const color = raw.color;
24230
+ if (typeof targetId !== "string" || !targetId) {
24231
+ exitWithError("INVALID_JSON", `${label}.targetId must be a non-empty string.`, flags);
24232
+ }
24233
+ if (targetType !== "sphere" && targetType !== "path") {
24234
+ exitWithError("INVALID_JSON", `${label}.targetType must be "sphere" or "path".`, flags);
24235
+ }
24236
+ if (targetType === "sphere" && !TREE_SPHERE_ID_SET.has(targetId)) {
24237
+ exitWithError("INVALID_ARGUMENT", `${label}.targetId "${targetId}" is not a known sphere target.`, flags);
24238
+ }
24239
+ if (targetType === "path" && !TREE_PATH_ID_SET.has(targetId)) {
24240
+ exitWithError("INVALID_ARGUMENT", `${label}.targetId "${targetId}" is not a known path target.`, flags);
24241
+ }
24242
+ if (!Number.isFinite(count) || typeof count !== "number" || count < 0) {
24243
+ exitWithError("INVALID_JSON", `${label}.count must be a non-negative number.`, flags);
24244
+ }
24245
+ if (!Number.isFinite(total) || typeof total !== "number" || total < 0) {
24246
+ exitWithError("INVALID_JSON", `${label}.total must be a non-negative number.`, flags);
24247
+ }
24248
+ if (strength !== void 0 && (typeof strength !== "number" || !Number.isFinite(strength) || strength < 0 || strength > 1)) {
24249
+ exitWithError("INVALID_JSON", `${label}.strength must be a number between 0 and 1.`, flags);
24250
+ }
24251
+ if (state !== void 0 && (typeof state !== "string" || !TREE_TARGET_STATES.has(state))) {
24252
+ exitWithError("INVALID_JSON", `${label}.state must be active, hovered, selected, or inactive.`, flags);
24253
+ }
24254
+ if (color !== void 0 && typeof color !== "string") {
24255
+ exitWithError("INVALID_JSON", `${label}.color must be a string when provided.`, flags);
24256
+ }
24257
+ return {
24258
+ targetId,
24259
+ targetType,
24260
+ count,
24261
+ total,
24262
+ ...strength !== void 0 ? { strength } : {},
24263
+ ...state !== void 0 ? { state } : {},
24264
+ ...color !== void 0 ? { color } : {}
24265
+ };
24266
+ }
24267
+ function readActivations(flags) {
24268
+ const activationsPath = getFlagString(flags, "activations");
24269
+ if (!activationsPath) {
24270
+ return void 0;
24271
+ }
24272
+ const parsed = readJsonFile(activationsPath, flags);
24273
+ const payload = Array.isArray(parsed) ? parsed : typeof parsed === "object" && parsed !== null && Array.isArray(parsed.activations) ? parsed.activations : null;
24274
+ if (!payload) {
24275
+ exitWithError(
24276
+ "INVALID_JSON",
24277
+ 'Activations file must be a JSON array or an object with an "activations" array.',
24278
+ flags
24279
+ );
24280
+ }
24281
+ return payload.map((entry, index) => validateActivationEntry(entry, index, flags));
24282
+ }
23620
24283
  function buildSvgOptions(flags) {
23621
24284
  const palette = getFlagString(flags, "palette");
23622
24285
  if (palette && palette !== "color" && palette !== "monochrome") {
@@ -23641,7 +24304,33 @@ function buildSvgOptions(flags) {
23641
24304
  background: getFlagString(flags, "background") ?? void 0,
23642
24305
  palette: palette ?? void 0,
23643
24306
  viewBox: buildViewBox(flags),
23644
- daathLayer: daathLayer ?? void 0
24307
+ daathLayer: daathLayer ?? void 0,
24308
+ activations: readActivations(flags)
24309
+ };
24310
+ }
24311
+ function buildRenderModelOptions(flags) {
24312
+ const palette = getFlagString(flags, "palette");
24313
+ if (palette && palette !== "color" && palette !== "monochrome") {
24314
+ exitWithError(
24315
+ "INVALID_ARGUMENT",
24316
+ `Unknown SVG palette "${palette}". Expected "color" or "monochrome".`,
24317
+ flags
24318
+ );
24319
+ }
24320
+ const daathLayer = getFlagString(flags, "daath-layer");
24321
+ if (daathLayer && daathLayer !== "front" && daathLayer !== "back") {
24322
+ exitWithError(
24323
+ "INVALID_ARGUMENT",
24324
+ `Unknown Daath layer "${daathLayer}". Expected "front" or "back".`,
24325
+ flags
24326
+ );
24327
+ }
24328
+ return {
24329
+ system: resolveSystem(flags),
24330
+ palette: palette ?? void 0,
24331
+ viewBox: buildViewBox(flags),
24332
+ daathLayer: daathLayer ?? void 0,
24333
+ activations: readActivations(flags)
23645
24334
  };
23646
24335
  }
23647
24336
  function renderAsciiTree(layout, columns, rows) {
@@ -23924,6 +24613,29 @@ Tree search
23924
24613
  console.log();
23925
24614
  }
23926
24615
  function cmdTreeLayout(flags) {
24616
+ if (getFlagBool(flags, "render-model")) {
24617
+ const modelOptions = buildRenderModelOptions(flags);
24618
+ const model = getTreeRenderModel(modelOptions);
24619
+ const payload2 = serializeRenderModel(model);
24620
+ if (isJsonMode(flags)) {
24621
+ outputJson(payload2, flags);
24622
+ return;
24623
+ }
24624
+ console.log(`
24625
+ Tree render model (${model.system})
24626
+ `);
24627
+ console.log(
24628
+ ` ViewBox: ${model.viewBox.minX} ${model.viewBox.minY} ${model.viewBox.width} ${model.viewBox.height}`
24629
+ );
24630
+ console.log(` Layers: ${model.layerOrder.join(" -> ")}`);
24631
+ console.log(` Spheres: ${model.spheres.length}`);
24632
+ console.log(` Paths: ${model.paths.length}`);
24633
+ console.log(
24634
+ ` Activations: ${model.spheres.filter((sphere) => sphere.activation).length + model.paths.filter((path) => path.activation).length}
24635
+ `
24636
+ );
24637
+ return;
24638
+ }
23927
24639
  const system = resolveSystem(flags);
23928
24640
  const units = resolveLayoutUnits(flags);
23929
24641
  const layout = getTreeLayout(system);
@@ -23970,7 +24682,8 @@ function cmdTreeSvg(flags) {
23970
24682
  background: svgOptions.background ?? null,
23971
24683
  palette: svgOptions.palette ?? "color",
23972
24684
  viewBox: svgOptions.viewBox ?? null,
23973
- daathLayer: svgOptions.daathLayer ?? "front"
24685
+ daathLayer: svgOptions.daathLayer ?? "front",
24686
+ activationCount: svgOptions.activations?.length ?? 0
23974
24687
  }
23975
24688
  },
23976
24689
  flags
@@ -23984,7 +24697,8 @@ function cmdTreeSvg(flags) {
23984
24697
  outputJson(
23985
24698
  {
23986
24699
  system,
23987
- svg
24700
+ svg,
24701
+ activationCount: svgOptions.activations?.length ?? 0
23988
24702
  },
23989
24703
  flags
23990
24704
  );