@graphysdk/react-renderer 1.9.0-beta.1795681189498 → 1.9.0-beta.1795706560667

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.
@@ -1 +1 @@
1
- @property --graphy-editor-border-width{syntax:"<length>";inherits:true;initial-value:1px}@property --graphy-text-scale{syntax:"<number>";inherits:true;initial-value:1}@property --graphy-font-size-xxs{syntax:"<length>";inherits:true;initial-value:10px}@property --graphy-font-size-xs{syntax:"<length>";inherits:true;initial-value:11px}@property --graphy-font-size-sm{syntax:"<length>";inherits:true;initial-value:12px}@property --graphy-font-size-md{syntax:"<length>";inherits:true;initial-value:14px}@property --graphy-font-size-lg{syntax:"<length>";inherits:true;initial-value:16px}@property --graphy-font-size-xl{syntax:"<length>";inherits:true;initial-value:20px}@property --graphy-font-size-editor-body{syntax:"<length>";inherits:true;initial-value:15px}@property --graphy-font-size-heading-sm{syntax:"<length>";inherits:true;initial-value:18px}@property --graphy-font-size-heading-md{syntax:"<length>";inherits:true;initial-value:22px}@property --graphy-font-size-heading-lg{syntax:"<length>";inherits:true;initial-value:28px}.to1jkx2{stroke-linecap:round;overflow:visible}[data-hover-active=true] .to1jkx3{opacity:var(--to1jkx0,1);filter:var(--to1jkx1,none);transition:opacity .15s ease-out,filter .15s ease-out}@keyframes _1d8mpa10{0%{opacity:0}to{opacity:1}}._1d8mpa11{overflow:visible}._1d8mpa12{animation:.15s ease-out _1d8mpa10}.w2i4n00{pointer-events:none;position:absolute}._8zqcis5{x:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);width:min(var(--_8zqcis1), var(--_8zqcis2))}._8zqcis6{y:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);height:min(var(--_8zqcis1), var(--_8zqcis2))}._8zqcis7{x:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);width:min(var(--_8zqcis1), var(--_8zqcis2));y:calc(var(--_8zqcis3) - var(--_8zqcis4) / 2);height:var(--_8zqcis4)}._8zqcis8{y:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);height:min(var(--_8zqcis1), var(--_8zqcis2));x:calc(var(--_8zqcis3) - var(--_8zqcis4) / 2);width:var(--_8zqcis4)}._16vokpr0{pointer-events:none;-webkit-user-select:none;user-select:none}._2qyyu60{flex-shrink:0;display:block;overflow:visible}.bow4tg0{box-sizing:border-box;color:var(--graphy-text-primary);font-size:calc(10px * var(--graphy-text-scale));position:relative;overflow:hidden}.bow4tg1{color:var(--graphy-text-primary);font-size:calc(10px * var(--graphy-text-scale));display:contents}.bow4tg2{background-color:var(--graphy-graph-background);position:absolute;top:0;bottom:0;left:0;right:0}.bow4tg2[data-graph-mode=edit]{-webkit-user-select:none;user-select:none}.bow4tg3{outline:none}.bow4tg4{background-image:linear-gradient(45deg, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent)), linear-gradient(45deg, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent));background-position:0 0,1em 1em;background-size:2em 2em}._1ii3bsb0{--graphy-transparent:transparent;--graphy-white:#fff;--graphy-black:#000;--graphy-gray-100:#fff;--graphy-gray-95:#fcfcfc;--graphy-gray-90:#fafafa;--graphy-gray-85:#f5f5f5;--graphy-gray-80:#f0f0f0;--graphy-gray-75:#e8e8e8;--graphy-gray-70:#e5e5e5;--graphy-gray-60:#ccc;--graphy-gray-50:#c4c4c4;--graphy-gray-0:#1d2129;--graphy-red-60:#e14b49;--graphy-red-50:#f93939;--graphy-amber-70:#ffba8c;--graphy-amber-50:#ffc849;--graphy-amber-40:#feae47;--graphy-amber-30:#e7a816;--graphy-green-60:#06b299;--graphy-green-50:#42cd69;--graphy-blue-80:#2e62ff;--graphy-blue-60:#3d70ff;--graphy-purple-50:#7b56ea;--graphy-purple-30:#e093fe;--graphy-gray-gradient-80:linear-gradient(to top, #f0f0f1, #f9f9ff);--graphy-text-primary:var(--graphy-black);--graphy-text-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-text-disabled:color-mix(in srgb, transparent, var(--graphy-text-primary) 50%);--graphy-icon-primary:currentColor;--graphy-icon-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-icon-sticker-background:var(--graphy-gray-100);--graphy-brand:var(--graphy-purple-50);--graphy-success:var(--graphy-green-50);--graphy-warning:var(--graphy-amber-50);--graphy-alert:var(--graphy-red-50);--graphy-border-100:var(--graphy-gray-0);--graphy-border-50:color-mix(in srgb, transparent, var(--graphy-gray-0) 50%);--graphy-border-10:color-mix(in srgb, transparent, var(--graphy-gray-0) 10%);--graphy-sunken-background:var(--graphy-gray-90);--graphy-default-background:var(--graphy-gray-100);--graphy-raised-background:var(--graphy-gray-85);--graphy-overlay-background:var(--graphy-gray-100);--graphy-overlay-border-gradient:var(--graphy-border-10);--graphy-elevation-xs:0 0 2px #0f0f181f, 0 2px 2px #0e0e3414;--graphy-elevation-sm:0 0 4px #0f0f181f, 0 4px 4px #0e0e3414;--graphy-elevation-md:0 0 8px #0f0f181f, 0 8px 8px #0e0e3414;--graphy-elevation-lg:0 0 16px #0f0f181f, 0 16px 16px #0e0e3414;--graphy-radii-xs:4px;--graphy-radii-sm:6px;--graphy-radii-md:8px;--graphy-radii-lg:12px;--graphy-space-xxs:2px;--graphy-space-xs:4px;--graphy-space-sm:6px;--graphy-space-md:8px;--graphy-space-lg:12px;--graphy-space-xl:16px;--graphy-z-index-toolbar:10;--graphy-z-index-toolbar-tooltip:20;--graphy-z-index-toolbar-popover:30;--graphy-z-index-editor-popover:950;--graphy-graph-background:var(--graphy-gray-100);--graphy-toolbar-background-color:var(--graphy-overlay-background);--graphy-toolbar-button-background-color:transparent;--graphy-toolbar-button-background-color-hovered:var(--graphy-gray-80);--graphy-toolbar-button-background-color-selected:var(--graphy-gray-60);--graphy-toolbar-separator-color:var(--graphy-gray-60);--graphy-editor-default-accent:#3b372f;--graphy-editor-default-surface:#fff;--graphy-editor-default-text:#3b372f;--graphy-editor-default-shadow:var(--graphy-elevation-md), 0 16px 40px #14120f24;--graphy-canvas-default:#000;--graphy-canvas-blue:#3b82f6;--graphy-canvas-cyan:#06b6d4;--graphy-canvas-green:#10b981;--graphy-canvas-yellow:#e5b400;--graphy-canvas-orange:#f97316;--graphy-canvas-red:#ef4444;--graphy-canvas-pink:#e845bf;--graphy-canvas-purple:#8b5cf6;--graphy-canvas-gray:#78716c;--graphy-canvas-inverse:#fff;--graphy-editor-control-height:32px;--graphy-text-scale:1;--graphy-font-family:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-family-heading:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-weight-regular:400;--graphy-font-weight-medium:500;--graphy-font-weight-semibold:600;--graphy-font-weight-bold:700;--graphy-font-weight-extra-bold:800;--graphy-font-size-xxs:1em;--graphy-font-size-xs:1.1em;--graphy-font-size-sm:1.2em;--graphy-font-size-md:1.4em;--graphy-font-size-lg:1.6em;--graphy-font-size-xl:2em;--graphy-font-line-height-xxs:1;--graphy-font-line-height-xs:1;--graphy-font-line-height-sm:1.3;--graphy-font-line-height-md:1.43;--graphy-font-line-height-lg:1;--graphy-font-line-height-xl:1;--graphy-font-size-editor-body:1.5em;--graphy-font-size-heading-sm:1.8em;--graphy-font-size-heading-md:2.2em;--graphy-font-size-heading-lg:2.8em;--graphy-font-line-height-editor-body:1.47;--graphy-font-line-height-heading-sm:1.25;--graphy-font-line-height-heading-md:1.41;--graphy-font-line-height-heading-lg:1.29;--graphy-font-uitooltip:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-uitooltip-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-button:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input-label:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-font-family);--graphy-font-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-select-description:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-color-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-group-title:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-item-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-item-label-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-error-boundary-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family);--graphy-font-error-boundary-message:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-cell:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-header-cell:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-link:var(--graphy-font-weight-regular) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-h1:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-lg)/var(--graphy-font-line-height-heading-lg) var(--graphy-font-family-heading);--graphy-font-text-editor-h2:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-md)/var(--graphy-font-line-height-heading-md) var(--graphy-font-family-heading);--graphy-font-text-editor-h3:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family-heading);--graphy-font-text-editor-h6:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-body:var(--graphy-font-weight-medium) var(--graphy-font-size-editor-body)/var(--graphy-font-line-height-editor-body) var(--graphy-font-family);--graphy-font-text-editor-link:var(--graphy-font-weight-regular) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-title:var(--graphy-font-weight-bold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-subtitle:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-editor-control-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-control-value:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-section-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-caption:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-editor-font-family,var(--graphy-font-family))}._1ii3bsb1{--graphy-transparent:transparent;--graphy-white:#fff;--graphy-black:#000;--graphy-gray-100:#000;--graphy-gray-95:#0d0d0d;--graphy-gray-90:#1a1a1a;--graphy-gray-85:#1f1f1f;--graphy-gray-80:#2a2a2a;--graphy-gray-75:#2e2e2e;--graphy-gray-70:#353535;--graphy-gray-60:#494949;--graphy-gray-50:#6f6f6f;--graphy-gray-0:#fff;--graphy-red-60:#cb3333;--graphy-red-50:#f93939;--graphy-amber-70:#f48135;--graphy-amber-50:#feae47;--graphy-amber-40:#ffc849;--graphy-amber-30:#ffd061;--graphy-green-60:#0ac600;--graphy-green-50:#42cd69;--graphy-blue-80:#2e62ff;--graphy-blue-60:#3d70ff;--graphy-purple-50:#7b56ea;--graphy-purple-30:#e093fe;--graphy-gray-gradient-80:linear-gradient(to top, #222429, #31353f);--graphy-text-primary:var(--graphy-gray-0);--graphy-text-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 80%);--graphy-text-disabled:color-mix(in srgb, transparent, var(--graphy-text-primary) 50%);--graphy-icon-primary:currentColor;--graphy-icon-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-icon-sticker-background:var(--graphy-gray-70);--graphy-border-100:var(--graphy-gray-0);--graphy-border-50:color-mix(in srgb, transparent, var(--graphy-gray-0) 50%);--graphy-border-10:color-mix(in srgb, transparent, var(--graphy-gray-0) 10%);--graphy-brand:var(--graphy-purple-50);--graphy-success:var(--graphy-green-50);--graphy-warning:var(--graphy-amber-50);--graphy-alert:var(--graphy-red-50);--graphy-sunken-background:var(--graphy-gray-100);--graphy-default-background:var(--graphy-gray-90);--graphy-raised-background:var(--graphy-gray-80);--graphy-overlay-background:var(--graphy-gray-90);--graphy-overlay-border-gradient:var(--graphy-gray-gradient-80);--graphy-elevation-xs:0 0 2px #0f0f181f, 0 2px 2px #0e0e3414;--graphy-elevation-sm:0 0 4px #0f0f181f, 0 4px 4px #0e0e3414;--graphy-elevation-md:0 0 8px #0f0f181f, 0 8px 8px #0e0e3414;--graphy-elevation-lg:0 0 16px #0f0f181f, 0 16px 16px #0e0e3414;--graphy-radii-xs:4px;--graphy-radii-sm:6px;--graphy-radii-md:8px;--graphy-radii-lg:12px;--graphy-space-xxs:2px;--graphy-space-xs:4px;--graphy-space-sm:6px;--graphy-space-md:8px;--graphy-space-lg:12px;--graphy-space-xl:16px;--graphy-z-index-toolbar:10;--graphy-z-index-toolbar-tooltip:20;--graphy-z-index-toolbar-popover:30;--graphy-z-index-editor-popover:950;--graphy-graph-background:var(--graphy-gray-90);--graphy-toolbar-background-color:var(--graphy-overlay-background);--graphy-toolbar-button-background-color:transparent;--graphy-toolbar-button-background-color-hovered:var(--graphy-gray-80);--graphy-toolbar-button-background-color-selected:var(--graphy-gray-60);--graphy-toolbar-separator-color:var(--graphy-gray-60);--graphy-editor-default-accent:#ece7df;--graphy-editor-default-surface:#26241f;--graphy-editor-default-text:#ece7df;--graphy-editor-default-shadow:var(--graphy-elevation-md), 0 16px 40px #00000073;--graphy-canvas-default:#fff;--graphy-canvas-blue:#60a5fa;--graphy-canvas-cyan:#22d3ee;--graphy-canvas-green:#34d399;--graphy-canvas-yellow:#ffc800;--graphy-canvas-orange:#fb923c;--graphy-canvas-red:#f87171;--graphy-canvas-pink:#f979d9;--graphy-canvas-purple:#a78bfa;--graphy-canvas-gray:#a8a29e;--graphy-canvas-inverse:#000;--graphy-editor-control-height:32px;--graphy-text-scale:1;--graphy-font-family:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-family-heading:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-weight-regular:400;--graphy-font-weight-medium:500;--graphy-font-weight-semibold:600;--graphy-font-weight-bold:700;--graphy-font-weight-extra-bold:800;--graphy-font-size-xxs:1em;--graphy-font-size-xs:1.1em;--graphy-font-size-sm:1.2em;--graphy-font-size-md:1.4em;--graphy-font-size-lg:1.6em;--graphy-font-size-xl:2em;--graphy-font-line-height-xxs:1;--graphy-font-line-height-xs:1;--graphy-font-line-height-sm:1.3;--graphy-font-line-height-md:1.43;--graphy-font-line-height-lg:1;--graphy-font-line-height-xl:1;--graphy-font-size-editor-body:1.5em;--graphy-font-size-heading-sm:1.8em;--graphy-font-size-heading-md:2.2em;--graphy-font-size-heading-lg:2.8em;--graphy-font-line-height-editor-body:1.47;--graphy-font-line-height-heading-sm:1.25;--graphy-font-line-height-heading-md:1.41;--graphy-font-line-height-heading-lg:1.29;--graphy-font-uitooltip:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-uitooltip-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-button:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input-label:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-font-family);--graphy-font-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-select-description:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-color-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-group-title:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-item-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-item-label-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-error-boundary-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family);--graphy-font-error-boundary-message:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-cell:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-header-cell:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-link:var(--graphy-font-weight-regular) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-h1:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-lg)/var(--graphy-font-line-height-heading-lg) var(--graphy-font-family-heading);--graphy-font-text-editor-h2:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-md)/var(--graphy-font-line-height-heading-md) var(--graphy-font-family-heading);--graphy-font-text-editor-h3:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family-heading);--graphy-font-text-editor-h6:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-body:var(--graphy-font-weight-medium) var(--graphy-font-size-editor-body)/var(--graphy-font-line-height-editor-body) var(--graphy-font-family);--graphy-font-text-editor-link:var(--graphy-font-weight-regular) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-title:var(--graphy-font-weight-bold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-subtitle:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-editor-control-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-control-value:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-section-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-caption:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-editor-font-family,var(--graphy-font-family))}._1cocly40{color:inherit;text-underline-offset:.15em;text-decoration:underline}._19519k80{flex-direction:column;gap:4px;min-width:120px;max-width:280px;display:flex}._19519k81{white-space:normal;overflow-wrap:anywhere}._19519k82{flex-direction:column;display:flex}._19519k83{flex-direction:row;align-items:center;gap:8px;display:flex}._19519k84{flex-shrink:0;display:block;overflow:visible}._19519k85{width:12px;height:12px}._19519k86{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}._19519k87{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}._19519k88{pointer-events:none;-webkit-user-select:none;user-select:none;z-index:1000;position:fixed;top:0;left:0}._4dlrid0{margin:0}._4dlrid0 :-webkit-any(h1,h2,h3,p){font:inherit;color:inherit;margin:0}._4dlrid0 :is(h1,h2,h3,p){font:inherit;color:inherit;margin:0}.xfz7dq0{position:absolute}.xfz7dq1{align-items:end;column-gap:var(--graphy-space-xs);color:var(--graphy-text-secondary);grid-template-columns:minmax(0,1fr) auto;display:grid}.xfz7dq2{min-width:0}.xfz7dq3{overflow-wrap:anywhere;text-decoration:underline}.xfz7dq3:hover{color:var(--graphy-text-primary)}.xfz7dq4{margin-right:var(--graphy-space-xs)}.xfz7dq5{overflow-wrap:anywhere}._15xngrw0{box-sizing:border-box;white-space:nowrap;color:#2a2a28;opacity:.62;background-color:#ffffff8c;border-radius:999px;flex-shrink:0;align-items:center;gap:4px;height:22px;padding-inline-start:9px;padding-inline-end:11px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11.5px;line-height:1;text-decoration:none;transition:opacity .12s,max-width .25s,padding .25s,gap .25s;display:inline-flex;box-shadow:0 1px 4px #00000017}._15xngrw0:hover{opacity:1}._15xngrw0:focus-visible{opacity:1}._15xngrw0:focus-visible{outline-offset:2px;outline:2px solid #2a2a28}._15xngrw0[data-background-tone=mid]{opacity:.8;background-color:#ffffffbf}._15xngrw0[data-background-tone=dark]{opacity:.85;color:#fff;box-shadow:none;background-color:#ffffff14}._15xngrw0[data-background-tone=dark]:focus-visible{outline:2px solid #fff}._15xngrw0[data-variant=mini]{justify-content:center;gap:0;width:22px;padding-inline-start:0;padding-inline-end:0}._15xngrw0[data-variant=mini]:hover{gap:4px;width:auto;padding-inline-start:9px;padding-inline-end:11px}._15xngrw0[data-variant=mini]:focus-visible{gap:4px;width:auto;padding-inline-start:9px;padding-inline-end:11px}._15xngrw1{flex-direction:row-reverse}._15xngrw2{flex-shrink:0;width:10.5px;height:14px;display:block}._15xngrw3{max-width:120px;font-weight:500;transition:max-width .25s,opacity .25s;display:inline-flex;overflow:hidden}._15xngrw0[data-variant=mini] ._15xngrw3{opacity:0;max-width:0}._15xngrw0[data-variant=mini]:hover ._15xngrw3{opacity:1;max-width:120px}._15xngrw0[data-variant=mini]:focus-visible ._15xngrw3{opacity:1;max-width:120px}._15xngrw4{place-self:end}._15xngrw5{position:absolute;top:50%;right:0;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){._15xngrw0,._15xngrw3{transition:none}}._1k4qtbg0{position:absolute}._1k4qtbg1{padding-right:110px}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h1{font-family:var(--zhdn4s2);font-size:var(--zhdn4s3);font-weight:var(--zhdn4s4);font-style:var(--zhdn4s5);letter-spacing:var(--zhdn4s6);line-height:var(--zhdn4s7);color:var(--zhdn4s8);text-transform:var(--zhdn4s9);-webkit-text-decoration:var(--zhdn4sa);text-decoration:var(--zhdn4sa);text-shadow:var(--zhdn4sb);-webkit-text-stroke:var(--zhdn4sc);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h2{font-family:var(--zhdn4sd);font-size:var(--zhdn4se);font-weight:var(--zhdn4sf);font-style:var(--zhdn4sg);letter-spacing:var(--zhdn4sh);line-height:var(--zhdn4si);color:var(--zhdn4sj);text-transform:var(--zhdn4sk);-webkit-text-decoration:var(--zhdn4sl);text-decoration:var(--zhdn4sl);text-shadow:var(--zhdn4sm);-webkit-text-stroke:var(--zhdn4sn);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h3{font-family:var(--zhdn4so);font-size:var(--zhdn4sp);font-weight:var(--zhdn4sq);font-style:var(--zhdn4sr);letter-spacing:var(--zhdn4ss);line-height:var(--zhdn4st);color:var(--zhdn4su);text-transform:var(--zhdn4sv);-webkit-text-decoration:var(--zhdn4sw);text-decoration:var(--zhdn4sw);text-shadow:var(--zhdn4sx);-webkit-text-stroke:var(--zhdn4sy);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) p{font-family:var(--zhdn4sz);font-size:var(--zhdn4s10);font-weight:var(--zhdn4s11);font-style:var(--zhdn4s12);letter-spacing:var(--zhdn4s13);line-height:var(--zhdn4s14);color:var(--zhdn4s15);text-transform:var(--zhdn4s16);-webkit-text-decoration:var(--zhdn4s17);text-decoration:var(--zhdn4s17);text-shadow:var(--zhdn4s18);-webkit-text-stroke:var(--zhdn4s19);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) p[data-variant=caption]{font-family:var(--zhdn4s1a);font-size:var(--zhdn4s1b);font-weight:var(--zhdn4s1c);font-style:var(--zhdn4s1d);letter-spacing:var(--zhdn4s1e);line-height:var(--zhdn4s1f);color:var(--zhdn4s1g);text-transform:var(--zhdn4s1h);-webkit-text-decoration:var(--zhdn4s1i);text-decoration:var(--zhdn4s1i);text-shadow:var(--zhdn4s1j);-webkit-text-stroke:var(--zhdn4s1k);paint-order:stroke}._1u9qprb0{pointer-events:none;justify-content:start;align-items:start;display:flex;position:absolute}._1u9qprb1{pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._9aen060{align-items:baseline;display:flex}._9aen061,._9aen062{align-items:center;display:flex}._9aen063{flex-direction:column;align-items:start;display:flex}.asohov0{flex-shrink:0}.asohov1{color:var(--graphy-icon-primary)}.asohov2{color:var(--graphy-icon-secondary)}.n7clvo0,.n7clvo1{white-space:nowrap}.n7clvo2{border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;display:flex}.n7clvo3{transform:rotate(180deg)}._1oj6yix0{pointer-events:none;height:100%;position:relative}._1oj6yix1{pointer-events:none;position:absolute;top:0;left:0;overflow:visible}._1oj6yix2{white-space:nowrap;position:absolute;transform:translateY(-50%)}._1oj6yix3{pointer-events:auto;cursor:pointer;margin-left:-3px;padding:3px}._6a636s0{pointer-events:none;position:absolute}._1isxsac0{white-space:nowrap;flex-shrink:0;display:flex}._1isxsac1{flex-direction:row;align-items:center}._1isxsac2{flex-direction:column;align-items:flex-start}._1isxsac3{margin-inline-start:auto}._1isxsac4,._1isxsac5{flex-direction:row;align-items:center;display:flex}._1isxsac6{text-overflow:ellipsis;overflow:hidden}._1or78v80{box-sizing:border-box;border-style:solid;border-width:1px;border-radius:9999px;flex-shrink:0;transition:inline-size .3s ease-out,block-size .3s ease-out;display:block}._1or78v81{flex-shrink:0;display:block;overflow:visible}@media (prefers-reduced-motion:reduce){._1or78v80{transition:none}}._1cecisi0{pointer-events:none;flex-wrap:nowrap;align-items:center;block-size:100%;inline-size:100%;display:flex}._1cecisi1{flex-direction:row}._1cecisi2{flex-direction:column}._1cecisi3{justify-content:flex-start}._1cecisi3._1cecisi1:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-end}._1cecisi3._1cecisi1:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-end}._1cecisi4{justify-content:center}._1cecisi5{justify-content:flex-end}._1cecisi5._1cecisi1:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-start}._1cecisi5._1cecisi1:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-start}._1cecisi6{justify-content:flex-end}._1cecisi7{align-items:flex-start}._1cecisi7:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-end}._1cecisi7:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-end}._1cecisi8{align-items:flex-end}._1cecisi8:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-start}._1cecisi8:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-start}._1cecisi9{white-space:nowrap;flex-shrink:0;align-items:center;display:flex}._1cecisia{pointer-events:auto;cursor:pointer}._1kjk02r1{pointer-events:auto;flex-shrink:0;align-items:center;display:inline-flex;position:relative}._1kjk02r2{pointer-events:none}._1kjk02r3{padding-inline-start:4px}._1kjk02r4{padding-inline-start:8px}._1kjk02r5{padding-block-start:4px}._1kjk02r6{padding-block-start:8px}._1kjk02r7{pointer-events:none;position:absolute}._1kjk02r8{top:0;bottom:0}._1kjk02r8:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:4px;right:0}._1kjk02r8:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:4px;right:0}._1kjk02r8:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:4px}._1kjk02r8:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:4px}._1kjk02r9{top:0;bottom:0}._1kjk02r9:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px;right:0}._1kjk02r9:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px;right:0}._1kjk02r9:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:8px}._1kjk02r9:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:8px}._1kjk02ra{top:4px;bottom:0;left:0;right:0}._1kjk02rb{top:8px;bottom:0;left:0;right:0}._1kjk02rc{white-space:nowrap;cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none;background:0 0;border:none;align-items:center;padding:0;display:inline-flex;position:relative}._1kjk02rc:focus-visible{outline:1px solid var(--_1kjk02r0)}._1kjk02rd{cursor:default;pointer-events:none}._1kjk02re{font-variant-numeric:tabular-nums}._1kjk02rf{pointer-events:auto;z-index:40;max-width:320px;max-height:240px;overflow-y:auto}._1kjk02rg{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._1kjk02rh{white-space:nowrap;align-items:center;display:flex}._1kjk02ri,._1i8rg6j0{cursor:pointer}._1aj6s5s0{pointer-events:auto;font-family:var(--graphy-font-family);word-wrap:break-word;white-space:break-spaces;text-align:center;box-sizing:border-box;width:100%}._1aj6s5s0 p,._1aj6s5s0 h1,._1aj6s5s0 h2,._1aj6s5s0 h3{margin:0}._1aj6s5s1 .ProseMirror{outline:none;min-height:1em}._1aj6s5s1 .ProseMirror .is-empty:before{content:attr(data-placeholder);color:currentColor;opacity:.4;float:left;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;width:100%;margin-right:-100%;overflow:hidden}.ph8bdc0{pointer-events:none}.ph8bdc1{flex-shrink:0;align-items:center;display:flex}.ph8bdc2{font-family:var(--graphy-font-family)}.ph8bdc3{box-sizing:border-box;white-space:nowrap;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;gap:5px;width:100%;height:100%;display:flex}.ph8bdc4{pointer-events:auto}.ph8bdc5,._1agclyl0,._1agclyl1{pointer-events:none}._1agclyl2{pointer-events:none;font-variant-numeric:tabular-nums}._17uhij30{position:absolute;top:0;left:0;overflow:visible}._17uhij30 text{direction:ltr;unicode-bidi:plaintext}._1vl0pke0{pointer-events:none;border-radius:inherit;position:absolute;top:0;bottom:0;left:0;right:0}._1vl0pke1{isolation:isolate}._1vl0pke2{z-index:-1;pointer-events:none;border-radius:inherit;position:absolute;top:0;bottom:0;left:0;right:0}
1
+ @property --graphy-editor-border-width{syntax:"<length>";inherits:true;initial-value:1px}@property --graphy-text-scale{syntax:"<number>";inherits:true;initial-value:1}@property --graphy-font-size-xxs{syntax:"<length>";inherits:true;initial-value:10px}@property --graphy-font-size-xs{syntax:"<length>";inherits:true;initial-value:11px}@property --graphy-font-size-sm{syntax:"<length>";inherits:true;initial-value:12px}@property --graphy-font-size-md{syntax:"<length>";inherits:true;initial-value:14px}@property --graphy-font-size-lg{syntax:"<length>";inherits:true;initial-value:16px}@property --graphy-font-size-xl{syntax:"<length>";inherits:true;initial-value:20px}@property --graphy-font-size-editor-body{syntax:"<length>";inherits:true;initial-value:15px}@property --graphy-font-size-heading-sm{syntax:"<length>";inherits:true;initial-value:18px}@property --graphy-font-size-heading-md{syntax:"<length>";inherits:true;initial-value:22px}@property --graphy-font-size-heading-lg{syntax:"<length>";inherits:true;initial-value:28px}.to1jkx2{stroke-linecap:round;overflow:visible}[data-hover-active=true] .to1jkx3{opacity:var(--to1jkx0,1);filter:var(--to1jkx1,none);transition:opacity .15s ease-out,filter .15s ease-out}@keyframes _1d8mpa10{0%{opacity:0}to{opacity:1}}._1d8mpa11{overflow:visible}._1d8mpa12{animation:.15s ease-out _1d8mpa10}.w2i4n00{pointer-events:none;position:absolute}._8zqcis5{x:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);width:min(var(--_8zqcis1), var(--_8zqcis2))}._8zqcis6{y:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);height:min(var(--_8zqcis1), var(--_8zqcis2))}._8zqcis7{x:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);width:min(var(--_8zqcis1), var(--_8zqcis2));y:calc(var(--_8zqcis3) - var(--_8zqcis4) / 2);height:var(--_8zqcis4)}._8zqcis8{y:calc(var(--_8zqcis0) + (var(--_8zqcis1) - min(var(--_8zqcis1), var(--_8zqcis2))) / 2);height:min(var(--_8zqcis1), var(--_8zqcis2));x:calc(var(--_8zqcis3) - var(--_8zqcis4) / 2);width:var(--_8zqcis4)}._16vokpr0{pointer-events:none;-webkit-user-select:none;user-select:none}._2qyyu60{flex-shrink:0;display:block;overflow:visible}.bow4tg0{box-sizing:border-box;color:var(--graphy-text-primary);font-size:calc(10px * var(--graphy-text-scale));position:relative;overflow:hidden}.bow4tg1{color:var(--graphy-text-primary);font-size:calc(10px * var(--graphy-text-scale));display:contents}.bow4tg2{background-color:var(--graphy-graph-background);position:absolute;top:0;bottom:0;left:0;right:0}.bow4tg2[data-graph-mode=edit]{-webkit-user-select:none;user-select:none}.bow4tg3{outline:none}.bow4tg4{background-image:linear-gradient(45deg, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent)), linear-gradient(45deg, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent) 75%, color-mix(in srgb, var(--graphy-text-primary) 5%, transparent));background-position:0 0,1em 1em;background-size:2em 2em}._1ii3bsb0{--graphy-transparent:transparent;--graphy-white:#fff;--graphy-black:#000;--graphy-gray-100:#fff;--graphy-gray-95:#fcfcfc;--graphy-gray-90:#fafafa;--graphy-gray-85:#f5f5f5;--graphy-gray-80:#f0f0f0;--graphy-gray-75:#e8e8e8;--graphy-gray-70:#e5e5e5;--graphy-gray-60:#ccc;--graphy-gray-50:#c4c4c4;--graphy-gray-0:#1d2129;--graphy-red-60:#e14b49;--graphy-red-50:#f93939;--graphy-amber-70:#ffba8c;--graphy-amber-50:#ffc849;--graphy-amber-40:#feae47;--graphy-amber-30:#e7a816;--graphy-green-60:#06b299;--graphy-green-50:#42cd69;--graphy-blue-80:#2e62ff;--graphy-blue-60:#3d70ff;--graphy-purple-50:#7b56ea;--graphy-purple-30:#e093fe;--graphy-gray-gradient-80:linear-gradient(to top, #f0f0f1, #f9f9ff);--graphy-text-primary:var(--graphy-black);--graphy-text-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-text-disabled:color-mix(in srgb, transparent, var(--graphy-text-primary) 50%);--graphy-icon-primary:currentColor;--graphy-icon-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-icon-sticker-background:var(--graphy-gray-100);--graphy-brand:var(--graphy-purple-50);--graphy-success:var(--graphy-green-50);--graphy-warning:var(--graphy-amber-50);--graphy-alert:var(--graphy-red-50);--graphy-border-100:var(--graphy-gray-0);--graphy-border-50:color-mix(in srgb, transparent, var(--graphy-gray-0) 50%);--graphy-border-10:color-mix(in srgb, transparent, var(--graphy-gray-0) 10%);--graphy-sunken-background:var(--graphy-gray-90);--graphy-default-background:var(--graphy-gray-100);--graphy-raised-background:var(--graphy-gray-85);--graphy-overlay-background:var(--graphy-gray-100);--graphy-overlay-border-gradient:var(--graphy-border-10);--graphy-elevation-xs:0 0 2px #0f0f181f, 0 2px 2px #0e0e3414;--graphy-elevation-sm:0 0 4px #0f0f181f, 0 4px 4px #0e0e3414;--graphy-elevation-md:0 0 8px #0f0f181f, 0 8px 8px #0e0e3414;--graphy-elevation-lg:0 0 16px #0f0f181f, 0 16px 16px #0e0e3414;--graphy-radii-xs:4px;--graphy-radii-sm:6px;--graphy-radii-md:8px;--graphy-radii-lg:12px;--graphy-space-xxs:2px;--graphy-space-xs:4px;--graphy-space-sm:6px;--graphy-space-md:8px;--graphy-space-lg:12px;--graphy-space-xl:16px;--graphy-z-index-toolbar:10;--graphy-z-index-toolbar-tooltip:20;--graphy-z-index-toolbar-popover:30;--graphy-z-index-editor-popover:950;--graphy-graph-background:var(--graphy-gray-100);--graphy-toolbar-background-color:var(--graphy-overlay-background);--graphy-toolbar-button-background-color:transparent;--graphy-toolbar-button-background-color-hovered:var(--graphy-gray-80);--graphy-toolbar-button-background-color-selected:var(--graphy-gray-60);--graphy-toolbar-separator-color:var(--graphy-gray-60);--graphy-editor-default-accent:#3b372f;--graphy-editor-default-surface:#fff;--graphy-editor-default-text:#3b372f;--graphy-editor-default-shadow:var(--graphy-elevation-md), 0 16px 40px #14120f24;--graphy-canvas-default:#000;--graphy-canvas-blue:#3b82f6;--graphy-canvas-cyan:#06b6d4;--graphy-canvas-green:#10b981;--graphy-canvas-yellow:#e5b400;--graphy-canvas-orange:#f97316;--graphy-canvas-red:#ef4444;--graphy-canvas-pink:#e845bf;--graphy-canvas-purple:#8b5cf6;--graphy-canvas-gray:#78716c;--graphy-canvas-inverse:#fff;--graphy-editor-control-height:32px;--graphy-text-scale:1;--graphy-font-family:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-family-heading:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-weight-regular:400;--graphy-font-weight-medium:500;--graphy-font-weight-semibold:600;--graphy-font-weight-bold:700;--graphy-font-weight-extra-bold:800;--graphy-font-size-xxs:1em;--graphy-font-size-xs:1.1em;--graphy-font-size-sm:1.2em;--graphy-font-size-md:1.4em;--graphy-font-size-lg:1.6em;--graphy-font-size-xl:2em;--graphy-font-line-height-xxs:1;--graphy-font-line-height-xs:1;--graphy-font-line-height-sm:1.3;--graphy-font-line-height-md:1.43;--graphy-font-line-height-lg:1;--graphy-font-line-height-xl:1;--graphy-font-size-editor-body:1.5em;--graphy-font-size-heading-sm:1.8em;--graphy-font-size-heading-md:2.2em;--graphy-font-size-heading-lg:2.8em;--graphy-font-line-height-editor-body:1.47;--graphy-font-line-height-heading-sm:1.25;--graphy-font-line-height-heading-md:1.41;--graphy-font-line-height-heading-lg:1.29;--graphy-font-uitooltip:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-uitooltip-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-button:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input-label:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-font-family);--graphy-font-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-select-description:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-color-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-group-title:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-item-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-item-label-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-error-boundary-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family);--graphy-font-error-boundary-message:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-cell:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-header-cell:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-link:var(--graphy-font-weight-regular) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-h1:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-lg)/var(--graphy-font-line-height-heading-lg) var(--graphy-font-family-heading);--graphy-font-text-editor-h2:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-md)/var(--graphy-font-line-height-heading-md) var(--graphy-font-family-heading);--graphy-font-text-editor-h3:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family-heading);--graphy-font-text-editor-h6:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-body:var(--graphy-font-weight-medium) var(--graphy-font-size-editor-body)/var(--graphy-font-line-height-editor-body) var(--graphy-font-family);--graphy-font-text-editor-link:var(--graphy-font-weight-regular) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-title:var(--graphy-font-weight-bold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-subtitle:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-editor-control-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-control-value:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-section-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-caption:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-editor-font-family,var(--graphy-font-family))}._1ii3bsb1{--graphy-transparent:transparent;--graphy-white:#fff;--graphy-black:#000;--graphy-gray-100:#000;--graphy-gray-95:#0d0d0d;--graphy-gray-90:#1a1a1a;--graphy-gray-85:#1f1f1f;--graphy-gray-80:#2a2a2a;--graphy-gray-75:#2e2e2e;--graphy-gray-70:#353535;--graphy-gray-60:#494949;--graphy-gray-50:#6f6f6f;--graphy-gray-0:#fff;--graphy-red-60:#cb3333;--graphy-red-50:#f93939;--graphy-amber-70:#f48135;--graphy-amber-50:#feae47;--graphy-amber-40:#ffc849;--graphy-amber-30:#ffd061;--graphy-green-60:#0ac600;--graphy-green-50:#42cd69;--graphy-blue-80:#2e62ff;--graphy-blue-60:#3d70ff;--graphy-purple-50:#7b56ea;--graphy-purple-30:#e093fe;--graphy-gray-gradient-80:linear-gradient(to top, #222429, #31353f);--graphy-text-primary:var(--graphy-gray-0);--graphy-text-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 80%);--graphy-text-disabled:color-mix(in srgb, transparent, var(--graphy-text-primary) 50%);--graphy-icon-primary:currentColor;--graphy-icon-secondary:color-mix(in srgb, transparent, var(--graphy-text-primary) 60%);--graphy-icon-sticker-background:var(--graphy-gray-70);--graphy-border-100:var(--graphy-gray-0);--graphy-border-50:color-mix(in srgb, transparent, var(--graphy-gray-0) 50%);--graphy-border-10:color-mix(in srgb, transparent, var(--graphy-gray-0) 10%);--graphy-brand:var(--graphy-purple-50);--graphy-success:var(--graphy-green-50);--graphy-warning:var(--graphy-amber-50);--graphy-alert:var(--graphy-red-50);--graphy-sunken-background:var(--graphy-gray-100);--graphy-default-background:var(--graphy-gray-90);--graphy-raised-background:var(--graphy-gray-80);--graphy-overlay-background:var(--graphy-gray-90);--graphy-overlay-border-gradient:var(--graphy-gray-gradient-80);--graphy-elevation-xs:0 0 2px #0f0f181f, 0 2px 2px #0e0e3414;--graphy-elevation-sm:0 0 4px #0f0f181f, 0 4px 4px #0e0e3414;--graphy-elevation-md:0 0 8px #0f0f181f, 0 8px 8px #0e0e3414;--graphy-elevation-lg:0 0 16px #0f0f181f, 0 16px 16px #0e0e3414;--graphy-radii-xs:4px;--graphy-radii-sm:6px;--graphy-radii-md:8px;--graphy-radii-lg:12px;--graphy-space-xxs:2px;--graphy-space-xs:4px;--graphy-space-sm:6px;--graphy-space-md:8px;--graphy-space-lg:12px;--graphy-space-xl:16px;--graphy-z-index-toolbar:10;--graphy-z-index-toolbar-tooltip:20;--graphy-z-index-toolbar-popover:30;--graphy-z-index-editor-popover:950;--graphy-graph-background:var(--graphy-gray-90);--graphy-toolbar-background-color:var(--graphy-overlay-background);--graphy-toolbar-button-background-color:transparent;--graphy-toolbar-button-background-color-hovered:var(--graphy-gray-80);--graphy-toolbar-button-background-color-selected:var(--graphy-gray-60);--graphy-toolbar-separator-color:var(--graphy-gray-60);--graphy-editor-default-accent:#ece7df;--graphy-editor-default-surface:#26241f;--graphy-editor-default-text:#ece7df;--graphy-editor-default-shadow:var(--graphy-elevation-md), 0 16px 40px #00000073;--graphy-canvas-default:#fff;--graphy-canvas-blue:#60a5fa;--graphy-canvas-cyan:#22d3ee;--graphy-canvas-green:#34d399;--graphy-canvas-yellow:#ffc800;--graphy-canvas-orange:#fb923c;--graphy-canvas-red:#f87171;--graphy-canvas-pink:#f979d9;--graphy-canvas-purple:#a78bfa;--graphy-canvas-gray:#a8a29e;--graphy-canvas-inverse:#000;--graphy-editor-control-height:32px;--graphy-text-scale:1;--graphy-font-family:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-family-heading:"Stack Sans Text", "Inter", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "NotoSansArabic", "NotoSansJP", "NotoSansSC", "NotoSansKR", "NotoSerifKR", sans-serif, "Apple Color Emoji", "NotoColorEmoji";--graphy-font-weight-regular:400;--graphy-font-weight-medium:500;--graphy-font-weight-semibold:600;--graphy-font-weight-bold:700;--graphy-font-weight-extra-bold:800;--graphy-font-size-xxs:1em;--graphy-font-size-xs:1.1em;--graphy-font-size-sm:1.2em;--graphy-font-size-md:1.4em;--graphy-font-size-lg:1.6em;--graphy-font-size-xl:2em;--graphy-font-line-height-xxs:1;--graphy-font-line-height-xs:1;--graphy-font-line-height-sm:1.3;--graphy-font-line-height-md:1.43;--graphy-font-line-height-lg:1;--graphy-font-line-height-xl:1;--graphy-font-size-editor-body:1.5em;--graphy-font-size-heading-sm:1.8em;--graphy-font-size-heading-md:2.2em;--graphy-font-size-heading-lg:2.8em;--graphy-font-line-height-editor-body:1.47;--graphy-font-line-height-heading-sm:1.25;--graphy-font-line-height-heading-md:1.41;--graphy-font-line-height-heading-lg:1.29;--graphy-font-uitooltip:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-uitooltip-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-button:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-input-label:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-font-family);--graphy-font-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-select-description:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-color-select-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-group-title:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-menu-item-label:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-menu-item-label-secondary:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-error-boundary-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family);--graphy-font-error-boundary-message:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-cell:var(--graphy-font-weight-medium) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-table-header-cell:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-source-link:var(--graphy-font-weight-regular) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-h1:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-lg)/var(--graphy-font-line-height-heading-lg) var(--graphy-font-family-heading);--graphy-font-text-editor-h2:var(--graphy-font-weight-bold) var(--graphy-font-size-heading-md)/var(--graphy-font-line-height-heading-md) var(--graphy-font-family-heading);--graphy-font-text-editor-h3:var(--graphy-font-weight-semibold) var(--graphy-font-size-heading-sm)/var(--graphy-font-line-height-heading-sm) var(--graphy-font-family-heading);--graphy-font-text-editor-h6:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-text-editor-body:var(--graphy-font-weight-medium) var(--graphy-font-size-editor-body)/var(--graphy-font-line-height-editor-body) var(--graphy-font-family);--graphy-font-text-editor-link:var(--graphy-font-weight-regular) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-title:var(--graphy-font-weight-bold) var(--graphy-font-size-md)/var(--graphy-font-line-height-md) var(--graphy-font-family);--graphy-font-highlight-mode-subtitle:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-font-family);--graphy-font-editor-control-label:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-control-value:var(--graphy-font-weight-medium) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-section-title:var(--graphy-font-weight-semibold) var(--graphy-font-size-sm)/var(--graphy-font-line-height-sm) var(--graphy-editor-font-family,var(--graphy-font-family));--graphy-font-editor-caption:var(--graphy-font-weight-medium) var(--graphy-font-size-xxs)/var(--graphy-font-line-height-xxs) var(--graphy-editor-font-family,var(--graphy-font-family))}._1cocly40{color:inherit;text-underline-offset:.15em;text-decoration:underline}._19519k80{flex-direction:column;gap:4px;min-width:120px;max-width:280px;display:flex}._19519k81{white-space:normal;overflow-wrap:anywhere}._19519k82{flex-direction:column;display:flex}._19519k83{flex-direction:row;align-items:center;gap:8px;display:flex}._19519k84{flex-shrink:0;display:block;overflow:visible}._19519k85{width:12px;height:12px}._19519k86{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}._19519k87{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}._19519k88{pointer-events:none;-webkit-user-select:none;user-select:none;z-index:1000;position:fixed;top:0;left:0}._4dlrid0{margin:0}._4dlrid0 :-webkit-any(h1,h2,h3,p){font:inherit;color:inherit;margin:0}._4dlrid0 :is(h1,h2,h3,p){font:inherit;color:inherit;margin:0}._1960w6n0:before{content:attr(data-placeholder);color:currentColor;opacity:.4;float:left;pointer-events:none;height:0}.xfz7dq0{position:absolute}.xfz7dq1{align-items:end;column-gap:var(--graphy-space-xs);color:var(--graphy-text-secondary);grid-template-columns:minmax(0,1fr) auto;display:grid}.xfz7dq2{min-width:0}.xfz7dq3{overflow-wrap:anywhere;text-decoration:underline}.xfz7dq3:hover{color:var(--graphy-text-primary)}.xfz7dq4{margin-right:var(--graphy-space-xs)}.xfz7dq5{overflow-wrap:anywhere}._15xngrw0{box-sizing:border-box;white-space:nowrap;color:#2a2a28;opacity:.62;background-color:#ffffff8c;border-radius:999px;flex-shrink:0;align-items:center;gap:4px;height:22px;padding-inline-start:9px;padding-inline-end:11px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11.5px;line-height:1;text-decoration:none;transition:opacity .12s,max-width .25s,padding .25s,gap .25s;display:inline-flex;box-shadow:0 1px 4px #00000017}._15xngrw0:hover{opacity:1}._15xngrw0:focus-visible{opacity:1}._15xngrw0:focus-visible{outline-offset:2px;outline:2px solid #2a2a28}._15xngrw0[data-background-tone=mid]{opacity:.8;background-color:#ffffffbf}._15xngrw0[data-background-tone=dark]{opacity:.85;color:#fff;box-shadow:none;background-color:#ffffff14}._15xngrw0[data-background-tone=dark]:focus-visible{outline:2px solid #fff}._15xngrw0[data-variant=mini]{justify-content:center;gap:0;width:22px;padding-inline-start:0;padding-inline-end:0}._15xngrw0[data-variant=mini]:hover{gap:4px;width:auto;padding-inline-start:9px;padding-inline-end:11px}._15xngrw0[data-variant=mini]:focus-visible{gap:4px;width:auto;padding-inline-start:9px;padding-inline-end:11px}._15xngrw1{flex-direction:row-reverse}._15xngrw2{flex-shrink:0;width:10.5px;height:14px;display:block}._15xngrw3{max-width:120px;font-weight:500;transition:max-width .25s,opacity .25s;display:inline-flex;overflow:hidden}._15xngrw0[data-variant=mini] ._15xngrw3{opacity:0;max-width:0}._15xngrw0[data-variant=mini]:hover ._15xngrw3{opacity:1;max-width:120px}._15xngrw0[data-variant=mini]:focus-visible ._15xngrw3{opacity:1;max-width:120px}._15xngrw4{place-self:end}._15xngrw5{position:absolute;top:50%;right:0;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){._15xngrw0,._15xngrw3{transition:none}}._1k4qtbg0{position:absolute}._1k4qtbg1{padding-right:110px}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h1{font-family:var(--zhdn4s2);font-size:var(--zhdn4s3);font-weight:var(--zhdn4s4);font-style:var(--zhdn4s5);letter-spacing:var(--zhdn4s6);line-height:var(--zhdn4s7);color:var(--zhdn4s8);text-transform:var(--zhdn4s9);-webkit-text-decoration:var(--zhdn4sa);text-decoration:var(--zhdn4sa);text-shadow:var(--zhdn4sb);-webkit-text-stroke:var(--zhdn4sc);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h2{font-family:var(--zhdn4sd);font-size:var(--zhdn4se);font-weight:var(--zhdn4sf);font-style:var(--zhdn4sg);letter-spacing:var(--zhdn4sh);line-height:var(--zhdn4si);color:var(--zhdn4sj);text-transform:var(--zhdn4sk);-webkit-text-decoration:var(--zhdn4sl);text-decoration:var(--zhdn4sl);text-shadow:var(--zhdn4sm);-webkit-text-stroke:var(--zhdn4sn);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) h3{font-family:var(--zhdn4so);font-size:var(--zhdn4sp);font-weight:var(--zhdn4sq);font-style:var(--zhdn4sr);letter-spacing:var(--zhdn4ss);line-height:var(--zhdn4st);color:var(--zhdn4su);text-transform:var(--zhdn4sv);-webkit-text-decoration:var(--zhdn4sw);text-decoration:var(--zhdn4sw);text-shadow:var(--zhdn4sx);-webkit-text-stroke:var(--zhdn4sy);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) p{font-family:var(--zhdn4sz);font-size:var(--zhdn4s10);font-weight:var(--zhdn4s11);font-style:var(--zhdn4s12);letter-spacing:var(--zhdn4s13);line-height:var(--zhdn4s14);color:var(--zhdn4s15);text-transform:var(--zhdn4s16);-webkit-text-decoration:var(--zhdn4s17);text-decoration:var(--zhdn4s17);text-shadow:var(--zhdn4s18);-webkit-text-stroke:var(--zhdn4s19);paint-order:stroke}.zhdn4s0 :is(._4dlrid0,.zhdn4s1 .ProseMirror) p[data-variant=caption]{font-family:var(--zhdn4s1a);font-size:var(--zhdn4s1b);font-weight:var(--zhdn4s1c);font-style:var(--zhdn4s1d);letter-spacing:var(--zhdn4s1e);line-height:var(--zhdn4s1f);color:var(--zhdn4s1g);text-transform:var(--zhdn4s1h);-webkit-text-decoration:var(--zhdn4s1i);text-decoration:var(--zhdn4s1i);text-shadow:var(--zhdn4s1j);-webkit-text-stroke:var(--zhdn4s1k);paint-order:stroke}._1u9qprb0{pointer-events:none;justify-content:start;align-items:start;display:flex;position:absolute}._1u9qprb1{pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._9aen060{align-items:baseline;display:flex}._9aen061,._9aen062{align-items:center;display:flex}._9aen063{flex-direction:column;align-items:start;display:flex}.asohov0{flex-shrink:0}.asohov1{color:var(--graphy-icon-primary)}.asohov2{color:var(--graphy-icon-secondary)}.n7clvo0,.n7clvo1{white-space:nowrap}.n7clvo2{border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;display:flex}.n7clvo3{transform:rotate(180deg)}._1oj6yix0{pointer-events:none;height:100%;position:relative}._1oj6yix1{pointer-events:none;position:absolute;top:0;left:0;overflow:visible}._1oj6yix2{white-space:nowrap;position:absolute;transform:translateY(-50%)}._1oj6yix3{pointer-events:auto;cursor:pointer;margin-left:-3px;padding:3px}._6a636s0{pointer-events:none;position:absolute}._1isxsac0{white-space:nowrap;flex-shrink:0;display:flex}._1isxsac1{flex-direction:row;align-items:center}._1isxsac2{flex-direction:column;align-items:flex-start}._1isxsac3{margin-inline-start:auto}._1isxsac4,._1isxsac5{flex-direction:row;align-items:center;display:flex}._1isxsac6{text-overflow:ellipsis;overflow:hidden}._1or78v80{box-sizing:border-box;border-style:solid;border-width:1px;border-radius:9999px;flex-shrink:0;transition:inline-size .3s ease-out,block-size .3s ease-out;display:block}._1or78v81{flex-shrink:0;display:block;overflow:visible}@media (prefers-reduced-motion:reduce){._1or78v80{transition:none}}._1cecisi1{pointer-events:none;flex-wrap:nowrap;align-items:center;block-size:100%;inline-size:100%;display:flex}._1cecisi2{flex-direction:row}._1cecisi3{flex-direction:column}._1cecisi4{justify-content:flex-start}._1cecisi4._1cecisi2:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-end}._1cecisi4._1cecisi2:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-end}._1cecisi5{justify-content:center}._1cecisi6{justify-content:flex-end}._1cecisi6._1cecisi2:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-start}._1cecisi6._1cecisi2:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){justify-content:flex-start}._1cecisi7{justify-content:flex-end}._1cecisi8{align-items:flex-start}._1cecisi8:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-end}._1cecisi8:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-end}._1cecisi9{align-items:flex-end}._1cecisi9:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-start}._1cecisi9:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){align-items:flex-start}._1cecisia{white-space:nowrap;flex-shrink:0;align-items:center;display:flex}._1cecisib{pointer-events:auto;cursor:pointer}._1kjk02r0{pointer-events:auto;flex-shrink:0;align-items:center;display:inline-flex;position:relative}._1kjk02r1{pointer-events:none}._1kjk02r2{padding-inline-start:4px}._1kjk02r3{padding-inline-start:8px}._1kjk02r4{padding-block-start:4px}._1kjk02r5{padding-block-start:8px}._1kjk02r6{pointer-events:none;position:absolute}._1kjk02r7{top:0;bottom:0}._1kjk02r7:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:4px;right:0}._1kjk02r7:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:4px;right:0}._1kjk02r7:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:4px}._1kjk02r7:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:4px}._1kjk02r8{top:0;bottom:0}._1kjk02r8:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px;right:0}._1kjk02r8:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px;right:0}._1kjk02r8:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:8px}._1kjk02r8:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:8px}._1kjk02r9{top:4px;bottom:0;left:0;right:0}._1kjk02ra{top:8px;bottom:0;left:0;right:0}._1kjk02rb{white-space:nowrap;cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none;background:0 0;border:none;align-items:center;padding:0;display:inline-flex;position:relative}._1kjk02rb:focus-visible{outline:1px solid var(--_1cecisi0)}._1kjk02rc{cursor:default;pointer-events:none}._1kjk02rd{font-variant-numeric:tabular-nums}._1kjk02re{pointer-events:auto;z-index:40;max-width:320px;max-height:240px;overflow-y:auto}._1kjk02rf{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._1kjk02rg{white-space:nowrap;align-items:center;display:flex}._1kjk02rh{cursor:pointer}._1dw9dgx0{-webkit-appearance:none;appearance:none;box-sizing:content-box;font:inherit;color:inherit;text-align:inherit;cursor:pointer;pointer-events:auto;background:0 0;border:none;margin:0;padding:0}._1dw9dgx0:focus-visible{outline:1px solid var(--_1cecisi0)}._1dw9dgx1{filter:opacity(.4);text-decoration:line-through}._1i8rg6j0{cursor:pointer}._1aj6s5s0{pointer-events:auto;font-family:var(--graphy-font-family);word-wrap:break-word;white-space:break-spaces;text-align:center;box-sizing:border-box;width:100%}._1aj6s5s0 p,._1aj6s5s0 h1,._1aj6s5s0 h2,._1aj6s5s0 h3{margin:0}._1aj6s5s1 .ProseMirror{outline:none;min-height:1em}._1aj6s5s1 .ProseMirror .is-empty:before{content:attr(data-placeholder);color:currentColor;opacity:.4;float:left;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;width:100%;margin-right:-100%;overflow:hidden}.ph8bdc0{pointer-events:none}.ph8bdc1{flex-shrink:0;align-items:center;display:flex}.ph8bdc2{font-family:var(--graphy-font-family)}.ph8bdc3{box-sizing:border-box;white-space:nowrap;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;gap:5px;width:100%;height:100%;display:flex}.ph8bdc4{pointer-events:auto}.ph8bdc5,._1agclyl0,._1agclyl1{pointer-events:none}._1agclyl2{pointer-events:none;font-variant-numeric:tabular-nums}._17uhij30{position:absolute;top:0;left:0;overflow:visible}._17uhij30 text{direction:ltr;unicode-bidi:plaintext}._1vl0pke0{pointer-events:none;border-radius:inherit;position:absolute;top:0;bottom:0;left:0;right:0}._1vl0pke1{isolation:isolate}._1vl0pke2{z-index:-1;pointer-events:none;border-radius:inherit;position:absolute;top:0;bottom:0;left:0;right:0}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const s=require("./history-chords-BvxAsm-U.cjs");let m=require("@graphysdk/viz-engine"),u=require("react"),i=require("react/jsx-runtime"),V=require("zustand"),J=require("zustand/vanilla"),Y=require("clsx");Y=s.__toESM(Y,1);function X(e){for(const t of e)(t.severity==="error"?console.error:console.warn)(`[graphy] ${t.code}: ${t.message}`,t)}var Ge="_1a5iqpb0",be="_1a5iqpb1";var Ee="_1a5iqpb3",Re="_1a5iqpb4",Te="_1a5iqpb5";var Q=({errors:e})=>{const[t,...r]=e;return(0,i.jsxs)("div",{role:"alert",className:Ge,children:[(0,i.jsx)("strong",{className:be,children:"This chart could not be rendered."}),t&&(0,i.jsx)(te,{diagnostic:t}),r.length>0&&(0,i.jsx)("ul",{className:"_1a5iqpb2",children:r.map((n,o)=>(0,i.jsx)("li",{children:(0,i.jsx)(te,{diagnostic:n})},`${n.code}-${o}`))})]})},te=({diagnostic:e})=>(0,i.jsxs)("div",{className:Ee,children:[(0,i.jsx)("span",{className:Re,children:e.code}),(0,i.jsx)("p",{className:Te,children:e.message}),e.suggestion&&(0,i.jsx)("p",{className:"_1a5iqpb6",children:e.suggestion})]});function xe(e=[],t=[]){return e.length===t.length&&e.every((r,n)=>Object.is(r,t[n]))}var le=class extends u.Component{constructor(...e){super(...e),this.state={caughtDiagnostic:null}}static getDerivedStateFromError(e){return{caughtDiagnostic:(0,m.buildDiagnostic)(e)}}componentDidCatch(e,t){const r=(0,m.buildDiagnostic)(e);X([r]),this.props.onError?.([r]),console.error("Chart render component stack:",t.componentStack)}componentDidUpdate(e){this.state.caughtDiagnostic&&!xe(e.resetKeys,this.props.resetKeys)&&this.setState({caughtDiagnostic:null})}render(){const{caughtDiagnostic:e}=this.state;if(e)return(0,i.jsx)(Q,{errors:[e]});const{forcedErrors:t,children:r}=this.props;return t&&t.length>0?(0,i.jsx)(Q,{errors:t}):r}},ue=e=>typeof e=="object"&&"geom"in e&&"render"in e,de=e=>{const t=(0,m.resolveDefinition)(e);return t instanceof m.Geom?t:null},me=(e,t)=>{const r=e.filter(n=>Pe(n,t));return r.length===e.length?e:r},Pe=(e,t)=>e.kind==="annotation"?(0,m.findAnnotation)(t.annotations,e.id)!==null:e.kind==="observations"||e.kind==="layer"&&e.layerId!==void 0?(0,m.findLayerById)(t.layers,e.layerId)!==void 0:!0,re=[],Ce=()=>(0,J.createStore)(e=>({selection:re,setSelection:t=>e(r=>Ie(r.selection,t)?r:{selection:t}),clearSelection:()=>e(t=>t.selection.length===0?t:{selection:re})})),Ie=(e,t)=>e===t?!0:e.length!==t.length?!1:e.every((r,n)=>{const o=t[n];return o!==void 0&&(0,m.areEditTargetsEqual)(r,o)}),Ne=5,je=e=>{if(!s.IS_DEV)return{emit:()=>{},subscribe:()=>_e,getLastTrigger:()=>null,getLastCompile:()=>null,getCacheStats:()=>e.getCacheStats()};const t=new Set;let r=null;return{emit:n=>{const o=e.getLastCompile();if(o){r=n;for(const a of t)a(n,o)}},subscribe:n=>(t.add(n),()=>{t.delete(n)}),getLastTrigger:()=>r,getLastCompile:()=>e.getLastCompile(),getCacheStats:()=>e.getCacheStats()}},Le=()=>(0,J.createStore)(e=>({lastCompile:null,history:[],nextId:1,lastSnapshot:null,recordCompile:(t,r)=>e(n=>{if(n.lastSnapshot===r)return n;const o={id:n.nextId,label:we(t),stages:r.stages,stageDurationsMs:r.stageDurationsMs,durationMs:r.durationMs};return{lastCompile:o,history:De(n.history,o,Ne),nextId:n.nextId+1,lastSnapshot:r}})})),_e=()=>{},we=e=>{switch(e.kind){case"init":return"init";case"spec":return"spec change";case"data":return"data change";case"command":return e.command.metadata.description}},De=(e,t,r)=>{const n=e.length>=r?e.length-(r-1):0;return[...e.slice(n),t]};function ne(e){const t=e.filter(ue),r=new Set([...Object.keys(s.BUILT_IN_GEOM_RENDERERS),...t.map(d=>d.geom)]),n=[],o=new Set;for(const d of e){const h=de(d);h===null||r.has(h.type)||o.has(h.type)||(o.add(h.type),n.push({kind:"userInput",severity:"error",code:"MISSING_GEOM_RENDERER",message:`Custom geom '${h.type}' is registered but has no renderer.`,context:{requested:h.type,kind:"geom-renderer"},suggestion:`Add a render half for it: \`defineGeomRenderer(${h.type}Geom, { coord, render })\`, then include it in \`plugins\`.`}))}const a=new Map;for(const d of t){if("definition"in d)continue;const h=`${d.geom}|${d.coord}`,f=a.get(h);f?f.count+=1:a.set(h,{geom:d.geom,coord:d.coord,count:1})}const c=[];for(const{geom:d,coord:h,count:f}of a.values())f<2||c.push({kind:"userInput",severity:"warning",code:"DUPLICATE_REGISTERED_TYPE",message:`Multiple render-only overrides register ('${d}', '${h}') (${f} entries); the last in the array wins.`,context:{requested:`${d}@${h}`,kind:"geom-renderer"},suggestion:`Keep a single render-only override for ('${d}', '${h}').`});return c.push(...Fe(e)),{errors:n,warnings:c}}function ke(e,t){const{coordSystem:r,layers:n}=e,o=new Set,a=[];for(const c of n)t(c.geom,r.type)!==null||o.has(c.geom)||(o.add(c.geom),a.push({kind:"userInput",severity:"warning",code:"MISSING_GEOM_RENDERER",message:`No renderer for geom '${c.geom}' under ${r.type} coords; the layer is not painted.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:`Register a renderer for ('${c.geom}', '${r.type}') via \`defineGeomRenderer\`.`}));return a}function qe(e,t){const{coordSystem:r,layers:n}=e,o=new Set,a=[];for(const c of n){if(c.interactive===!1||c.spatialKind!=="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||d.hitTest||s.isLiveRender(d)||(o.add(c.geom),a.push({kind:"userInput",severity:"warning",code:"MISSING_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares spatialKind 'renderHitTest' but its renderer provides no hit-test; the layer has no hover.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:`Add a \`hitTest\` factory (precomputed geometry) or a live render (\`{ fn, options: { live: true } }\`, live simulation) to the renderer for ('${c.geom}', '${r.type}').`}))}return a}function Me(e){const t=new Set,r=[];for(const n of e.layers){const o=n.identityKey;n.interactive!==!1&&(n.spatialKind!=="renderHitTest"||typeof o!="object"||t.has(n.geom)||n.data.hasVariable(o.variable)||(t.add(n.geom),r.push({kind:"userInput",severity:"warning",code:"RENDER_HIT_TEST_IDENTITY",message:`Geom '${n.geom}' keys its identity on '${o.variable}', a column its compile output does not emit; its hover lookup is empty.`,context:{requested:n.geom,kind:"geom-renderer"},suggestion:`Emit the '${o.variable}' column from the geom's \`compile()\`, or point \`identityKey\` at a column it does emit.`})))}return r}function Ae(e,t){const{coordSystem:r,layers:n}=e,o=new Set,a=[];for(const c of n){if(c.interactive===!1||c.spatialKind!=="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||!d.hitTest||!s.isLiveRender(d)||(o.add(c.geom),a.push({kind:"userInput",severity:"warning",code:"CONFLICTING_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares both a \`hitTest\` factory and a live render; these are alternatives, so only the live render is used.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:"Keep one: a `hitTest` factory for precomputed geometry, OR a live render (`{ fn, options: { live: true } }`) for a live simulation."}))}return a}function He(e,t){const r=new Set,n=[];for(const o of e.layers)o.interactive!==!1&&(o.spatialKind!=="renderHitTest"||r.has(o.geom)||t.hasCapability(o.geom)||(r.add(o.geom),n.push({kind:"userInput",severity:"warning",code:"MISSING_ANCHOR_CAPABILITY",message:`Geom '${o.geom}' declares no \`resolveAnchorPosition\`; its observations cannot be annotated, so the editor overlay paints no creation trigger on them.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:"Implement `resolveAnchorPosition(observation, context)` on the geom, returning the normalised panel position an annotation on that observation belongs at."})));return n}function Oe(e,t){const{coordSystem:r,layers:n}=e,o=new Set,a=[];for(const c of n){if(c.interactive===!1||c.spatialKind==="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||!s.isLiveRender(d)||(o.add(c.geom),a.push({kind:"userInput",severity:"warning",code:"LIVE_RENDER_REQUIRES_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares a live render but its layer's spatialKind is '${c.spatialKind}', not 'renderHitTest'; its push-path hover resolves to nothing.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:"Have the geom's manifest yield spatialKind 'renderHitTest' so the scene layer carries the `byKey` index the live render's `pushHover` resolves against."}))}return a}function $e(e,t){let r;return e.layers.flatMap((n,o)=>s.isLiveRender(t(n.geom,e.coordSystem.type))?Be(n)?(r??=(0,m.createStyleResolver)().readers(e),(r.geom(n).get("overpaint",void 0,"hovered")?.length??0)===0?[]:[{kind:"userInput",severity:"warning",code:"INVALID_STYLE_RULE",message:`Style 'overpaint' in state 'hovered' is not supported on live geom '${n.geom}' (layer '${n.id}'); it is ignored.`,context:{param:"overpaint",layerIndex:o,requested:n.geom},suggestion:"Remove the hovered overpaint, or paint the hover treatment in the geom's live render."}]):[]:[])}var Be=e=>[e.styles.defaults,e.styles.overrides].some(t=>t.some(r=>r.state==="hovered"&&(r.declarations.overpaint?.length??0)>0));function Fe(e){const t=new Set,r=[];for(const n of e){const o=de(n);o===null||t.has(o.type)||o.dataLabelCoordTypes.length===0||o.getDataLabelPlacements!==void 0||(t.add(o.type),r.push({kind:"userInput",severity:"warning",code:"MISSING_DATA_LABEL_PLACEMENT",message:`Geom '${o.type}' declares \`dataLabelCoordTypes\` but implements no \`getDataLabelPlacements\`; its layers paint no data labels.`,context:{requested:o.type,kind:"geom-renderer"},suggestion:"Implement `getDataLabelPlacements(context)` on the geom, or drop `dataLabelCoordTypes` so the compiler warns the author off the flag."}))}return r}var Ke=e=>(0,J.createStore)(t=>({scene:e,setScene:r=>t(n=>n.scene===r?n:{scene:r})})),Ue=({spec:e,data:t,colorScheme:r,plugins:n,theme:o,resolveRenderer:a,anchorResolver:c,onSpecChange:d,onError:h,onWarnings:f})=>{const S=s.useLatestRef(d),I=s.useLatestRef(h),N=s.useLatestRef(f),[E]=(0,u.useState)(()=>s.createMergedWarningReporter(X,l=>{N.current?.(l)})),[{session:g,compileBus:v,findGeom:T}]=(0,u.useState)(()=>{const l=(0,m.createCompiler)({plugins:n,theme:o});return{session:new m.GraphCompilationSession(l),compileBus:je(l),findGeom:p=>l.findGeom(p)}}),[R]=(0,u.useState)(()=>{const l=ne(n??[]),p=ne(o?.plugins??[]);return{errors:[...p.errors,...l.errors],warnings:[...p.warnings,...l.warnings]}}),k=(0,u.useRef)(null),[j]=(0,u.useState)(ze),b=(0,u.useRef)(null),y=(0,u.useCallback)(l=>R.errors.length===0?l:[...R.errors,...l??[]],[R]),L=(0,u.useCallback)(l=>{if(!l.ok)return l.errors;if(b.current)b.current.getState().setScene(l.scene);else{const p=Ke(l.scene);p.subscribe(j.notify),b.current=p,j.notify()}return null},[j]),[$,x]=(0,u.useState)(()=>{const l=g.compile({spec:e,data:t,colorScheme:r});return k.current=l,y(L(l))}),P=(0,u.useCallback)(l=>l.ok?[...l.warnings,...ke(l.scene,a),...qe(l.scene,a),...Me(l.scene),...Ae(l.scene,a),...Oe(l.scene,a),...$e(l.scene,a),...He(l.scene,c)]:l.warnings,[a,c]),C=(0,u.useCallback)(l=>{l.length!==0&&(X(l),I.current?.(l))},[I]);(0,u.useEffect)(()=>{const l=k.current;l&&(C([...R.errors,...l.ok?[]:l.errors]),E(s.COMPILE_WARNING_SOURCE,[...R.warnings,...P(l)]),l.ok&&v.emit({kind:"init"}))},[v,C,E,R,P]),(0,u.useEffect)(()=>{const l=g.update({spec:e,data:t,colorScheme:r});if(!l)return;l.committedSpec&&S.current?.(l.committedSpec);const p=L(l.result);x(y(p)),p&&C(p),E(s.COMPILE_WARNING_SOURCE,P(l.result)),p||v.emit({kind:l.hasSpecChange?"spec":"data"})},[e,t,r,g,v,L,C,E,y,P,S]);const q=(0,u.useCallback)(l=>{x(p=>p===null?p:y(null)),E(s.COMPILE_WARNING_SOURCE,P(l))},[y,E,P]),M=(0,u.useCallback)(l=>{l.scene&&b.current?.getState().setScene(l.scene),l.result&&q(l.result),l.command&&v.emit({kind:"command",command:l.command}),l.spec&&S.current?.(l.spec),l.errors&&C([...l.errors])},[q,v,S,C]),G=(0,u.useCallback)(l=>{for(const p of l)M(p);return l.some(p=>!!p.scene)},[M]),B=(0,u.useCallback)((l,p)=>{G(g.applyCommand(l,p))},[g,G]),F=(0,u.useCallback)(()=>{G(g.commit())},[g,G]),A=(0,u.useCallback)(()=>G(g.undo()),[g,G]),K=(0,u.useCallback)(()=>G(g.redo()),[g,G]),U=(0,u.useCallback)(l=>{const p=g.preview(l).find(W=>W.scene)?.scene;return p?(b.current?.getState().setScene(p),!0):!1},[g]),H=(0,u.useCallback)(()=>{const l=g.scene;l&&b.current?.getState().setScene(l)},[g]),_=(0,u.useMemo)(()=>({stack:g.history,undo:A,redo:K}),[g,A,K]),w=(0,u.useCallback)(()=>b.current?.getState().scene??null,[]);return{store:b.current,dispatch:B,commit:F,paintPreview:U,clearPreview:H,history:_,subscribe:j.subscribe,getScene:w,compileBus:v,compileErrors:$,findGeom:T,reportWarningSource:E}},ze=()=>{const e=new Set;return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),notify:()=>e.forEach(t=>t())}},We=["cartesian","polar"],he=({data:e,spec:t,plugins:r=[],theme:n,glyphs:o,formattingLocale:a,handleRef:c,onSpecChange:d,onError:h,onWarnings:f,colorScheme:S="light",mode:I=s.GRAPH_MODES.readonly,children:N})=>{const E=s.resolveGraphMode(I),[g]=(0,u.useState)(()=>n),[v]=(0,u.useState)(()=>s.mergeGlyphs(n?.glyphs,o)),T=g?.colorScheme??S,[R]=(0,u.useState)(()=>s.createGeomRendererResolver([...g?.plugins??[],...r].filter(ue)));Ye(R,v);const k=(0,u.useId)(),[j]=(0,u.useState)(()=>(0,m.createAnchorResolver)(r)),[b]=(0,u.useState)(()=>(0,m.createDataLabelPlacementResolver)(r)),[y]=(0,u.useState)(()=>Ce()),[L]=(0,u.useState)(()=>s.createTargetBoundaryStore()),$=(0,u.useMemo)(()=>(0,m.createStyleResolver)({colorScheme:T}),[T]),{store:x,dispatch:P,commit:C,paintPreview:q,clearPreview:M,history:G,subscribe:B,getScene:F,compileBus:A,compileErrors:K,findGeom:U,reportWarningSource:H}=Ue({spec:t,data:e,colorScheme:T,plugins:r,theme:g,resolveRenderer:R,anchorResolver:j,onSpecChange:d,onError:h,onWarnings:f}),_=Xe(a,H);(0,u.useEffect)(()=>{if(x)return x.subscribe((p,W)=>{if(p.scene.spec===W.scene.spec)return;const{selection:ee,setSelection:ye}=y.getState();ee.length!==0&&ye(me(ee,p.scene.spec))})},[x,y]);const w=(0,u.useMemo)(()=>({dispatch:P,commit:C,paintPreview:q,clearPreview:M}),[P,C,q,M]);(0,u.useImperativeHandle)(c,()=>({commands:w,undo:G.undo,redo:G.redo,subscribe:B,getScene:F,formattingLocale:_,getSelection:()=>y.getState().selection,setSelection:p=>y.getState().setSelection(p),subscribeSelection:y.subscribe,canPlaceDataLabels:b.hasCapability,canFormatDataLabelsAsPercentages:b.hasPercentageFormat,getGlyphs:()=>v,getPointSymbols:p=>R("point",p)?.symbols}),[w,G,B,F,_,y,b,v,R]);const l=(0,u.useMemo)(()=>x?{chartId:k,store:x,selectionStore:y,targetBoundaryStore:L,commands:w,history:G,formattingLocale:_,compileBus:A,colorScheme:T,mode:E,styleResolver:$,anchorResolver:j,findGeom:U,reportLayoutWarnings:H}:null,[k,x,y,L,w,G,_,A,T,E,$,j,U,H]);return(0,i.jsx)(le,{forcedErrors:K,onError:h,resetKeys:[t,e],children:l?(0,i.jsx)(s.GraphContext.Provider,{value:l,children:(0,i.jsx)(s.GeomRendererResolverProvider,{value:R,children:(0,i.jsx)(s.DataLabelPlacementResolverProvider,{value:b,children:(0,i.jsx)(s.GeomShapesProvider,{shapes:g?.shapes,children:(0,i.jsx)(s.GlyphRegistryProvider,{glyphs:v,children:N})})})})}):null})},Ve=(e,t)=>(e??[]).filter(r=>!(0,m.isGeometricSymbol)(r)&&!t.has(r)),Ye=(e,t)=>{(0,u.useEffect)(()=>{if(!s.IS_DEV)return;const r=new Set(t.map(({name:n})=>n));for(const n of We)for(const o of Ve(e("point",n)?.symbols,r))console.warn(`[graphy] The ${n} point renderer lists "${o}", but no glyph has that name. The shape menu offers it, and SymbolFigure draws the first listed symbol in its place.`)},[e,t])},Xe=(e,t)=>((0,u.useEffect)(()=>{if(e===void 0||(0,m.findIntlLocale)(e)!==void 0){t(s.FORMATTING_LOCALE_WARNING_SOURCE,[]);return}t(s.FORMATTING_LOCALE_WARNING_SOURCE,[{severity:"warning",kind:"userInput",code:"INVALID_FORMATTING_LOCALE",message:`formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${m.DEFAULT_LOCALE}.`}])},[e,t]),e===void 0?void 0:(0,m.canonicalizeLocale)(e));function Qe({theme:e,glyphs:t,...r}={}){const n=(0,m.createSpecBuilder)(r);return{...n,GraphProvider:a=>(0,i.jsx)(he,{...a,plugins:n.plugins,theme:e,glyphs:t})}}var D=(e,t)=>{if(typeof e=="number")return Number.isFinite(e)?e:null;if(!e.endsWith("%"))return null;const r=Number.parseFloat(e);return Number.isFinite(r)?r/100*t:null},Je=({x:e,y:t,width:r,height:n},o)=>{const a=D(e,o.width),c=D(t,o.height),d=D(r,o.width),h=D(n,o.height);return a===null||c===null||d===null||h===null?null:{x:a,y:c,width:d,height:h}},ge=({animateTransitions:e,cx:t,cy:r,r:n,effects:o,...a})=>{const c=s.toGeomEffectsStyle(o);return e?(0,i.jsx)(s.AnimatedCircle,{animate:{cx:t,cy:r,r:n},style:c,...a}):(0,i.jsx)("circle",{cx:t,cy:r,r:n,style:c,...a})},pe=({animateTransitions:e,x1:t,y1:r,x2:n,y2:o,effects:a,...c})=>{const d=s.toGeomEffectsStyle(a);return e?(0,i.jsx)(s.AnimatedLine,{animate:{x1:t,y1:r,x2:n,y2:o},style:d,...c}):(0,i.jsx)("line",{x1:t,y1:r,x2:n,y2:o,style:d,...c})},fe=({animateTransitions:e,x:t,y:r,width:n,height:o,rx:a,ry:c,effects:d,...h})=>{const f=s.toGeomEffectsStyle(d);if(!e)return(0,i.jsx)("rect",{x:t,y:r,width:n,height:o,rx:a,ry:c,style:f,...h});const S={x:t,y:r,width:n,height:o};return(0,i.jsx)(s.AnimatedRect,{animate:a===void 0||c===void 0?S:{...S,rx:a,ry:c},style:f,...h})},ve=({animateTransitions:e,d:t,source:r,effects:n,...o})=>{const a=s.toGeomEffectsStyle(n);return e?(0,i.jsx)(nt,{d:t,source:r,style:a,...o}):(0,i.jsx)("path",{d:t,style:a,...o})},Ze=e=>{const{Circle:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),{symbol:n,...o}=e,a={...o,animateTransitions:r};return n!==void 0&&n!=="circle"?(0,i.jsx)("g",{style:s.toGeomEffectsStyle(e.effects),"data-testid":e["data-testid"],children:(0,i.jsx)(s.PointSymbol,{symbol:n,cx:se(e.cx),cy:se(e.cy),size:e.r*2,fill:e.fill??"currentColor",fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeWidth:e.strokeWidth,motion:r?{transition:s.DEFAULT_SPRING_TRANSITION,intro:!1,fadesIn:!1}:null})}):t===void 0?ge(a):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...a})})},et=e=>{const{Line:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),n={...e,animateTransitions:r};return t===void 0?pe(n):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...n})})},tt=({cornerRadius:e,...t})=>{const{Rect:r}=s.useGeomShapes(),n=s.useGeomViewport()?.size??null,o=s.useGeomPixelsPerUnit(),{animateTransitions:a}=s.useGraphAnimation(),c={...t,animateTransitions:a,...st(e,t,n,o)};return r===void 0?fe(c):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(r,{...c})})},rt=e=>{const{Path:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),n={...e,animateTransitions:r};return t===void 0?ve(n):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...n})})},se=e=>typeof e=="number"?`${e}px`:e,nt=({d:e,source:t,...r})=>(0,i.jsx)(s.AnimatedPath,{d:s.useSvgPathMorph(e,s.DEFAULT_SPRING_TRANSITION,t),...r}),st=(e,t,r,n)=>{if(e===void 0)return{};const o=(0,m.foldGeomCornerRadii)(e);if(o===void 0)return{};const a=ot(t,r,n);if(a===null)return o==="full"?{}:ie((0,m.resolveGeomCornerRadiusPx)({cornerRadius:o}),n);const c=Math.min((0,m.resolveGeomCornerRadiusPx)({cornerRadius:o,box:a}),Math.min(a.width,a.height)/2);return ie(c,n)},ot=(e,t,r)=>{const n=oe(e.width,t?.width,r.x),o=oe(e.height,t?.height,r.y);return n===null||o===null?null:{width:n,height:o}},oe=(e,t,r)=>{if(typeof e=="number")return Number.isFinite(e)?Math.abs(e)*r:null;if(t===void 0)return null;const n=D(e,t);return n===null?null:Math.abs(n)},ie=(e,t)=>t.x<=0||t.y<=0?{rx:0,ry:0}:{rx:e/t.x,ry:e/t.y},it=({symbol:e,size:t,fill:r,fillOpacity:n,stroke:o,strokeOpacity:a,strokeWidth:c})=>{const d=s.useGlyphRegistry(),h=s.useGeomRendererResolver(),f=s.useSceneSelector(N=>N.coordSystem.type),S=at(e,h("point",f)?.symbols??[],d),I={size:t,fill:r,fillOpacity:n,stroke:o,strokeOpacity:a,strokeWidth:c};return(0,m.isGeometricSymbol)(S)?(0,i.jsx)("path",{d:(0,m.buildPointSymbolPath)(S,t),fill:r,fillOpacity:n,stroke:o,strokeOpacity:a,strokeWidth:c,strokeLinejoin:"round"}):(0,i.jsx)(s.GlyphMark,{symbol:S,glyphs:d,...I})},at=(e,t,r)=>(0,m.isImageSymbol)(e)||t.includes(e)||!(0,m.isGeometricSymbol)(e)&&r.has(e)?e:t[0]??"circle",ct=({children:e,...t})=>{const r=s.useGeomViewport()?.size??null;return(0,i.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%",pointerEvents:"none",...t,children:(0,i.jsx)(s.GeomViewportProvider,{size:r,space:"unit",children:e})})},lt=({box:e,children:t})=>{const r=s.useGeomViewportSize(),n=r===null?null:r.width*(e.x1-e.x0),o=r===null?null:r.height*(e.y1-e.y0),a=(0,u.useMemo)(()=>n===null||o===null?null:{width:n,height:o},[n,o]);return(0,i.jsx)("svg",{x:(0,m.toPercent)(e.x0),y:(0,m.toPercent)(e.y0),width:(0,m.toPercent)(e.x1-e.x0),height:(0,m.toPercent)(e.y1-e.y0),overflow:"hidden",pointerEvents:"none",children:(0,i.jsx)(s.GeomViewportProvider,{size:a,children:t})})},ut="drqe3u0",dt="drqe3u1",mt="drqe3u2",ht="drqe3u3",O="drqe3u4",gt="drqe3u5",pt="drqe3u6",ft="drqe3u7",z="drqe3u8",vt="drqe3u9",St="drqe3ua";var yt="drqe3uc",Gt="drqe3ud",bt="drqe3ue",Et="drqe3uf";var Rt="drqe3uh",Tt="drqe3ui",ae={enabled:"drqe3uk drqe3uj",disabled:"drqe3ul drqe3uj"},ce={ran:"drqe3un drqe3um",dim:"drqe3uo drqe3um"},Se={ran:"drqe3uq drqe3up",cached:"drqe3ur drqe3up",untouched:"drqe3us drqe3up"},xt=({width:e=440,style:t,className:r}={})=>{const{compileBus:n}=s.useGraphContext(),[o]=(0,u.useState)(()=>Le()),[a,c]=(0,u.useState)(!1),[d,h]=(0,u.useState)(m.isCompilerCachingEnabled);(0,u.useEffect)(()=>{const{recordCompile:g}=o.getState(),v=n.getLastTrigger(),T=n.getLastCompile();return v&&T&&g(v,T),n.subscribe(g)},[o,n]);const f=(0,V.useStore)(o,g=>g.lastCompile),S=(0,V.useStore)(o,g=>g.history),I=n.getCacheStats(),N=f===null&&S.length===0,E=()=>{h(g=>{const v=!g;return(0,m.setCompilerCachingEnabled)(v),v})};return(0,i.jsxs)("div",{className:(0,Y.default)(St,r),style:{width:e,...t},children:[(0,i.jsxs)("div",{className:ut,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:dt,children:"compile cache"}),(0,i.jsx)("div",{className:bt,children:N?"production: stats disabled":f?`last: ${f.label} · ${Z(f.durationMs)}`:"awaiting first compile…"})]}),(0,i.jsx)("button",{type:"button",onClick:()=>c(g=>!g),className:Et,children:a?"▾":"▴"})]}),!a&&(0,i.jsxs)("div",{className:"drqe3ub",children:[(0,i.jsxs)("button",{type:"button",onClick:E,className:d?ae.enabled:ae.disabled,"aria-pressed":d,children:["cache ",d?"enabled":"disabled"]}),(0,i.jsx)("span",{className:"drqe3ug",children:"next compile reflects this toggle"})]}),!a&&!N&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pt,{delta:f?.stages,durations:f?.stageDurationsMs,cumulative:I}),(0,i.jsx)(Ct,{entries:S})]})]})},Pt=({delta:e,durations:t,cumulative:r})=>(0,i.jsxs)("table",{className:mt,children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:Rt,children:[(0,i.jsx)("th",{className:ht,children:"stage"}),(0,i.jsx)("th",{className:O,children:"time"}),(0,i.jsx)("th",{className:O,children:"Δ miss"}),(0,i.jsx)("th",{className:O,children:"Δ hit"}),(0,i.jsx)("th",{className:O,children:"total miss"}),(0,i.jsx)("th",{className:O,children:"total hit"})]})}),(0,i.jsx)("tbody",{children:m.COMPILER_STAGE_KEYS.map(n=>{const o=e?.[n],a=It(o);return(0,i.jsxs)("tr",{className:yt,children:[(0,i.jsxs)("td",{className:gt,children:[(0,i.jsx)("span",{className:Se[a],"aria-hidden":!0})," ",n]}),(0,i.jsx)("td",{className:z,children:t===void 0||a==="untouched"?"—":Z(t[n])}),(0,i.jsx)("td",{className:a==="ran"?ce.ran:ce.dim,children:o?.misses??0}),(0,i.jsx)("td",{className:z,children:o?.hits??0}),(0,i.jsx)("td",{className:z,children:r[n].misses}),(0,i.jsx)("td",{className:z,children:r[n].hits})]},n)})})]}),Ct=({entries:e})=>e.length===0?null:(0,i.jsxs)("div",{className:Gt,children:[(0,i.jsx)("div",{className:Tt,children:"recent compiles"}),e.map(t=>{const r=Nt(t.stages,a=>a.misses>0),n=m.COMPILER_STAGE_KEYS.length,o=r===0?"cached":"ran";return(0,i.jsxs)("div",{className:pt,children:[(0,i.jsx)("span",{className:Se[o],"aria-hidden":!0}),(0,i.jsx)("span",{className:ft,title:t.label,children:t.label}),(0,i.jsxs)("span",{className:vt,children:[r,"/",n," ran · ",Z(t.durationMs)]})]},t.id)})]}),It=e=>!e||e.hits===0&&e.misses===0?"untouched":e.misses>0?"ran":"cached",Nt=(e,t)=>{let r=0;for(const n of m.COMPILER_STAGE_KEYS)t(e[n])&&(r+=1);return r},Z=e=>e<.1?"<0.1ms":e>=10?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`,jt=()=>{const{history:e}=s.useGraphContext(),{stack:t,undo:r,redo:n}=e,o=(0,u.useCallback)(d=>t.subscribe(d),[t]),a=(0,u.useCallback)(()=>t.getSnapshot(),[t]),c=(0,u.useSyncExternalStore)(o,a,a);return(0,u.useMemo)(()=>({...c,undo:r,redo:n}),[c,r,n])},Lt=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),_t=(e,t={})=>{const{target:r,enabled:n=!0}=t;(0,u.useEffect)(()=>{const o=wt(r);if(!n||!o)return;const a=c=>{if(!Dt(c)||c.defaultPrevented||kt(c.target))return;const d=s.resolveHistoryStep(c);if(!d)return;const h=e.current;h&&(d==="undo"?h.undo():h.redo())&&c.preventDefault()};return o.addEventListener("keydown",a),()=>o.removeEventListener("keydown",a)},[e,r,n])},wt=e=>e===void 0?window:e!==null&&"current"in e?e.current:e,Dt=e=>"key"in e,kt=e=>e instanceof HTMLInputElement?!Lt.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA":!1,qt=()=>{const{targetBoundaryStore:e}=s.useGraphContext();return(0,V.useStore)(e,t=>t.boundary)};exports.CanvasTextMeasurer=s.CanvasTextMeasurer;exports.DefaultFooter=s.DefaultFooter;exports.DefaultGeomCircle=ge;exports.DefaultGeomLine=pe;exports.DefaultGeomPath=ve;exports.DefaultGeomRect=fe;exports.DefaultGrid=s.DefaultGrid;exports.DefaultHeader=s.DefaultHeader;exports.DefaultSwatch=s.DefaultSwatch;exports.DefaultTooltip=s.DefaultTooltip;exports.DevToolsPanel=xt;exports.GRAPH_MODES=s.GRAPH_MODES;exports.GeomCircle=Ze;exports.GeomLine=et;exports.GeomOverpaint=s.GeomOverpaint;exports.GeomPanelSizeProvider=s.GeomPanelSizeProvider;exports.GeomPath=rt;exports.GeomRect=tt;exports.GraphErrorBoundary=le;exports.GraphErrorPanel=Q;exports.GraphProvider=he;exports.GraphRenderer=s.GraphRenderer;exports.GraphyBadge=s.GraphyBadge;exports.HoverProvider=s.HoverProvider;exports.IntlProvider=s.ChartIntlProvider;exports.IntroFade=s.IntroFade;exports.IntroWipeClip=s.IntroWipeClip;exports.SymbolFigure=it;exports.TextMeasurerProvider=s.TextMeasurerProvider;exports.ThemeProvider=s.ThemeProvider;exports.UnitBoxSvg=lt;exports.UnitSpaceSvg=ct;exports.buildDotsEditOutlineShapes=s.buildDotsEditOutlineShapes;exports.createGraphyKit=Qe;exports.darkTheme=s.darkTheme;exports.defineGeomRenderer=s.defineGeomRenderer;exports.defineGlyph=s.defineGlyph;exports.getBuiltInEditOutlineShapes=s.getBuiltInEditOutlineShapes;exports.lightTheme=s.lightTheme;exports.lightenCss=s.lightenCss;exports.pruneSelection=me;exports.readPositionPixels=D;exports.readRectPixels=Je;exports.resolveGraphyBadgeVariant=s.resolveGraphyBadgeVariant;exports.resolvePathStroke=s.resolvePathStroke;exports.scalePointToPanel=s.scalePointToPanel;exports.stampAxisEditTarget=s.stampAxisEditTarget;exports.stampGridEditTarget=s.stampGridEditTarget;exports.stampLegendEditTarget=s.stampLegendEditTarget;exports.useElementScreenRect=s.useElementScreenRect;exports.useFormattingLocale=s.useFormattingLocale;exports.useGeomHitTest=s.useGeomHitTest;exports.useGeomHover=s.useGeomHover;exports.useGeomPanelSize=s.useGeomPanelSize;exports.useGeomReaderTree=s.useGeomReaderTree;exports.useGeomStyleReader=s.useGeomStyleReader;exports.useGeomViewportSize=s.useGeomViewportSize;exports.useGraphAnimation=s.useGraphAnimation;exports.useGraphCommands=s.useGraphCommands;exports.useGraphHandle=s.useGraphHandle;exports.useGraphHistory=jt;exports.useGraphHistoryShortcuts=_t;exports.useGraphLocale=s.useGraphLocale;exports.useGraphSelection=s.useGraphSelection;exports.useGuidesTakePress=s.useGuidesTakePress;exports.useHandleScene=s.useHandleScene;exports.useHoverState=s.useHoverState;exports.usePaintDefs=s.usePaintDefs;exports.useResolvedStyle=s.useResolvedStyle;exports.useSceneSelector=s.useSceneSelector;exports.useStyleReaderTree=s.useStyleReaderTree;exports.useStyleResolver=s.useStyleResolver;exports.useTargetBoundary=qt;exports.useTextMeasurer=s.useTextMeasurer;exports.vars=s.vars;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const s=require("./history-chords-BJoctZdP.cjs");let m=require("@graphysdk/viz-engine"),u=require("react"),i=require("react/jsx-runtime"),X=require("zustand"),ee=require("zustand/vanilla"),Q=require("clsx");Q=s.__toESM(Q,1);function J(e){for(const t of e)(t.severity==="error"?console.error:console.warn)(`[graphy] ${t.code}: ${t.message}`,t)}var Ge="_1a5iqpb0",be="_1a5iqpb1";var Ee="_1a5iqpb3",Re="_1a5iqpb4",Te="_1a5iqpb5";var Z=({errors:e})=>{const[t,...r]=e;return(0,i.jsxs)("div",{role:"alert",className:Ge,children:[(0,i.jsx)("strong",{className:be,children:"This chart could not be rendered."}),t&&(0,i.jsx)(re,{diagnostic:t}),r.length>0&&(0,i.jsx)("ul",{className:"_1a5iqpb2",children:r.map((n,o)=>(0,i.jsx)("li",{children:(0,i.jsx)(re,{diagnostic:n})},`${n.code}-${o}`))})]})},re=({diagnostic:e})=>(0,i.jsxs)("div",{className:Ee,children:[(0,i.jsx)("span",{className:Re,children:e.code}),(0,i.jsx)("p",{className:Te,children:e.message}),e.suggestion&&(0,i.jsx)("p",{className:"_1a5iqpb6",children:e.suggestion})]});function xe(e=[],t=[]){return e.length===t.length&&e.every((r,n)=>Object.is(r,t[n]))}var ue=class extends u.Component{constructor(...e){super(...e),this.state={caughtDiagnostic:null}}static getDerivedStateFromError(e){return{caughtDiagnostic:(0,m.buildDiagnostic)(e)}}componentDidCatch(e,t){const r=(0,m.buildDiagnostic)(e);J([r]),this.props.onError?.([r]),console.error("Chart render component stack:",t.componentStack)}componentDidUpdate(e){this.state.caughtDiagnostic&&!xe(e.resetKeys,this.props.resetKeys)&&this.setState({caughtDiagnostic:null})}render(){const{caughtDiagnostic:e}=this.state;if(e)return(0,i.jsx)(Z,{errors:[e]});const{forcedErrors:t,children:r}=this.props;return t&&t.length>0?(0,i.jsx)(Z,{errors:t}):r}},de=e=>typeof e=="object"&&"geom"in e&&"render"in e,me=e=>{const t=(0,m.resolveDefinition)(e);return t instanceof m.Geom?t:null},Pe=e=>{const t=new Set;if(e.position==="none")return t;for(const r of e.drawn)if(!(!r.hidesGroups||r.display!=="pill"))for(const n of r.items)t.add((0,m.getLegendGroupKey)(r,n));return t},he=(e,t)=>{const r=e.filter(n=>Ce(n,t));return r.length===e.length?e:r},Ce=(e,t)=>e.kind==="annotation"?(0,m.findAnnotation)(t.annotations,e.id)!==null:e.kind==="observations"||e.kind==="layer"&&e.layerId!==void 0?(0,m.findLayerById)(t.layers,e.layerId)!==void 0:!0,ne=[],Ie=()=>(0,ee.createStore)(e=>({selection:ne,setSelection:t=>e(r=>Ne(r.selection,t)?r:{selection:t}),clearSelection:()=>e(t=>t.selection.length===0?t:{selection:ne})})),Ne=(e,t)=>e===t?!0:e.length!==t.length?!1:e.every((r,n)=>{const o=t[n];return o!==void 0&&(0,m.areEditTargetsEqual)(r,o)}),je=5,we=e=>{if(!s.IS_DEV)return{emit:()=>{},subscribe:()=>_e,getLastTrigger:()=>null,getLastCompile:()=>null,getCacheStats:()=>e.getCacheStats()};const t=new Set;let r=null;return{emit:n=>{const o=e.getLastCompile();if(o){r=n;for(const l of t)l(n,o)}},subscribe:n=>(t.add(n),()=>{t.delete(n)}),getLastTrigger:()=>r,getLastCompile:()=>e.getLastCompile(),getCacheStats:()=>e.getCacheStats()}},Le=()=>(0,ee.createStore)(e=>({lastCompile:null,history:[],nextId:1,lastSnapshot:null,recordCompile:(t,r)=>e(n=>{if(n.lastSnapshot===r)return n;const o={id:n.nextId,label:De(t),stages:r.stages,stageDurationsMs:r.stageDurationsMs,durationMs:r.durationMs};return{lastCompile:o,history:ke(n.history,o,je),nextId:n.nextId+1,lastSnapshot:r}})})),_e=()=>{},De=e=>{switch(e.kind){case"init":return"init";case"spec":return"spec change";case"data":return"data change";case"command":return e.command.metadata.description}},ke=(e,t,r)=>{const n=e.length>=r?e.length-(r-1):0;return[...e.slice(n),t]};function se(e){const t=e.filter(de),r=new Set([...Object.keys(s.BUILT_IN_GEOM_RENDERERS),...t.map(d=>d.geom)]),n=[],o=new Set;for(const d of e){const h=me(d);h===null||r.has(h.type)||o.has(h.type)||(o.add(h.type),n.push({kind:"userInput",severity:"error",code:"MISSING_GEOM_RENDERER",message:`Custom geom '${h.type}' is registered but has no renderer.`,context:{requested:h.type,kind:"geom-renderer"},suggestion:`Add a render half for it: \`defineGeomRenderer(${h.type}Geom, { coord, render })\`, then include it in \`plugins\`.`}))}const l=new Map;for(const d of t){if("definition"in d)continue;const h=`${d.geom}|${d.coord}`,v=l.get(h);v?v.count+=1:l.set(h,{geom:d.geom,coord:d.coord,count:1})}const c=[];for(const{geom:d,coord:h,count:v}of l.values())v<2||c.push({kind:"userInput",severity:"warning",code:"DUPLICATE_REGISTERED_TYPE",message:`Multiple render-only overrides register ('${d}', '${h}') (${v} entries); the last in the array wins.`,context:{requested:`${d}@${h}`,kind:"geom-renderer"},suggestion:`Keep a single render-only override for ('${d}', '${h}').`});return c.push(...Ke(e)),{errors:n,warnings:c}}function qe(e,t){const{coordSystem:r,layers:n}=e,o=new Set,l=[];for(const c of n)t(c.geom,r.type)!==null||o.has(c.geom)||(o.add(c.geom),l.push({kind:"userInput",severity:"warning",code:"MISSING_GEOM_RENDERER",message:`No renderer for geom '${c.geom}' under ${r.type} coords; the layer is not painted.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:`Register a renderer for ('${c.geom}', '${r.type}') via \`defineGeomRenderer\`.`}));return l}function Me(e,t){const{coordSystem:r,layers:n}=e,o=new Set,l=[];for(const c of n){if(c.interactive===!1||c.spatialKind!=="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||d.hitTest||s.isLiveRender(d)||(o.add(c.geom),l.push({kind:"userInput",severity:"warning",code:"MISSING_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares spatialKind 'renderHitTest' but its renderer provides no hit-test; the layer has no hover.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:`Add a \`hitTest\` factory (precomputed geometry) or a live render (\`{ fn, options: { live: true } }\`, live simulation) to the renderer for ('${c.geom}', '${r.type}').`}))}return l}function Ae(e){const t=new Set,r=[];for(const n of e.layers){const o=n.identityKey;n.interactive!==!1&&(n.spatialKind!=="renderHitTest"||typeof o!="object"||t.has(n.geom)||n.data.hasVariable(o.variable)||(t.add(n.geom),r.push({kind:"userInput",severity:"warning",code:"RENDER_HIT_TEST_IDENTITY",message:`Geom '${n.geom}' keys its identity on '${o.variable}', a column its compile output does not emit; its hover lookup is empty.`,context:{requested:n.geom,kind:"geom-renderer"},suggestion:`Emit the '${o.variable}' column from the geom's \`compile()\`, or point \`identityKey\` at a column it does emit.`})))}return r}function He(e,t){const{coordSystem:r,layers:n}=e,o=new Set,l=[];for(const c of n){if(c.interactive===!1||c.spatialKind!=="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||!d.hitTest||!s.isLiveRender(d)||(o.add(c.geom),l.push({kind:"userInput",severity:"warning",code:"CONFLICTING_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares both a \`hitTest\` factory and a live render; these are alternatives, so only the live render is used.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:"Keep one: a `hitTest` factory for precomputed geometry, OR a live render (`{ fn, options: { live: true } }`) for a live simulation."}))}return l}function Oe(e,t){const r=new Set,n=[];for(const o of e.layers)o.interactive!==!1&&(o.spatialKind!=="renderHitTest"||r.has(o.geom)||t.hasCapability(o.geom)||(r.add(o.geom),n.push({kind:"userInput",severity:"warning",code:"MISSING_ANCHOR_CAPABILITY",message:`Geom '${o.geom}' declares no \`resolveAnchorPosition\`; its observations cannot be annotated, so the editor overlay paints no creation trigger on them.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:"Implement `resolveAnchorPosition(observation, context)` on the geom, returning the normalised panel position an annotation on that observation belongs at."})));return n}function $e(e,t){const{coordSystem:r,layers:n}=e,o=new Set,l=[];for(const c of n){if(c.interactive===!1||c.spatialKind==="renderHitTest"||o.has(c.geom))continue;const d=t(c.geom,r.type);d===null||!s.isLiveRender(d)||(o.add(c.geom),l.push({kind:"userInput",severity:"warning",code:"LIVE_RENDER_REQUIRES_RENDER_HIT_TEST",message:`Geom '${c.geom}' declares a live render but its layer's spatialKind is '${c.spatialKind}', not 'renderHitTest'; its push-path hover resolves to nothing.`,context:{requested:c.geom,kind:"geom-renderer"},suggestion:"Have the geom's manifest yield spatialKind 'renderHitTest' so the scene layer carries the `byKey` index the live render's `pushHover` resolves against."}))}return l}function Be(e,t){let r;return e.layers.flatMap((n,o)=>s.isLiveRender(t(n.geom,e.coordSystem.type))?Fe(n)?(r??=(0,m.createStyleResolver)().readers(e),(r.geom(n).get("overpaint",void 0,"hovered")?.length??0)===0?[]:[{kind:"userInput",severity:"warning",code:"INVALID_STYLE_RULE",message:`Style 'overpaint' in state 'hovered' is not supported on live geom '${n.geom}' (layer '${n.id}'); it is ignored.`,context:{param:"overpaint",layerIndex:o,requested:n.geom},suggestion:"Remove the hovered overpaint, or paint the hover treatment in the geom's live render."}]):[]:[])}var Fe=e=>[e.styles.defaults,e.styles.overrides].some(t=>t.some(r=>r.state==="hovered"&&(r.declarations.overpaint?.length??0)>0));function Ke(e){const t=new Set,r=[];for(const n of e){const o=me(n);o===null||t.has(o.type)||o.dataLabelCoordTypes.length===0||o.getDataLabelPlacements!==void 0||(t.add(o.type),r.push({kind:"userInput",severity:"warning",code:"MISSING_DATA_LABEL_PLACEMENT",message:`Geom '${o.type}' declares \`dataLabelCoordTypes\` but implements no \`getDataLabelPlacements\`; its layers paint no data labels.`,context:{requested:o.type,kind:"geom-renderer"},suggestion:"Implement `getDataLabelPlacements(context)` on the geom, or drop `dataLabelCoordTypes` so the compiler warns the author off the flag."}))}return r}var Ue=e=>(0,ee.createStore)(t=>({scene:e,setScene:r=>t(n=>n.scene===r?n:{scene:r})})),ze=({spec:e,data:t,colorScheme:r,hiddenGroups:n,plugins:o,theme:l,resolveRenderer:c,anchorResolver:d,onSpecChange:h,onError:v,onWarnings:y})=>{const b=s.useLatestRef(h),P=s.useLatestRef(v),N=s.useLatestRef(y),[f]=(0,u.useState)(()=>s.createMergedWarningReporter(J,a=>{N.current?.(a)})),[{session:p,compileBus:S,findGeom:F}]=(0,u.useState)(()=>{const a=(0,m.createCompiler)({plugins:o,theme:l});return{session:new m.GraphCompilationSession(a),compileBus:we(a),findGeom:g=>a.findGeom(g)}}),[x]=(0,u.useState)(()=>{const a=se(o??[]),g=se(l?.plugins??[]);return{errors:[...g.errors,...a.errors],warnings:[...g.warnings,...a.warnings]}}),_=(0,u.useRef)(null),[G]=(0,u.useState)(Ve),E=(0,u.useRef)(null),j=(0,u.useCallback)(a=>x.errors.length===0?a:[...x.errors,...a??[]],[x]),D=(0,u.useCallback)(a=>{if(!a.ok)return a.errors;if(E.current)E.current.getState().setScene(a.scene);else{const g=Ue(a.scene);g.subscribe(G.notify),E.current=g,G.notify()}return null},[G]),[R,A]=(0,u.useState)(()=>{const a=p.compile({spec:e,data:t,colorScheme:r,hiddenGroups:n});return _.current=a,j(D(a))}),C=(0,u.useCallback)(a=>a.ok?[...a.warnings,...qe(a.scene,c),...Me(a.scene,c),...Ae(a.scene),...He(a.scene,c),...$e(a.scene,c),...Be(a.scene,c),...Oe(a.scene,d)]:a.warnings,[c,d]),I=(0,u.useCallback)(a=>{a.length!==0&&(J(a),P.current?.(a))},[P]);(0,u.useEffect)(()=>{const a=_.current;a&&(I([...x.errors,...a.ok?[]:a.errors]),f(s.COMPILE_WARNING_SOURCE,[...x.warnings,...C(a)]),a.ok&&S.emit({kind:"init"}))},[S,I,f,x,C]),(0,u.useEffect)(()=>{const a=p.update({spec:e,data:t,colorScheme:r,hiddenGroups:n});if(!a)return;a.committedSpec&&b.current?.(a.committedSpec);const g=D(a.result);A(j(g)),g&&I(g),f(s.COMPILE_WARNING_SOURCE,C(a.result)),g||S.emit({kind:a.hasSpecChange?"spec":"data"})},[e,t,r,n,p,S,D,I,f,j,C,b]);const H=(0,u.useCallback)(a=>{A(g=>g===null?g:j(null)),f(s.COMPILE_WARNING_SOURCE,C(a))},[j,f,C]),w=(0,u.useCallback)(a=>{a.scene&&E.current?.getState().setScene(a.scene),a.result&&H(a.result),a.command&&S.emit({kind:"command",command:a.command}),a.spec&&b.current?.(a.spec),a.errors&&I([...a.errors])},[H,S,b,I]),T=(0,u.useCallback)(a=>{for(const g of a)w(g);return a.some(g=>!!g.scene)},[w]),K=(0,u.useCallback)((a,g)=>{T(p.applyCommand(a,g))},[p,T]),U=(0,u.useCallback)(()=>{T(p.commit())},[p,T]),z=(0,u.useCallback)(()=>T(p.undo()),[p,T]),O=(0,u.useCallback)(()=>T(p.redo()),[p,T]),$=(0,u.useCallback)(a=>{const g=p.preview(a).find(L=>L.scene)?.scene;return g?(E.current?.getState().setScene(g),!0):!1},[p]),k=(0,u.useCallback)(()=>{const a=p.scene;a&&E.current?.getState().setScene(a)},[p]),q=(0,u.useMemo)(()=>({stack:p.history,undo:z,redo:O}),[p,z,O]),V=(0,u.useCallback)(()=>E.current?.getState().scene??null,[]);return{store:E.current,dispatch:K,commit:U,paintPreview:$,clearPreview:k,history:q,subscribe:G.subscribe,getScene:V,compileBus:S,compileErrors:R,findGeom:F,reportWarningSource:f}},Ve=()=>{const e=new Set;return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),notify:()=>e.forEach(t=>t())}},We=["cartesian","polar"],ge=({mode:e=s.GRAPH_MODES.readonly,...t})=>{const r=s.resolveGraphMode(e);return(0,i.jsx)(s.GroupVisibilityProvider,{mode:r,children:(0,i.jsx)(Ye,{...t,mode:r})})},Ye=({data:e,spec:t,plugins:r=[],theme:n,glyphs:o,formattingLocale:l,handleRef:c,onSpecChange:d,onError:h,onWarnings:v,colorScheme:y="light",mode:b,children:P})=>{const[N]=(0,u.useState)(()=>n),[f]=(0,u.useState)(()=>s.mergeGlyphs(n?.glyphs,o)),p=N?.colorScheme??y,[S]=(0,u.useState)(()=>s.createGeomRendererResolver([...N?.plugins??[],...r].filter(de)));Qe(S,f);const F=(0,u.useId)(),[x]=(0,u.useState)(()=>(0,m.createAnchorResolver)(r)),[_]=(0,u.useState)(()=>(0,m.createDataLabelPlacementResolver)(r)),[G]=(0,u.useState)(()=>Ie()),[E]=(0,u.useState)(()=>s.createTargetBoundaryStore()),j=(0,u.useMemo)(()=>(0,m.createStyleResolver)({colorScheme:p}),[p]),D=s.useGroupVisibilityStore(),{store:R,dispatch:A,commit:C,paintPreview:I,clearPreview:H,history:w,subscribe:T,getScene:K,compileBus:U,compileErrors:z,findGeom:O,reportWarningSource:$}=ze({spec:t,data:e,colorScheme:p,hiddenGroups:s.useHiddenGroupKeys(),plugins:r,theme:N,resolveRenderer:S,anchorResolver:x,onSpecChange:d,onError:h,onWarnings:v}),k=Je(l,$);(0,u.useEffect)(()=>{if(R)return R.subscribe((a,g)=>{if(a.scene.spec===g.scene.spec)return;const{selection:L,setSelection:Y}=G.getState();L.length!==0&&Y(he(L,a.scene.spec))})},[R,G]),(0,u.useEffect)(()=>{if(!R)return;const a=g=>{const{hiddenGroupKeys:L,keepHidden:Y}=D.getState();L.size>0&&Y(Pe(g))};return R.subscribe((g,L)=>{g.scene.guides.legends!==L.scene.guides.legends&&a(g.scene.guides.legends)})},[R,D]);const q=(0,u.useMemo)(()=>({dispatch:A,commit:C,paintPreview:I,clearPreview:H}),[A,C,I,H]);(0,u.useImperativeHandle)(c,()=>({commands:q,undo:w.undo,redo:w.redo,subscribe:T,getScene:K,formattingLocale:k,getSelection:()=>G.getState().selection,setSelection:a=>G.getState().setSelection(a),subscribeSelection:G.subscribe,canPlaceDataLabels:_.hasCapability,canFormatDataLabelsAsPercentages:_.hasPercentageFormat,getGlyphs:()=>f,getPointSymbols:a=>S("point",a)?.symbols}),[q,w,T,K,k,G,_,f,S]);const V=(0,u.useMemo)(()=>R?{chartId:F,store:R,selectionStore:G,targetBoundaryStore:E,commands:q,history:w,formattingLocale:k,compileBus:U,colorScheme:p,mode:b,styleResolver:j,anchorResolver:x,findGeom:O,reportLayoutWarnings:$}:null,[F,R,G,E,q,w,k,U,p,b,j,x,O,$]);return(0,i.jsx)(ue,{forcedErrors:z,onError:h,resetKeys:[t,e],children:V?(0,i.jsx)(s.GraphContext.Provider,{value:V,children:(0,i.jsx)(s.GeomRendererResolverProvider,{value:S,children:(0,i.jsx)(s.DataLabelPlacementResolverProvider,{value:_,children:(0,i.jsx)(s.GeomShapesProvider,{shapes:N?.shapes,children:(0,i.jsx)(s.GlyphRegistryProvider,{glyphs:f,children:P})})})})}):null})},Xe=(e,t)=>(e??[]).filter(r=>!(0,m.isGeometricSymbol)(r)&&!t.has(r)),Qe=(e,t)=>{(0,u.useEffect)(()=>{if(!s.IS_DEV)return;const r=new Set(t.map(({name:n})=>n));for(const n of We)for(const o of Xe(e("point",n)?.symbols,r))console.warn(`[graphy] The ${n} point renderer lists "${o}", but no glyph has that name. The shape menu offers it, and SymbolFigure draws the first listed symbol in its place.`)},[e,t])},Je=(e,t)=>((0,u.useEffect)(()=>{if(e===void 0||(0,m.findIntlLocale)(e)!==void 0){t(s.FORMATTING_LOCALE_WARNING_SOURCE,[]);return}t(s.FORMATTING_LOCALE_WARNING_SOURCE,[{severity:"warning",kind:"userInput",code:"INVALID_FORMATTING_LOCALE",message:`formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${m.DEFAULT_LOCALE}.`}])},[e,t]),e===void 0?void 0:(0,m.canonicalizeLocale)(e));function Ze({theme:e,glyphs:t,...r}={}){const n=(0,m.createSpecBuilder)(r);return{...n,GraphProvider:l=>(0,i.jsx)(ge,{...l,plugins:n.plugins,theme:e,glyphs:t})}}var M=(e,t)=>{if(typeof e=="number")return Number.isFinite(e)?e:null;if(!e.endsWith("%"))return null;const r=Number.parseFloat(e);return Number.isFinite(r)?r/100*t:null},et=({x:e,y:t,width:r,height:n},o)=>{const l=M(e,o.width),c=M(t,o.height),d=M(r,o.width),h=M(n,o.height);return l===null||c===null||d===null||h===null?null:{x:l,y:c,width:d,height:h}},pe=({animateTransitions:e,cx:t,cy:r,r:n,effects:o,...l})=>{const c=s.toGeomEffectsStyle(o);return e?(0,i.jsx)(s.AnimatedCircle,{animate:{cx:t,cy:r,r:n},style:c,...l}):(0,i.jsx)("circle",{cx:t,cy:r,r:n,style:c,...l})},fe=({animateTransitions:e,x1:t,y1:r,x2:n,y2:o,effects:l,...c})=>{const d=s.toGeomEffectsStyle(l);return e?(0,i.jsx)(s.AnimatedLine,{animate:{x1:t,y1:r,x2:n,y2:o},style:d,...c}):(0,i.jsx)("line",{x1:t,y1:r,x2:n,y2:o,style:d,...c})},ve=({animateTransitions:e,x:t,y:r,width:n,height:o,rx:l,ry:c,effects:d,...h})=>{const v=s.toGeomEffectsStyle(d);if(!e)return(0,i.jsx)("rect",{x:t,y:r,width:n,height:o,rx:l,ry:c,style:v,...h});const y={x:t,y:r,width:n,height:o};return(0,i.jsx)(s.AnimatedRect,{animate:l===void 0||c===void 0?y:{...y,rx:l,ry:c},style:v,...h})},Se=({animateTransitions:e,d:t,source:r,effects:n,...o})=>{const l=s.toGeomEffectsStyle(n);return e?(0,i.jsx)(ot,{d:t,source:r,style:l,...o}):(0,i.jsx)("path",{d:t,style:l,...o})},tt=e=>{const{Circle:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),{symbol:n,...o}=e,l={...o,animateTransitions:r};return n!==void 0&&n!=="circle"?(0,i.jsx)("g",{style:s.toGeomEffectsStyle(e.effects),"data-testid":e["data-testid"],children:(0,i.jsx)(s.PointSymbol,{symbol:n,cx:oe(e.cx),cy:oe(e.cy),size:e.r*2,fill:e.fill??"currentColor",fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeWidth:e.strokeWidth,motion:r?{transition:s.DEFAULT_SPRING_TRANSITION,intro:!1,fadesIn:!1}:null})}):t===void 0?pe(l):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...l})})},rt=e=>{const{Line:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),n={...e,animateTransitions:r};return t===void 0?fe(n):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...n})})},nt=({cornerRadius:e,...t})=>{const{Rect:r}=s.useGeomShapes(),n=s.useGeomViewport()?.size??null,o=s.useGeomPixelsPerUnit(),{animateTransitions:l}=s.useGraphAnimation(),c={...t,animateTransitions:l,...it(e,t,n,o)};return r===void 0?ve(c):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(r,{...c})})},st=e=>{const{Path:t}=s.useGeomShapes(),{animateTransitions:r}=s.useGraphAnimation(),n={...e,animateTransitions:r};return t===void 0?Se(n):(0,i.jsx)(s.GeomShapesProvider,{children:(0,i.jsx)(t,{...n})})},oe=e=>typeof e=="number"?`${e}px`:e,ot=({d:e,source:t,...r})=>(0,i.jsx)(s.AnimatedPath,{d:s.useSvgPathMorph(e,s.DEFAULT_SPRING_TRANSITION,t),...r}),it=(e,t,r,n)=>{if(e===void 0)return{};const o=(0,m.foldGeomCornerRadii)(e);if(o===void 0)return{};const l=at(t,r,n);if(l===null)return o==="full"?{}:ae((0,m.resolveGeomCornerRadiusPx)({cornerRadius:o}),n);const c=Math.min((0,m.resolveGeomCornerRadiusPx)({cornerRadius:o,box:l}),Math.min(l.width,l.height)/2);return ae(c,n)},at=(e,t,r)=>{const n=ie(e.width,t?.width,r.x),o=ie(e.height,t?.height,r.y);return n===null||o===null?null:{width:n,height:o}},ie=(e,t,r)=>{if(typeof e=="number")return Number.isFinite(e)?Math.abs(e)*r:null;if(t===void 0)return null;const n=M(e,t);return n===null?null:Math.abs(n)},ae=(e,t)=>t.x<=0||t.y<=0?{rx:0,ry:0}:{rx:e/t.x,ry:e/t.y},ct=({symbol:e,size:t,fill:r,fillOpacity:n,stroke:o,strokeOpacity:l,strokeWidth:c})=>{const d=s.useGlyphRegistry(),h=s.useGeomRendererResolver(),v=s.useSceneSelector(P=>P.coordSystem.type),y=lt(e,h("point",v)?.symbols??[],d),b={size:t,fill:r,fillOpacity:n,stroke:o,strokeOpacity:l,strokeWidth:c};return(0,m.isGeometricSymbol)(y)?(0,i.jsx)("path",{d:(0,m.buildPointSymbolPath)(y,t),fill:r,fillOpacity:n,stroke:o,strokeOpacity:l,strokeWidth:c,strokeLinejoin:"round"}):(0,i.jsx)(s.GlyphMark,{symbol:y,glyphs:d,...b})},lt=(e,t,r)=>(0,m.isImageSymbol)(e)||t.includes(e)||!(0,m.isGeometricSymbol)(e)&&r.has(e)?e:t[0]??"circle",ut=({children:e,...t})=>{const r=s.useGeomViewport()?.size??null;return(0,i.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%",pointerEvents:"none",...t,children:(0,i.jsx)(s.GeomViewportProvider,{size:r,space:"unit",children:e})})},dt=({box:e,children:t})=>{const r=s.useGeomViewportSize(),n=r===null?null:r.width*(e.x1-e.x0),o=r===null?null:r.height*(e.y1-e.y0),l=(0,u.useMemo)(()=>n===null||o===null?null:{width:n,height:o},[n,o]);return(0,i.jsx)("svg",{x:(0,m.toPercent)(e.x0),y:(0,m.toPercent)(e.y0),width:(0,m.toPercent)(e.x1-e.x0),height:(0,m.toPercent)(e.y1-e.y0),overflow:"hidden",pointerEvents:"none",children:(0,i.jsx)(s.GeomViewportProvider,{size:l,children:t})})},mt="drqe3u0",ht="drqe3u1",gt="drqe3u2",pt="drqe3u3",B="drqe3u4",ft="drqe3u5",vt="drqe3u6",St="drqe3u7",W="drqe3u8",yt="drqe3u9",Gt="drqe3ua";var bt="drqe3uc",Et="drqe3ud",Rt="drqe3ue",Tt="drqe3uf";var xt="drqe3uh",Pt="drqe3ui",ce={enabled:"drqe3uk drqe3uj",disabled:"drqe3ul drqe3uj"},le={ran:"drqe3un drqe3um",dim:"drqe3uo drqe3um"},ye={ran:"drqe3uq drqe3up",cached:"drqe3ur drqe3up",untouched:"drqe3us drqe3up"},Ct=({width:e=440,style:t,className:r}={})=>{const{compileBus:n}=s.useGraphContext(),[o]=(0,u.useState)(()=>Le()),[l,c]=(0,u.useState)(!1),[d,h]=(0,u.useState)(m.isCompilerCachingEnabled);(0,u.useEffect)(()=>{const{recordCompile:f}=o.getState(),p=n.getLastTrigger(),S=n.getLastCompile();return p&&S&&f(p,S),n.subscribe(f)},[o,n]);const v=(0,X.useStore)(o,f=>f.lastCompile),y=(0,X.useStore)(o,f=>f.history),b=n.getCacheStats(),P=v===null&&y.length===0,N=()=>{h(f=>{const p=!f;return(0,m.setCompilerCachingEnabled)(p),p})};return(0,i.jsxs)("div",{className:(0,Q.default)(Gt,r),style:{width:e,...t},children:[(0,i.jsxs)("div",{className:mt,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:ht,children:"compile cache"}),(0,i.jsx)("div",{className:Rt,children:P?"production: stats disabled":v?`last: ${v.label} · ${te(v.durationMs)}`:"awaiting first compile…"})]}),(0,i.jsx)("button",{type:"button",onClick:()=>c(f=>!f),className:Tt,children:l?"▾":"▴"})]}),!l&&(0,i.jsxs)("div",{className:"drqe3ub",children:[(0,i.jsxs)("button",{type:"button",onClick:N,className:d?ce.enabled:ce.disabled,"aria-pressed":d,children:["cache ",d?"enabled":"disabled"]}),(0,i.jsx)("span",{className:"drqe3ug",children:"next compile reflects this toggle"})]}),!l&&!P&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(It,{delta:v?.stages,durations:v?.stageDurationsMs,cumulative:b}),(0,i.jsx)(Nt,{entries:y})]})]})},It=({delta:e,durations:t,cumulative:r})=>(0,i.jsxs)("table",{className:gt,children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:xt,children:[(0,i.jsx)("th",{className:pt,children:"stage"}),(0,i.jsx)("th",{className:B,children:"time"}),(0,i.jsx)("th",{className:B,children:"Δ miss"}),(0,i.jsx)("th",{className:B,children:"Δ hit"}),(0,i.jsx)("th",{className:B,children:"total miss"}),(0,i.jsx)("th",{className:B,children:"total hit"})]})}),(0,i.jsx)("tbody",{children:m.COMPILER_STAGE_KEYS.map(n=>{const o=e?.[n],l=jt(o);return(0,i.jsxs)("tr",{className:bt,children:[(0,i.jsxs)("td",{className:ft,children:[(0,i.jsx)("span",{className:ye[l],"aria-hidden":!0})," ",n]}),(0,i.jsx)("td",{className:W,children:t===void 0||l==="untouched"?"—":te(t[n])}),(0,i.jsx)("td",{className:l==="ran"?le.ran:le.dim,children:o?.misses??0}),(0,i.jsx)("td",{className:W,children:o?.hits??0}),(0,i.jsx)("td",{className:W,children:r[n].misses}),(0,i.jsx)("td",{className:W,children:r[n].hits})]},n)})})]}),Nt=({entries:e})=>e.length===0?null:(0,i.jsxs)("div",{className:Et,children:[(0,i.jsx)("div",{className:Pt,children:"recent compiles"}),e.map(t=>{const r=wt(t.stages,l=>l.misses>0),n=m.COMPILER_STAGE_KEYS.length,o=r===0?"cached":"ran";return(0,i.jsxs)("div",{className:vt,children:[(0,i.jsx)("span",{className:ye[o],"aria-hidden":!0}),(0,i.jsx)("span",{className:St,title:t.label,children:t.label}),(0,i.jsxs)("span",{className:yt,children:[r,"/",n," ran · ",te(t.durationMs)]})]},t.id)})]}),jt=e=>!e||e.hits===0&&e.misses===0?"untouched":e.misses>0?"ran":"cached",wt=(e,t)=>{let r=0;for(const n of m.COMPILER_STAGE_KEYS)t(e[n])&&(r+=1);return r},te=e=>e<.1?"<0.1ms":e>=10?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`,Lt=()=>{const{history:e}=s.useGraphContext(),{stack:t,undo:r,redo:n}=e,o=(0,u.useCallback)(d=>t.subscribe(d),[t]),l=(0,u.useCallback)(()=>t.getSnapshot(),[t]),c=(0,u.useSyncExternalStore)(o,l,l);return(0,u.useMemo)(()=>({...c,undo:r,redo:n}),[c,r,n])},_t=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Dt=(e,t={})=>{const{target:r,enabled:n=!0}=t;(0,u.useEffect)(()=>{const o=kt(r);if(!n||!o)return;const l=c=>{if(!qt(c)||c.defaultPrevented||Mt(c.target))return;const d=s.resolveHistoryStep(c);if(!d)return;const h=e.current;h&&(d==="undo"?h.undo():h.redo())&&c.preventDefault()};return o.addEventListener("keydown",l),()=>o.removeEventListener("keydown",l)},[e,r,n])},kt=e=>e===void 0?window:e!==null&&"current"in e?e.current:e,qt=e=>"key"in e,Mt=e=>e instanceof HTMLInputElement?!_t.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA":!1,At=()=>{const{targetBoundaryStore:e}=s.useGraphContext();return(0,X.useStore)(e,t=>t.boundary)};exports.CanvasTextMeasurer=s.CanvasTextMeasurer;exports.DefaultFooter=s.DefaultFooter;exports.DefaultGeomCircle=pe;exports.DefaultGeomLine=fe;exports.DefaultGeomPath=Se;exports.DefaultGeomRect=ve;exports.DefaultGrid=s.DefaultGrid;exports.DefaultHeader=s.DefaultHeader;exports.DefaultSwatch=s.DefaultSwatch;exports.DefaultTooltip=s.DefaultTooltip;exports.DevToolsPanel=Ct;exports.GRAPH_MODES=s.GRAPH_MODES;exports.GeomCircle=tt;exports.GeomLine=rt;exports.GeomOverpaint=s.GeomOverpaint;exports.GeomPanelSizeProvider=s.GeomPanelSizeProvider;exports.GeomPath=st;exports.GeomRect=nt;exports.GraphErrorBoundary=ue;exports.GraphErrorPanel=Z;exports.GraphProvider=ge;exports.GraphRenderer=s.GraphRenderer;exports.GraphyBadge=s.GraphyBadge;exports.HoverProvider=s.HoverProvider;exports.IntlProvider=s.ChartIntlProvider;exports.IntroFade=s.IntroFade;exports.IntroWipeClip=s.IntroWipeClip;exports.SymbolFigure=ct;exports.TextMeasurerProvider=s.TextMeasurerProvider;exports.ThemeProvider=s.ThemeProvider;exports.UnitBoxSvg=dt;exports.UnitSpaceSvg=ut;exports.buildDotsEditOutlineShapes=s.buildDotsEditOutlineShapes;exports.createGraphyKit=Ze;exports.darkTheme=s.darkTheme;exports.defineGeomRenderer=s.defineGeomRenderer;exports.defineGlyph=s.defineGlyph;exports.getBuiltInEditOutlineShapes=s.getBuiltInEditOutlineShapes;exports.lightTheme=s.lightTheme;exports.lightenCss=s.lightenCss;exports.pruneSelection=he;exports.readPositionPixels=M;exports.readRectPixels=et;exports.resolveGraphyBadgeVariant=s.resolveGraphyBadgeVariant;exports.resolvePathStroke=s.resolvePathStroke;exports.scalePointToPanel=s.scalePointToPanel;exports.stampAxisEditTarget=s.stampAxisEditTarget;exports.stampGridEditTarget=s.stampGridEditTarget;exports.stampLegendEditTarget=s.stampLegendEditTarget;exports.useElementScreenRect=s.useElementScreenRect;exports.useFormattingLocale=s.useFormattingLocale;exports.useGeomHitTest=s.useGeomHitTest;exports.useGeomHover=s.useGeomHover;exports.useGeomPanelSize=s.useGeomPanelSize;exports.useGeomReaderTree=s.useGeomReaderTree;exports.useGeomStyleReader=s.useGeomStyleReader;exports.useGeomViewportSize=s.useGeomViewportSize;exports.useGraphAnimation=s.useGraphAnimation;exports.useGraphCommands=s.useGraphCommands;exports.useGraphHandle=s.useGraphHandle;exports.useGraphHistory=Lt;exports.useGraphHistoryShortcuts=Dt;exports.useGraphLocale=s.useGraphLocale;exports.useGraphSelection=s.useGraphSelection;exports.useGuidesTakePress=s.useGuidesTakePress;exports.useHandleScene=s.useHandleScene;exports.useHoverState=s.useHoverState;exports.usePaintDefs=s.usePaintDefs;exports.useResolvedStyle=s.useResolvedStyle;exports.useSceneSelector=s.useSceneSelector;exports.useStyleReaderTree=s.useStyleReaderTree;exports.useStyleResolver=s.useStyleResolver;exports.useTargetBoundary=At;exports.useTextMeasurer=s.useTextMeasurer;exports.vars=s.vars;
package/dist/index.d.ts CHANGED
@@ -1065,6 +1065,11 @@ export declare interface GeomRenderContract<G extends GeomName | string = string
1065
1065
  * no overpaint.
1066
1066
  */
1067
1067
  overpaintPlacement?: OverpaintPlacement;
1068
+ /**
1069
+ * Defaults to `'unmount'`. Declare `'keep'` only when a zero-length observation shows nothing (a cartesian bar):
1070
+ * a kept outline, cap or head stays on the chart.
1071
+ */
1072
+ hiddenObservations?: HiddenObservations;
1068
1073
  /**
1069
1074
  * Every point symbol the paint draws, built-in shapes and glyph names, in the order Point shape offers them. A list
1070
1075
  * also says the paint draws the host's glyphs and uploaded images, as `SymbolFigure` does; any other symbol is drawn
@@ -1411,9 +1416,10 @@ declare type GraphPhrases = typeof EN_GB;
1411
1416
  * Owns the scene for a graph and exposes it via {@link useSceneSelector}, plus a
1412
1417
  * `dispatch` for applying {@link Command}s. Both failure modes — a non-throwing compile failure and a
1413
1418
  * render-throw from a renderer component — converge on a single {@link GraphErrorBoundary} that shows
1414
- * the error in place, so a broken chart never blanks the page.
1419
+ * the error in place, so a broken chart never blanks the page. It also hosts the group-visibility store, since
1420
+ * hidden groups are a compile input.
1415
1421
  */
1416
- export declare const GraphProvider: ({ data, spec, plugins, theme, glyphs, formattingLocale: requestedFormattingLocale, handleRef, onSpecChange, onError, onWarnings, colorScheme: hostColorScheme, mode: requestedMode, children, }: GraphProviderProps) => JSX.Element;
1422
+ export declare const GraphProvider: ({ mode, ...props }: GraphProviderProps) => JSX.Element;
1417
1423
 
1418
1424
  /** Props for {@link GraphProvider}: the data and spec to compile, plus color scheme, locale and plugin wiring. */
1419
1425
  export declare interface GraphProviderProps {
@@ -1636,6 +1642,9 @@ export declare interface HeadlineSlotProps {
1636
1642
  inDonutHole?: boolean;
1637
1643
  }
1638
1644
 
1645
+ /** What happens to a hidden group's zero-length observations once a toggle settles: removed, or kept mounted. */
1646
+ export declare type HiddenObservations = 'unmount' | 'keep';
1647
+
1639
1648
  /**
1640
1649
  * The input a geom's {@link GeomRenderContract.renderHighlight} receives: the matched-subset layer plus
1641
1650
  * the full source layer (context the subset can't see, like a stack's silhouette). A superset of