From 4e64ff90c50a184b2314ac5ab90529d41cf1008f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 08:56:08 +0000 Subject: [PATCH 1/2] feat(bricks): consolidate Bricks options into a tabbed settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gather every Bricks-specific setting into one new "Bricks settings" admin subpage (Slashed_Bricks_Settings_Page), placed after Manual CSS, with the options organized in tabs: - Element names — the reBEMer default BEM-name table (carried over from the old reBEMer page), saved via read-merge-write. - Options — the Class hints toggle, moved off Plugin Settings. - Filter hooks — the Bricks filter-hook reference, folded in from the old standalone Filter Hooks page. Plugin Settings now keeps only general settings; its save path is read- merge-write so Bricks/reBEMer/Manual-CSS settings are never clobbered. reBEMer also drops the role/generic container-naming modes: layout containers are always named after their own Bricks type. Removes rebemer_container_mode from the settings store, REST allow-list, import/save paths, and editor payload, plus the container-mode selects in both the PHP page and the standalone admin SPA. Deletes class-hooks-page.php and class-rebemer-page.php; rebuilds the editor-app and standalone Bricks admin-app bundles. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01HtPN4CvQjMTdvPLALAW3GE --- CHANGELOG.md | 10 + SLASHED-for-WP/includes/class-admin.php | 32 +- .../includes/class-bricks-settings-page.php | 570 ++++++++++++++++++ SLASHED-for-WP/includes/class-hooks-page.php | 234 ------- .../includes/class-rebemer-page.php | 330 ---------- .../includes/class-rest-controller.php | 23 +- .../includes/class-tab-registry.php | 2 +- SLASHED-for-WP/includes/class-token-store.php | 6 +- .../src/components/RebemerTab.svelte | 37 +- .../bricks/assets/admin-app/app.css | 2 +- .../bricks/assets/admin-app/app.js | 29 +- .../bricks/assets/editor-app/app.js | 6 +- .../editor-app/src/components/BemPanel.svelte | 17 +- .../editor-app/src/lib/element-types.js | 83 +-- .../bricks/includes/class-editor-data.php | 7 +- SLASHED-for-WP/slashed.php | 7 +- docs/rebemer.md | 32 +- tests/element-types.test.js | 90 +-- 18 files changed, 657 insertions(+), 860 deletions(-) create mode 100644 SLASHED-for-WP/includes/class-bricks-settings-page.php delete mode 100644 SLASHED-for-WP/includes/class-hooks-page.php delete mode 100644 SLASHED-for-WP/includes/class-rebemer-page.php diff --git a/CHANGELOG.md b/CHANGELOG.md index e77ddf8f..66e8fae0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ framework version is tracked separately via the `SLASHED_*_CSS_REF` constants. ## [Unreleased] +### Changed + +- Consolidated every Bricks-specific option into one tabbed **Bricks settings** + admin subpage (Element names / Options / Filter hooks), placed after Manual + CSS. Class hints moved off Plugin Settings; the standalone Filter Hooks page + was folded into a tab. +- reBEMer now always names layout containers (section / container / div / block) + after their own Bricks type. The `role` and `generic` container-naming modes, + and the `rebemer_container_mode` setting, were removed. + ## [0.3.2] - 2026-06-20 ### Added diff --git a/SLASHED-for-WP/includes/class-admin.php b/SLASHED-for-WP/includes/class-admin.php index c81db069..30d7447f 100644 --- a/SLASHED-for-WP/includes/class-admin.php +++ b/SLASHED-for-WP/includes/class-admin.php @@ -86,20 +86,16 @@ public function handle_save() { Slashed_Settings::save( $data ); - // Save plugin behavioural settings (html_font_size, show_class_hints). - // phpcs:ignore WordPress.Security.NonceVerification.Missing + // Save general plugin behaviour (html_font_size). Read-merge-write so + // Bricks-owned settings (class hints, reBEMer names) and the Manual CSS + // mode set on their own pages are never clobbered. $allowed_font_sizes = array( '', '100', '62.5' ); // phpcs:ignore WordPress.Security.NonceVerification.Missing $raw_font_size = isset( $_POST['html_font_size'] ) ? sanitize_text_field( wp_unslash( $_POST['html_font_size'] ) ) : ''; - // phpcs:ignore WordPress.Security.NonceVerification.Missing - $raw_class_hints = isset( $_POST['show_class_hints'] ); - Slashed_Token_Store::update_plugin_settings( - array( - 'html_font_size' => in_array( $raw_font_size, $allowed_font_sizes, true ) ? $raw_font_size : '', - 'show_class_hints' => $raw_class_hints, - ) - ); + $plugin_settings = Slashed_Token_Store::get_plugin_settings(); + $plugin_settings['html_font_size'] = in_array( $raw_font_size, $allowed_font_sizes, true ) ? $raw_font_size : ''; + Slashed_Token_Store::update_plugin_settings( $plugin_settings ); wp_safe_redirect( add_query_arg( 'slashed_saved', '1', admin_url( 'admin.php?page=' . self::PAGE_SLUG ) ) @@ -122,9 +118,8 @@ public function render_page() { $local_version = Slashed_Framework_Updater::get_local_version(); $local_file_ok = file_exists( SLASHED_PATH . 'dist/slashed.' . $css_bundle . '.css' ); $update_nonce = wp_create_nonce( 'slashed_framework_update' ); - $plugin_settings = Slashed_Token_Store::get_plugin_settings(); - $html_font_size = $plugin_settings['html_font_size'] ?? ''; - $show_class_hints = ! empty( $plugin_settings['show_class_hints'] ); + $plugin_settings = Slashed_Token_Store::get_plugin_settings(); + $html_font_size = $plugin_settings['html_font_size'] ?? ''; ?> + +

+ +

+ + +
+

+

+

+ + +

+
+
+ + array( - 'label' => 'Bricks integration', - 'hooks' => array( - array( - 'name' => 'slashed_bricks/css_bundle_url', - 'description' => 'Override which CSS bundle URL is loaded on the frontend.', - 'params' => '$url (string) — The current CSS bundle URL.', - 'example' => "add_filter( 'slashed_bricks/css_bundle_url', function( \$url ) {\n // Load from a CDN instead.\n return 'https://cdn.example.com/slashed/slashed.optimal.css';\n} );", - ), - array( - 'name' => 'slashed_bricks/registered_classes', - 'description' => 'Filter the array of classes before registration with Bricks.', - 'params' => "\$classes (array) — Array of class definitions with 'name' and 'category'.", - 'example' => "add_filter( 'slashed_bricks/registered_classes', function( \$classes ) {\n // Remove state classes.\n return array_filter( \$classes, function( \$class ) {\n return \$class['category'] !== 'slashed-cat-state';\n } );\n} );", - ), - array( - 'name' => 'slashed_bricks/registered_variables', - 'description' => 'Filter the CSS variables array before registration with Bricks.', - 'params' => "\$variables (array) — Array of variable entries, each with 'id', 'name', 'value', and 'category' (a slashed-cat-* id).", - 'example' => "add_filter( 'slashed_bricks/registered_variables', function( \$variables ) {\n // Remove z-index variables.\n return array_filter( \$variables, function( \$variable ) {\n return \$variable['category'] !== 'slashed-cat-z-index';\n } );\n} );", - ), - array( - 'name' => 'slashed_bricks/variables', - 'description' => 'Filter the raw grouped variable map (category label → --sf-* names) before it is turned into Bricks entries. Lower-level than registered_variables.', - 'params' => '$variables (array) — Map of category label to array of --sf-* names.', - 'example' => "add_filter( 'slashed_bricks/variables', function( \$variables ) {\n // Drop a whole category from pickers + autocomplete.\n unset( \$variables['Z-Index'] );\n return \$variables;\n} );", - ), - array( - 'name' => 'slashed_bricks/inventory', - 'description' => 'Replace the resolved inventory wholesale. Useful for tests, custom forks of the framework, or sites that want to ship their own token list.', - 'params' => "\$inventory (array) — Array with keys 'variables', 'sf_classes', 'is_classes'.", - 'example' => "add_filter( 'slashed_bricks/inventory', function( \$inventory ) {\n \$inventory['variables'][] = '--sf-color-my-custom';\n return \$inventory;\n} );", - ), - array( - 'name' => 'slashed_bricks/inventory_local_path', - 'description' => 'Override the local CSS path the inventory parses. Return a string for a specific path, false to skip local resolution, or null (default) to use bundled candidates.', - 'params' => '$path (string|false|null) — Override path or control flag.', - 'example' => "// Use a child-theme copy of the bundle.\nadd_filter( 'slashed_bricks/inventory_local_path', function() {\n return get_stylesheet_directory() . '/assets/slashed.optimal.css';\n} );", - ), - array( - 'name' => 'slashed_bricks/show_color_swatches', - 'description' => 'Toggle the colour squares painted next to --sf-color-* entries in the Bricks variable-picker dropdown (builder-side only). Defaults to true.', - 'params' => '$show (bool) — Whether to paint the picker swatches.', - 'example' => "// Hide the variable-picker swatches.\nadd_filter( 'slashed_bricks/show_color_swatches', '__return_false' );", - ), - array( - 'name' => 'slashed_bricks/show_color_panel', - 'description' => 'Toggle the in-builder Color System Panel and its launcher pill. Defaults to true.', - 'params' => '$show (bool) — Whether to load the Color System Panel.', - 'example' => "// Hide the Color System panel.\nadd_filter( 'slashed_bricks/show_color_panel', '__return_false' );", - ), - ), - ), - ); - } - - public function render_page() { - if ( ! current_user_can( 'manage_options' ) ) { - return; - } - - $bricks_active = class_exists( 'Slashed_Settings' ) && Slashed_Settings::is_enabled( 'bricks' ); - $groups = self::get_hooks(); - ?> - - -
-

-

- -

- - $group ) : ?> - -
-
- - - - - - - -
- - -
-

-

-

- - -

-
-
- -
- -
- - */ - const BUILTIN_DEFAULTS = array( - 'heading' => 'heading', - 'text-basic' => 'text', - 'text' => 'text', - 'text-link' => 'link', - 'code' => 'code', - 'post-title' => 'title', - 'post-content' => 'content', - 'post-excerpt' => 'excerpt', - 'post-meta' => 'meta', - 'image' => 'image', - 'icon' => 'icon', - 'icon-box' => 'icon', - 'video' => 'video', - 'audio' => 'audio', - 'svg' => 'svg', - 'logo' => 'logo', - 'shape' => 'shape', - 'divider' => 'divider', - 'separator' => 'separator', - 'button' => 'button', - 'button-group' => 'buttons', - 'nav-nested' => 'nav', - 'nav-menu' => 'nav', - 'list' => 'list', - 'search' => 'search', - 'social-icons' => 'social', - 'accordion' => 'accordion', - 'accordion-nested' => 'accordion', - 'tabs' => 'tabs', - 'tabs-nested' => 'tabs', - 'slider' => 'slider', - 'slider-nested' => 'slider', - 'carousel' => 'carousel', - 'countdown' => 'countdown', - 'counter' => 'counter', - 'progress-bar' => 'progress', - 'alert' => 'alert', - 'testimonials' => 'testimonials', - 'pricing' => 'pricing', - 'team' => 'team', - 'map' => 'map', - 'google-maps' => 'map', - 'breadcrumbs' => 'breadcrumbs', - 'pagination' => 'pagination', - 'form' => 'form', - 'posts' => 'posts', - 'related-posts' => 'posts', - 'template' => 'item', - ); - - public function __construct() { - add_action( 'admin_menu', array( $this, 'register_menu' ) ); - add_action( 'admin_post_slashed_save_rebemer', array( $this, 'handle_save' ) ); - } - - public function register_menu() { - // reBEMer is a Bricks-only feature; only show it when the Bricks - // element registry is available. - if ( ! class_exists( 'Slashed_Bricks_Elements' ) || ! class_exists( 'Slashed_Admin' ) ) { - return; - } - - add_submenu_page( - \Slashed_Admin::PAGE_SLUG, - __( 'reBEMer', 'slashed' ), - __( 'reBEMer', 'slashed' ), - 'manage_options', - self::PAGE_SLUG, - array( $this, 'render_page' ) - ); - } - - /** - * All editable elements as name => human label, excluding layout - * containers, unioned with the built-in map so nothing the editor knows - * about disappears when Bricks data is momentarily unavailable. - * - * @return array - */ - private static function elements() { - $registry = class_exists( 'Slashed_Bricks_Elements' ) ? Slashed_Bricks_Elements::get_all() : array(); - $names = array_unique( array_merge( array_keys( $registry ), array_keys( self::BUILTIN_DEFAULTS ) ) ); - - $out = array(); - foreach ( $names as $name ) { - if ( in_array( $name, self::LAYOUT_CONTAINERS, true ) ) { - continue; - } - $out[ $name ] = isset( $registry[ $name ] ) ? $registry[ $name ] : ''; - } - ksort( $out ); - return $out; - } - - /** - * Built-in default BEM name for an element: the curated map value, else - * the slugified Bricks label, else 'item' — matching the editor's - * fallback chain. - * - * @param string $type Element name. - * @param string $label Human label (may be empty). - * @return string - */ - private static function default_for( $type, $label ) { - if ( isset( self::BUILTIN_DEFAULTS[ $type ] ) ) { - return self::BUILTIN_DEFAULTS[ $type ]; - } - $slug = sanitize_title( $label ); - return '' !== $slug ? $slug : 'item'; - } - - /** - * Handle the settings form submission. - */ - public function handle_save() { - if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html__( 'Insufficient permissions.', 'slashed' ) ); - } - - check_admin_referer( self::NONCE_ACTION, self::NONCE_KEY ); - - $settings = Slashed_Token_Store::get_plugin_settings(); - - // phpcs:disable WordPress.Security.NonceVerification.Missing -- covered by check_admin_referer above. - $posted_mode = isset( $_POST['rebemer_container_mode'] ) ? sanitize_key( wp_unslash( $_POST['rebemer_container_mode'] ) ) : ''; - $posted_map = ( isset( $_POST['rebemer_map'] ) && is_array( $_POST['rebemer_map'] ) ) ? wp_unslash( $_POST['rebemer_map'] ) : array(); - // phpcs:enable WordPress.Security.NonceVerification.Missing - - $settings['rebemer_container_mode'] = in_array( $posted_mode, self::CONTAINER_MODES, true ) ? $posted_mode : 'type'; - - $elements = self::elements(); - $overrides = array(); - foreach ( $posted_map as $type => $name ) { - if ( ! is_string( $type ) || ! is_string( $name ) ) { - continue; - } - $name = strtolower( trim( $name ) ); - if ( '' === $name ) { - continue; - } - // Store sparse overrides only: a value equal to the built-in - // default is the same as leaving it blank. - $label = isset( $elements[ $type ] ) ? $elements[ $type ] : ''; - if ( self::default_for( $type, $label ) === $name ) { - continue; - } - $overrides[ $type ] = $name; - } - - // Reuse the REST controller's grammar + cap sanitizer so the page and - // the API can never diverge. - $settings['rebemer_element_map'] = class_exists( 'Slashed_REST_Controller' ) - ? Slashed_REST_Controller::sanitize_rebemer_element_map( $overrides ) - : array(); - - Slashed_Token_Store::update_plugin_settings( $settings ); - - wp_safe_redirect( - add_query_arg( - array( - 'page' => self::PAGE_SLUG, - 'saved' => '1', - ), - admin_url( 'admin.php' ) - ) - ); - exit; - } - - public function render_page() { - if ( ! current_user_can( 'manage_options' ) ) { - return; - } - - $settings = Slashed_Token_Store::get_plugin_settings(); - $mode = isset( $settings['rebemer_container_mode'] ) ? (string) $settings['rebemer_container_mode'] : 'type'; - $mode = in_array( $mode, self::CONTAINER_MODES, true ) ? $mode : 'type'; - $overrides = isset( $settings['rebemer_element_map'] ) && is_array( $settings['rebemer_element_map'] ) - ? $settings['rebemer_element_map'] - : array(); - $elements = self::elements(); - $just_saved = isset( $_GET['saved'] ) && '1' === $_GET['saved']; // phpcs:ignore WordPress.Security.NonceVerification.Recommended - - $mode_labels = array( - 'type' => __( 'Element type — container, section, div… (default)', 'slashed' ), - 'role' => __( 'Smart role names — header, body, content, actions…', 'slashed' ), - 'generic' => __( 'Generic — item, item-2…', 'slashed' ), - ); - ?> -
-

- - -
-

-
- - -

- -

- -
- - - - - - - - - - - - -

-

- -

- - - - - - - - - - $label ) : ?> - - - - - - - -
- - -
- -
- -
- -

- -

-
-
- 'object', 'required' => false, ), - 'rebemer_container_mode' => array( - 'type' => 'string', - 'required' => false, - 'sanitize_callback' => 'sanitize_key', - 'validate_callback' => function ( $value ) { - return in_array( (string) $value, array( 'type', 'role', 'generic' ), true ); - }, - ), ), ), ) @@ -361,7 +353,6 @@ public function save_settings( WP_REST_Request $request ) { $manual_css_mode = $request->get_param( 'manual_css_mode' ); $configurator_url = $request->get_param( 'configurator_url' ); $rebemer_element_map = $request->get_param( 'rebemer_element_map' ); - $rebemer_container_mode = $request->get_param( 'rebemer_container_mode' ); if ( null === $html_font_size && @@ -369,8 +360,7 @@ public function save_settings( WP_REST_Request $request ) { null === $show_class_hints && null === $manual_css_mode && null === $configurator_url && - null === $rebemer_element_map && - null === $rebemer_container_mode + null === $rebemer_element_map ) { return rest_ensure_response( Slashed_Token_Store::get_plugin_settings() ); } @@ -395,11 +385,6 @@ public function save_settings( WP_REST_Request $request ) { if ( null !== $rebemer_element_map ) { $settings['rebemer_element_map'] = self::sanitize_rebemer_element_map( $rebemer_element_map ); } - if ( null !== $rebemer_container_mode ) { - $settings['rebemer_container_mode'] = in_array( (string) $rebemer_container_mode, array( 'type', 'role', 'generic' ), true ) - ? (string) $rebemer_container_mode - : 'type'; - } Slashed_Token_Store::update_plugin_settings( $settings ); return rest_ensure_response( $settings ); @@ -585,12 +570,6 @@ public function import_tokens( WP_REST_Request $request ) { $existing['rebemer_element_map'] = self::sanitize_rebemer_element_map( $raw['rebemer_element_map'] ); $settings_imported = true; } - if ( isset( $raw['rebemer_container_mode'] ) - && in_array( (string) $raw['rebemer_container_mode'], array( 'type', 'role', 'generic' ), true ) - ) { - $existing['rebemer_container_mode'] = (string) $raw['rebemer_container_mode']; - $settings_imported = true; - } if ( $settings_imported ) { Slashed_Token_Store::update_plugin_settings( $existing ); diff --git a/SLASHED-for-WP/includes/class-tab-registry.php b/SLASHED-for-WP/includes/class-tab-registry.php index bc81bf50..2e8128a5 100644 --- a/SLASHED-for-WP/includes/class-tab-registry.php +++ b/SLASHED-for-WP/includes/class-tab-registry.php @@ -51,7 +51,7 @@ public static function get_misc_sections() { * * - Variables/Classes are consolidated into Cheatsheet (search + filter toggle). * - Bundle settings moved to the PHP Plugin Settings page. - * - Hooks moved to a standalone PHP subpage (class-hooks-page.php). + * - Hooks moved to the Bricks settings PHP subpage (class-bricks-settings-page.php). * * @return array Slug → display label. */ diff --git a/SLASHED-for-WP/includes/class-token-store.php b/SLASHED-for-WP/includes/class-token-store.php index 47cd380b..b6b6cbc0 100644 --- a/SLASHED-for-WP/includes/class-token-store.php +++ b/SLASHED-for-WP/includes/class-token-store.php @@ -126,11 +126,9 @@ public static function delete_settings() { 'manual_css_mode' => true, 'configurator_url' => '', // reBEMer: sparse Bricks-type → BEM-name overrides ({} = built-in - // defaults only) and how layout containers are named by default. - // 'type' = after the Bricks type (container/section/div/block), - // 'role' = child-aware inference, 'generic' = item + numbering. + // defaults only). Layout containers are always named after their own + // Bricks type (container/section/div/block). 'rebemer_element_map' => array(), - 'rebemer_container_mode' => 'type', ); /** diff --git a/SLASHED-for-WP/integrations/bricks/admin-app/src/components/RebemerTab.svelte b/SLASHED-for-WP/integrations/bricks/admin-app/src/components/RebemerTab.svelte index 9de253c5..979aeb50 100644 --- a/SLASHED-for-WP/integrations/bricks/admin-app/src/components/RebemerTab.svelte +++ b/SLASHED-for-WP/integrations/bricks/admin-app/src/components/RebemerTab.svelte @@ -48,15 +48,8 @@ const savedMap = (meta.pluginSettings && meta.pluginSettings.rebemer_element_map) || {}; - const CONTAINER_MODES = ['type', 'role', 'generic']; - /** Sparse override map: bricksType → bemName (only entries that differ). */ let overrides = $state({ ...savedMap }); - let containerMode = $state( - CONTAINER_MODES.includes(meta.pluginSettings?.rebemer_container_mode) - ? meta.pluginSettings.rebemer_container_mode - : 'type', - ); let saving = $state(false); let status = $state(''); @@ -98,16 +91,13 @@ try { const res = await saveSettings({ rebemer_element_map: overrides, - rebemer_container_mode: containerMode, }); // Reflect the server-sanitised result so dropped/normalised entries show. if (res && typeof res === 'object' && !res.dev) { if (res.rebemer_element_map && typeof res.rebemer_element_map === 'object') { overrides = { ...res.rebemer_element_map }; } - if (res.rebemer_container_mode) containerMode = res.rebemer_container_mode; meta.pluginSettings.rebemer_element_map = { ...overrides }; - meta.pluginSettings.rebemer_container_mode = containerMode; } status = 'Saved. New defaults apply next time you open the reBEMer panel.'; } catch (e) { @@ -119,7 +109,6 @@ function resetAll() { overrides = {}; - containerMode = 'type'; status = 'Cleared — save to apply.'; error = ''; } @@ -137,22 +126,11 @@
-

- Element-type mode names each container after its own Bricks type; role - mode infers a name from a container's children; generic mode names every - container item and lets auto-numbering disambiguate. + Layout containers (section / container / + div / block) are named after their own Bricks + type and aren't listed below.

-
- -

Showing {defaults.length} elements registered in Bricks (including those added by plugins or custom code).

@@ -214,15 +192,6 @@ .small { font-size: 12px; } .rebemer-tab__group { margin-top: 18px; } - .rebemer-tab__mode { - display: flex; - flex-direction: column; - gap: 4px; - max-width: 520px; - } - .rebemer-tab__mode-label { font-weight: 600; } - .rebemer-tab__mode select { max-width: 100%; } - .rebemer-tab__table { display: flex; flex-direction: column; diff --git a/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.css b/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.css index 7975d64a..4e8efade 100644 --- a/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.css +++ b/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.css @@ -1,2 +1,2 @@ -.tab-nav.svelte-yyiz68{border-bottom:1px solid #c3c4c7;flex-wrap:wrap;gap:2px;display:flex}.tab-nav__btn.svelte-yyiz68{cursor:pointer;color:#2c3338;background:0 0;border:1px solid #0000;border-bottom:none;border-radius:4px 4px 0 0;padding:8px 14px;font-size:14px;transition:background .12s,color .12s}.tab-nav__btn.svelte-yyiz68:hover{background:#f0f0f1}.tab-nav__btn.svelte-yyiz68:focus-visible{outline-offset:-2px;outline:2px solid #2271b1}.tab-nav__btn.active.svelte-yyiz68{color:#1d2327;background:#fff;border-color:#c3c4c7;margin-bottom:-1px;font-weight:600;box-shadow:inset 0 2px #2271b1}.row.svelte-1es83p3{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.row.svelte-1es83p3:last-child{border-bottom:none}.row__label.svelte-1es83p3 label:where(.svelte-1es83p3){color:#1d2327;font-weight:500;display:block}.row__var.svelte-1es83p3{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.row__inputs.svelte-1es83p3{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row__swatch.svelte-1es83p3{border:1px solid #c3c4c7;border-radius:4px;flex-shrink:0;width:28px;height:28px}.row__hex.svelte-1es83p3{cursor:pointer;background:#fff;border:1px solid #8c8f94;border-radius:3px;width:44px;height:28px;padding:0}.row__hex-text.svelte-1es83p3{width:110px}.row__raw.svelte-1es83p3{flex:1;min-width:240px;font-family:ui-monospace,monospace}.row__toggle.svelte-1es83p3{color:#2271b1;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:12px;text-decoration:underline}.row__toggle.svelte-1es83p3:hover{color:#135e96}.advanced-section.svelte-imklo1{margin-top:24px}.advanced-section__toggle.svelte-imklo1{color:#2271b1;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:6px 0;font-size:13px;font-weight:500;display:flex}.advanced-section__toggle.svelte-imklo1:hover{text-decoration:underline}.advanced-section__body.svelte-imklo1{margin-top:12px}h2.svelte-1vle0rm{margin-top:0}.status-heading.svelte-1vle0rm,.dark-heading.svelte-1vle0rm{margin-top:24px}.hint.svelte-1vle0rm{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.hint.svelte-1vle0rm code:where(.svelte-1vle0rm){background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:11px}.rows.svelte-1vle0rm{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.rows--dark.svelte-1vle0rm{background:#f8f8fc;border-color:#e2e4e9}.dark-toggle-section.svelte-1vle0rm{background:#f6f7f7;border:1px solid #e0e0e0;border-radius:4px;margin-top:24px;padding:14px 16px}.dark-toggle-row.svelte-1vle0rm{align-items:center;gap:10px;margin-bottom:8px;display:flex}.dark-toggle-btn.svelte-1vle0rm{cursor:pointer;color:#1d2327;background:0 0;border:none;align-items:center;gap:8px;padding:0;font-size:13px;font-weight:600;display:flex}.dark-toggle-btn__track.svelte-1vle0rm{background:#c3c4c7;border-radius:10px;flex-shrink:0;width:36px;height:20px;transition:background .15s;display:inline-block;position:relative}.dark-toggle-btn.on.svelte-1vle0rm .dark-toggle-btn__track:where(.svelte-1vle0rm){background:#2271b1}.dark-toggle-btn__thumb.svelte-1vle0rm{background:#fff;border-radius:50%;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #0003}.dark-toggle-btn.on.svelte-1vle0rm .dark-toggle-btn__thumb:where(.svelte-1vle0rm){left:18px}.dark-toggle-status.svelte-1vle0rm{color:#50575e;font-size:12px}.dark-toggle-section.svelte-1vle0rm .hint:where(.svelte-1vle0rm){margin-bottom:0}.row.svelte-miyob8{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.row.svelte-miyob8:last-child{border-bottom:none}.row__label-text.svelte-miyob8{color:#1d2327;font-weight:500;display:block}.row__label.svelte-miyob8 label:where(.svelte-miyob8){color:#1d2327;font-weight:500;display:block}.row__var.svelte-miyob8{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.row__inputs.svelte-miyob8{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row__desc.svelte-miyob8{color:#50575e;flex-basis:100%;margin:4px 0 0;font-size:12px}.text.mono.svelte-j8yw6l{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.font-field.svelte-ow2kvz{flex-direction:column;gap:6px;width:420px;display:flex}.source-tabs.svelte-ow2kvz{gap:2px;display:flex}.source-tab.svelte-ow2kvz{color:#50575e;cursor:pointer;background:#f6f7f7;border:1px solid #c3c4c7;border-radius:3px;padding:3px 10px;font-size:11px;font-weight:500;line-height:1.4}.source-tab.svelte-ow2kvz:hover{background:#f0f0f1}.source-tab--active.svelte-ow2kvz{color:#fff;background:#2271b1;border-color:#2271b1}.source-tab--disabled.svelte-ow2kvz{opacity:.45;cursor:default;pointer-events:none}.font-select.svelte-ow2kvz,.font-text.svelte-ow2kvz{box-sizing:border-box;color:#1d2327;background:#fff;border:1px solid #c3c4c7;border-radius:3px;width:100%;height:30px;padding:4px 8px;font-size:13px}.font-select.svelte-ow2kvz:focus,.font-text.svelte-ow2kvz:focus{outline-offset:0;border-color:#2271b1;outline:2px solid #2271b1}.bricks-empty.svelte-ow2kvz{color:#50575e;background:#f6f7f7;border:1px dashed #c3c4c7;border-radius:3px;margin:0;padding:6px 8px;font-size:12px;line-height:1.5}.font-preview.svelte-ow2kvz{color:#1d2327;white-space:nowrap;text-overflow:ellipsis;padding:2px 0;font-size:15px;overflow:hidden}.unit.svelte-1pjh3bn{color:#50575e;font-size:12px}.typo-preview.svelte-10qc8pz{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:8px;padding:16px 20px}.typo-preview__header.svelte-10qc8pz{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.typo-preview__title.svelte-10qc8pz{color:#1d2327;margin:0;font-size:13px;font-weight:600}.typo-preview__slider-wrap.svelte-10qc8pz{color:#50575e;align-items:center;gap:8px;font-size:12px;display:flex}.typo-preview__slider.svelte-10qc8pz{cursor:pointer;accent-color:#2271b1;width:180px}.typo-preview__vw-label.svelte-10qc8pz{text-align:right;font-variant-numeric:tabular-nums;color:#1d2327;min-width:58px;font-weight:500}.typo-preview__rows.svelte-10qc8pz{flex-direction:column;gap:0;display:flex}.typo-preview__row.svelte-10qc8pz{border-bottom:1px solid #f0f0f1;grid-template-columns:52px 1fr 120px;align-items:baseline;gap:12px;padding:6px 0;display:grid;overflow:hidden}.typo-preview__row.svelte-10qc8pz:last-child{border-bottom:none}.typo-preview__step-name.svelte-10qc8pz{color:#50575e;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;font-size:11px;font-weight:600}.typo-preview__sample.svelte-10qc8pz{white-space:nowrap;text-overflow:ellipsis;color:#1d2327;line-height:1.2;overflow:hidden}.typo-preview__meta.svelte-10qc8pz{color:#787c82;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:10px}.typo-preview__group-heading.svelte-10qc8pz{color:#50575e;text-transform:uppercase;letter-spacing:.07em;border-bottom:1px solid #f0f0f1;margin:0 0 6px;padding:6px 0 4px;font-size:11px;font-weight:600}.typo-preview__rows--display.svelte-10qc8pz{border-top:2px solid #f0f0f1;margin-top:16px;padding-top:4px}.scale-gen.svelte-1y8fkhh{background:#f6f7f7;border:1px solid #c3c4c7;border-radius:4px;margin-bottom:16px;padding:14px 16px}.scale-gen__header.svelte-1y8fkhh{flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.scale-gen__title.svelte-1y8fkhh{color:#1d2327;text-transform:uppercase;letter-spacing:.06em;font-size:12px;font-weight:600}.scale-gen__hint.svelte-1y8fkhh{color:#787c82;font-size:12px}.scale-gen__controls.svelte-1y8fkhh{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px;display:flex}.scale-gen__field.svelte-1y8fkhh{flex-direction:column;gap:4px;display:flex}.scale-gen__label.svelte-1y8fkhh{color:#50575e;font-size:11px;font-weight:500}.scale-gen__field.svelte-1y8fkhh input[type=number]:where(.svelte-1y8fkhh){color:#1d2327;background:#fff;border:1px solid #8c8f94;border-radius:3px;width:68px;height:28px;padding:0 6px;font-size:13px}.scale-gen__field.svelte-1y8fkhh select:where(.svelte-1y8fkhh){color:#1d2327;cursor:pointer;background:#fff;border:1px solid #8c8f94;border-radius:3px;height:28px;padding:0 4px;font-size:12px}.scale-gen__input-wrap.svelte-1y8fkhh{align-items:center;gap:4px;display:flex}.scale-gen__unit.svelte-1y8fkhh{color:#787c82;font-size:11px}.scale-gen__preview.svelte-1y8fkhh{flex-wrap:wrap;gap:4px 12px;margin-bottom:12px;display:flex}.scale-gen__step.svelte-1y8fkhh{color:#50575e;gap:4px;font-family:ui-monospace,monospace;font-size:11px;display:flex}.scale-gen__step.display.svelte-1y8fkhh{color:#2271b1}.scale-gen__step-name.svelte-1y8fkhh{min-width:52px;font-weight:600}.scale-gen__step-val.svelte-1y8fkhh{color:#787c82}.scale-gen__footer.svelte-1y8fkhh{justify-content:flex-end;display:flex}.scale-gen__apply.svelte-1y8fkhh{color:#fff;cursor:pointer;background:#2271b1;border:none;border-radius:3px;padding:6px 14px;font-size:13px}.scale-gen__apply.svelte-1y8fkhh:hover{background:#135e96}h2.svelte-743nsg{margin-top:0}.group-heading.svelte-743nsg{margin-top:24px}.hint.svelte-743nsg{color:#50575e;max-width:720px;margin-bottom:16px}.hint.svelte-743nsg code:where(.svelte-743nsg){background:#f0f0f1;border-radius:3px;padding:1px 5px;font-size:90%}.rows.svelte-743nsg{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.size-row.svelte-743nsg{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.size-row.svelte-743nsg:last-child{border-bottom:none}.size-row__name.svelte-743nsg{color:#1d2327;font-weight:500;display:block}.size-row__var.svelte-743nsg{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.size-row__inputs.svelte-743nsg{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.size-row__inputs.svelte-743nsg .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.size-row__inputs.svelte-743nsg .row__label-text,.size-row__inputs.svelte-743nsg .row__label label{color:#50575e;font-size:12px;font-weight:400}.spacing-preview.svelte-11lwg9t{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:16px;padding:16px 20px}.spacing-preview__header.svelte-11lwg9t{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.spacing-preview__title.svelte-11lwg9t{color:#1d2327;margin:0;font-size:13px;font-weight:600}.spacing-preview__slider-wrap.svelte-11lwg9t{color:#50575e;align-items:center;gap:8px;font-size:12px;display:flex}.spacing-preview__slider.svelte-11lwg9t{cursor:pointer;accent-color:#2271b1;width:180px}.spacing-preview__vw-label.svelte-11lwg9t{text-align:right;font-variant-numeric:tabular-nums;color:#1d2327;min-width:58px;font-weight:500}.spacing-preview__rows.svelte-11lwg9t{flex-direction:column;gap:6px;display:flex}.spacing-preview__row.svelte-11lwg9t{grid-template-columns:160px 1fr 70px;align-items:center;gap:12px;display:grid}.spacing-preview__token.svelte-11lwg9t{color:#50575e;white-space:nowrap;font-family:monospace;font-size:11px}.spacing-preview__bar-wrap.svelte-11lwg9t{background:#f0f0f1;border-radius:2px;height:16px;overflow:hidden}.spacing-preview__bar.svelte-11lwg9t{background:#2271b1;border-radius:2px;min-width:2px;height:100%;transition:width 80ms}.spacing-preview__value.svelte-11lwg9t{color:#787c82;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.spacing-preview__card-section.svelte-11lwg9t{border-top:1px solid #e9eaeb;margin-top:20px;padding-top:16px}.spacing-preview__card-label.svelte-11lwg9t{color:#50575e;margin:0 0 10px;font-size:12px;font-weight:600}.spacing-preview__card.svelte-11lwg9t{background:#fff;border:1px solid #c3c4c7;border-radius:6px;flex-direction:column;max-width:320px;display:flex;box-shadow:0 1px 4px #00000012}.spacing-preview__card-row.svelte-11lwg9t{align-items:center;display:flex}.spacing-preview__card-avatar.svelte-11lwg9t{background:#2271b1;border-radius:50%;flex-shrink:0;width:32px;height:32px}.spacing-preview__card-meta.svelte-11lwg9t{flex-direction:column;gap:2px;display:flex}.spacing-preview__card-title.svelte-11lwg9t{color:#1d2327;font-size:13px;font-weight:600;line-height:1.2}.spacing-preview__card-sub.svelte-11lwg9t{color:#787c82;font-variant-numeric:tabular-nums;font-size:11px}.spacing-preview__card-body.svelte-11lwg9t{color:#50575e;font-variant-numeric:tabular-nums;border-top:1px dashed #e9eaeb;border-bottom:1px dashed #e9eaeb;padding:8px 0;font-size:12px;line-height:1.5}.spacing-preview__card-footer.svelte-11lwg9t{flex-wrap:wrap;align-items:center;display:flex}.spacing-preview__card-tag.svelte-11lwg9t{color:#50575e;white-space:nowrap;background:#f0f0f1;border-radius:3px;padding:2px 8px;font-size:10px;font-weight:600}.spacing-preview__card-cta.svelte-11lwg9t{color:#fff;background:#2271b1;border-radius:3px;margin-left:auto;padding:4px 10px;font-size:11px;font-weight:500}h2.svelte-1sn1epc{margin-top:0}.group-heading.svelte-1sn1epc{margin-top:24px}.hint.svelte-1sn1epc{color:#50575e;max-width:720px;margin-bottom:16px}.hint.svelte-1sn1epc code:where(.svelte-1sn1epc){background:#f0f0f1;border-radius:3px;padding:1px 5px;font-size:90%}.rows.svelte-1sn1epc{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.size-row.svelte-1sn1epc{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.size-row.svelte-1sn1epc:last-child{border-bottom:none}.size-row__name.svelte-1sn1epc{color:#1d2327;font-weight:500;display:block}.size-row__var.svelte-1sn1epc{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.size-row__inputs.svelte-1sn1epc{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.size-row__inputs.svelte-1sn1epc .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.size-row__inputs.svelte-1sn1epc .row__label-text,.size-row__inputs.svelte-1sn1epc .row__label label{color:#50575e;font-size:12px;font-weight:400}.range.svelte-cifrt1{accent-color:#2271b1;flex:1;min-width:160px;max-width:320px}.number.svelte-cifrt1{width:90px}.unit.svelte-cifrt1{color:#50575e;font-size:12px}.select.svelte-r7dp44{min-width:160px}h2.svelte-ieamrv{margin-top:0}.group-heading.svelte-ieamrv{margin-top:24px}.hint.svelte-ieamrv{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.rows.svelte-ieamrv{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.radius-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-wrap:wrap;gap:16px;margin-top:12px;padding:16px;display:flex}.radius-preview__item.svelte-ieamrv{flex-direction:column;align-items:center;gap:6px;display:flex}.radius-preview__swatch.svelte-ieamrv{background:#2271b1;width:40px;height:40px}.radius-preview__label.svelte-ieamrv{color:#50575e;text-align:center;font-size:10px}@keyframes svelte-ieamrv-slashed-mp-fill{0%{width:0}50%{width:100%}to{width:0}}.motion-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-direction:column;gap:8px;margin-top:12px;padding:16px;display:flex}.motion-preview__item.svelte-ieamrv{grid-template-columns:60px 1fr 56px;align-items:center;gap:10px;display:grid}.motion-preview__label.svelte-ieamrv{color:#50575e;text-align:right;font-size:11px;font-weight:600}.motion-preview__track.svelte-ieamrv{background:#f0f0f1;border-radius:3px;height:6px;overflow:hidden}.motion-preview__fill.svelte-ieamrv{background:#2271b1;border-radius:3px;height:100%;animation:ease-in-out infinite svelte-ieamrv-slashed-mp-fill}.motion-preview__ms.svelte-ieamrv{color:#8c8f94;text-align:right;font-variant-numeric:tabular-nums;font-size:11px}.focus-ring-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;align-items:center;gap:12px;margin-top:12px;padding:16px;display:flex}.focus-ring-preview__btn.svelte-ieamrv{color:#1d2327;cursor:pointer;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:4px;padding:7px 16px;font-size:13px}.focus-ring-preview__btn.svelte-ieamrv:focus-visible{outline-width:var(--fp-width,2px);outline-offset:var(--fp-offset,2px);outline-style:var(--fp-style,solid);outline-color:#2271b1}.focus-ring-preview__desc.svelte-ieamrv{color:#50575e;font-family:monospace;font-size:12px}.shadow-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-wrap:wrap;gap:24px;margin-top:12px;padding:20px 16px;display:flex}.shadow-preview__item.svelte-ieamrv{flex-direction:column;align-items:center;gap:10px;display:flex}.shadow-preview__card.svelte-ieamrv{color:#50575e;background:#fff;border:1px solid #f0f0f1;border-radius:4px;justify-content:center;align-items:center;width:60px;height:60px;font-size:11px;font-weight:600;display:flex}h2.svelte-19399h6{margin-top:0}.hint.svelte-19399h6{color:#50575e;max-width:720px;margin-bottom:20px}.card.svelte-19399h6{border:1px solid #c3c4c7;border-radius:4px;margin-bottom:16px;padding:16px 20px}.card--info.svelte-19399h6{background:#f6f7f7}.card.svelte-19399h6 h3:where(.svelte-19399h6){margin:0 0 6px;font-size:14px}.card-desc.svelte-19399h6{color:#50575e;max-width:640px;margin:0 0 12px;font-size:13px}.action-row.svelte-19399h6{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.btn.svelte-19399h6{cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:13px;font-weight:500}.btn.svelte-19399h6:disabled{opacity:.6;cursor:not-allowed}.btn--primary.svelte-19399h6{color:#fff;background:#2271b1}.btn--primary.svelte-19399h6:hover:not(:disabled){background:#135e96}.btn--secondary.svelte-19399h6{color:#2c3338;background:#f0f0f1;border:1px solid #8c8f94}.btn--secondary.svelte-19399h6:hover:not(:disabled){background:#e0e0e0}.file-input.svelte-19399h6{font-size:13px}.css-export.svelte-19399h6{border-top:1px solid #e9eaeb;margin-top:16px;padding-top:14px}.css-export__head.svelte-19399h6{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.css-export__title.svelte-19399h6{color:#1d2327;font-size:13px;font-weight:600}.seg.svelte-19399h6{border:1px solid #8c8f94;border-radius:4px;display:inline-flex;overflow:hidden}.seg__btn.svelte-19399h6{color:#50575e;cursor:pointer;background:#f0f0f1;border:none;padding:5px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.seg__btn.svelte-19399h6+.seg__btn:where(.svelte-19399h6){border-left:1px solid #8c8f94}.seg__btn--on.svelte-19399h6{color:#fff;background:#2271b1}.css-export__code.svelte-19399h6{color:#2c3338;white-space:pre;background:#f6f7f7;border:1px solid #e9eaeb;border-radius:4px;max-height:220px;margin:12px 0 0;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto}.status.svelte-19399h6{font-size:13px;font-weight:500}.status--ok.svelte-19399h6{color:#00a32a}.status--err.svelte-19399h6{color:#d63638}.steps.svelte-19399h6{color:#2c3338;margin:8px 0 0;padding-left:20px;font-size:13px;line-height:1.6}.steps.svelte-19399h6 li:where(.svelte-19399h6){margin-bottom:8px}.steps.svelte-19399h6 li:where(.svelte-19399h6):last-child{margin-bottom:0}code.svelte-19399h6{background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:12px}.cheatsheet.svelte-osej3t{flex-direction:column;gap:16px;display:flex}.cheatsheet__header.svelte-osej3t h2:where(.svelte-osej3t){margin:0;font-size:18px}.cheatsheet__header-top.svelte-osej3t{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px;display:flex}.cheatsheet__bundle-pill.svelte-osej3t{color:#50575e;white-space:nowrap;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:3px;padding:2px 8px;font-size:12px}.cheatsheet__settings-link.svelte-osej3t{color:#2271b1;text-decoration:none}.cheatsheet__settings-link.svelte-osej3t:hover{text-decoration:underline}.cheatsheet__counts.svelte-osej3t{color:#50575e;margin:0;font-size:13px}.cheatsheet__controls.svelte-osej3t{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.cheatsheet__search.svelte-osej3t{border:1px solid #c3c4c7;border-radius:4px;flex:1;min-width:200px;padding:6px 10px;font-size:13px}.cheatsheet__search.svelte-osej3t:focus{border-color:#2271b1;outline:none;box-shadow:0 0 0 1px #2271b1}.cheatsheet__view-toggle.svelte-osej3t{gap:0;display:flex}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t){cursor:pointer;color:#50575e;background:#fff;border:1px solid #c3c4c7;padding:5px 12px;font-size:12px}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):first-child{border-radius:3px 0 0 3px}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):last-child{border-radius:0 3px 3px 0}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):not(:first-child){border-left:none}.cheatsheet__view-toggle.svelte-osej3t button.active:where(.svelte-osej3t){color:#fff;background:#2271b1;border-color:#2271b1}.cheatsheet__section.svelte-osej3t{flex-direction:column;gap:8px;display:flex}.cheatsheet__section-title.svelte-osej3t{border-bottom:1px solid #e2e4e7;margin:8px 0 0;padding-bottom:6px;font-size:15px}.cheatsheet__group.svelte-osej3t{border:1px solid #e2e4e7;border-radius:4px;overflow:hidden}.cheatsheet__group-header.svelte-osej3t{cursor:pointer;background:#f6f7f7;flex-wrap:wrap;align-items:baseline;gap:10px;padding:8px 12px;font-size:13px;display:flex}.cheatsheet__group-header.svelte-osej3t::-webkit-details-marker{margin-right:4px}.cheatsheet__group-desc.svelte-osej3t{color:#646970;font-size:12px;font-weight:400}.cheatsheet__list.svelte-osej3t{margin:0;padding:0;list-style:none}.cheatsheet__item.svelte-osej3t{border-top:1px solid #f0f0f1;align-items:baseline;gap:12px;padding:5px 12px;font-size:12px;line-height:1.5;display:flex}.cheatsheet__item.svelte-osej3t:first-child{border-top:1px solid #e2e4e7}.cheatsheet__name.svelte-osej3t{color:#1e1e1e;white-space:nowrap;background:#f0f0f1;border-radius:3px;flex-shrink:0;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:11.5px}.cheatsheet__desc.svelte-osej3t{color:#50575e;font-size:12px}.cheatsheet__empty.svelte-osej3t{text-align:center;color:#646970;padding:32px 16px;font-style:italic}.wcag-probe.svelte-1n4yog1{visibility:hidden;pointer-events:none;width:0;height:0;position:absolute;overflow:hidden}h2.svelte-1n4yog1{margin-top:0}h3.svelte-1n4yog1{margin:0 0 8px;font-size:14px}.grid-heading.svelte-1n4yog1{margin:24px 0 8px}.hint.svelte-1n4yog1{color:#50575e;max-width:760px;margin-bottom:16px}.hint.svelte-1n4yog1 strong:where(.svelte-1n4yog1){color:#1d2327}.head.svelte-1n4yog1{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.mode-toggle.svelte-1n4yog1{border:1px solid #c3c4c7;border-radius:4px;flex-shrink:0;display:flex;overflow:hidden}.mode-btn.svelte-1n4yog1{cursor:pointer;color:#50575e;background:#fff;border:none;padding:5px 12px;font-size:12px}.mode-btn.svelte-1n4yog1+.mode-btn:where(.svelte-1n4yog1){border-left:1px solid #c3c4c7}.mode-btn.active.svelte-1n4yog1{color:#fff;background:#2271b1}.checker.svelte-1n4yog1{grid-template-columns:1fr auto;align-items:stretch;gap:16px;margin-bottom:8px;display:grid}.checker__controls.svelte-1n4yog1{align-items:flex-end;gap:10px;display:flex}.checker__field.svelte-1n4yog1{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.checker__field.svelte-1n4yog1 span:where(.svelte-1n4yog1){color:#50575e;font-size:12px}.checker__field.svelte-1n4yog1 select:where(.svelte-1n4yog1){color:#1d2327;background:#fff;border:1px solid #8c8f94;border-radius:4px;width:100%;padding:6px 9px;font-size:13px}.swap-btn.svelte-1n4yog1{cursor:pointer;color:#1d2327;background:#f6f7f7;border:1px solid #c3c4c7;border-radius:4px;align-self:flex-end;padding:5px 10px;font-size:16px}.swap-btn.svelte-1n4yog1:hover{background:#f0f0f1}.result.svelte-1n4yog1{border:1px solid #0000001f;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:190px;padding:16px;display:flex}.result__sample.svelte-1n4yog1{font-size:48px;font-weight:700;line-height:1}.result__ratio.svelte-1n4yog1{color:#1d2327;background:#ffffffd1;border-radius:3px;padding:2px 8px;font-size:22px;font-weight:700}.result__badges.svelte-1n4yog1{flex-direction:column;gap:4px;width:100%;display:flex}.result__badge-row.svelte-1n4yog1{background:#ffffffd1;border-radius:3px;justify-content:space-between;align-items:center;gap:8px;padding:3px 8px;display:flex}.badge-label.svelte-1n4yog1{color:#50575e;font-size:11px}.result__thresholds.svelte-1n4yog1{color:#50575e;text-align:center;background:#ffffffc7;border-radius:3px;padding:2px 6px;font-size:10px}.result__empty.svelte-1n4yog1{color:#787c82;text-align:center;font-size:13px}.badge.svelte-1n4yog1{white-space:nowrap;border-radius:3px;padding:1px 6px;font-size:11px;font-weight:700}.badge--aaa.svelte-1n4yog1{color:#fff;background:#00a32a}.badge--aa.svelte-1n4yog1{color:#fff;background:#2271b1}.badge--aa-large.svelte-1n4yog1{color:#fff;background:#dba617}.badge--fail.svelte-1n4yog1{color:#fff;background:#d63638}.badge--neutral.svelte-1n4yog1{color:#50575e;background:#f0f0f1;border:1px solid #c3c4c7}.grid-wrap.svelte-1n4yog1{margin-bottom:12px;overflow-x:auto}.contrast-grid.svelte-1n4yog1{border-collapse:collapse;font-size:11px}.grid-corner.svelte-1n4yog1{width:28px;height:28px}.grid-col-header.svelte-1n4yog1{text-align:center;color:#50575e;padding:4px 6px;font-weight:500}.grid-row-header.svelte-1n4yog1{text-align:right;color:#50575e;white-space:nowrap;padding:4px 10px 4px 4px;font-weight:500}.grid-lbl.svelte-1n4yog1{margin-top:3px;font-size:10px;display:block}.grid-swatch.svelte-1n4yog1{border:1px solid #0000001f;border-radius:3px;width:22px;height:22px;margin:0 auto;display:block}.grid-cell.svelte-1n4yog1{text-align:center;vertical-align:middle;color:#1a1a1a;cursor:pointer;border:1px solid #0000000f;width:56px;height:38px;font-weight:700}.grid-cell--na.svelte-1n4yog1{color:#a7aaad;cursor:default;background:#f0f0f1}.grid-cell--aaa.svelte-1n4yog1{background:#d8f5e0}.grid-cell--aa.svelte-1n4yog1{background:#d8e9f7}.grid-cell--aa-large.svelte-1n4yog1{background:#fdf2d0}.grid-cell--fail.svelte-1n4yog1{background:#fde8e8}.grid-cell--active.svelte-1n4yog1{outline-offset:-2px;outline:2px solid #1d2327}.grid-cell.svelte-1n4yog1:hover:not(.grid-cell--na){filter:brightness(.96)}.legend.svelte-1n4yog1{color:#50575e;flex-wrap:wrap;gap:16px;font-size:12px;display:flex}.legend-item.svelte-1n4yog1{align-items:center;gap:5px;display:flex}.legend-dot.svelte-1n4yog1{border-radius:2px;width:12px;height:12px;display:inline-block}.legend-dot--aaa.svelte-1n4yog1{background:#d8f5e0;border:1px solid #00a32a}.legend-dot--aa.svelte-1n4yog1{background:#d8e9f7;border:1px solid #2271b1}.legend-dot--aa-large.svelte-1n4yog1{background:#fdf2d0;border:1px solid #dba617}.legend-dot--fail.svelte-1n4yog1{background:#fde8e8;border:1px solid #d63638}.usage.svelte-1n4yog1{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:12px;display:grid}.usage__chip.svelte-1n4yog1{border:1px solid #0000001f;border-radius:6px;align-items:center;gap:8px;min-height:52px;padding:12px;display:flex}.usage__aa.svelte-1n4yog1{font-size:20px;font-weight:700;line-height:1}.usage__role.svelte-1n4yog1{opacity:.92;flex:1;font-size:12px}.optimizer.svelte-1n4yog1{border-top:1px solid #e2e4e7;margin-top:28px;padding-top:20px}.optimizer__heading.svelte-1n4yog1{margin:0 0 6px;font-size:15px}.locks.svelte-1n4yog1{flex-wrap:wrap;gap:8px;margin:0 0 14px;display:flex}.lock.svelte-1n4yog1{color:#50575e;cursor:pointer;background:#fff;border:1px solid #c3c4c7;border-radius:4px;align-items:center;gap:7px;padding:6px 10px;font-size:12px;transition:border-color .12s,color .12s,background .12s;display:inline-flex}.lock.svelte-1n4yog1:hover{color:#1d2327}.lock--on.svelte-1n4yog1{color:#1d2327;background:#f0f6fb;border-color:#2271b1;font-weight:600}.lock__ico.svelte-1n4yog1{font-size:13px;line-height:1}.lock__sw.svelte-1n4yog1{border:1px solid #0000002e;border-radius:4px;width:16px;height:16px}.optimizer__btn.svelte-1n4yog1{color:#fff;cursor:pointer;background:#2271b1;border:none;border-radius:4px;padding:8px 16px;font-size:13px;font-weight:500}.optimizer__btn.svelte-1n4yog1:hover:not(:disabled){background:#135e96}.optimizer__btn.svelte-1n4yog1:disabled{opacity:.6;cursor:not-allowed}.optimizer__results.svelte-1n4yog1{border:1px solid #c3c4c7;border-radius:6px;max-width:580px;margin-top:16px;overflow:hidden}.optimizer__row.svelte-1n4yog1{background:#fff;border-bottom:1px solid #e2e4e7;align-items:center;gap:12px;padding:10px 14px;display:flex}.optimizer__row.svelte-1n4yog1:last-of-type{border-bottom:none}.optimizer__row--warn.svelte-1n4yog1{opacity:.7}.optimizer__swatch.svelte-1n4yog1{border:1px solid #0000001f;border-radius:4px;flex-shrink:0;width:36px;height:36px}.optimizer__info.svelte-1n4yog1{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.optimizer__info.svelte-1n4yog1 strong:where(.svelte-1n4yog1){font-size:13px}.optimizer__info.svelte-1n4yog1 span:where(.svelte-1n4yog1){color:#50575e;font-size:12px}.optimizer__value.svelte-1n4yog1{color:#1e1e1e;white-space:nowrap;text-overflow:ellipsis;background:#f0f0f1;border-radius:3px;max-width:220px;padding:1px 5px;font-size:11px;display:inline-block;overflow:hidden}.optimizer__actions.svelte-1n4yog1{background:#f6f7f7;border-top:1px solid #e2e4e7;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;display:flex}.optimizer__apply-btn.svelte-1n4yog1{color:#fff;cursor:pointer;background:#00a32a;border:none;border-radius:4px;padding:7px 14px;font-size:13px;font-weight:500}.optimizer__apply-btn.svelte-1n4yog1:hover:not(:disabled){background:#007017}.optimizer__apply-btn.svelte-1n4yog1:disabled{opacity:.6;cursor:not-allowed}.optimizer__dismiss-btn.svelte-1n4yog1{color:#50575e;cursor:pointer;background:0 0;border:1px solid #c3c4c7;border-radius:4px;padding:7px 12px;font-size:13px}.optimizer__dismiss-btn.svelte-1n4yog1:hover:not(:disabled){background:#f0f0f1}.optimizer__status.svelte-1n4yog1{font-size:13px;font-weight:500}.optimizer__status--ok.svelte-1n4yog1{color:#00a32a}h2.svelte-1muixbu{margin-top:0}.group-heading.svelte-1muixbu{margin-top:24px}.hint.svelte-1muixbu{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.hint.svelte-1muixbu code:where(.svelte-1muixbu){background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:11px}.rows.svelte-1muixbu{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.pair-row.svelte-1muixbu{border-bottom:1px solid #f0f0f1;grid-template-columns:160px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.pair-row.svelte-1muixbu:last-child{border-bottom:none}.pair-row__label.svelte-1muixbu{color:#1d2327;font-size:13px;font-weight:500}.pair-row__inputs.svelte-1muixbu{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.pair-row__inputs.svelte-1muixbu .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.pair-row__inputs.svelte-1muixbu .row__label-text,.pair-row__inputs.svelte-1muixbu .row__label label{color:#50575e;font-size:12px;font-weight:400}.rebemer-tab__intro.svelte-4f2ow1 h2:where(.svelte-4f2ow1){margin:0 0 4px}.muted.svelte-4f2ow1{color:#50575e}.small.svelte-4f2ow1{font-size:12px}.rebemer-tab__group.svelte-4f2ow1{margin-top:18px}.rebemer-tab__mode.svelte-4f2ow1{flex-direction:column;gap:4px;max-width:520px;display:flex}.rebemer-tab__mode-label.svelte-4f2ow1{font-weight:600}.rebemer-tab__mode.svelte-4f2ow1 select:where(.svelte-4f2ow1){max-width:100%}.rebemer-tab__table.svelte-4f2ow1{border:1px solid #dcdcde;border-radius:5px;flex-direction:column;max-width:520px;display:flex;overflow:hidden}.rebemer-tab__row.svelte-4f2ow1{border-top:1px solid #f0f0f1;grid-template-columns:1fr 1fr;align-items:center;gap:12px;padding:6px 12px;display:grid}.rebemer-tab__row.svelte-4f2ow1:first-child{border-top:none}.rebemer-tab__row--head.svelte-4f2ow1{text-transform:uppercase;letter-spacing:.02em;color:#50575e;background:#f6f7f7;font-size:12px;font-weight:600}.rebemer-tab__type.svelte-4f2ow1{color:#1d2327;font-family:ui-monospace,monospace;font-size:12px}.rebemer-tab__label.svelte-4f2ow1{color:#646970;font-size:11px;display:block}.rebemer-tab__input.svelte-4f2ow1{align-items:center;gap:6px;display:flex}.rebemer-tab__input.svelte-4f2ow1 input:where(.svelte-4f2ow1){width:100%;font-family:ui-monospace,monospace}.rebemer-tab__input.svelte-4f2ow1 input.invalid:where(.svelte-4f2ow1){border-color:#d63638;box-shadow:0 0 0 1px #d63638}.rebemer-tab__revert.svelte-4f2ow1{cursor:pointer;color:#2271b1;background:0 0;border:none;padding:2px 4px;font-size:14px;line-height:1}.rebemer-tab__footer.svelte-4f2ow1{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.rebemer-tab__actions.svelte-4f2ow1{gap:8px;display:flex}.rebemer-tab__msg--error.svelte-4f2ow1{color:#d63638}.rebemer-tab__msg--ok.svelte-4f2ow1{color:#2271b1}.slashed-preview.svelte-g79qke{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:8px;padding:20px;transition:background .2s,color .2s}.slashed-preview.is-dark.svelte-g79qke{background:#1d2327;border-color:#3c434a}.slashed-preview__header.svelte-g79qke{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.slashed-preview__header.svelte-g79qke h3:where(.svelte-g79qke){color:#1d2327;margin:0}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__header:where(.svelte-g79qke) h3:where(.svelte-g79qke){color:#f0f0f1}.slashed-preview__mode-toggle.svelte-g79qke{border:1px solid #c3c4c7;border-radius:4px;display:flex;overflow:hidden}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-toggle:where(.svelte-g79qke){border-color:#3c434a}.slashed-preview__mode-btn.svelte-g79qke{cursor:pointer;color:#50575e;background:0 0;border:none;padding:4px 10px;font-size:12px;line-height:1.4}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-btn:where(.svelte-g79qke){color:#a7aaad}.slashed-preview__mode-btn.active.svelte-g79qke{color:#fff;background:#2271b1}.slashed-preview__mode-btn.svelte-g79qke+.slashed-preview__mode-btn:where(.svelte-g79qke){border-left:1px solid #c3c4c7}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-btn:where(.svelte-g79qke)+.slashed-preview__mode-btn:where(.svelte-g79qke){border-left-color:#3c434a}.sf-canvas.svelte-g79qke{background:var(--c-bg,#fff);color:var(--c-text,#1d2327);border:1px solid var(--c-border,#e2e2e2);border-radius:var(--preview-radius-m,8px);flex-direction:column;gap:20px;padding:18px;display:flex}.sf-block.svelte-g79qke{margin:0}.sf-eyebrow.svelte-g79qke{letter-spacing:.08em;text-transform:uppercase;color:var(--c-text-muted,#787c82);margin:0 0 8px;font-size:10px;font-weight:700}.sf-heading.svelte-g79qke{font-family:var(--sf-font-heading,system-ui, sans-serif);color:var(--c-text,#1d2327);margin:0 0 8px;font-size:20px;font-weight:700;line-height:1.25}.sf-body.svelte-g79qke{font-family:var(--sf-font-body,system-ui, sans-serif);color:var(--c-text-secondary,#50575e);margin:0 0 6px;font-size:13px;line-height:1.55}.sf-body.svelte-g79qke code:where(.svelte-g79qke){background:var(--c-inset,#7f7f7f1f);color:var(--c-text,inherit);border-radius:3px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.sf-muted.svelte-g79qke{color:var(--c-text-muted,#787c82);margin:0;font-size:12px}.sf-link.svelte-g79qke{color:var(--c-link,#2271b1);text-underline-offset:2px;text-decoration:underline}.sf-surfaces.svelte-g79qke{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.sf-surface-tile.svelte-g79qke{border:1px solid var(--c-border,#ddd);border-radius:var(--preview-radius-s,4px);height:54px;box-shadow:var(--preview-shadow);align-items:flex-end;padding:6px;display:flex}.sf-surface-tile__label.svelte-g79qke{color:var(--c-text-secondary,#50575e);font-size:10px;font-weight:600}.sf-swatches.svelte-g79qke{flex-wrap:wrap;gap:8px;display:flex}.sf-swatch.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border:1px solid var(--c-border-subtle,#00000014);justify-content:center;align-items:flex-end;width:52px;height:52px;padding:3px;font-size:9px;font-weight:600;display:flex}.sf-buttons.svelte-g79qke{flex-wrap:wrap;gap:8px;display:flex}.sf-btn.svelte-g79qke{border-radius:var(--preview-radius-s,4px);cursor:default;border:none;align-items:center;padding:7px 14px;font-size:13px;font-weight:600;line-height:1.2;display:inline-flex}.sf-btn--outline.svelte-g79qke{border:1.5px solid;background:0 0!important}.sf-btn--ghost.svelte-g79qke{border:none;background:0 0!important}.sf-btn--sm.svelte-g79qke{padding:4px 10px;font-size:12px}.sf-alerts.svelte-g79qke{flex-direction:column;gap:6px;display:flex}.sf-alert.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border-inline-start:3px solid;align-items:center;gap:10px;padding:7px 10px;font-size:12px;display:flex}.sf-alert__text.svelte-g79qke{color:var(--c-text,inherit)}.sf-badge.svelte-g79qke{border-radius:var(--preview-radius-l,16px);white-space:nowrap;align-items:center;padding:2px 8px;font-size:10px;font-weight:700;display:inline-flex}.sf-card.svelte-g79qke{border:1px solid var(--c-border,#e9eaeb);border-radius:var(--preview-radius-m,8px);background:var(--c-surface,#fff);box-shadow:var(--preview-shadow);overflow:hidden}.sf-card__accent.svelte-g79qke{height:4px}.sf-card__body.svelte-g79qke{flex-direction:column;gap:10px;padding:14px 16px;display:flex}.sf-card__top.svelte-g79qke{align-items:center;gap:10px;display:flex}.sf-card__avatar.svelte-g79qke{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:flex}.sf-card__title.svelte-g79qke{font-family:var(--sf-font-heading,system-ui, sans-serif);color:var(--c-text,#1d2327);margin:0;font-size:14px;font-weight:600;line-height:1.3}.sf-card__sub.svelte-g79qke{color:var(--c-text-muted,#787c82);margin:0;font-size:11px;line-height:1.3}.sf-card__top.svelte-g79qke .sf-badge:where(.svelte-g79qke){margin-left:auto}.sf-card__text.svelte-g79qke{font-family:var(--sf-font-body,system-ui, sans-serif);color:var(--c-text-secondary,#50575e);margin:0;font-size:12px;line-height:1.5}.sf-card__footer.svelte-g79qke{border-top:1px solid var(--c-border-subtle,#f0f0f1);flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;display:flex}.sf-card__footer.svelte-g79qke .sf-btn--sm:where(.svelte-g79qke){margin-left:auto}.sf-field.svelte-g79qke{flex-direction:column;gap:5px;max-width:320px;display:flex}.sf-field__label.svelte-g79qke{color:var(--c-text-secondary,#50575e);font-size:11px;font-weight:600}.sf-field__input.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border:1px solid var(--c-border,#c3c4c7);background:var(--c-surface,#fff);color:var(--c-text,#1d2327);padding:7px 10px;font-size:13px}.sf-field__input.svelte-g79qke::placeholder{color:var(--c-text-muted,#9a9da1);opacity:.8}.slashed-preview__caption.svelte-g79qke{color:#50575e;border-top:1px solid #e9eaeb;margin-top:16px;padding-top:12px;font-size:12px}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__caption:where(.svelte-g79qke){color:#a7aaad;border-top-color:#3c434a}.slashed-preview__caption.svelte-g79qke code:where(.svelte-g79qke){white-space:pre-wrap;background:#f6f7f7;border-radius:3px;max-height:120px;margin-top:4px;padding:8px;font-size:11px;display:block;overflow:auto}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__caption:where(.svelte-g79qke) code:where(.svelte-g79qke){color:#a7aaad;background:#1d2327}.bar.svelte-1oj49qa{z-index:100;background:#fff;border-top:2px solid #c3c4c7;justify-content:space-between;align-items:center;gap:16px;padding:10px 24px;transition:border-color .15s;display:flex;position:fixed;bottom:0;left:160px;right:0}.bar.dirty.svelte-1oj49qa{border-top-color:#2271b1}.bar__status.svelte-1oj49qa{font-size:13px}.bar__dirty.svelte-1oj49qa{color:#2271b1;font-weight:500}.bar__pending.svelte-1oj49qa{color:#50575e}.bar__saved.svelte-1oj49qa{color:#00a32a;font-weight:500}.bar__clean.svelte-1oj49qa{color:#50575e}.bar__error.svelte-1oj49qa{color:#d63638;font-weight:500}.bar__actions.svelte-1oj49qa{gap:8px;display:flex}.bar__save.svelte-1oj49qa,.bar__reset.svelte-1oj49qa{color:#2271b1;cursor:pointer;background:#fff;border:1px solid #2271b1;border-radius:3px;padding:6px 14px;font-size:13px}.bar__save.svelte-1oj49qa{color:#fff;background:#2271b1}.bar__save.svelte-1oj49qa:disabled,.bar__reset.svelte-1oj49qa:disabled{opacity:.5;cursor:not-allowed}.bar__reset.svelte-1oj49qa{color:#d63638;border-color:#d63638}.bar__export.svelte-1oj49qa{color:#2271b1;cursor:pointer;background:#fff;border:1px solid #2271b1;border-radius:3px;padding:6px 14px;font-size:13px}.bar__export.svelte-1oj49qa:disabled{opacity:.5;cursor:not-allowed}@media (max-width:782px){.bar.svelte-1oj49qa{left:0}}.slashed-svelte-admin.svelte-1n46o8q{--gap:16px;gap:var(--gap);flex-direction:column;max-width:1100px;padding-bottom:80px;display:flex}.slashed-svelte-admin__header-top.svelte-1n46o8q{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.slashed-svelte-admin__mark.svelte-1n46o8q{color:#fff;background:#2271b1;border-radius:7px;place-items:center;width:34px;height:34px;font-family:ui-monospace,monospace;font-size:22px;font-weight:700;line-height:1;display:grid}.slashed-svelte-admin__header.svelte-1n46o8q h1:where(.svelte-1n46o8q){margin:0}.slashed-svelte-admin__versions.svelte-1n46o8q{flex-wrap:wrap;gap:6px;display:flex}.version-pill.svelte-1n46o8q{color:#50575e;white-space:nowrap;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:3px;padding:2px 8px;font-family:ui-monospace,monospace;font-size:11px}.muted.svelte-1n46o8q{color:#50575e;margin:4px 0 0}.slashed-svelte-admin__body.svelte-1n46o8q{background:#fff;border:1px solid #c3c4c7;border-radius:6px;padding:20px;box-shadow:0 1px 2px #0000000a} +.tab-nav.svelte-yyiz68{border-bottom:1px solid #c3c4c7;flex-wrap:wrap;gap:2px;display:flex}.tab-nav__btn.svelte-yyiz68{cursor:pointer;color:#2c3338;background:0 0;border:1px solid #0000;border-bottom:none;border-radius:4px 4px 0 0;padding:8px 14px;font-size:14px;transition:background .12s,color .12s}.tab-nav__btn.svelte-yyiz68:hover{background:#f0f0f1}.tab-nav__btn.svelte-yyiz68:focus-visible{outline-offset:-2px;outline:2px solid #2271b1}.tab-nav__btn.active.svelte-yyiz68{color:#1d2327;background:#fff;border-color:#c3c4c7;margin-bottom:-1px;font-weight:600;box-shadow:inset 0 2px #2271b1}.row.svelte-1es83p3{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.row.svelte-1es83p3:last-child{border-bottom:none}.row__label.svelte-1es83p3 label:where(.svelte-1es83p3){color:#1d2327;font-weight:500;display:block}.row__var.svelte-1es83p3{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.row__inputs.svelte-1es83p3{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row__swatch.svelte-1es83p3{border:1px solid #c3c4c7;border-radius:4px;flex-shrink:0;width:28px;height:28px}.row__hex.svelte-1es83p3{cursor:pointer;background:#fff;border:1px solid #8c8f94;border-radius:3px;width:44px;height:28px;padding:0}.row__hex-text.svelte-1es83p3{width:110px}.row__raw.svelte-1es83p3{flex:1;min-width:240px;font-family:ui-monospace,monospace}.row__toggle.svelte-1es83p3{color:#2271b1;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:12px;text-decoration:underline}.row__toggle.svelte-1es83p3:hover{color:#135e96}.advanced-section.svelte-imklo1{margin-top:24px}.advanced-section__toggle.svelte-imklo1{color:#2271b1;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:6px 0;font-size:13px;font-weight:500;display:flex}.advanced-section__toggle.svelte-imklo1:hover{text-decoration:underline}.advanced-section__body.svelte-imklo1{margin-top:12px}h2.svelte-1vle0rm{margin-top:0}.status-heading.svelte-1vle0rm,.dark-heading.svelte-1vle0rm{margin-top:24px}.hint.svelte-1vle0rm{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.hint.svelte-1vle0rm code:where(.svelte-1vle0rm){background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:11px}.rows.svelte-1vle0rm{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.rows--dark.svelte-1vle0rm{background:#f8f8fc;border-color:#e2e4e9}.dark-toggle-section.svelte-1vle0rm{background:#f6f7f7;border:1px solid #e0e0e0;border-radius:4px;margin-top:24px;padding:14px 16px}.dark-toggle-row.svelte-1vle0rm{align-items:center;gap:10px;margin-bottom:8px;display:flex}.dark-toggle-btn.svelte-1vle0rm{cursor:pointer;color:#1d2327;background:0 0;border:none;align-items:center;gap:8px;padding:0;font-size:13px;font-weight:600;display:flex}.dark-toggle-btn__track.svelte-1vle0rm{background:#c3c4c7;border-radius:10px;flex-shrink:0;width:36px;height:20px;transition:background .15s;display:inline-block;position:relative}.dark-toggle-btn.on.svelte-1vle0rm .dark-toggle-btn__track:where(.svelte-1vle0rm){background:#2271b1}.dark-toggle-btn__thumb.svelte-1vle0rm{background:#fff;border-radius:50%;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #0003}.dark-toggle-btn.on.svelte-1vle0rm .dark-toggle-btn__thumb:where(.svelte-1vle0rm){left:18px}.dark-toggle-status.svelte-1vle0rm{color:#50575e;font-size:12px}.dark-toggle-section.svelte-1vle0rm .hint:where(.svelte-1vle0rm){margin-bottom:0}.row.svelte-miyob8{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.row.svelte-miyob8:last-child{border-bottom:none}.row__label-text.svelte-miyob8{color:#1d2327;font-weight:500;display:block}.row__label.svelte-miyob8 label:where(.svelte-miyob8){color:#1d2327;font-weight:500;display:block}.row__var.svelte-miyob8{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.row__inputs.svelte-miyob8{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row__desc.svelte-miyob8{color:#50575e;flex-basis:100%;margin:4px 0 0;font-size:12px}.text.mono.svelte-j8yw6l{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.font-field.svelte-ow2kvz{flex-direction:column;gap:6px;width:420px;display:flex}.source-tabs.svelte-ow2kvz{gap:2px;display:flex}.source-tab.svelte-ow2kvz{color:#50575e;cursor:pointer;background:#f6f7f7;border:1px solid #c3c4c7;border-radius:3px;padding:3px 10px;font-size:11px;font-weight:500;line-height:1.4}.source-tab.svelte-ow2kvz:hover{background:#f0f0f1}.source-tab--active.svelte-ow2kvz{color:#fff;background:#2271b1;border-color:#2271b1}.source-tab--disabled.svelte-ow2kvz{opacity:.45;cursor:default;pointer-events:none}.font-select.svelte-ow2kvz,.font-text.svelte-ow2kvz{box-sizing:border-box;color:#1d2327;background:#fff;border:1px solid #c3c4c7;border-radius:3px;width:100%;height:30px;padding:4px 8px;font-size:13px}.font-select.svelte-ow2kvz:focus,.font-text.svelte-ow2kvz:focus{outline-offset:0;border-color:#2271b1;outline:2px solid #2271b1}.bricks-empty.svelte-ow2kvz{color:#50575e;background:#f6f7f7;border:1px dashed #c3c4c7;border-radius:3px;margin:0;padding:6px 8px;font-size:12px;line-height:1.5}.font-preview.svelte-ow2kvz{color:#1d2327;white-space:nowrap;text-overflow:ellipsis;padding:2px 0;font-size:15px;overflow:hidden}.unit.svelte-1pjh3bn{color:#50575e;font-size:12px}.typo-preview.svelte-10qc8pz{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:8px;padding:16px 20px}.typo-preview__header.svelte-10qc8pz{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.typo-preview__title.svelte-10qc8pz{color:#1d2327;margin:0;font-size:13px;font-weight:600}.typo-preview__slider-wrap.svelte-10qc8pz{color:#50575e;align-items:center;gap:8px;font-size:12px;display:flex}.typo-preview__slider.svelte-10qc8pz{cursor:pointer;accent-color:#2271b1;width:180px}.typo-preview__vw-label.svelte-10qc8pz{text-align:right;font-variant-numeric:tabular-nums;color:#1d2327;min-width:58px;font-weight:500}.typo-preview__rows.svelte-10qc8pz{flex-direction:column;gap:0;display:flex}.typo-preview__row.svelte-10qc8pz{border-bottom:1px solid #f0f0f1;grid-template-columns:52px 1fr 120px;align-items:baseline;gap:12px;padding:6px 0;display:grid;overflow:hidden}.typo-preview__row.svelte-10qc8pz:last-child{border-bottom:none}.typo-preview__step-name.svelte-10qc8pz{color:#50575e;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;font-size:11px;font-weight:600}.typo-preview__sample.svelte-10qc8pz{white-space:nowrap;text-overflow:ellipsis;color:#1d2327;line-height:1.2;overflow:hidden}.typo-preview__meta.svelte-10qc8pz{color:#787c82;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:10px}.typo-preview__group-heading.svelte-10qc8pz{color:#50575e;text-transform:uppercase;letter-spacing:.07em;border-bottom:1px solid #f0f0f1;margin:0 0 6px;padding:6px 0 4px;font-size:11px;font-weight:600}.typo-preview__rows--display.svelte-10qc8pz{border-top:2px solid #f0f0f1;margin-top:16px;padding-top:4px}.scale-gen.svelte-1y8fkhh{background:#f6f7f7;border:1px solid #c3c4c7;border-radius:4px;margin-bottom:16px;padding:14px 16px}.scale-gen__header.svelte-1y8fkhh{flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.scale-gen__title.svelte-1y8fkhh{color:#1d2327;text-transform:uppercase;letter-spacing:.06em;font-size:12px;font-weight:600}.scale-gen__hint.svelte-1y8fkhh{color:#787c82;font-size:12px}.scale-gen__controls.svelte-1y8fkhh{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px;display:flex}.scale-gen__field.svelte-1y8fkhh{flex-direction:column;gap:4px;display:flex}.scale-gen__label.svelte-1y8fkhh{color:#50575e;font-size:11px;font-weight:500}.scale-gen__field.svelte-1y8fkhh input[type=number]:where(.svelte-1y8fkhh){color:#1d2327;background:#fff;border:1px solid #8c8f94;border-radius:3px;width:68px;height:28px;padding:0 6px;font-size:13px}.scale-gen__field.svelte-1y8fkhh select:where(.svelte-1y8fkhh){color:#1d2327;cursor:pointer;background:#fff;border:1px solid #8c8f94;border-radius:3px;height:28px;padding:0 4px;font-size:12px}.scale-gen__input-wrap.svelte-1y8fkhh{align-items:center;gap:4px;display:flex}.scale-gen__unit.svelte-1y8fkhh{color:#787c82;font-size:11px}.scale-gen__preview.svelte-1y8fkhh{flex-wrap:wrap;gap:4px 12px;margin-bottom:12px;display:flex}.scale-gen__step.svelte-1y8fkhh{color:#50575e;gap:4px;font-family:ui-monospace,monospace;font-size:11px;display:flex}.scale-gen__step.display.svelte-1y8fkhh{color:#2271b1}.scale-gen__step-name.svelte-1y8fkhh{min-width:52px;font-weight:600}.scale-gen__step-val.svelte-1y8fkhh{color:#787c82}.scale-gen__footer.svelte-1y8fkhh{justify-content:flex-end;display:flex}.scale-gen__apply.svelte-1y8fkhh{color:#fff;cursor:pointer;background:#2271b1;border:none;border-radius:3px;padding:6px 14px;font-size:13px}.scale-gen__apply.svelte-1y8fkhh:hover{background:#135e96}h2.svelte-743nsg{margin-top:0}.group-heading.svelte-743nsg{margin-top:24px}.hint.svelte-743nsg{color:#50575e;max-width:720px;margin-bottom:16px}.hint.svelte-743nsg code:where(.svelte-743nsg){background:#f0f0f1;border-radius:3px;padding:1px 5px;font-size:90%}.rows.svelte-743nsg{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.size-row.svelte-743nsg{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.size-row.svelte-743nsg:last-child{border-bottom:none}.size-row__name.svelte-743nsg{color:#1d2327;font-weight:500;display:block}.size-row__var.svelte-743nsg{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.size-row__inputs.svelte-743nsg{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.size-row__inputs.svelte-743nsg .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.size-row__inputs.svelte-743nsg .row__label-text,.size-row__inputs.svelte-743nsg .row__label label{color:#50575e;font-size:12px;font-weight:400}.spacing-preview.svelte-11lwg9t{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:16px;padding:16px 20px}.spacing-preview__header.svelte-11lwg9t{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.spacing-preview__title.svelte-11lwg9t{color:#1d2327;margin:0;font-size:13px;font-weight:600}.spacing-preview__slider-wrap.svelte-11lwg9t{color:#50575e;align-items:center;gap:8px;font-size:12px;display:flex}.spacing-preview__slider.svelte-11lwg9t{cursor:pointer;accent-color:#2271b1;width:180px}.spacing-preview__vw-label.svelte-11lwg9t{text-align:right;font-variant-numeric:tabular-nums;color:#1d2327;min-width:58px;font-weight:500}.spacing-preview__rows.svelte-11lwg9t{flex-direction:column;gap:6px;display:flex}.spacing-preview__row.svelte-11lwg9t{grid-template-columns:160px 1fr 70px;align-items:center;gap:12px;display:grid}.spacing-preview__token.svelte-11lwg9t{color:#50575e;white-space:nowrap;font-family:monospace;font-size:11px}.spacing-preview__bar-wrap.svelte-11lwg9t{background:#f0f0f1;border-radius:2px;height:16px;overflow:hidden}.spacing-preview__bar.svelte-11lwg9t{background:#2271b1;border-radius:2px;min-width:2px;height:100%;transition:width 80ms}.spacing-preview__value.svelte-11lwg9t{color:#787c82;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.spacing-preview__card-section.svelte-11lwg9t{border-top:1px solid #e9eaeb;margin-top:20px;padding-top:16px}.spacing-preview__card-label.svelte-11lwg9t{color:#50575e;margin:0 0 10px;font-size:12px;font-weight:600}.spacing-preview__card.svelte-11lwg9t{background:#fff;border:1px solid #c3c4c7;border-radius:6px;flex-direction:column;max-width:320px;display:flex;box-shadow:0 1px 4px #00000012}.spacing-preview__card-row.svelte-11lwg9t{align-items:center;display:flex}.spacing-preview__card-avatar.svelte-11lwg9t{background:#2271b1;border-radius:50%;flex-shrink:0;width:32px;height:32px}.spacing-preview__card-meta.svelte-11lwg9t{flex-direction:column;gap:2px;display:flex}.spacing-preview__card-title.svelte-11lwg9t{color:#1d2327;font-size:13px;font-weight:600;line-height:1.2}.spacing-preview__card-sub.svelte-11lwg9t{color:#787c82;font-variant-numeric:tabular-nums;font-size:11px}.spacing-preview__card-body.svelte-11lwg9t{color:#50575e;font-variant-numeric:tabular-nums;border-top:1px dashed #e9eaeb;border-bottom:1px dashed #e9eaeb;padding:8px 0;font-size:12px;line-height:1.5}.spacing-preview__card-footer.svelte-11lwg9t{flex-wrap:wrap;align-items:center;display:flex}.spacing-preview__card-tag.svelte-11lwg9t{color:#50575e;white-space:nowrap;background:#f0f0f1;border-radius:3px;padding:2px 8px;font-size:10px;font-weight:600}.spacing-preview__card-cta.svelte-11lwg9t{color:#fff;background:#2271b1;border-radius:3px;margin-left:auto;padding:4px 10px;font-size:11px;font-weight:500}h2.svelte-1sn1epc{margin-top:0}.group-heading.svelte-1sn1epc{margin-top:24px}.hint.svelte-1sn1epc{color:#50575e;max-width:720px;margin-bottom:16px}.hint.svelte-1sn1epc code:where(.svelte-1sn1epc){background:#f0f0f1;border-radius:3px;padding:1px 5px;font-size:90%}.rows.svelte-1sn1epc{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.size-row.svelte-1sn1epc{border-bottom:1px solid #f0f0f1;grid-template-columns:220px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.size-row.svelte-1sn1epc:last-child{border-bottom:none}.size-row__name.svelte-1sn1epc{color:#1d2327;font-weight:500;display:block}.size-row__var.svelte-1sn1epc{color:#50575e;background:#f6f7f7;border-radius:3px;margin-top:4px;padding:1px 6px;font-size:11px;display:inline-block}.size-row__inputs.svelte-1sn1epc{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.size-row__inputs.svelte-1sn1epc .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.size-row__inputs.svelte-1sn1epc .row__label-text,.size-row__inputs.svelte-1sn1epc .row__label label{color:#50575e;font-size:12px;font-weight:400}.range.svelte-cifrt1{accent-color:#2271b1;flex:1;min-width:160px;max-width:320px}.number.svelte-cifrt1{width:90px}.unit.svelte-cifrt1{color:#50575e;font-size:12px}.select.svelte-r7dp44{min-width:160px}h2.svelte-ieamrv{margin-top:0}.group-heading.svelte-ieamrv{margin-top:24px}.hint.svelte-ieamrv{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.rows.svelte-ieamrv{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.radius-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-wrap:wrap;gap:16px;margin-top:12px;padding:16px;display:flex}.radius-preview__item.svelte-ieamrv{flex-direction:column;align-items:center;gap:6px;display:flex}.radius-preview__swatch.svelte-ieamrv{background:#2271b1;width:40px;height:40px}.radius-preview__label.svelte-ieamrv{color:#50575e;text-align:center;font-size:10px}@keyframes svelte-ieamrv-slashed-mp-fill{0%{width:0}50%{width:100%}to{width:0}}.motion-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-direction:column;gap:8px;margin-top:12px;padding:16px;display:flex}.motion-preview__item.svelte-ieamrv{grid-template-columns:60px 1fr 56px;align-items:center;gap:10px;display:grid}.motion-preview__label.svelte-ieamrv{color:#50575e;text-align:right;font-size:11px;font-weight:600}.motion-preview__track.svelte-ieamrv{background:#f0f0f1;border-radius:3px;height:6px;overflow:hidden}.motion-preview__fill.svelte-ieamrv{background:#2271b1;border-radius:3px;height:100%;animation:ease-in-out infinite svelte-ieamrv-slashed-mp-fill}.motion-preview__ms.svelte-ieamrv{color:#8c8f94;text-align:right;font-variant-numeric:tabular-nums;font-size:11px}.focus-ring-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;align-items:center;gap:12px;margin-top:12px;padding:16px;display:flex}.focus-ring-preview__btn.svelte-ieamrv{color:#1d2327;cursor:pointer;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:4px;padding:7px 16px;font-size:13px}.focus-ring-preview__btn.svelte-ieamrv:focus-visible{outline-width:var(--fp-width,2px);outline-offset:var(--fp-offset,2px);outline-style:var(--fp-style,solid);outline-color:#2271b1}.focus-ring-preview__desc.svelte-ieamrv{color:#50575e;font-family:monospace;font-size:12px}.shadow-preview.svelte-ieamrv{background:#fff;border:1px solid #c3c4c7;border-radius:4px;flex-wrap:wrap;gap:24px;margin-top:12px;padding:20px 16px;display:flex}.shadow-preview__item.svelte-ieamrv{flex-direction:column;align-items:center;gap:10px;display:flex}.shadow-preview__card.svelte-ieamrv{color:#50575e;background:#fff;border:1px solid #f0f0f1;border-radius:4px;justify-content:center;align-items:center;width:60px;height:60px;font-size:11px;font-weight:600;display:flex}h2.svelte-19399h6{margin-top:0}.hint.svelte-19399h6{color:#50575e;max-width:720px;margin-bottom:20px}.card.svelte-19399h6{border:1px solid #c3c4c7;border-radius:4px;margin-bottom:16px;padding:16px 20px}.card--info.svelte-19399h6{background:#f6f7f7}.card.svelte-19399h6 h3:where(.svelte-19399h6){margin:0 0 6px;font-size:14px}.card-desc.svelte-19399h6{color:#50575e;max-width:640px;margin:0 0 12px;font-size:13px}.action-row.svelte-19399h6{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.btn.svelte-19399h6{cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:13px;font-weight:500}.btn.svelte-19399h6:disabled{opacity:.6;cursor:not-allowed}.btn--primary.svelte-19399h6{color:#fff;background:#2271b1}.btn--primary.svelte-19399h6:hover:not(:disabled){background:#135e96}.btn--secondary.svelte-19399h6{color:#2c3338;background:#f0f0f1;border:1px solid #8c8f94}.btn--secondary.svelte-19399h6:hover:not(:disabled){background:#e0e0e0}.file-input.svelte-19399h6{font-size:13px}.css-export.svelte-19399h6{border-top:1px solid #e9eaeb;margin-top:16px;padding-top:14px}.css-export__head.svelte-19399h6{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.css-export__title.svelte-19399h6{color:#1d2327;font-size:13px;font-weight:600}.seg.svelte-19399h6{border:1px solid #8c8f94;border-radius:4px;display:inline-flex;overflow:hidden}.seg__btn.svelte-19399h6{color:#50575e;cursor:pointer;background:#f0f0f1;border:none;padding:5px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.seg__btn.svelte-19399h6+.seg__btn:where(.svelte-19399h6){border-left:1px solid #8c8f94}.seg__btn--on.svelte-19399h6{color:#fff;background:#2271b1}.css-export__code.svelte-19399h6{color:#2c3338;white-space:pre;background:#f6f7f7;border:1px solid #e9eaeb;border-radius:4px;max-height:220px;margin:12px 0 0;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto}.status.svelte-19399h6{font-size:13px;font-weight:500}.status--ok.svelte-19399h6{color:#00a32a}.status--err.svelte-19399h6{color:#d63638}.steps.svelte-19399h6{color:#2c3338;margin:8px 0 0;padding-left:20px;font-size:13px;line-height:1.6}.steps.svelte-19399h6 li:where(.svelte-19399h6){margin-bottom:8px}.steps.svelte-19399h6 li:where(.svelte-19399h6):last-child{margin-bottom:0}code.svelte-19399h6{background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:12px}.cheatsheet.svelte-osej3t{flex-direction:column;gap:16px;display:flex}.cheatsheet__header.svelte-osej3t h2:where(.svelte-osej3t){margin:0;font-size:18px}.cheatsheet__header-top.svelte-osej3t{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px;display:flex}.cheatsheet__bundle-pill.svelte-osej3t{color:#50575e;white-space:nowrap;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:3px;padding:2px 8px;font-size:12px}.cheatsheet__settings-link.svelte-osej3t{color:#2271b1;text-decoration:none}.cheatsheet__settings-link.svelte-osej3t:hover{text-decoration:underline}.cheatsheet__counts.svelte-osej3t{color:#50575e;margin:0;font-size:13px}.cheatsheet__controls.svelte-osej3t{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.cheatsheet__search.svelte-osej3t{border:1px solid #c3c4c7;border-radius:4px;flex:1;min-width:200px;padding:6px 10px;font-size:13px}.cheatsheet__search.svelte-osej3t:focus{border-color:#2271b1;outline:none;box-shadow:0 0 0 1px #2271b1}.cheatsheet__view-toggle.svelte-osej3t{gap:0;display:flex}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t){cursor:pointer;color:#50575e;background:#fff;border:1px solid #c3c4c7;padding:5px 12px;font-size:12px}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):first-child{border-radius:3px 0 0 3px}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):last-child{border-radius:0 3px 3px 0}.cheatsheet__view-toggle.svelte-osej3t button:where(.svelte-osej3t):not(:first-child){border-left:none}.cheatsheet__view-toggle.svelte-osej3t button.active:where(.svelte-osej3t){color:#fff;background:#2271b1;border-color:#2271b1}.cheatsheet__section.svelte-osej3t{flex-direction:column;gap:8px;display:flex}.cheatsheet__section-title.svelte-osej3t{border-bottom:1px solid #e2e4e7;margin:8px 0 0;padding-bottom:6px;font-size:15px}.cheatsheet__group.svelte-osej3t{border:1px solid #e2e4e7;border-radius:4px;overflow:hidden}.cheatsheet__group-header.svelte-osej3t{cursor:pointer;background:#f6f7f7;flex-wrap:wrap;align-items:baseline;gap:10px;padding:8px 12px;font-size:13px;display:flex}.cheatsheet__group-header.svelte-osej3t::-webkit-details-marker{margin-right:4px}.cheatsheet__group-desc.svelte-osej3t{color:#646970;font-size:12px;font-weight:400}.cheatsheet__list.svelte-osej3t{margin:0;padding:0;list-style:none}.cheatsheet__item.svelte-osej3t{border-top:1px solid #f0f0f1;align-items:baseline;gap:12px;padding:5px 12px;font-size:12px;line-height:1.5;display:flex}.cheatsheet__item.svelte-osej3t:first-child{border-top:1px solid #e2e4e7}.cheatsheet__name.svelte-osej3t{color:#1e1e1e;white-space:nowrap;background:#f0f0f1;border-radius:3px;flex-shrink:0;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:11.5px}.cheatsheet__desc.svelte-osej3t{color:#50575e;font-size:12px}.cheatsheet__empty.svelte-osej3t{text-align:center;color:#646970;padding:32px 16px;font-style:italic}.wcag-probe.svelte-1n4yog1{visibility:hidden;pointer-events:none;width:0;height:0;position:absolute;overflow:hidden}h2.svelte-1n4yog1{margin-top:0}h3.svelte-1n4yog1{margin:0 0 8px;font-size:14px}.grid-heading.svelte-1n4yog1{margin:24px 0 8px}.hint.svelte-1n4yog1{color:#50575e;max-width:760px;margin-bottom:16px}.hint.svelte-1n4yog1 strong:where(.svelte-1n4yog1){color:#1d2327}.head.svelte-1n4yog1{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.mode-toggle.svelte-1n4yog1{border:1px solid #c3c4c7;border-radius:4px;flex-shrink:0;display:flex;overflow:hidden}.mode-btn.svelte-1n4yog1{cursor:pointer;color:#50575e;background:#fff;border:none;padding:5px 12px;font-size:12px}.mode-btn.svelte-1n4yog1+.mode-btn:where(.svelte-1n4yog1){border-left:1px solid #c3c4c7}.mode-btn.active.svelte-1n4yog1{color:#fff;background:#2271b1}.checker.svelte-1n4yog1{grid-template-columns:1fr auto;align-items:stretch;gap:16px;margin-bottom:8px;display:grid}.checker__controls.svelte-1n4yog1{align-items:flex-end;gap:10px;display:flex}.checker__field.svelte-1n4yog1{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.checker__field.svelte-1n4yog1 span:where(.svelte-1n4yog1){color:#50575e;font-size:12px}.checker__field.svelte-1n4yog1 select:where(.svelte-1n4yog1){color:#1d2327;background:#fff;border:1px solid #8c8f94;border-radius:4px;width:100%;padding:6px 9px;font-size:13px}.swap-btn.svelte-1n4yog1{cursor:pointer;color:#1d2327;background:#f6f7f7;border:1px solid #c3c4c7;border-radius:4px;align-self:flex-end;padding:5px 10px;font-size:16px}.swap-btn.svelte-1n4yog1:hover{background:#f0f0f1}.result.svelte-1n4yog1{border:1px solid #0000001f;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:190px;padding:16px;display:flex}.result__sample.svelte-1n4yog1{font-size:48px;font-weight:700;line-height:1}.result__ratio.svelte-1n4yog1{color:#1d2327;background:#ffffffd1;border-radius:3px;padding:2px 8px;font-size:22px;font-weight:700}.result__badges.svelte-1n4yog1{flex-direction:column;gap:4px;width:100%;display:flex}.result__badge-row.svelte-1n4yog1{background:#ffffffd1;border-radius:3px;justify-content:space-between;align-items:center;gap:8px;padding:3px 8px;display:flex}.badge-label.svelte-1n4yog1{color:#50575e;font-size:11px}.result__thresholds.svelte-1n4yog1{color:#50575e;text-align:center;background:#ffffffc7;border-radius:3px;padding:2px 6px;font-size:10px}.result__empty.svelte-1n4yog1{color:#787c82;text-align:center;font-size:13px}.badge.svelte-1n4yog1{white-space:nowrap;border-radius:3px;padding:1px 6px;font-size:11px;font-weight:700}.badge--aaa.svelte-1n4yog1{color:#fff;background:#00a32a}.badge--aa.svelte-1n4yog1{color:#fff;background:#2271b1}.badge--aa-large.svelte-1n4yog1{color:#fff;background:#dba617}.badge--fail.svelte-1n4yog1{color:#fff;background:#d63638}.badge--neutral.svelte-1n4yog1{color:#50575e;background:#f0f0f1;border:1px solid #c3c4c7}.grid-wrap.svelte-1n4yog1{margin-bottom:12px;overflow-x:auto}.contrast-grid.svelte-1n4yog1{border-collapse:collapse;font-size:11px}.grid-corner.svelte-1n4yog1{width:28px;height:28px}.grid-col-header.svelte-1n4yog1{text-align:center;color:#50575e;padding:4px 6px;font-weight:500}.grid-row-header.svelte-1n4yog1{text-align:right;color:#50575e;white-space:nowrap;padding:4px 10px 4px 4px;font-weight:500}.grid-lbl.svelte-1n4yog1{margin-top:3px;font-size:10px;display:block}.grid-swatch.svelte-1n4yog1{border:1px solid #0000001f;border-radius:3px;width:22px;height:22px;margin:0 auto;display:block}.grid-cell.svelte-1n4yog1{text-align:center;vertical-align:middle;color:#1a1a1a;cursor:pointer;border:1px solid #0000000f;width:56px;height:38px;font-weight:700}.grid-cell--na.svelte-1n4yog1{color:#a7aaad;cursor:default;background:#f0f0f1}.grid-cell--aaa.svelte-1n4yog1{background:#d8f5e0}.grid-cell--aa.svelte-1n4yog1{background:#d8e9f7}.grid-cell--aa-large.svelte-1n4yog1{background:#fdf2d0}.grid-cell--fail.svelte-1n4yog1{background:#fde8e8}.grid-cell--active.svelte-1n4yog1{outline-offset:-2px;outline:2px solid #1d2327}.grid-cell.svelte-1n4yog1:hover:not(.grid-cell--na){filter:brightness(.96)}.legend.svelte-1n4yog1{color:#50575e;flex-wrap:wrap;gap:16px;font-size:12px;display:flex}.legend-item.svelte-1n4yog1{align-items:center;gap:5px;display:flex}.legend-dot.svelte-1n4yog1{border-radius:2px;width:12px;height:12px;display:inline-block}.legend-dot--aaa.svelte-1n4yog1{background:#d8f5e0;border:1px solid #00a32a}.legend-dot--aa.svelte-1n4yog1{background:#d8e9f7;border:1px solid #2271b1}.legend-dot--aa-large.svelte-1n4yog1{background:#fdf2d0;border:1px solid #dba617}.legend-dot--fail.svelte-1n4yog1{background:#fde8e8;border:1px solid #d63638}.usage.svelte-1n4yog1{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:12px;display:grid}.usage__chip.svelte-1n4yog1{border:1px solid #0000001f;border-radius:6px;align-items:center;gap:8px;min-height:52px;padding:12px;display:flex}.usage__aa.svelte-1n4yog1{font-size:20px;font-weight:700;line-height:1}.usage__role.svelte-1n4yog1{opacity:.92;flex:1;font-size:12px}.optimizer.svelte-1n4yog1{border-top:1px solid #e2e4e7;margin-top:28px;padding-top:20px}.optimizer__heading.svelte-1n4yog1{margin:0 0 6px;font-size:15px}.locks.svelte-1n4yog1{flex-wrap:wrap;gap:8px;margin:0 0 14px;display:flex}.lock.svelte-1n4yog1{color:#50575e;cursor:pointer;background:#fff;border:1px solid #c3c4c7;border-radius:4px;align-items:center;gap:7px;padding:6px 10px;font-size:12px;transition:border-color .12s,color .12s,background .12s;display:inline-flex}.lock.svelte-1n4yog1:hover{color:#1d2327}.lock--on.svelte-1n4yog1{color:#1d2327;background:#f0f6fb;border-color:#2271b1;font-weight:600}.lock__ico.svelte-1n4yog1{font-size:13px;line-height:1}.lock__sw.svelte-1n4yog1{border:1px solid #0000002e;border-radius:4px;width:16px;height:16px}.optimizer__btn.svelte-1n4yog1{color:#fff;cursor:pointer;background:#2271b1;border:none;border-radius:4px;padding:8px 16px;font-size:13px;font-weight:500}.optimizer__btn.svelte-1n4yog1:hover:not(:disabled){background:#135e96}.optimizer__btn.svelte-1n4yog1:disabled{opacity:.6;cursor:not-allowed}.optimizer__results.svelte-1n4yog1{border:1px solid #c3c4c7;border-radius:6px;max-width:580px;margin-top:16px;overflow:hidden}.optimizer__row.svelte-1n4yog1{background:#fff;border-bottom:1px solid #e2e4e7;align-items:center;gap:12px;padding:10px 14px;display:flex}.optimizer__row.svelte-1n4yog1:last-of-type{border-bottom:none}.optimizer__row--warn.svelte-1n4yog1{opacity:.7}.optimizer__swatch.svelte-1n4yog1{border:1px solid #0000001f;border-radius:4px;flex-shrink:0;width:36px;height:36px}.optimizer__info.svelte-1n4yog1{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.optimizer__info.svelte-1n4yog1 strong:where(.svelte-1n4yog1){font-size:13px}.optimizer__info.svelte-1n4yog1 span:where(.svelte-1n4yog1){color:#50575e;font-size:12px}.optimizer__value.svelte-1n4yog1{color:#1e1e1e;white-space:nowrap;text-overflow:ellipsis;background:#f0f0f1;border-radius:3px;max-width:220px;padding:1px 5px;font-size:11px;display:inline-block;overflow:hidden}.optimizer__actions.svelte-1n4yog1{background:#f6f7f7;border-top:1px solid #e2e4e7;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;display:flex}.optimizer__apply-btn.svelte-1n4yog1{color:#fff;cursor:pointer;background:#00a32a;border:none;border-radius:4px;padding:7px 14px;font-size:13px;font-weight:500}.optimizer__apply-btn.svelte-1n4yog1:hover:not(:disabled){background:#007017}.optimizer__apply-btn.svelte-1n4yog1:disabled{opacity:.6;cursor:not-allowed}.optimizer__dismiss-btn.svelte-1n4yog1{color:#50575e;cursor:pointer;background:0 0;border:1px solid #c3c4c7;border-radius:4px;padding:7px 12px;font-size:13px}.optimizer__dismiss-btn.svelte-1n4yog1:hover:not(:disabled){background:#f0f0f1}.optimizer__status.svelte-1n4yog1{font-size:13px;font-weight:500}.optimizer__status--ok.svelte-1n4yog1{color:#00a32a}h2.svelte-1muixbu{margin-top:0}.group-heading.svelte-1muixbu{margin-top:24px}.hint.svelte-1muixbu{color:#50575e;max-width:720px;margin-bottom:16px;font-size:13px}.hint.svelte-1muixbu code:where(.svelte-1muixbu){background:#f0f0f1;border-radius:3px;padding:1px 4px;font-size:11px}.rows.svelte-1muixbu{background:#fcfcfd;border:1px solid #f0f0f1;border-radius:4px;padding:0 12px}.pair-row.svelte-1muixbu{border-bottom:1px solid #f0f0f1;grid-template-columns:160px 1fr;align-items:center;gap:12px;padding:10px 0;display:grid}.pair-row.svelte-1muixbu:last-child{border-bottom:none}.pair-row__label.svelte-1muixbu{color:#1d2327;font-size:13px;font-weight:500}.pair-row__inputs.svelte-1muixbu{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.pair-row__inputs.svelte-1muixbu .row{border:none;grid-template-columns:none;align-items:center;gap:6px;padding:0;display:flex!important}.pair-row__inputs.svelte-1muixbu .row__label-text,.pair-row__inputs.svelte-1muixbu .row__label label{color:#50575e;font-size:12px;font-weight:400}.rebemer-tab__intro.svelte-4f2ow1 h2:where(.svelte-4f2ow1){margin:0 0 4px}.muted.svelte-4f2ow1{color:#50575e}.small.svelte-4f2ow1{font-size:12px}.rebemer-tab__group.svelte-4f2ow1{margin-top:18px}.rebemer-tab__table.svelte-4f2ow1{border:1px solid #dcdcde;border-radius:5px;flex-direction:column;max-width:520px;display:flex;overflow:hidden}.rebemer-tab__row.svelte-4f2ow1{border-top:1px solid #f0f0f1;grid-template-columns:1fr 1fr;align-items:center;gap:12px;padding:6px 12px;display:grid}.rebemer-tab__row.svelte-4f2ow1:first-child{border-top:none}.rebemer-tab__row--head.svelte-4f2ow1{text-transform:uppercase;letter-spacing:.02em;color:#50575e;background:#f6f7f7;font-size:12px;font-weight:600}.rebemer-tab__type.svelte-4f2ow1{color:#1d2327;font-family:ui-monospace,monospace;font-size:12px}.rebemer-tab__label.svelte-4f2ow1{color:#646970;font-size:11px;display:block}.rebemer-tab__input.svelte-4f2ow1{align-items:center;gap:6px;display:flex}.rebemer-tab__input.svelte-4f2ow1 input:where(.svelte-4f2ow1){width:100%;font-family:ui-monospace,monospace}.rebemer-tab__input.svelte-4f2ow1 input.invalid:where(.svelte-4f2ow1){border-color:#d63638;box-shadow:0 0 0 1px #d63638}.rebemer-tab__revert.svelte-4f2ow1{cursor:pointer;color:#2271b1;background:0 0;border:none;padding:2px 4px;font-size:14px;line-height:1}.rebemer-tab__footer.svelte-4f2ow1{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.rebemer-tab__actions.svelte-4f2ow1{gap:8px;display:flex}.rebemer-tab__msg--error.svelte-4f2ow1{color:#d63638}.rebemer-tab__msg--ok.svelte-4f2ow1{color:#2271b1}.slashed-preview.svelte-g79qke{background:#fff;border:1px solid #c3c4c7;border-radius:4px;margin-top:8px;padding:20px;transition:background .2s,color .2s}.slashed-preview.is-dark.svelte-g79qke{background:#1d2327;border-color:#3c434a}.slashed-preview__header.svelte-g79qke{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.slashed-preview__header.svelte-g79qke h3:where(.svelte-g79qke){color:#1d2327;margin:0}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__header:where(.svelte-g79qke) h3:where(.svelte-g79qke){color:#f0f0f1}.slashed-preview__mode-toggle.svelte-g79qke{border:1px solid #c3c4c7;border-radius:4px;display:flex;overflow:hidden}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-toggle:where(.svelte-g79qke){border-color:#3c434a}.slashed-preview__mode-btn.svelte-g79qke{cursor:pointer;color:#50575e;background:0 0;border:none;padding:4px 10px;font-size:12px;line-height:1.4}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-btn:where(.svelte-g79qke){color:#a7aaad}.slashed-preview__mode-btn.active.svelte-g79qke{color:#fff;background:#2271b1}.slashed-preview__mode-btn.svelte-g79qke+.slashed-preview__mode-btn:where(.svelte-g79qke){border-left:1px solid #c3c4c7}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__mode-btn:where(.svelte-g79qke)+.slashed-preview__mode-btn:where(.svelte-g79qke){border-left-color:#3c434a}.sf-canvas.svelte-g79qke{background:var(--c-bg,#fff);color:var(--c-text,#1d2327);border:1px solid var(--c-border,#e2e2e2);border-radius:var(--preview-radius-m,8px);flex-direction:column;gap:20px;padding:18px;display:flex}.sf-block.svelte-g79qke{margin:0}.sf-eyebrow.svelte-g79qke{letter-spacing:.08em;text-transform:uppercase;color:var(--c-text-muted,#787c82);margin:0 0 8px;font-size:10px;font-weight:700}.sf-heading.svelte-g79qke{font-family:var(--sf-font-heading,system-ui, sans-serif);color:var(--c-text,#1d2327);margin:0 0 8px;font-size:20px;font-weight:700;line-height:1.25}.sf-body.svelte-g79qke{font-family:var(--sf-font-body,system-ui, sans-serif);color:var(--c-text-secondary,#50575e);margin:0 0 6px;font-size:13px;line-height:1.55}.sf-body.svelte-g79qke code:where(.svelte-g79qke){background:var(--c-inset,#7f7f7f1f);color:var(--c-text,inherit);border-radius:3px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.sf-muted.svelte-g79qke{color:var(--c-text-muted,#787c82);margin:0;font-size:12px}.sf-link.svelte-g79qke{color:var(--c-link,#2271b1);text-underline-offset:2px;text-decoration:underline}.sf-surfaces.svelte-g79qke{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.sf-surface-tile.svelte-g79qke{border:1px solid var(--c-border,#ddd);border-radius:var(--preview-radius-s,4px);height:54px;box-shadow:var(--preview-shadow);align-items:flex-end;padding:6px;display:flex}.sf-surface-tile__label.svelte-g79qke{color:var(--c-text-secondary,#50575e);font-size:10px;font-weight:600}.sf-swatches.svelte-g79qke{flex-wrap:wrap;gap:8px;display:flex}.sf-swatch.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border:1px solid var(--c-border-subtle,#00000014);justify-content:center;align-items:flex-end;width:52px;height:52px;padding:3px;font-size:9px;font-weight:600;display:flex}.sf-buttons.svelte-g79qke{flex-wrap:wrap;gap:8px;display:flex}.sf-btn.svelte-g79qke{border-radius:var(--preview-radius-s,4px);cursor:default;border:none;align-items:center;padding:7px 14px;font-size:13px;font-weight:600;line-height:1.2;display:inline-flex}.sf-btn--outline.svelte-g79qke{border:1.5px solid;background:0 0!important}.sf-btn--ghost.svelte-g79qke{border:none;background:0 0!important}.sf-btn--sm.svelte-g79qke{padding:4px 10px;font-size:12px}.sf-alerts.svelte-g79qke{flex-direction:column;gap:6px;display:flex}.sf-alert.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border-inline-start:3px solid;align-items:center;gap:10px;padding:7px 10px;font-size:12px;display:flex}.sf-alert__text.svelte-g79qke{color:var(--c-text,inherit)}.sf-badge.svelte-g79qke{border-radius:var(--preview-radius-l,16px);white-space:nowrap;align-items:center;padding:2px 8px;font-size:10px;font-weight:700;display:inline-flex}.sf-card.svelte-g79qke{border:1px solid var(--c-border,#e9eaeb);border-radius:var(--preview-radius-m,8px);background:var(--c-surface,#fff);box-shadow:var(--preview-shadow);overflow:hidden}.sf-card__accent.svelte-g79qke{height:4px}.sf-card__body.svelte-g79qke{flex-direction:column;gap:10px;padding:14px 16px;display:flex}.sf-card__top.svelte-g79qke{align-items:center;gap:10px;display:flex}.sf-card__avatar.svelte-g79qke{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:flex}.sf-card__title.svelte-g79qke{font-family:var(--sf-font-heading,system-ui, sans-serif);color:var(--c-text,#1d2327);margin:0;font-size:14px;font-weight:600;line-height:1.3}.sf-card__sub.svelte-g79qke{color:var(--c-text-muted,#787c82);margin:0;font-size:11px;line-height:1.3}.sf-card__top.svelte-g79qke .sf-badge:where(.svelte-g79qke){margin-left:auto}.sf-card__text.svelte-g79qke{font-family:var(--sf-font-body,system-ui, sans-serif);color:var(--c-text-secondary,#50575e);margin:0;font-size:12px;line-height:1.5}.sf-card__footer.svelte-g79qke{border-top:1px solid var(--c-border-subtle,#f0f0f1);flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;display:flex}.sf-card__footer.svelte-g79qke .sf-btn--sm:where(.svelte-g79qke){margin-left:auto}.sf-field.svelte-g79qke{flex-direction:column;gap:5px;max-width:320px;display:flex}.sf-field__label.svelte-g79qke{color:var(--c-text-secondary,#50575e);font-size:11px;font-weight:600}.sf-field__input.svelte-g79qke{border-radius:var(--preview-radius-s,4px);border:1px solid var(--c-border,#c3c4c7);background:var(--c-surface,#fff);color:var(--c-text,#1d2327);padding:7px 10px;font-size:13px}.sf-field__input.svelte-g79qke::placeholder{color:var(--c-text-muted,#9a9da1);opacity:.8}.slashed-preview__caption.svelte-g79qke{color:#50575e;border-top:1px solid #e9eaeb;margin-top:16px;padding-top:12px;font-size:12px}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__caption:where(.svelte-g79qke){color:#a7aaad;border-top-color:#3c434a}.slashed-preview__caption.svelte-g79qke code:where(.svelte-g79qke){white-space:pre-wrap;background:#f6f7f7;border-radius:3px;max-height:120px;margin-top:4px;padding:8px;font-size:11px;display:block;overflow:auto}.slashed-preview.is-dark.svelte-g79qke .slashed-preview__caption:where(.svelte-g79qke) code:where(.svelte-g79qke){color:#a7aaad;background:#1d2327}.bar.svelte-1oj49qa{z-index:100;background:#fff;border-top:2px solid #c3c4c7;justify-content:space-between;align-items:center;gap:16px;padding:10px 24px;transition:border-color .15s;display:flex;position:fixed;bottom:0;left:160px;right:0}.bar.dirty.svelte-1oj49qa{border-top-color:#2271b1}.bar__status.svelte-1oj49qa{font-size:13px}.bar__dirty.svelte-1oj49qa{color:#2271b1;font-weight:500}.bar__pending.svelte-1oj49qa{color:#50575e}.bar__saved.svelte-1oj49qa{color:#00a32a;font-weight:500}.bar__clean.svelte-1oj49qa{color:#50575e}.bar__error.svelte-1oj49qa{color:#d63638;font-weight:500}.bar__actions.svelte-1oj49qa{gap:8px;display:flex}.bar__save.svelte-1oj49qa,.bar__reset.svelte-1oj49qa{color:#2271b1;cursor:pointer;background:#fff;border:1px solid #2271b1;border-radius:3px;padding:6px 14px;font-size:13px}.bar__save.svelte-1oj49qa{color:#fff;background:#2271b1}.bar__save.svelte-1oj49qa:disabled,.bar__reset.svelte-1oj49qa:disabled{opacity:.5;cursor:not-allowed}.bar__reset.svelte-1oj49qa{color:#d63638;border-color:#d63638}.bar__export.svelte-1oj49qa{color:#2271b1;cursor:pointer;background:#fff;border:1px solid #2271b1;border-radius:3px;padding:6px 14px;font-size:13px}.bar__export.svelte-1oj49qa:disabled{opacity:.5;cursor:not-allowed}@media (max-width:782px){.bar.svelte-1oj49qa{left:0}}.slashed-svelte-admin.svelte-1n46o8q{--gap:16px;gap:var(--gap);flex-direction:column;max-width:1100px;padding-bottom:80px;display:flex}.slashed-svelte-admin__header-top.svelte-1n46o8q{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.slashed-svelte-admin__mark.svelte-1n46o8q{color:#fff;background:#2271b1;border-radius:7px;place-items:center;width:34px;height:34px;font-family:ui-monospace,monospace;font-size:22px;font-weight:700;line-height:1;display:grid}.slashed-svelte-admin__header.svelte-1n46o8q h1:where(.svelte-1n46o8q){margin:0}.slashed-svelte-admin__versions.svelte-1n46o8q{flex-wrap:wrap;gap:6px;display:flex}.version-pill.svelte-1n46o8q{color:#50575e;white-space:nowrap;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:3px;padding:2px 8px;font-family:ui-monospace,monospace;font-size:11px}.muted.svelte-1n46o8q{color:#50575e;margin:4px 0 0}.slashed-svelte-admin__body.svelte-1n46o8q{background:#fff;border:1px solid #c3c4c7;border-radius:6px;padding:20px;box-shadow:0 1px 2px #0000000a} /*$vite$:1*/ \ No newline at end of file diff --git a/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.js b/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.js index d916c518..b649987d 100644 --- a/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.js +++ b/SLASHED-for-WP/integrations/bricks/assets/admin-app/app.js @@ -1,21 +1,21 @@ -var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function m(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}function h(e){"@babel/helpers - typeof";return h=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},h(e)}function g(e,t){if(h(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(h(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _(e){var t=g(e,`string`);return h(t)==`symbol`?t:t+``}function v(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,w=1<<25,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,T=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),de=Symbol(`attributes`),fe=Symbol(`class`),pe=Symbol(`style`),me=Symbol(`text`),he=Symbol(`form reset`),ge=new class extends Error{constructor(...e){super(...e),v(this,`name`,`StaleReactionError`),v(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},_e=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ye(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function be(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function xe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Se(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ce(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function we(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Te(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ee(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ke(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ae={},je=Symbol(`uninitialized`);function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Pe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Fe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Ie(e){E=e}var D;function Le(e){if(e===null)throw Ne(),Ae;return D=e}function Re(){return Le(mr(D))}function O(e){if(E){if(mr(D)!==null)throw Ne(),Ae;D=e}}function ze(e=1){if(E){for(var t=e,n=D;t--;)n=mr(n);D=n}}function Be(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=mr(n);e&&n.remove(),n=i}}function Ve(e){if(!e||e.nodeType!==8)throw Ne(),Ae;return e.data}function He(e){return e===this.v}function Ue(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function We(e){return!Ue(e,this.v)}var Ge=!1,Ke=!1,qe=null;function Je(e){qe=e}function Ye(e,t=!1,n){qe={p:qe,i:!1,c:null,e:null,s:e,x:null,r:V,l:Ke&&!t?{s:null,u:null,$:[]}:null}}function Xe(e){var t=qe,n=t.e;if(n!==null){t.e=null;for(var r of n)Ar(r)}return e!==void 0&&(t.x=e),t.i=!0,qe=t.p,e??{}}function Ze(){return!Ke||qe!==null&&qe.l===null}var Qe=[];function $e(){var e=Qe;Qe=[],f(e)}function et(e){if(Qe.length===0&&!ln){var t=Qe;queueMicrotask(()=>{t===Qe&&$e()})}Qe.push(e)}function tt(){for(;Qe.length>0;)$e()}function nt(e){var t=V;if(t===null)return B.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;rt(e,t)}function rt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var it=~(b|x|y);function at(e,t){e.f=e.f&it|t}function ot(e){e.f&512||e.deps===null?at(e,y):at(e,x)}function st(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,st(t.deps))}function ct(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),st(e.deps),at(e,y)}var lt=!1,ut=!1;function dt(e){var t=ut;try{return ut=!1,[e(),ut]}finally{ut=t}}function ft(e){let t=0,n=Qn(0),r;return()=>{Dr()&&(H(n),Pr(()=>(t===0&&(r=xi(()=>e(()=>nr(n)))),t+=1,()=>{et(()=>{--t,t===0&&(r?.(),r=void 0,nr(n))})})))}}function pt(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function mt(e,t){pt(e,t),t.add(e)}function k(e,t,n){pt(e,t),t.set(e,n)}function A(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function j(e,t,n){return e.set(A(e,t),n),n}function M(e,t){return e.get(A(e,t))}var ht=te|ne;function gt(e,t,n,r){new Pt(e,t,n,r)}var _t=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakSet,Pt=class{constructor(e,t,n,r){mt(this,Nt),v(this,`parent`,void 0),v(this,`is_pending`,!1),v(this,`transform_error`,void 0),k(this,_t,void 0),k(this,vt,E?D:null),k(this,yt,void 0),k(this,bt,void 0),k(this,xt,void 0),k(this,St,null),k(this,Ct,null),k(this,wt,null),k(this,Tt,null),k(this,Et,0),k(this,Dt,0),k(this,Ot,!1),k(this,kt,new Set),k(this,At,new Set),k(this,jt,null),k(this,Mt,ft(()=>(j(jt,this,Qn(M(Et,this))),()=>{j(jt,this,null)}))),j(_t,this,e),j(yt,this,t),j(bt,this,e=>{var t=V;t.b=this,t.f|=128,n(e)}),this.parent=V.b,this.transform_error=r??this.parent?.transform_error??(e=>e),j(xt,this,Fr(()=>{if(E){let e=M(vt,this);Re();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));A(Nt,this,It).call(this,t)}else t?A(Nt,this,Lt).call(this):A(Nt,this,Ft).call(this)}else A(Nt,this,Rt).call(this)},ht)),E&&j(_t,this,D)}defer_effect(e){ct(e,M(kt,this),M(At,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!M(yt,this).pending}update_pending_count(e,t){A(Nt,this,Vt).call(this,e,t),j(Et,this,M(Et,this)+e),!(!M(jt,this)||M(Ot,this))&&(j(Ot,this,!0),et(()=>{j(Ot,this,!1),M(jt,this)&&er(M(jt,this),M(Et,this))}))}get_effect_pending(){return M(Mt,this).call(this),H(M(jt,this))}error(e){if(!M(yt,this).onerror&&!M(yt,this).failed)throw e;P?.is_fork?(M(St,this)&&P.skip_effect(M(St,this)),M(Ct,this)&&P.skip_effect(M(Ct,this)),M(wt,this)&&P.skip_effect(M(wt,this)),P.oncommit(()=>{A(Nt,this,Ht).call(this,e)})):A(Nt,this,Ht).call(this,e)}};function Ft(){try{j(St,this,Ir(()=>M(bt,this).call(this,M(_t,this))))}catch(e){this.error(e)}}function It(e){let t=M(yt,this).failed;t&&j(wt,this,Ir(()=>{t(M(_t,this),()=>e,()=>()=>{})}))}function Lt(){let e=M(yt,this).pending;e&&(this.is_pending=!0,j(Ct,this,Ir(()=>e(M(_t,this)))),et(()=>{var e=j(Tt,this,document.createDocumentFragment()),t=fr();e.append(t),j(St,this,A(Nt,this,Bt).call(this,()=>Ir(()=>M(bt,this).call(this,t)))),M(Dt,this)===0&&(M(_t,this).before(e),j(Tt,this,null),Ur(M(Ct,this),()=>{j(Ct,this,null)}),A(Nt,this,zt).call(this,P))}))}function Rt(){try{if(this.is_pending=this.has_pending_snippet(),j(Dt,this,0),j(Et,this,0),j(St,this,Ir(()=>{M(bt,this).call(this,M(_t,this))})),M(Dt,this)>0){var e=j(Tt,this,document.createDocumentFragment());qr(M(St,this),e);let t=M(yt,this).pending;j(Ct,this,Ir(()=>t(M(_t,this))))}else A(Nt,this,zt).call(this,P)}catch(e){this.error(e)}}function zt(e){this.is_pending=!1,e.transfer_effects(M(kt,this),M(At,this))}function Bt(e){var t=V,n=B,r=qe;ei(M(xt,this)),$r(M(xt,this)),Je(M(xt,this).ctx);try{return jn.ensure(),e()}catch(e){return nt(e),null}finally{ei(t),$r(n),Je(r)}}function Vt(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;A(Nt,n=this.parent,Vt).call(n,e,t)}return}j(Dt,this,M(Dt,this)+e),M(Dt,this)===0&&(A(Nt,this,zt).call(this,t),M(Ct,this)&&Ur(M(Ct,this),()=>{j(Ct,this,null)}),M(Tt,this)&&(M(_t,this).before(M(Tt,this)),j(Tt,this,null)))}function Ht(e){M(St,this)&&(Br(M(St,this)),j(St,this,null)),M(Ct,this)&&(Br(M(Ct,this)),j(Ct,this,null)),M(wt,this)&&(Br(M(wt,this)),j(wt,this,null)),E&&(Le(M(vt,this)),ze(),Le(Be()));var t=M(yt,this).onerror;let n=M(yt,this).failed;var r=!1,i=!1;let a=()=>{if(r){Fe();return}r=!0,i&&ke(),M(wt,this)!==null&&Ur(M(wt,this),()=>{j(wt,this,null)}),A(Nt,this,Bt).call(this,()=>{A(Nt,this,Rt).call(this)})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){rt(e,M(xt,this)&&M(xt,this).parent)}n&&j(wt,this,A(Nt,this,Bt).call(this,()=>{try{return Ir(()=>{var t=V;t.b=this,t.f|=128,n(M(_t,this),()=>e,()=>a)})}catch(e){return rt(e,M(xt,this).parent),null}}))};et(()=>{var t;try{t=this.transform_error(e)}catch(e){rt(e,M(xt,this)&&M(xt,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>rt(e,M(xt,this)&&M(xt,this).parent)):o(t)})}function Ut(e,t,n,r){let i=Ze()?qt:Xt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=V,c=Wt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){rt(e,s)}Gt()}}var d=Kt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Yt(e))).then(u).catch(e=>rt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Gt()}):f()}function Wt(){var e=V,t=B,n=qe,r=P;return function(i=!0){ei(e),$r(t),Je(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Gt(e=!0){ei(null),$r(null),Je(null),e&&P?.deactivate()}function Kt(){var e=V,t=e.b,n=P,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function qt(e){var t=2|b;return V!==null&&(V.f|=ne),{ctx:qe,deps:null,effects:null,equals:He,f:t,fn:e,reactions:null,rv:0,v:je,wv:0,parent:V,ac:null}}var Jt=Symbol(`obsolete`);function Yt(e,t,n){let r=V;r===null&&ye();var i=void 0,a=Qn(je),o=!B,s=new Set;return Nr(()=>{var t=V,n=p();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ge&&n.reject(e)}).finally(Gt)}catch(e){n.reject(e),Gt()}var c=P;if(o){if(t.f&32768)var l=Kt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Jt);else for(let e of s.values())e.reject(Jt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Jt&&(c.activate(),t?(a.f|=se,er(a,t)):(a.f&8388608&&(a.f^=se),er(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Or(()=>{for(let e of s)e.reject(Jt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function N(e){let t=qt(e);return Ge||ni(t),t}function Xt(e){let t=qt(e);return t.equals=We,t}function Zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;nthis.schedule(e)){var n=M(Dn,this).get(e);if(n){M(Dn,this).delete(e);for(var r of n.d)at(r,b),t(r);for(r of n.m)at(r,x),t(r)}M(On,this).add(e)}capture(e,t,n=!1){e.v!==je&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),sn?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,sn=null}flush(){try{un=!0,P=this,A(An,this,Nn).call(this)}finally{pn=0,cn=null,dn=null,fn=null,un=!1,P=null,sn=null,Xn.clear()}}discard(){for(let e of M(yn,this))e(this);M(yn,this).clear();for(let e of this.async_deriveds.values())e.reject(Jt);A(An,this,zn).call(this),M(Sn,this)?.resolve()}register_created_effect(e){M(wn,this).push(e)}increment(e,t){if(j(bn,this,M(bn,this)+1),e){let e=M(xn,this).get(t)??0;M(xn,this).set(t,e+1)}}decrement(e,t){if(j(bn,this,M(bn,this)-1),e){let e=M(xn,this).get(t)??0;e===1?M(xn,this).delete(t):M(xn,this).set(t,e-1)}M(kn,this)||(j(kn,this,!0),et(()=>{j(kn,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)M(Tn,this).add(t);for(let e of t)M(En,this).add(e);e.clear(),t.clear()}oncommit(e){M(vn,this).add(e)}ondiscard(e){M(yn,this).add(e)}settled(){return(M(Sn,this)??j(Sn,this,p())).promise}static ensure(){if(P===null){let t=P=new e;!un&&!ln&&et(()=>{M(hn,t)||t.flush()})}return P}apply(){if(!Ge||!this.is_fork&&M(gn,this)===null&&M(_n,this)===null){sn=null;return}sn=new Map;for(let[e,[t]]of this.current)sn.set(e,t);for(let t=rn;t!==null;t=M(_n,t))if(!(t===this||t.is_fork)){var e=!1;if(t.id1e3&&(A(An,this,zn).call(this),Vn());for(let e of M(Tn,this))M(En,this).delete(e),at(e,b),this.schedule(e);for(let e of M(En,this))at(e,x),this.schedule(e);let e=M(Cn,this);j(Cn,this,[]),this.apply();var t=dn=[],n=[],r=fn=[];for(let r of e)try{A(An,this,Pn).call(this,r,t,n)}catch(e){throw Jn(r),A(An,this,Mn).call(this)||this.discard(),e}if(P=null,r.length>0){var i=nn.ensure();for(let e of r)i.schedule(e)}if(dn=null,fn=null,A(An,this,Mn).call(this)){A(An,this,Ln).call(this,n),A(An,this,Ln).call(this,t);for(let[e,t]of M(Dn,this))qn(e,t);r.length>0&&A(An,P,Nn).call(P);return}let a=A(An,this,Fn).call(this);if(a){A(An,this,Ln).call(this,n),A(An,this,Ln).call(this,t),A(An,a,In).call(a,this);return}M(Tn,this).clear(),M(En,this).clear();for(let e of M(vn,this))e(this);M(vn,this).clear(),on=this,Un(n),Un(t),on=null,M(Sn,this)?.resolve();var o=P;if(M(bn,this)===0&&(M(Cn,this).length===0||o!==null)&&(A(An,this,zn).call(this),Ge&&(A(An,this,Rn).call(this),P=o)),M(Cn,this).length>0)if(o!==null){let e=o;M(Cn,e).push(...M(Cn,this).filter(t=>!M(Cn,e).includes(t)))}else o=this;o!==null&&A(An,o,Nn).call(o)}function Pn(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||M(Dn,this).has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Ge&&i&16777224?n.push(r):fi(r)&&(i&16&&M(En,this).add(r),_i(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function Fn(){for(var e=M(gn,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=M(gn,e)}return null}function In(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(M(Tn,e),M(En,e));let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(M(En,this).delete(i),at(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),A(An,e,zn).call(e),P=this,A(An,this,Nn).call(this)}function Ln(e){for(var t=0;t!u.current.get(e)[1]);if(!(!M(hn,u)||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of M(On,this))u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):A(An,u,Ln).call(u,[e])});u.activate();var a=new Set,o=new Map;for(var s of t)Wn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return n?n[0]!==t[0]||n[1]!==t[1]:!0}).map(([e])=>e);if(c.length>0)for(let e of M(wn,this))!(e.f&155648)&&Gn(e,c,o)&&(e.f&4194320?(at(e,b),u.schedule(e)):M(Tn,u).add(e));if(M(Cn,u).length>0&&!M(kn,u)){u.apply();for(var l of M(Cn,u))A(An,u,Pn).call(u,l,[],[]);j(Cn,u,[])}u.deactivate()}}}}function zn(){if(this.linked){var e=M(gn,this),t=M(_n,this);e===null?rn=t:j(_n,e,t),t===null?an=e:j(gn,t,e),this.linked=!1}}function Bn(e){var t=ln;ln=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(tt(),P===null)return n;P.flush()}}finally{ln=t}}function Vn(){try{we()}catch(e){rt(e,cn)}}var Hn=null;function Un(e){var t=e.length;if(t!==0){for(var n=0;n0)){Xn.clear();for(let e of Hn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Hn.has(n)&&(Hn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||_i(n)}}Hn.clear()}}Hn=null}}function Wn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Wn(i,t,n,r):e&4194320&&!(e&2048)&&Gn(i,t,r)&&(at(i,b),Kn(i))}}function Gn(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&Gn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Kn(e){P.schedule(e)}function qn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),at(e,y);for(var n=e.first;n!==null;)qn(n,t),n=n.next}}function Jn(e){at(e,y);for(var t=e.first;t!==null;)Jn(t),t=t.next}var Yn=new Set,Xn=new Map,Zn=!1;function Qn(e,t){return{f:0,v:e,reactions:null,equals:He,rv:0,wv:0}}function F(e,t){let n=Qn(e,t);return ni(n),n}function $n(e,t=!1,n=!0){let r=Qn(e);if(t||(r.equals=We),Ke&&n&&qe!==null&&qe.l!==null){var i;((i=qe.l).s??(i.s=[])).push(r)}return r}function I(e,t,n=!1){return B!==null&&(!Qr||B.f&131072)&&Ze()&&B.f&4325394&&(ti===null||!ti.has(e))&&Oe(),er(e,n?ir(t):t,fn)}function er(e,t,n=null){if(!e.equals(t)){Xn.set(e,Xr?t:e.v);var r=jn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Qt(t),sn===null&&ot(t)}e.wv=di(),rr(e,b,n),Ze()&&V!==null&&V.f&1024&&!(V.f&96)&&(ai===null?oi([e]):ai.push(e)),!r.is_fork&&Yn.size>0&&!Zn&&tr()}return t}function tr(){Zn=!1;for(let e of Yn){e.f&1024&&at(e,x);let t;try{t=fi(e)}catch{t=!0}t&&_i(e)}Yn.clear()}function nr(e){I(e,e.v+1)}function rr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ze(),a=r.length,o=0;o{if(li===d)return e();var t=B,n=li;$r(null),ui(d);var r=e();return $r(t),ui(n),r};return i&&r.set(`length`,F(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ee();var i=r.get(t);return i===void 0?f(()=>{var e=F(n.value,u);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>F(je,u));r.set(t,e),nr(o)}}else I(n,je),nr(o);return!0},get(e,n,i){if(n===ce)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>F(ir(s?e[n]:je),u)),r.set(n,o)),o!==void 0){var c=H(o);return c===je?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=H(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==je)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==je||Reflect.has(e,t);return(n!==void 0||V!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>F(i?ir(e[t]):je,u)),r.set(t,n)),H(n)===je)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;dF(je,u)),r.set(d+``,p)):I(p,je)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>F(void 0,u)),I(c,ir(n)),r.set(t,c));else{l=c.v!==je;var m=f(()=>ir(n));I(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}nr(o)}return!0},ownKeys(e){H(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==je});for(var[n,i]of r)i.v!==je&&!(n in e)&&t.push(n);return t},setPrototypeOf(){De()}})}function ar(e){try{if(typeof e==`object`&&e&&ce in e)return e[ce]}catch{}return e}function or(e,t){return Object.is(ar(e),ar(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var sr,cr,lr,ur;function dr(){if(sr===void 0){sr=window,cr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;lr=a(t,`firstChild`).get,ur=a(t,`nextSibling`).get,u(e)&&(e[fe]=void 0,e[de]=null,e[pe]=void 0,e.__e=void 0),u(n)&&(n[me]=void 0)}}function fr(e=``){return document.createTextNode(e)}function pr(e){return lr.call(e)}function mr(e){return ur.call(e)}function L(e,t){if(!E)return pr(e);var n=pr(D);if(n===null)n=D.appendChild(fr());else if(t&&n.nodeType!==3){var r=fr();return n?.before(r),Le(r),r}return t&&yr(n),Le(n),n}function hr(e,t=!1){if(!E){var n=pr(e);return n instanceof Comment&&n.data===``?mr(n):n}if(t){if(D?.nodeType!==3){var r=fr();return D?.before(r),Le(r),r}yr(D)}return D}function R(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=mr(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=fr();return r===null?i?.after(a):r.before(a),Le(a),a}yr(r)}return Le(r),r}function gr(e){e.textContent=``}function _r(){return!Ge||Hn!==null?!1:(V.f&C)!==0}function vr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function yr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var br=!1;function xr(){br||(br=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[he]?.()})},{capture:!0}))}function Sr(e){var t=B,n=V;$r(null),ei(null);try{return e()}finally{$r(t),ei(n)}}function Cr(e,t,n,r=n){e.addEventListener(t,()=>Sr(n));let i=e[he];i?e[he]=()=>{i(),r(!0)}:e[he]=()=>r(!0),xr()}function wr(e){V===null&&(B===null&&Ce(e),Se()),Xr&&xe(e)}function Tr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Er(e,t){var n=V;n!==null&&n.f&8192&&(e|=S);var r={ctx:qe,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)dn===null?jn.ensure().schedule(r):dn.push(r);else if(t!==null){try{_i(r)}catch(e){throw Br(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&Tr(i,n),B!==null&&B.f&2&&!(e&64))){var a=B;(a.effects??(a.effects=[])).push(i)}return r}function Dr(){return B!==null&&!Qr}function Or(e){let t=Er(8,null);return at(t,y),t.teardown=e,t}function kr(e){wr(`$effect`);var t=V.f;if(!B&&t&32&&qe!==null&&!qe.i){var n=qe;(n.e??(n.e=[])).push(e)}else return Ar(e)}function Ar(e){return Er(4|re,e)}function jr(e){jn.ensure();let t=Er(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Ur(t,()=>{Br(t),n(void 0)}):(Br(t),n(void 0))})}function Mr(e){return Er(4,e)}function Nr(e){return Er(T|ne,e)}function Pr(e,t=0){return Er(8|t,e)}function z(e,t=[],n=[],r=[]){Ut(r,t,n,t=>{Er(8,()=>{e(...t.map(H))})})}function Fr(e,t=0){return Er(16|t,e)}function Ir(e){return Er(32|ne,e)}function Lr(e){var t=e.teardown;if(t!==null){let e=Xr,n=B;Zr(!0),$r(null);try{t.call(null)}finally{Zr(e),$r(n)}}}function Rr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Sr(()=>{e.abort(ge)});var r=n.next;n.f&64?n.parent=null:Br(n,t),n=r}}function zr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Br(t),t=n}}function Br(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Vr(e.nodes.start,e.nodes.end),n=!0),e.f|=w,Rr(e,t&&!n),gi(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Lr(e),e.f^=w,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vr(e,t){for(;e!==null;){var n=e===t?null:mr(e);e.remove(),e=n}}function Hr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ur(e,t,n=!0){var r=[];Wr(e,r,!0);var i=()=>{n&&Br(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Wr(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Wr(i,t,o?n:!1)}i=a}}}function Gr(e){Kr(e,!0)}function Kr(e,t){if(e.f&8192){e.f^=S,e.f&1024||(at(e,b),jn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Kr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function qr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:mr(n);t.append(n),n=i}}var Jr=null,Yr=!1,Xr=!1;function Zr(e){Xr=e}var B=null,Qr=!1;function $r(e){B=e}var V=null;function ei(e){V=e}var ti=null;function ni(e){B!==null&&(!Ge||B.f&2)&&(ti??(ti=new Set)).add(e)}var ri=null,ii=0,ai=null;function oi(e){ai=e}var si=1,ci=0,li=ci;function ui(e){li=e}function di(){return++si}function fi(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&sn===null&&at(e,y)}return!1}function pi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ge&&ti!==null&&ti.has(e)))for(var i=0;i{e.ac.abort(ge)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=P?.is_fork;if(ri!==null){var m;if(p||gi(e,ii),f!==null&&ii>0)for(f.length=ii+ri.length,m=0;m{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Bn()}function H(e){var t=(e.f&2)!=0;if(Jr?.add(e),B!==null&&!Qr&&!(V!==null&&V.f&16384)&&(ti===null||!ti.has(e))){var r=B.deps;if(B.f&2097152)e.rv{throw e});throw p}}finally{e[wi]=t,delete e.currentTarget,$r(d),ei(f)}}}var Ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ji(e){return Ai?.createHTML(e)??e}function Mi(e){var t=vr(`template`);return t.innerHTML=ji(e.replaceAll(``,``)),t.content}function Ni(e,t){var n=V;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function W(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(``);return()=>{if(E)return Ni(D,null),D;i===void 0&&(i=Mi(a?e:``+e),n||(i=pr(i)));var t=r||cr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=pr(t),s=t.lastChild;Ni(o,s)}else Ni(t,t);return t}}function Pi(e=``){if(!E){var t=fr(e+``);return Ni(t,t),t}var n=D;return n.nodeType===3?yr(n):(n.before(n=fr()),Le(n)),Ni(n,n),n}function Fi(){if(E)return Ni(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=fr();return e.append(t,n),Ni(t,n),e}function G(e,t){if(E){var n=V;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Re();return}e!==null&&e.before(t)}function K(e,t){var n,r=t==null?``:typeof t==`object`?`${t}`:t;r!==((n=e)[me]??(n[me]=e.nodeValue))&&(e[me]=r,e.nodeValue=`${r}`)}function Ii(e,t){return Ri(e,t)}var Li=new Map;function Ri(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){dr();var l=void 0,u=jr(()=>{var s=n??t.appendChild(fr());gt(s,{pending:()=>{}},t=>{Ye({});var n=qe;if(o&&(n.c=o),a&&(i.$$events=a),E&&Ni(t,null),l=e(t,i)||{},E&&(V.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ne(),Ae;Xe()},c);var u=new Set,d=e=>{for(var n=0;n{for(var e of u)for(let n of[t,document]){var r=Li.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ki),r.delete(e),r.size===0&&Li.delete(n)):r.set(e,i)}Ei.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return zi.set(l,u),l}var zi=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,Hi=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,qi=class{constructor(e,t=!0){v(this,`anchor`,void 0),k(this,Bi,new Map),k(this,Vi,new Map),k(this,Hi,new Map),k(this,Ui,new Set),k(this,Wi,!0),k(this,Gi,e=>{if(M(Bi,this).has(e)){var t=M(Bi,this).get(e),n=M(Vi,this).get(t);if(n)Gr(n),M(Ui,this).delete(t);else{var r=M(Hi,this).get(t);r&&(Gr(r.effect),M(Vi,this).set(t,r.effect),M(Hi,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of M(Bi,this)){if(M(Bi,this).delete(t),t===e)break;let r=M(Hi,this).get(n);r&&(Br(r.effect),M(Hi,this).delete(n))}for(let[e,r]of M(Vi,this)){if(e===t||M(Ui,this).has(e))continue;let i=()=>{if(Array.from(M(Bi,this).values()).includes(e)){var t=document.createDocumentFragment();qr(r,t),t.append(fr()),M(Hi,this).set(e,{effect:r,fragment:t})}else Br(r);M(Ui,this).delete(e),M(Vi,this).delete(e)};M(Wi,this)||!n?(M(Ui,this).add(e),Ur(r,i,!1)):i()}}}),k(this,Ki,e=>{M(Bi,this).delete(e);let t=Array.from(M(Bi,this).values());for(let[e,n]of M(Hi,this))t.includes(e)||(Br(n.effect),M(Hi,this).delete(e))}),this.anchor=e,j(Wi,this,t)}ensure(e,t){var n=P,r=_r();if(t&&!M(Vi,this).has(e)&&!M(Hi,this).has(e))if(r){var i=document.createDocumentFragment(),a=fr();i.append(a),M(Hi,this).set(e,{effect:Ir(()=>t(a)),fragment:i})}else M(Vi,this).set(e,Ir(()=>t(this.anchor)));if(M(Bi,this).set(n,e),r){for(let[t,r]of M(Vi,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of M(Hi,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(M(Gi,this)),n.ondiscard(M(Ki,this))}else E&&(this.anchor=D),M(Gi,this).call(this,n)}};function q(e,t,n=!1){var r;E&&(r=D,Re());var i=new qi(e),a=n?te:0;function o(e,t){if(E){var n=Ve(r);if(e!==parseInt(n.substring(1))){var a=Be();Le(a),i.anchor=a,Ie(!1),i.ensure(e,t),Ie(!0);return}}i.ensure(e,t)}Fr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ji(e,t){return t}function Yi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Xi(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=i.length===0&&n!==null;if(l){var u=n,d=u.parentNode;gr(d),d.append(u),e.items.clear()}Xi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Xi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,$i(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,ta(d,null,c)):Gr(d):Ur(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Fr(()=>{p=H(f);var e=p.length;let t=!1;E&&Ve(c)===`[!`!=(e===0)&&(c=Be(),Le(c),Ie(!1),t=!0);for(var r=new Set,u=P,v=_r(),y=0;ys(c)):(d=Ir(()=>s(Zi??(Zi=fr()))),d.f|=ie)),e>r.size&&be(``,``,``),E&&e>0&&Le(Be()),!h)if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Ie(!0),H(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function Qi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function $i(e,t,n,i,a){var o=(i&8)!=0,s=t.length,c=e.items,l=Qi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v0){var te=i&4&&s===0?n:null;if(o){for(v=0;v{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function ea(e,t,n,r,i,a,o,s){var c=o&1?o&16?Qn(n):$n(n,!1,!1):null,l=o&2?Qn(i):null;return{v:c,i:l,e:Ir(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ta(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=mr(r);if(a.before(r),r===i)return;r=o}}function na(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ra(e,t,...n){var r=new qi(e);Fr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}var ia=[...` -\r\f\xA0\v`];function aa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ia.includes(r[o-1]))&&(s===r.length||ia.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function oa(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function sa(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ca(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(sa)),i&&c.push(...Object.keys(i).map(sa));var l=0,u=-1;let t=e.length;for(var d=0;d{da(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Or(()=>{t.disconnect()})}function pa(e,t,n=t){var r=new WeakSet,i=!0;Cr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),ma);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&ma(o)}n(a),e.__value=a,P!==null&&r.add(P)}),Mr(()=>{var a=t();if(e===document.activeElement){var o=Ge?on:P;if(r.has(o))return}if(da(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=ma(s),n(a))}e.__value=a,i=!1}),fa(e)}function ma(e){return`__value`in e?e.__value:e.value}var ha=Symbol(`is custom element`),ga=Symbol(`is html`),_a=_e?`link`:`LINK`,va=_e?`progress`:`PROGRESS`;function ya(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;X(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;X(e,`checked`,null),e.checked=r}}};e[he]=n,et(n),xr()}}function ba(e,t){var n=xa(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==va)||(e.value=t??``)}function X(e,t,n,r){var i=xa(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===_a)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ca(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function xa(e){var t;return(t=e)[de]??(t[de]={[ha]:e.nodeName.includes(`-`),[ga]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var Sa=new Map;function Ca(e){var t=e.getAttribute(`is`)||e.nodeName,n=Sa.get(t);if(n)return n;Sa.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function wa(e,t,n=t){var r=new WeakSet;Cr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ta(e)?Ea(a):a,n(a),P!==null&&r.add(P),await vi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||xi(t)==null&&e.value)&&(n(Ta(e)?Ea(e.value):e.value),P!==null&&r.add(P)),Pr(()=>{var n=t();if(e===document.activeElement){var i=Ge?on:P;if(r.has(i))return}Ta(e)&&n===Ea(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ta(e){var t=e.type;return t===`number`||t===`range`}function Ea(e){return e===``?null:+e}var Da,Oa=new WeakMap,ka=new WeakMap,Aa=new WeakMap,ja=new WeakSet,Ma=class{constructor(e){mt(this,ja),k(this,Oa,new WeakMap),k(this,ka,void 0),k(this,Aa,void 0),j(Aa,this,e)}observe(e,t){var n=M(Oa,this).get(e)||new Set;return n.add(t),M(Oa,this).set(e,n),A(ja,this,Na).call(this).observe(e,M(Aa,this)),()=>{var n=M(Oa,this).get(e);n.delete(t),n.size===0&&(M(Oa,this).delete(e),M(ka,this).unobserve(e))}}};Da=Ma;function Na(){return M(ka,this)??j(ka,this,new ResizeObserver(e=>{for(var t of e){Da.entries.set(t.target,t);for(var n of M(Oa,this).get(t.target)||[])n(t)}}))}v(Ma,`entries`,new WeakMap);function Pa(e,t){return e===t||e?.[ce]===t}function Fa(e={},t,n,r){var i=qe.r,a=V;return Mr(()=>{var o,s;return Pr(()=>{o=s,s=r?.()||[],xi(()=>{Pa(n(...s),e)||(t(e,...s),o&&Pa(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Pa(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Ia(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=qt(r)),H(u)):(l&&(l=!1,c=s?xi(r):r),c);let f;if(o){var p=ce in e||le in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=dt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Te(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?qt:Xt)(()=>(v=!1,g()));o&&H(y);var b=V;return(function(e,t){if(arguments.length>0){let n=t?H(y):i&&o?ir(e):e;return I(y,n),v=!0,c!==void 0&&(c=n),e}return Xr&&v||b.f&16384?y.v:H(y)})}function La(e){qe===null&&ve(`onMount`),Ke&&qe.l!==null?Ra(qe).m.push(e):kr(()=>{let t=xi(e);if(typeof t==`function`)return t})}function Ra(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}if(typeof window<`u`){var za,Ba;((za=(Ba=window).__svelte??(Ba.__svelte={})).v??(za.v=new Set)).add(`5`)}var Va=typeof window<`u`&&window.slashedApp?window.slashedApp:{defaults:{},settings:{},tabs:{},rest:{url:``,nonce:``}},Z={defaults:Va.defaults||{},tabs:Va.tabs||{},rest:Va.rest||{url:``,nonce:``},inventory:Va.inventory||{variables:[],sf_classes:[],is_classes:[]},pluginSettings:Va.pluginSettings||{},versions:Va.versions||{plugin:``,framework:``},activeIntegrations:Va.activeIntegrations||{bricks:!0,gutenberg:!0},bricksFonts:Va.bricksFonts||[]},Q=ir(structuredClone(Va.settings||{})),$=ir({activeTab:Ha(Z.tabs)||`colors`,dirty:!1,saving:!1,lastSavedAt:null,error:``,outputMode:`layer`});function Ha(e){for(let t in e)return t;return null}function Ua(){$.dirty=!0,$.error=``}function Wa(e){Q[e]&&delete Q[e]}function Ga(){let e=Q.spacing??{},t=Z.defaults?.spacing??{},n=(n,r)=>{let i=e[n],a=parseFloat(i!==void 0&&i!==``?i:t[n]??r);return Number.isFinite(a)?a:r},r=n(`viewport_min`,22.5),i=n(`viewport_max`,90),a=i>r?i:r+.5;return{minRem:r,maxRem:a,minPx:Math.round(r*16),maxPx:Math.round(a*16)}}function Ka(e,t){let n=Q[e];if(!n)return``;let r=n[t];return r==null?``:String(r)}function qa(e,t,n){Q[e]||(Q[e]={}),n===``||n==null||typeof n==`string`&&n.trim()===``?delete Q[e][t]:Q[e][t]=String(n),Ua()}var Ja=W(``),Ya=W(``);function Xa(e,t){Ye(t,!0);var n=Ya();J(n,21,()=>Object.entries(Z.tabs),([e,t])=>e,(e,t)=>{var n=N(()=>m(H(t),2));let r=()=>H(n)[0],i=()=>H(n)[1];var a=Ja();let o;var s=L(a,!0);O(a),z(()=>{o=la(a,1,`tab-nav__btn svelte-yyiz68`,null,o,{active:$.activeTab===r()}),K(s,i())}),U(`click`,a,()=>$.activeTab=r()),G(e,a)}),O(n),G(e,n),Xe()}Di([`click`]);var Za=W(` `),Qa=W(` `,1),$a=W(``),eo=W(`
`);function to(e,t){Ye(t,!0);let n=Ia(t,`hexHint`,3,``),r=Ia(t,`rawHint`,3,``),i=Ia(t,`cssVar`,3,``),a=/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,o=(()=>{let e=(Q.colors?.[t.storeKey]??``).trim(),n=e===``||a.test(e);return{mode:n?`hex`:`raw`,hex:n?e:``,raw:n?``:e}})(),s=F(ir(o.mode)),c=F(ir(o.hex)),l=F(ir(o.raw));function u(){Q.colors||(Q.colors={});let e=H(l).trim(),n=H(c).trim(),r=H(s)===`raw`?e:n;r===``?delete Q.colors[t.storeKey]:Q.colors[t.storeKey]=r,Ua()}function d(){H(s)===`hex`?(I(s,`raw`),I(c,``)):(I(s,`hex`),I(l,``)),u()}let f=N(()=>(H(s)===`raw`?H(l):H(c))||n()||`transparent`);var p=eo(),m=L(p),h=L(m),g=L(h,!0);O(h);var _=R(h,2),v=e=>{var t=Za(),n=L(t,!0);O(t),z(()=>K(n,i())),G(e,t)};q(_,e=>{i()&&e(v)}),O(m);var y=R(m,2),b=L(y);let x;var S=R(b,2),ee=e=>{var r=Qa(),i=hr(r);ya(i);var a=R(i,2);ya(a),z(()=>{X(i,`id`,t.storeKey),X(a,`placeholder`,n())}),U(`input`,i,u),wa(i,()=>H(c),e=>I(c,e)),U(`input`,a,u),wa(a,()=>H(c),e=>I(c,e)),G(e,r)},C=e=>{var n=$a();ya(n),z(()=>{X(n,`id`,t.storeKey),X(n,`placeholder`,r())}),U(`input`,n,u),wa(n,()=>H(l),e=>I(l,e)),G(e,n)};q(S,e=>{H(s)===`hex`?e(ee):e(C,-1)});var w=R(S,2),te=L(w,!0);O(w),O(y),O(p),z(()=>{X(h,`for`,t.storeKey),K(g,t.label),x=Y(b,``,x,{background:H(f)}),K(te,H(s)===`hex`?`Advanced (oklch / raw)`:`Use HEX picker`)}),U(`click`,w,d),G(e,p),Xe()}Di([`input`,`click`]);var no=W(`
`),ro=W(`
`);function io(e,t){Ye(t,!0);let n=F(!1),r=`adv-body-${Math.random().toString(36).slice(2,9)}`;var i=ro(),a=L(i),o=R(L(a));let s;var c=L(o,!0);O(o),O(a);var l=R(a,2),u=e=>{var n=no();ra(L(n),()=>t.children),O(n),z(()=>X(n,`id`,r)),G(e,n)};q(l,e=>{H(n)&&e(u)}),O(i),z(()=>{X(a,`aria-expanded`,H(n)),X(a,`aria-controls`,r),s=la(o,1,`advanced-section__arrow`,null,s,{open:H(n)}),K(c,H(n)?`▲`:`▼`)}),U(`click`,a,()=>I(n,!H(n))),G(e,i),Xe()}Di([`click`]);var ao=W(`

Brand Colors — Dark Mode

Status Colors — Dark Mode

`,1),oo=W(`

Status Colors — Light Mode

The framework auto-derives dark mode from light source colors using CSS relative color syntax +var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function m(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}function h(e){"@babel/helpers - typeof";return h=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},h(e)}function g(e,t){if(h(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(h(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _(e){var t=g(e,`string`);return h(t)==`symbol`?t:t+``}function v(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,w=1<<25,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),fe=Symbol(`attributes`),pe=Symbol(`class`),me=Symbol(`style`),he=Symbol(`text`),ge=Symbol(`form reset`),_e=new class extends Error{constructor(...e){super(...e),v(this,`name`,`StaleReactionError`),v(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},ve=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function be(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function xe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function De(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ke(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ae(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var je={},Me=Symbol(`uninitialized`);function Ne(){console.warn(`https://svelte.dev/e/derived_inert`)}function Pe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Fe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ie(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function Le(e){T=e}var E;function Re(e){if(e===null)throw Pe(),je;return E=e}function ze(){return Re(hr(E))}function D(e){if(T){if(hr(E)!==null)throw Pe(),je;E=e}}function Be(e=1){if(T){for(var t=e,n=E;t--;)n=hr(n);E=n}}function Ve(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=hr(n);e&&n.remove(),n=i}}function He(e){if(!e||e.nodeType!==8)throw Pe(),je;return e.data}function Ue(e){return e===this.v}function We(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ge(e){return!We(e,this.v)}var Ke=!1,qe=!1,Je=null;function Ye(e){Je=e}function Xe(e,t=!1,n){Je={p:Je,i:!1,c:null,e:null,s:e,x:null,r:B,l:qe&&!t?{s:null,u:null,$:[]}:null}}function Ze(e){var t=Je,n=t.e;if(n!==null){t.e=null;for(var r of n)jr(r)}return e!==void 0&&(t.x=e),t.i=!0,Je=t.p,e??{}}function Qe(){return!qe||Je!==null&&Je.l===null}var $e=[];function et(){var e=$e;$e=[],f(e)}function tt(e){if($e.length===0&&!un){var t=$e;queueMicrotask(()=>{t===$e&&et()})}$e.push(e)}function nt(){for(;$e.length>0;)et()}function rt(e){var t=B;if(t===null)return z.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;it(e,t)}function it(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var at=~(b|x|y);function ot(e,t){e.f=e.f&at|t}function st(e){e.f&512||e.deps===null?ot(e,y):ot(e,x)}function ct(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,ct(t.deps))}function lt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),ct(e.deps),ot(e,y)}var ut=!1,dt=!1;function ft(e){var t=dt;try{return dt=!1,[e(),dt]}finally{dt=t}}function pt(e){let t=0,n=$n(0),r;return()=>{Or()&&(V(n),Fr(()=>(t===0&&(r=Si(()=>e(()=>rr(n)))),t+=1,()=>{tt(()=>{--t,t===0&&(r?.(),r=void 0,rr(n))})})))}}function mt(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function ht(e,t){mt(e,t),t.add(e)}function O(e,t,n){mt(e,t),t.set(e,n)}function k(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function A(e,t,n){return e.set(k(e,t),n),n}function j(e,t){return e.get(k(e,t))}var gt=te|ne;function _t(e,t,n,r){new Ft(e,t,n,r)}var vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakSet,Ft=class{constructor(e,t,n,r){ht(this,Pt),v(this,`parent`,void 0),v(this,`is_pending`,!1),v(this,`transform_error`,void 0),O(this,vt,void 0),O(this,yt,T?E:null),O(this,bt,void 0),O(this,xt,void 0),O(this,St,void 0),O(this,Ct,null),O(this,wt,null),O(this,Tt,null),O(this,Et,null),O(this,Dt,0),O(this,Ot,0),O(this,kt,!1),O(this,At,new Set),O(this,jt,new Set),O(this,Mt,null),O(this,Nt,pt(()=>(A(Mt,this,$n(j(Dt,this))),()=>{A(Mt,this,null)}))),A(vt,this,e),A(bt,this,t),A(xt,this,e=>{var t=B;t.b=this,t.f|=128,n(e)}),this.parent=B.b,this.transform_error=r??this.parent?.transform_error??(e=>e),A(St,this,Ir(()=>{if(T){let e=j(yt,this);ze();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));k(Pt,this,Lt).call(this,t)}else t?k(Pt,this,Rt).call(this):k(Pt,this,It).call(this)}else k(Pt,this,zt).call(this)},gt)),T&&A(vt,this,E)}defer_effect(e){lt(e,j(At,this),j(jt,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!j(bt,this).pending}update_pending_count(e,t){k(Pt,this,Ht).call(this,e,t),A(Dt,this,j(Dt,this)+e),!(!j(Mt,this)||j(kt,this))&&(A(kt,this,!0),tt(()=>{A(kt,this,!1),j(Mt,this)&&tr(j(Mt,this),j(Dt,this))}))}get_effect_pending(){return j(Nt,this).call(this),V(j(Mt,this))}error(e){if(!j(bt,this).onerror&&!j(bt,this).failed)throw e;N?.is_fork?(j(Ct,this)&&N.skip_effect(j(Ct,this)),j(wt,this)&&N.skip_effect(j(wt,this)),j(Tt,this)&&N.skip_effect(j(Tt,this)),N.oncommit(()=>{k(Pt,this,Ut).call(this,e)})):k(Pt,this,Ut).call(this,e)}};function It(){try{A(Ct,this,Lr(()=>j(xt,this).call(this,j(vt,this))))}catch(e){this.error(e)}}function Lt(e){let t=j(bt,this).failed;t&&A(Tt,this,Lr(()=>{t(j(vt,this),()=>e,()=>()=>{})}))}function Rt(){let e=j(bt,this).pending;e&&(this.is_pending=!0,A(wt,this,Lr(()=>e(j(vt,this)))),tt(()=>{var e=A(Et,this,document.createDocumentFragment()),t=pr();e.append(t),A(Ct,this,k(Pt,this,Vt).call(this,()=>Lr(()=>j(xt,this).call(this,t)))),j(Ot,this)===0&&(j(vt,this).before(e),A(Et,this,null),Wr(j(wt,this),()=>{A(wt,this,null)}),k(Pt,this,Bt).call(this,N))}))}function zt(){try{if(this.is_pending=this.has_pending_snippet(),A(Ot,this,0),A(Dt,this,0),A(Ct,this,Lr(()=>{j(xt,this).call(this,j(vt,this))})),j(Ot,this)>0){var e=A(Et,this,document.createDocumentFragment());Jr(j(Ct,this),e);let t=j(bt,this).pending;A(wt,this,Lr(()=>t(j(vt,this))))}else k(Pt,this,Bt).call(this,N)}catch(e){this.error(e)}}function Bt(e){this.is_pending=!1,e.transfer_effects(j(At,this),j(jt,this))}function Vt(e){var t=B,n=z,r=Je;ti(j(St,this)),ei(j(St,this)),Ye(j(St,this).ctx);try{return Mn.ensure(),e()}catch(e){return rt(e),null}finally{ti(t),ei(n),Ye(r)}}function Ht(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;k(Pt,n=this.parent,Ht).call(n,e,t)}return}A(Ot,this,j(Ot,this)+e),j(Ot,this)===0&&(k(Pt,this,Bt).call(this,t),j(wt,this)&&Wr(j(wt,this),()=>{A(wt,this,null)}),j(Et,this)&&(j(vt,this).before(j(Et,this)),A(Et,this,null)))}function Ut(e){j(Ct,this)&&(Vr(j(Ct,this)),A(Ct,this,null)),j(wt,this)&&(Vr(j(wt,this)),A(wt,this,null)),j(Tt,this)&&(Vr(j(Tt,this)),A(Tt,this,null)),T&&(Re(j(yt,this)),Be(),Re(Ve()));var t=j(bt,this).onerror;let n=j(bt,this).failed;var r=!1,i=!1;let a=()=>{if(r){Ie();return}r=!0,i&&Ae(),j(Tt,this)!==null&&Wr(j(Tt,this),()=>{A(Tt,this,null)}),k(Pt,this,Vt).call(this,()=>{k(Pt,this,zt).call(this)})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){it(e,j(St,this)&&j(St,this).parent)}n&&A(Tt,this,k(Pt,this,Vt).call(this,()=>{try{return Lr(()=>{var t=B;t.b=this,t.f|=128,n(j(vt,this),()=>e,()=>a)})}catch(e){return it(e,j(St,this).parent),null}}))};tt(()=>{var t;try{t=this.transform_error(e)}catch(e){it(e,j(St,this)&&j(St,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>it(e,j(St,this)&&j(St,this).parent)):o(t)})}function Wt(e,t,n,r){let i=Qe()?Jt:Zt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=B,c=Gt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){it(e,s)}Kt()}}var d=qt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Xt(e))).then(u).catch(e=>it(e,s)).finally(d)}l?l.then(()=>{c(),f(),Kt()}):f()}function Gt(){var e=B,t=z,n=Je,r=N;return function(i=!0){ti(e),ei(t),Ye(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Kt(e=!0){ti(null),ei(null),Ye(null),e&&N?.deactivate()}function qt(){var e=B,t=e.b,n=N,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Jt(e){var t=2|b;return B!==null&&(B.f|=ne),{ctx:Je,deps:null,effects:null,equals:Ue,f:t,fn:e,reactions:null,rv:0,v:Me,wv:0,parent:B,ac:null}}var Yt=Symbol(`obsolete`);function Xt(e,t,n){let r=B;r===null&&be();var i=void 0,a=$n(Me),o=!z,s=new Set;return Pr(()=>{var t=B,n=p();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==_e&&n.reject(e)}).finally(Kt)}catch(e){n.reject(e),Kt()}var c=N;if(o){if(t.f&32768)var l=qt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Yt);else for(let e of s.values())e.reject(Yt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Yt&&(c.activate(),t?(a.f|=ce,tr(a,t)):(a.f&8388608&&(a.f^=ce),tr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),kr(()=>{for(let e of s)e.reject(Yt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=Jt(e);return Ke||ri(t),t}function Zt(e){let t=Jt(e);return t.equals=Ge,t}function Qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;nthis.schedule(e)){var n=j(On,this).get(e);if(n){j(On,this).delete(e);for(var r of n.d)ot(r,b),t(r);for(r of n.m)ot(r,x),t(r)}j(kn,this).add(e)}capture(e,t,n=!1){e.v!==Me&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),cn?.set(e,t)),this.is_fork||(e.v=t)}activate(){N=this}deactivate(){N=null,cn=null}flush(){try{dn=!0,N=this,k(jn,this,Pn).call(this)}finally{mn=0,ln=null,fn=null,pn=null,dn=!1,N=null,cn=null,Zn.clear()}}discard(){for(let e of j(bn,this))e(this);j(bn,this).clear();for(let e of this.async_deriveds.values())e.reject(Yt);k(jn,this,Bn).call(this),j(Cn,this)?.resolve()}register_created_effect(e){j(Tn,this).push(e)}increment(e,t){if(A(xn,this,j(xn,this)+1),e){let e=j(Sn,this).get(t)??0;j(Sn,this).set(t,e+1)}}decrement(e,t){if(A(xn,this,j(xn,this)-1),e){let e=j(Sn,this).get(t)??0;e===1?j(Sn,this).delete(t):j(Sn,this).set(t,e-1)}j(An,this)||(A(An,this,!0),tt(()=>{A(An,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)j(En,this).add(t);for(let e of t)j(Dn,this).add(e);e.clear(),t.clear()}oncommit(e){j(yn,this).add(e)}ondiscard(e){j(bn,this).add(e)}settled(){return(j(Cn,this)??A(Cn,this,p())).promise}static ensure(){if(N===null){let t=N=new e;!dn&&!un&&tt(()=>{j(gn,t)||t.flush()})}return N}apply(){if(!Ke||!this.is_fork&&j(_n,this)===null&&j(vn,this)===null){cn=null;return}cn=new Map;for(let[e,[t]]of this.current)cn.set(e,t);for(let t=an;t!==null;t=j(vn,t))if(!(t===this||t.is_fork)){var e=!1;if(t.id1e3&&(k(jn,this,Bn).call(this),Hn());for(let e of j(En,this))j(Dn,this).delete(e),ot(e,b),this.schedule(e);for(let e of j(Dn,this))ot(e,x),this.schedule(e);let e=j(wn,this);A(wn,this,[]),this.apply();var t=fn=[],n=[],r=pn=[];for(let r of e)try{k(jn,this,Fn).call(this,r,t,n)}catch(e){throw Yn(r),k(jn,this,Nn).call(this)||this.discard(),e}if(N=null,r.length>0){var i=rn.ensure();for(let e of r)i.schedule(e)}if(fn=null,pn=null,k(jn,this,Nn).call(this)){k(jn,this,Rn).call(this,n),k(jn,this,Rn).call(this,t);for(let[e,t]of j(On,this))Jn(e,t);r.length>0&&k(jn,N,Pn).call(N);return}let a=k(jn,this,In).call(this);if(a){k(jn,this,Rn).call(this,n),k(jn,this,Rn).call(this,t),k(jn,a,Ln).call(a,this);return}j(En,this).clear(),j(Dn,this).clear();for(let e of j(yn,this))e(this);j(yn,this).clear(),sn=this,Wn(n),Wn(t),sn=null,j(Cn,this)?.resolve();var o=N;if(j(xn,this)===0&&(j(wn,this).length===0||o!==null)&&(k(jn,this,Bn).call(this),Ke&&(k(jn,this,zn).call(this),N=o)),j(wn,this).length>0)if(o!==null){let e=o;j(wn,e).push(...j(wn,this).filter(t=>!j(wn,e).includes(t)))}else o=this;o!==null&&k(jn,o,Pn).call(o)}function Fn(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||j(On,this).has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Ke&&i&16777224?n.push(r):pi(r)&&(i&16&&j(Dn,this).add(r),vi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function In(){for(var e=j(_n,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=j(_n,e)}return null}function Ln(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(j(En,e),j(Dn,e));let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(j(Dn,this).delete(i),ot(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),k(jn,e,Bn).call(e),N=this,k(jn,this,Pn).call(this)}function Rn(e){for(var t=0;t!u.current.get(e)[1]);if(!(!j(gn,u)||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of j(kn,this))u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):k(jn,u,Rn).call(u,[e])});u.activate();var a=new Set,o=new Map;for(var s of t)Gn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return n?n[0]!==t[0]||n[1]!==t[1]:!0}).map(([e])=>e);if(c.length>0)for(let e of j(Tn,this))!(e.f&155648)&&Kn(e,c,o)&&(e.f&4194320?(ot(e,b),u.schedule(e)):j(En,u).add(e));if(j(wn,u).length>0&&!j(An,u)){u.apply();for(var l of j(wn,u))k(jn,u,Fn).call(u,l,[],[]);A(wn,u,[])}u.deactivate()}}}}function Bn(){if(this.linked){var e=j(_n,this),t=j(vn,this);e===null?an=t:A(vn,e,t),t===null?on=e:A(_n,t,e),this.linked=!1}}function Vn(e){var t=un;un=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(nt(),N===null)return n;N.flush()}}finally{un=t}}function Hn(){try{Te()}catch(e){it(e,ln)}}var Un=null;function Wn(e){var t=e.length;if(t!==0){for(var n=0;n0)){Zn.clear();for(let e of Un){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Un.has(n)&&(Un.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||vi(n)}}Un.clear()}}Un=null}}function Gn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Gn(i,t,n,r):e&4194320&&!(e&2048)&&Kn(i,t,r)&&(ot(i,b),qn(i))}}function Kn(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&Kn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function qn(e){N.schedule(e)}function Jn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),ot(e,y);for(var n=e.first;n!==null;)Jn(n,t),n=n.next}}function Yn(e){ot(e,y);for(var t=e.first;t!==null;)Yn(t),t=t.next}var Xn=new Set,Zn=new Map,Qn=!1;function $n(e,t){return{f:0,v:e,reactions:null,equals:Ue,rv:0,wv:0}}function P(e,t){let n=$n(e,t);return ri(n),n}function er(e,t=!1,n=!0){let r=$n(e);if(t||(r.equals=Ge),qe&&n&&Je!==null&&Je.l!==null){var i;((i=Je.l).s??(i.s=[])).push(r)}return r}function F(e,t,n=!1){return z!==null&&(!$r||z.f&131072)&&Qe()&&z.f&4325394&&(ni===null||!ni.has(e))&&ke(),tr(e,n?ar(t):t,pn)}function tr(e,t,n=null){if(!e.equals(t)){Zn.set(e,Zr?t:e.v);var r=Mn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&$t(t),cn===null&&st(t)}e.wv=fi(),ir(e,b,n),Qe()&&B!==null&&B.f&1024&&!(B.f&96)&&(oi===null?si([e]):oi.push(e)),!r.is_fork&&Xn.size>0&&!Qn&&nr()}return t}function nr(){Qn=!1;for(let e of Xn){e.f&1024&&ot(e,x);let t;try{t=pi(e)}catch{t=!0}t&&vi(e)}Xn.clear()}function rr(e){F(e,e.v+1)}function ir(e,t,n){var r=e.reactions;if(r!==null)for(var i=Qe(),a=r.length,o=0;o{if(ui===d)return e();var t=z,n=ui;ei(null),di(d);var r=e();return ei(t),di(n),r};return i&&r.set(`length`,P(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&De();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,u);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(Me,u));r.set(t,e),rr(o)}}else F(n,Me),rr(o);return!0},get(e,n,i){if(n===le)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>P(ar(s?e[n]:Me),u)),r.set(n,o)),o!==void 0){var c=V(o);return c===Me?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=V(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==Me)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Me||Reflect.has(e,t);return(n!==void 0||B!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?ar(e[t]):Me,u)),r.set(t,n)),V(n)===Me)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;dP(Me,u)),r.set(d+``,p)):F(p,Me)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>P(void 0,u)),F(c,ar(n)),r.set(t,c));else{l=c.v!==Me;var m=f(()=>ar(n));F(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}rr(o)}return!0},ownKeys(e){V(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==Me});for(var[n,i]of r)i.v!==Me&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Oe()}})}function or(e){try{if(typeof e==`object`&&e&&le in e)return e[le]}catch{}return e}function sr(e,t){return Object.is(or(e),or(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var cr,lr,ur,dr;function fr(){if(cr===void 0){cr=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ur=a(t,`firstChild`).get,dr=a(t,`nextSibling`).get,u(e)&&(e[pe]=void 0,e[fe]=null,e[me]=void 0,e.__e=void 0),u(n)&&(n[he]=void 0)}}function pr(e=``){return document.createTextNode(e)}function mr(e){return ur.call(e)}function hr(e){return dr.call(e)}function I(e,t){if(!T)return mr(e);var n=mr(E);if(n===null)n=E.appendChild(pr());else if(t&&n.nodeType!==3){var r=pr();return n?.before(r),Re(r),r}return t&&br(n),Re(n),n}function gr(e,t=!1){if(!T){var n=mr(e);return n instanceof Comment&&n.data===``?hr(n):n}if(t){if(E?.nodeType!==3){var r=pr();return E?.before(r),Re(r),r}br(E)}return E}function L(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=hr(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=pr();return r===null?i?.after(a):r.before(a),Re(a),a}br(r)}return Re(r),r}function _r(e){e.textContent=``}function vr(){return!Ke||Un!==null?!1:(B.f&C)!==0}function yr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function br(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var xr=!1;function Sr(){xr||(xr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ge]?.()})},{capture:!0}))}function Cr(e){var t=z,n=B;ei(null),ti(null);try{return e()}finally{ei(t),ti(n)}}function wr(e,t,n,r=n){e.addEventListener(t,()=>Cr(n));let i=e[ge];i?e[ge]=()=>{i(),r(!0)}:e[ge]=()=>r(!0),Sr()}function Tr(e){B===null&&(z===null&&we(e),Ce()),Zr&&Se(e)}function Er(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Dr(e,t){var n=B;n!==null&&n.f&8192&&(e|=S);var r={ctx:Je,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};N?.register_created_effect(r);var i=r;if(e&4)fn===null?Mn.ensure().schedule(r):fn.push(r);else if(t!==null){try{vi(r)}catch(e){throw Vr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&Er(i,n),z!==null&&z.f&2&&!(e&64))){var a=z;(a.effects??(a.effects=[])).push(i)}return r}function Or(){return z!==null&&!$r}function kr(e){let t=Dr(8,null);return ot(t,y),t.teardown=e,t}function Ar(e){Tr(`$effect`);var t=B.f;if(!z&&t&32&&Je!==null&&!Je.i){var n=Je;(n.e??(n.e=[])).push(e)}else return jr(e)}function jr(e){return Dr(4|re,e)}function Mr(e){Mn.ensure();let t=Dr(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Wr(t,()=>{Vr(t),n(void 0)}):(Vr(t),n(void 0))})}function Nr(e){return Dr(4,e)}function Pr(e){return Dr(se|ne,e)}function Fr(e,t=0){return Dr(8|t,e)}function R(e,t=[],n=[],r=[]){Wt(r,t,n,t=>{Dr(8,()=>{e(...t.map(V))})})}function Ir(e,t=0){return Dr(16|t,e)}function Lr(e){return Dr(32|ne,e)}function Rr(e){var t=e.teardown;if(t!==null){let e=Zr,n=z;Qr(!0),ei(null);try{t.call(null)}finally{Qr(e),ei(n)}}}function zr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Cr(()=>{e.abort(_e)});var r=n.next;n.f&64?n.parent=null:Vr(n,t),n=r}}function Br(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Vr(t),t=n}}function Vr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Hr(e.nodes.start,e.nodes.end),n=!0),e.f|=w,zr(e,t&&!n),_i(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Rr(e),e.f^=w,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Ur(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Hr(e,t){for(;e!==null;){var n=e===t?null:hr(e);e.remove(),e=n}}function Ur(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Wr(e,t,n=!0){var r=[];Gr(e,r,!0);var i=()=>{n&&Vr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Gr(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Gr(i,t,o?n:!1)}i=a}}}function Kr(e){qr(e,!0)}function qr(e,t){if(e.f&8192){e.f^=S,e.f&1024||(ot(e,b),Mn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;qr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Jr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:hr(n);t.append(n),n=i}}var Yr=null,Xr=!1,Zr=!1;function Qr(e){Zr=e}var z=null,$r=!1;function ei(e){z=e}var B=null;function ti(e){B=e}var ni=null;function ri(e){z!==null&&(!Ke||z.f&2)&&(ni??(ni=new Set)).add(e)}var ii=null,ai=0,oi=null;function si(e){oi=e}var ci=1,li=0,ui=li;function di(e){ui=e}function fi(){return++ci}function pi(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&cn===null&&ot(e,y)}return!1}function mi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ke&&ni!==null&&ni.has(e)))for(var i=0;i{e.ac.abort(_e)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(ii!==null){var m;if(p||_i(e,ai),f!==null&&ai>0)for(f.length=ai+ii.length,m=0;m{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Vn()}function V(e){var t=(e.f&2)!=0;if(Yr?.add(e),z!==null&&!$r&&!(B!==null&&B.f&16384)&&(ni===null||!ni.has(e))){var r=z.deps;if(z.f&2097152)e.rv{throw e});throw p}}finally{e[Ti]=t,delete e.currentTarget,ei(d),ti(f)}}}var ji=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Mi(e){return ji?.createHTML(e)??e}function Ni(e){var t=yr(`template`);return t.innerHTML=Mi(e.replaceAll(``,``)),t.content}function Pi(e,t){var n=B;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function U(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(``);return()=>{if(T)return Pi(E,null),E;i===void 0&&(i=Ni(a?e:``+e),n||(i=mr(i)));var t=r||lr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=mr(t),s=t.lastChild;Pi(o,s)}else Pi(t,t);return t}}function Fi(e=``){if(!T){var t=pr(e+``);return Pi(t,t),t}var n=E;return n.nodeType===3?br(n):(n.before(n=pr()),Re(n)),Pi(n,n),n}function Ii(){if(T)return Pi(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=pr();return e.append(t,n),Pi(t,n),e}function W(e,t){if(T){var n=B;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),ze();return}e!==null&&e.before(t)}function G(e,t){var n,r=t==null?``:typeof t==`object`?`${t}`:t;r!==((n=e)[he]??(n[he]=e.nodeValue))&&(e[he]=r,e.nodeValue=`${r}`)}function Li(e,t){return zi(e,t)}var Ri=new Map;function zi(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){fr();var l=void 0,u=Mr(()=>{var s=n??t.appendChild(pr());_t(s,{pending:()=>{}},t=>{Xe({});var n=Je;if(o&&(n.c=o),a&&(i.$$events=a),T&&Pi(t,null),l=e(t,i)||{},T&&(B.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Pe(),je;Ze()},c);var u=new Set,d=e=>{for(var n=0;n{for(var e of u)for(let n of[t,document]){var r=Ri.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ai),r.delete(e),r.size===0&&Ri.delete(n)):r.set(e,i)}Di.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Bi.set(l,u),l}var Bi=new WeakMap,Vi=new WeakMap,Hi=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,qi=new WeakMap,Ji=class{constructor(e,t=!0){v(this,`anchor`,void 0),O(this,Vi,new Map),O(this,Hi,new Map),O(this,Ui,new Map),O(this,Wi,new Set),O(this,Gi,!0),O(this,Ki,e=>{if(j(Vi,this).has(e)){var t=j(Vi,this).get(e),n=j(Hi,this).get(t);if(n)Kr(n),j(Wi,this).delete(t);else{var r=j(Ui,this).get(t);r&&(Kr(r.effect),j(Hi,this).set(t,r.effect),j(Ui,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of j(Vi,this)){if(j(Vi,this).delete(t),t===e)break;let r=j(Ui,this).get(n);r&&(Vr(r.effect),j(Ui,this).delete(n))}for(let[e,r]of j(Hi,this)){if(e===t||j(Wi,this).has(e))continue;let i=()=>{if(Array.from(j(Vi,this).values()).includes(e)){var t=document.createDocumentFragment();Jr(r,t),t.append(pr()),j(Ui,this).set(e,{effect:r,fragment:t})}else Vr(r);j(Wi,this).delete(e),j(Hi,this).delete(e)};j(Gi,this)||!n?(j(Wi,this).add(e),Wr(r,i,!1)):i()}}}),O(this,qi,e=>{j(Vi,this).delete(e);let t=Array.from(j(Vi,this).values());for(let[e,n]of j(Ui,this))t.includes(e)||(Vr(n.effect),j(Ui,this).delete(e))}),this.anchor=e,A(Gi,this,t)}ensure(e,t){var n=N,r=vr();if(t&&!j(Hi,this).has(e)&&!j(Ui,this).has(e))if(r){var i=document.createDocumentFragment(),a=pr();i.append(a),j(Ui,this).set(e,{effect:Lr(()=>t(a)),fragment:i})}else j(Hi,this).set(e,Lr(()=>t(this.anchor)));if(j(Vi,this).set(n,e),r){for(let[t,r]of j(Hi,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of j(Ui,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(j(Ki,this)),n.ondiscard(j(qi,this))}else T&&(this.anchor=E),j(Ki,this).call(this,n)}};function K(e,t,n=!1){var r;T&&(r=E,ze());var i=new Ji(e),a=n?te:0;function o(e,t){if(T){var n=He(r);if(e!==parseInt(n.substring(1))){var a=Ve();Re(a),i.anchor=a,Le(!1),i.ensure(e,t),Le(!0);return}}i.ensure(e,t)}Ir(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Yi(e,t){return t}function Xi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Zi(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=i.length===0&&n!==null;if(l){var u=n,d=u.parentNode;_r(d),d.append(u),e.items.clear()}Zi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Zi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,ea(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,na(d,null,c)):Kr(d):Wr(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Ir(()=>{p=V(f);var e=p.length;let t=!1;T&&He(c)===`[!`!=(e===0)&&(c=Ve(),Re(c),Le(!1),t=!0);for(var r=new Set,u=N,v=vr(),y=0;ys(c)):(d=Lr(()=>s(Qi??(Qi=pr()))),d.f|=ie)),e>r.size&&xe(``,``,``),T&&e>0&&Re(Ve()),!h)if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Le(!0),V(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function $i(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ea(e,t,n,i,a){var o=(i&8)!=0,s=t.length,c=e.items,l=$i(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v0){var te=i&4&&s===0?n:null;if(o){for(v=0;v{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function ta(e,t,n,r,i,a,o,s){var c=o&1?o&16?$n(n):er(n,!1,!1):null,l=o&2?$n(i):null;return{v:c,i:l,e:Lr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function na(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=hr(r);if(a.before(r),r===i)return;r=o}}function ra(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ia(e,t,...n){var r=new Ji(e);Ir(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}var aa=[...` +\r\f\xA0\v`];function oa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||aa.includes(r[o-1]))&&(s===r.length||aa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function sa(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ca(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function la(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ca)),i&&c.push(...Object.keys(i).map(ca));var l=0,u=-1;let t=e.length;for(var d=0;d{fa(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),kr(()=>{t.disconnect()})}function ma(e,t,n=t){var r=new WeakSet,i=!0;wr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),ha);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&ha(o)}n(a),e.__value=a,N!==null&&r.add(N)}),Nr(()=>{var a=t();if(e===document.activeElement){var o=Ke?sn:N;if(r.has(o))return}if(fa(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=ha(s),n(a))}e.__value=a,i=!1}),pa(e)}function ha(e){return`__value`in e?e.__value:e.value}var ga=Symbol(`is custom element`),_a=Symbol(`is html`),va=ve?`link`:`LINK`,ya=ve?`progress`:`PROGRESS`;function ba(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Y(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Y(e,`checked`,null),e.checked=r}}};e[ge]=n,tt(n),Sr()}}function xa(e,t){var n=Sa(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==ya)||(e.value=t??``)}function Y(e,t,n,r){var i=Sa(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===va)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&wa(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Sa(e){var t;return(t=e)[fe]??(t[fe]={[ga]:e.nodeName.includes(`-`),[_a]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var Ca=new Map;function wa(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ca.get(t);if(n)return n;Ca.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function Ta(e,t,n=t){var r=new WeakSet;wr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ea(e)?Da(a):a,n(a),N!==null&&r.add(N),await yi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||Si(t)==null&&e.value)&&(n(Ea(e)?Da(e.value):e.value),N!==null&&r.add(N)),Fr(()=>{var n=t();if(e===document.activeElement){var i=Ke?sn:N;if(r.has(i))return}Ea(e)&&n===Da(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ea(e){var t=e.type;return t===`number`||t===`range`}function Da(e){return e===``?null:+e}var Oa,ka=new WeakMap,Aa=new WeakMap,ja=new WeakMap,Ma=new WeakSet,Na=class{constructor(e){ht(this,Ma),O(this,ka,new WeakMap),O(this,Aa,void 0),O(this,ja,void 0),A(ja,this,e)}observe(e,t){var n=j(ka,this).get(e)||new Set;return n.add(t),j(ka,this).set(e,n),k(Ma,this,Pa).call(this).observe(e,j(ja,this)),()=>{var n=j(ka,this).get(e);n.delete(t),n.size===0&&(j(ka,this).delete(e),j(Aa,this).unobserve(e))}}};Oa=Na;function Pa(){return j(Aa,this)??A(Aa,this,new ResizeObserver(e=>{for(var t of e){Oa.entries.set(t.target,t);for(var n of j(ka,this).get(t.target)||[])n(t)}}))}v(Na,`entries`,new WeakMap);function Fa(e,t){return e===t||e?.[le]===t}function Ia(e={},t,n,r){var i=Je.r,a=B;return Nr(()=>{var o,s;return Fr(()=>{o=s,s=r?.()||[],Si(()=>{Fa(n(...s),e)||(t(e,...s),o&&Fa(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Fa(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function X(e,t,n,r){var i=!qe||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=Jt(r)),V(u)):(l&&(l=!1,c=s?Si(r):r),c);let f;if(o){var p=le in e||ue in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=ft(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ee(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Jt:Zt)(()=>(v=!1,g()));o&&V(y);var b=B;return(function(e,t){if(arguments.length>0){let n=t?V(y):i&&o?ar(e):e;return F(y,n),v=!0,c!==void 0&&(c=n),e}return Zr&&v||b.f&16384?y.v:V(y)})}function La(e){Je===null&&ye(`onMount`),qe&&Je.l!==null?Ra(Je).m.push(e):Ar(()=>{let t=Si(e);if(typeof t==`function`)return t})}function Ra(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}if(typeof window<`u`){var za,Ba;((za=(Ba=window).__svelte??(Ba.__svelte={})).v??(za.v=new Set)).add(`5`)}var Va=typeof window<`u`&&window.slashedApp?window.slashedApp:{defaults:{},settings:{},tabs:{},rest:{url:``,nonce:``}},Z={defaults:Va.defaults||{},tabs:Va.tabs||{},rest:Va.rest||{url:``,nonce:``},inventory:Va.inventory||{variables:[],sf_classes:[],is_classes:[]},pluginSettings:Va.pluginSettings||{},versions:Va.versions||{plugin:``,framework:``},activeIntegrations:Va.activeIntegrations||{bricks:!0,gutenberg:!0},bricksFonts:Va.bricksFonts||[]},Q=ar(structuredClone(Va.settings||{})),$=ar({activeTab:Ha(Z.tabs)||`colors`,dirty:!1,saving:!1,lastSavedAt:null,error:``,outputMode:`layer`});function Ha(e){for(let t in e)return t;return null}function Ua(){$.dirty=!0,$.error=``}function Wa(e){Q[e]&&delete Q[e]}function Ga(){let e=Q.spacing??{},t=Z.defaults?.spacing??{},n=(n,r)=>{let i=e[n],a=parseFloat(i!==void 0&&i!==``?i:t[n]??r);return Number.isFinite(a)?a:r},r=n(`viewport_min`,22.5),i=n(`viewport_max`,90),a=i>r?i:r+.5;return{minRem:r,maxRem:a,minPx:Math.round(r*16),maxPx:Math.round(a*16)}}function Ka(e,t){let n=Q[e];if(!n)return``;let r=n[t];return r==null?``:String(r)}function qa(e,t,n){Q[e]||(Q[e]={}),n===``||n==null||typeof n==`string`&&n.trim()===``?delete Q[e][t]:Q[e][t]=String(n),Ua()}var Ja=U(``),Ya=U(`

`);function Xa(e,t){Xe(t,!0);var n=Ya();q(n,21,()=>Object.entries(Z.tabs),([e,t])=>e,(e,t)=>{var n=M(()=>m(V(t),2));let r=()=>V(n)[0],i=()=>V(n)[1];var a=Ja();let o;var s=I(a,!0);D(a),R(()=>{o=ua(a,1,`tab-nav__btn svelte-yyiz68`,null,o,{active:$.activeTab===r()}),G(s,i())}),H(`click`,a,()=>$.activeTab=r()),W(e,a)}),D(n),W(e,n),Ze()}Oi([`click`]);var Za=U(` `),Qa=U(` `,1),$a=U(``),eo=U(`
`);function to(e,t){Xe(t,!0);let n=X(t,`hexHint`,3,``),r=X(t,`rawHint`,3,``),i=X(t,`cssVar`,3,``),a=/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,o=(()=>{let e=(Q.colors?.[t.storeKey]??``).trim(),n=e===``||a.test(e);return{mode:n?`hex`:`raw`,hex:n?e:``,raw:n?``:e}})(),s=P(ar(o.mode)),c=P(ar(o.hex)),l=P(ar(o.raw));function u(){Q.colors||(Q.colors={});let e=V(l).trim(),n=V(c).trim(),r=V(s)===`raw`?e:n;r===``?delete Q.colors[t.storeKey]:Q.colors[t.storeKey]=r,Ua()}function d(){V(s)===`hex`?(F(s,`raw`),F(c,``)):(F(s,`hex`),F(l,``)),u()}let f=M(()=>(V(s)===`raw`?V(l):V(c))||n()||`transparent`);var p=eo(),m=I(p),h=I(m),g=I(h,!0);D(h);var _=L(h,2),v=e=>{var t=Za(),n=I(t,!0);D(t),R(()=>G(n,i())),W(e,t)};K(_,e=>{i()&&e(v)}),D(m);var y=L(m,2),b=I(y);let x;var S=L(b,2),ee=e=>{var r=Qa(),i=gr(r);ba(i);var a=L(i,2);ba(a),R(()=>{Y(i,`id`,t.storeKey),Y(a,`placeholder`,n())}),H(`input`,i,u),Ta(i,()=>V(c),e=>F(c,e)),H(`input`,a,u),Ta(a,()=>V(c),e=>F(c,e)),W(e,r)},C=e=>{var n=$a();ba(n),R(()=>{Y(n,`id`,t.storeKey),Y(n,`placeholder`,r())}),H(`input`,n,u),Ta(n,()=>V(l),e=>F(l,e)),W(e,n)};K(S,e=>{V(s)===`hex`?e(ee):e(C,-1)});var w=L(S,2),te=I(w,!0);D(w),D(y),D(p),R(()=>{Y(h,`for`,t.storeKey),G(g,t.label),x=J(b,``,x,{background:V(f)}),G(te,V(s)===`hex`?`Advanced (oklch / raw)`:`Use HEX picker`)}),H(`click`,w,d),W(e,p),Ze()}Oi([`input`,`click`]);var no=U(`
`),ro=U(`
`);function io(e,t){Xe(t,!0);let n=P(!1),r=`adv-body-${Math.random().toString(36).slice(2,9)}`;var i=ro(),a=I(i),o=L(I(a));let s;var c=I(o,!0);D(o),D(a);var l=L(a,2),u=e=>{var n=no();ia(I(n),()=>t.children),D(n),R(()=>Y(n,`id`,r)),W(e,n)};K(l,e=>{V(n)&&e(u)}),D(i),R(()=>{Y(a,`aria-expanded`,V(n)),Y(a,`aria-controls`,r),s=ua(o,1,`advanced-section__arrow`,null,s,{open:V(n)}),G(c,V(n)?`▲`:`▼`)}),H(`click`,a,()=>F(n,!V(n))),W(e,i),Ze()}Oi([`click`]);var ao=U(`

Brand Colors — Dark Mode

Status Colors — Dark Mode

`,1),oo=U(`

Status Colors — Light Mode

The framework auto-derives dark mode from light source colors using CSS relative color syntax (oklch(from light clamp(0.65, 0.95−l·0.5, 0.88) c·0.9 h)). Turn this on only - when you need precise per-color dark overrides; auto-derivation is usually good enough.

`,1),so=W(`

Brand Colors — Light Mode

Pick a color via the HEX input, or switch to Advanced to paste any + when you need precise per-color dark overrides; auto-derivation is usually good enough.

`,1),so=U(`

Brand Colors — Light Mode

Pick a color via the HEX input, or switch to Advanced to paste any CSS color value (oklch, rgb, hsl, var(...), etc). Whatever you save is fed - straight into the framework as the source of the brand scale.

`);function co(e,t){Ye(t,!0);let n=Z.defaults?.colors??{},r=e=>e.charAt(0).toUpperCase()+e.slice(1),i=Object.entries(n.brand??{}),a=N(()=>Ka(`colors`,`dark_overrides_enabled`)!==`0`);function o(){qa(`colors`,`dark_overrides_enabled`,H(a)?`0`:`1`)}var s=so(),c=R(L(s),4);J(c,21,()=>i,([e,t])=>e,(e,t)=>{var i=N(()=>m(H(t),2));let a=()=>H(i)[0],o=()=>H(i)[1];{let t=N(()=>`brand_${a()}`),i=N(()=>r(a())),s=N(()=>n.brand_hex_hints?.[a()]??``),c=N(()=>`--sf-color-${a()}-light`);to(e,{get storeKey(){return H(t)},get label(){return H(i)},get hexHint(){return H(s)},get rawHint(){return o()},get cssVar(){return H(c)}})}}),O(c),io(R(c,2),{children:(e,t)=>{var i=oo(),s=R(hr(i),2);J(s,21,()=>Object.entries(n.status??{}),([e,t])=>e,(e,t)=>{var i=N(()=>m(H(t),2));let a=()=>H(i)[0],o=()=>H(i)[1];{let t=N(()=>`status_${a()}`),i=N(()=>r(a())),s=N(()=>n.status_hex_hints?.[a()]??``),c=N(()=>`--sf-color-${a()}-light`);to(e,{get storeKey(){return H(t)},get label(){return H(i)},get hexHint(){return H(s)},get rawHint(){return o()},get cssVar(){return H(c)}})}}),O(s);var c=R(s,2),l=L(c),u=L(l);let d;var f=R(u,2),p=L(f,!0);O(f),O(l),ze(2),O(c);var h=R(c,2),g=e=>{var t=ao(),i=R(hr(t),2);J(i,21,()=>Object.entries(n.brand_dark??n.brand??{}),([e])=>e,(e,t)=>{var i=N(()=>m(H(t),1));let a=()=>H(i)[0];{let t=N(()=>`brand_dark_${a()}`),i=N(()=>r(a())),o=N(()=>n.brand_dark_hex_hints?.[a()]??``),s=N(()=>n.brand_dark?.[a()]??``),c=N(()=>`--sf-color-${a()}-dark`);to(e,{get storeKey(){return H(t)},get label(){return H(i)},get hexHint(){return H(o)},get rawHint(){return H(s)},get cssVar(){return H(c)}})}}),O(i);var a=R(i,4);J(a,21,()=>Object.entries(n.status_dark??n.status??{}),([e])=>e,(e,t)=>{var i=N(()=>m(H(t),1));let a=()=>H(i)[0];{let t=N(()=>`status_dark_${a()}`),i=N(()=>r(a())),o=N(()=>n.status_dark_hex_hints?.[a()]??``),s=N(()=>n.status_dark?.[a()]??``),c=N(()=>`--sf-color-${a()}-dark`);to(e,{get storeKey(){return H(t)},get label(){return H(i)},get hexHint(){return H(o)},get rawHint(){return H(s)},get cssVar(){return H(c)}})}}),O(a),G(e,t)};q(h,e=>{H(a)&&e(g)}),z(()=>{d=la(u,1,`dark-toggle-btn svelte-1vle0rm`,null,d,{on:H(a)}),X(u,`aria-pressed`,H(a)),K(p,H(a)?`Active — custom values override auto-derivation`:`Off — dark mode auto-derived from light source colors`)}),U(`click`,u,o),G(e,i)},$$slots:{default:!0}}),O(s),G(e,s),Xe()}Di([`click`]);var lo=W(``),uo=W(` `),fo=W(` `),po=W(`

`),mo=W(`
`);function ho(e,t){let n=Ia(t,`cssVar`,3,``),r=Ia(t,`fieldId`,3,``),i=Ia(t,`description`,3,``);var a=mo(),o=L(a),s=L(o),c=e=>{var n=lo(),i=L(n,!0);O(n),z(()=>{X(n,`for`,r()),K(i,t.label)}),G(e,n)},l=e=>{var n=uo(),r=L(n,!0);O(n),z(()=>K(r,t.label)),G(e,n)};q(s,e=>{r()?e(c):e(l,-1)});var u=R(s,2),f=e=>{var t=fo(),r=L(t,!0);O(t),z(()=>K(r,n())),G(e,t)};q(u,e=>{n()&&e(f)}),O(o);var p=R(o,2),m=L(p);ra(m,()=>t.children??d);var h=R(m,2),g=e=>{var t=po(),n=L(t,!0);O(t),z(()=>K(n,i())),G(e,t)};q(h,e=>{i()&&e(g)}),O(p),O(a),G(e,a)}var go=W(``);function _o(e,t){Ye(t,!0);let n=Ia(t,`default`,3,``),r=Ia(t,`cssVar`,3,``),i=Ia(t,`description`,3,``),a=Ia(t,`mono`,3,!1),o=Ia(t,`width`,3,`320px`),s=N(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return r()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,r)=>{var i=go();ya(i);let l,u;z(e=>{X(i,`id`,t.fieldKey),l=la(i,1,`text svelte-j8yw6l`,null,l,{mono:a()}),ba(i,H(s)),X(i,`placeholder`,e),u=Y(i,``,u,{width:o()})},[()=>String(n())]),U(`input`,i,c),G(e,i)},$$slots:{default:!0}}),Xe()}Di([`input`]);async function vo(e,t){let{url:n,nonce:r}=Z.rest;if(!n)return console.info(`[slashed-admin] (dev) would POST`,e,t),{ok:!0,dev:!0};let i=await fetch(n+e,{method:`POST`,credentials:`same-origin`,headers:{"Content-Type":`application/json`,"X-WP-Nonce":r},body:JSON.stringify(t)});if(!i.ok){let e=await i.text();throw Error(e||`HTTP ${i.status}`)}return i.json()}function yo(e,t){return vo(`/tokens`,{section:e,values:t})}function bo(e){return vo(`/tokens/reset`,{section:e})}function xo(e){return vo(`/settings`,e)}async function So(){let{url:e,nonce:t}=Z.rest;if(!e)return console.info(`[slashed-admin] (dev) would GET /bricks-fonts`),Array.isArray(Z.bricksFonts)?Z.bricksFonts:[];let n=await fetch(e+`/bricks-fonts`,{credentials:`same-origin`,headers:{"X-WP-Nonce":t}});if(!n.ok)throw Error(await n.text()||`HTTP ${n.status}`);let r=await n.json();return Array.isArray(r?.fonts)?r.fonts:[]}async function Co(){let{url:e,nonce:t}=Z.rest;if(!e)return console.info(`[slashed-admin] (dev) would GET /tokens/export`),{schema_version:`1`,tokens:{},plugin_settings:{},dev:!0};let n=await fetch(e+`/tokens/export`,{credentials:`same-origin`,headers:{"X-WP-Nonce":t}});if(!n.ok)throw Error(await n.text()||`HTTP ${n.status}`);return n.json()}function wo(e){return vo(`/tokens/import`,e)}var To=[{label:`System UI`,value:`system-ui, sans-serif`},{label:`Neo-Grotesque`,value:`Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif`},{label:`Geometric Humanist`,value:`Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif`},{label:`Classical Humanist`,value:`Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif`},{label:`Humanist Sans`,value:`Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif`},{label:`Industrial Sans`,value:`'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif`},{label:`Rounded Sans`,value:`ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif`},{label:`Transitional Serif`,value:`Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif`},{label:`Old Style Serif`,value:`'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif`},{label:`Slab Serif`,value:`Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif`},{label:`Antique Serif`,value:`Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif`},{label:`Didone Serif`,value:`Didact Gothic, 'Bodoni MT', 'Bodoni 72', Didot, 'Playfair Display', serif`},{label:`Monospace`,value:`ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace`},{label:`Handwritten`,value:`'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive`}];function Eo(e){if(!e)return null;let t=String(e).replace(/\s+/g,` `).trim().toLowerCase();return To.find(e=>e.value.replace(/\s+/g,` `).trim().toLowerCase()===t)??null}var Do=W(``),Oo=W(`Bricks`),ko=W(``),Ao=W(``),jo=W(`

No Bricks fonts found. Add fonts in Bricks › Settings › Custom Fonts or the Bricks Font Manager, then reload this page.

`),Mo=W(``),No=W(`The quick brown fox`),Po=W(`
`);function Fo(e,t){Ye(t,!0);let n=Ia(t,`default`,3,``),r=Ia(t,`cssVar`,3,``),i=Ia(t,`description`,3,``),a=F(ir(Z.bricksFonts)),o=Z.activeIntegrations?.bricks??!0;La(async()=>{try{I(a,await So(),!0)}catch{}});let s=N(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey])),c=N(()=>H(s)||String(n()));function l(e){let t=(e||String(n())).trim().toLowerCase();return o&&H(a).some(e=>t===e.family.toLowerCase())?`bricks`:Eo(e||String(n()))?`system`:`manual`}let u=F(null),d=N(()=>H(u)??l(H(c)));function f(e){I(u,e,!0),e===`system`?To.find(e=>e.value.toLowerCase()===H(c).toLowerCase())||qa(t.section,t.fieldKey,To[0].value):e===`bricks`&&!H(a).find(e=>e.family.toLowerCase()===H(c).toLowerCase())&&H(a).length>0&&qa(t.section,t.fieldKey,H(a)[0].family)}function p(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function m(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function h(e){qa(t.section,t.fieldKey,e.currentTarget.value)}let g={adobe:` (Adobe)`,google:` (Google)`},_=e=>g[e]??``;ho(e,{get label(){return t.label},get cssVar(){return r()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,r)=>{var i=Po(),l=L(i),u=L(l);let g;var v=R(u,2),y=e=>{var t=Do();let n;z(()=>n=la(t,1,`source-tab svelte-ow2kvz`,null,n,{"source-tab--active":H(d)===`bricks`})),U(`click`,t,()=>f(`bricks`)),G(e,t)},b=e=>{G(e,Oo())};q(v,e=>{o?e(y):e(b,-1)});var x=R(v,2);let S;O(l);var ee=R(l,2),C=e=>{var n=Ao();J(n,21,()=>To,e=>e.value,(e,t)=>{var n=ko(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).value)&&(n.value=(n.__value=H(t).value)??``)}),G(e,n)}),O(n);var r;fa(n),z(()=>{X(n,`id`,t.fieldKey),r!==(r=H(c))&&(n.value=(n.__value=H(c))??``,da(n,H(c)))}),U(`change`,n,p),G(e,n)},w=e=>{var n=Fi(),r=hr(n),i=e=>{var n=Ao();J(n,21,()=>H(a),e=>e.family,(e,t)=>{var n=ko(),r=L(n);O(n);var i={};z(e=>{K(r,`${H(t).label??``}${e??``}`),i!==(i=H(t).family)&&(n.value=(n.__value=H(t).family)??``)},[()=>_(H(t).source)]),G(e,n)}),O(n);var r;fa(n),z(()=>{X(n,`id`,t.fieldKey),r!==(r=H(c))&&(n.value=(n.__value=H(c))??``,da(n,H(c)))}),U(`change`,n,m),G(e,n)},o=e=>{G(e,jo())};q(r,e=>{H(a).length>0?e(i):e(o,-1)}),G(e,n)},te=e=>{var r=Mo();ya(r),z(e=>{X(r,`id`,t.fieldKey),ba(r,H(s)),X(r,`placeholder`,e)},[()=>String(n())]),U(`input`,r,h),G(e,r)};q(ee,e=>{H(d)===`system`?e(C):H(d)===`bricks`&&o?e(w,1):e(te,-1)});var ne=R(ee,2),re=e=>{var t=No();z(()=>Y(t,`font-family: ${H(c)??``}`)),G(e,t)};q(ne,e=>{H(c)&&e(re)}),O(i),z(()=>{g=la(u,1,`source-tab svelte-ow2kvz`,null,g,{"source-tab--active":H(d)===`system`}),S=la(x,1,`source-tab svelte-ow2kvz`,null,S,{"source-tab--active":H(d)===`manual`})}),U(`click`,u,()=>f(`system`)),U(`click`,x,()=>f(`manual`)),G(e,i)},$$slots:{default:!0}}),Xe()}Di([`click`,`change`,`input`]);var Io=W(` `),Lo=W(` `,1);function Ro(e,t){Ye(t,!0);let n=Ia(t,`min`,3,void 0),r=Ia(t,`max`,3,void 0),i=Ia(t,`step`,3,void 0),a=Ia(t,`default`,3,``),o=Ia(t,`cssVar`,3,``),s=Ia(t,`unit`,3,``),c=Ia(t,`description`,3,``),l=Ia(t,`width`,3,`120px`),u=N(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function d(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return o()},get fieldId(){return t.fieldKey},get description(){return c()},children:(e,o)=>{var c=Lo(),f=hr(c);ya(f);let p;var m=R(f,2),h=e=>{var t=Io(),n=L(t,!0);O(t),z(()=>K(n,s())),G(e,t)};q(m,e=>{s()&&e(h)}),z(e=>{X(f,`id`,t.fieldKey),X(f,`min`,n()),X(f,`max`,r()),X(f,`step`,i()),ba(f,H(u)),X(f,`placeholder`,e),p=Y(f,``,p,{width:l()})},[()=>String(a())]),U(`input`,f,d),G(e,c)},$$slots:{default:!0}}),Xe()}Di([`input`]);var zo=W(`
`),Bo=W(`

Display Scale

`),Vo=W(`

Live Scale Preview

Text Scale

`);function Ho(e,t){Ye(t,!0);let n=N(Ga),r=F(ir(Ga().maxPx));kr(()=>{H(r)H(n).maxPx&&I(r,H(n).maxPx,!0)});let i=(Z.defaults?.typography??{}).font_sizes??{};function a(e){let t=Q.typography??{},n=i[e]??{},r=t[`size_${e}_min`],a=t[`size_${e}_max`];return{min:r!==void 0&&r!==``?parseFloat(r):n.min??.75,max:a!==void 0&&a!==``?parseFloat(a):n.max??1}}let o=N(()=>{let e=Math.max(0,Math.min(1,(H(r)-H(n).minPx)/(H(n).maxPx-H(n).minPx))),t={};for(let n of Object.keys(i)){let{min:r,max:i}=a(n),o=r+(i-r)*e;t[n]={sizePx:o*16,sizeRem:o.toFixed(3)}}return t}),s=[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`],c=[`display-s`,`display-m`,`display-l`],l=N(()=>s.filter(e=>i[e])),u=N(()=>c.filter(e=>i[e]));var d=Vo(),f=L(d),p=R(L(f),2),m=L(p),h=L(m);O(m);var g=R(m,2);ya(g);var _=R(g,2),v=L(_);O(_);var y=R(_,2),b=L(y);O(y),O(p),O(f);var x=R(f,2);J(R(L(x),2),16,()=>H(l),e=>e,(e,t)=>{let n=N(()=>H(o)[t]);var r=Fi(),i=hr(r),a=e=>{var r=zo(),i=L(r),a=L(i,!0);O(i);var o=R(i,2);let s;var c=L(o,!0);O(o);var l=R(o,2),u=L(l);O(l),O(r),z((e,r)=>{K(a,t),s=Y(o,``,s,e),K(c,t),K(u,`${H(n).sizeRem??``}rem / ${r??``}px`)},[()=>({"font-size":`${H(n).sizePx.toFixed(1)??``}px`}),()=>H(n).sizePx.toFixed(1)]),G(e,r)};q(i,e=>{H(n)&&e(a)}),G(e,r)}),O(x);var S=R(x,2),ee=e=>{var t=Bo();J(R(L(t),2),16,()=>H(u),e=>e,(e,t)=>{let n=N(()=>H(o)[t]);var r=Fi(),i=hr(r),a=e=>{var r=zo(),i=L(r),a=L(i,!0);O(i);var o=R(i,2);let s;var c=L(o,!0);O(o);var l=R(o,2),u=L(l);O(l),O(r),z((e,r)=>{K(a,t),s=Y(o,``,s,e),K(c,t),K(u,`${H(n).sizeRem??``}rem / ${r??``}px`)},[()=>({"font-size":`${H(n).sizePx.toFixed(1)??``}px`}),()=>H(n).sizePx.toFixed(1)]),G(e,r)};q(i,e=>{H(n)&&e(a)}),G(e,r)}),O(t),G(e,t)};q(S,e=>{H(u).length>0&&e(ee)}),O(d),z(()=>{K(h,`${H(n).minPx??``}px`),X(g,`min`,H(n).minPx),X(g,`max`,H(n).maxPx),K(v,`${H(n).maxPx??``}px`),K(b,`${H(r)??``}px`)}),wa(g,()=>H(r),e=>I(r,e)),G(e,d),Xe()}var Uo=[{label:`Minor Second (1.067)`,value:1.067},{label:`Major Second (1.125)`,value:1.125},{label:`Minor Third (1.200)`,value:1.2},{label:`Major Third (1.250)`,value:1.25},{label:`Perfect Fourth (1.333)`,value:1.333},{label:`Augmented Fourth (1.414)`,value:1.414},{label:`Perfect Fifth (1.500)`,value:1.5},{label:`Golden Ratio (1.618)`,value:1.618},{label:`Major Sixth (1.667)`,value:1.667},{label:`Octave (2.000)`,value:2}];function Wo(e,t,n){return e*t**+n}function Go(e,t=4){let n=10**t;return Math.round(e*n)/n}var Ko=W(``),qo=W(`
`),Jo=W(`
Scale Generator Computes all step min/max values from a modular scale. Click Apply to write them to the fields below.
`);function Yo(e,t){Ye(t,!0);let n=[{name:`2xs`,idx:-4},{name:`xs`,idx:-3},{name:`s`,idx:-2},{name:`m`,idx:0},{name:`l`,idx:1},{name:`xl`,idx:2},{name:`2xl`,idx:3},{name:`3xl`,idx:4},{name:`4xl`,idx:5},{name:`display-s`,idx:5},{name:`display-m`,idx:6},{name:`display-l`,idx:7}],r=F(1),i=F(1.25),a=F(1.25),o=F(1.333),s=F(.85),c=N(()=>n.map(({name:e,idx:t})=>{let n=e.startsWith(`display`)?H(s):1;return{name:e,min:Go(Wo(H(r)*n,H(a),t)),max:Go(Wo(H(i)*n,H(o),t))}}));function l(){Q.typography||(Q.typography={});for(let{name:e,min:t,max:n}of H(c))Q.typography[`size_${e}_min`]=String(t),Q.typography[`size_${e}_max`]=String(n);Ua()}var u=Jo(),d=R(L(u),2),f=L(d),p=R(L(f),2),m=L(p);ya(m),ze(2),O(p),O(f);var h=R(f,2),g=R(L(h),2),_=L(g);ya(_),ze(2),O(g),O(h);var v=R(h,2),y=R(L(v),2);J(y,21,()=>Uo,e=>e.value,(e,t)=>{var n=Ko(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).value)&&(n.value=(n.__value=H(t).value)??``)}),G(e,n)}),O(y),O(v);var b=R(v,2),x=R(L(b),2);J(x,21,()=>Uo,e=>e.value,(e,t)=>{var n=Ko(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).value)&&(n.value=(n.__value=H(t).value)??``)}),G(e,n)}),O(x),O(b);var S=R(b,2),ee=R(L(S),2),C=L(ee);ya(C),ze(2),O(ee),O(S),O(d);var w=R(d,2);J(w,21,()=>H(c),({name:e,min:t,max:n})=>e,(e,t)=>{let n=()=>H(t).name,r=()=>H(t).min,i=()=>H(t).max;var a=qo();let o;var s=L(a),c=L(s,!0);O(s);var l=R(s,2),u=L(l);O(l),O(a),z((e,t,r)=>{o=la(a,1,`scale-gen__step svelte-1y8fkhh`,null,o,e),K(c,n()),K(u,`${t??``} / ${r??``}`)},[()=>({display:n().startsWith(`display`)}),()=>r().toFixed(3),()=>i().toFixed(3)]),G(e,a)}),O(w);var te=R(w,2),ne=L(te);O(te),O(u),wa(m,()=>H(r),e=>I(r,e)),wa(_,()=>H(i),e=>I(i,e)),pa(y,()=>H(a),e=>I(a,e)),pa(x,()=>H(o),e=>I(o,e)),wa(C,()=>H(s),e=>I(s,e)),U(`click`,ne,l),G(e,u),Xe()}Di([`click`]);var Xo=W(`
`),Zo=W(`

Additional Font Families

Font Size Scale

Min and max values in rem for fluid type scaling via clamp(). + straight into the framework as the source of the brand scale.

`);function co(e,t){Xe(t,!0);let n=Z.defaults?.colors??{},r=e=>e.charAt(0).toUpperCase()+e.slice(1),i=Object.entries(n.brand??{}),a=M(()=>Ka(`colors`,`dark_overrides_enabled`)!==`0`);function o(){qa(`colors`,`dark_overrides_enabled`,V(a)?`0`:`1`)}var s=so(),c=L(I(s),4);q(c,21,()=>i,([e,t])=>e,(e,t)=>{var i=M(()=>m(V(t),2));let a=()=>V(i)[0],o=()=>V(i)[1];{let t=M(()=>`brand_${a()}`),i=M(()=>r(a())),s=M(()=>n.brand_hex_hints?.[a()]??``),c=M(()=>`--sf-color-${a()}-light`);to(e,{get storeKey(){return V(t)},get label(){return V(i)},get hexHint(){return V(s)},get rawHint(){return o()},get cssVar(){return V(c)}})}}),D(c),io(L(c,2),{children:(e,t)=>{var i=oo(),s=L(gr(i),2);q(s,21,()=>Object.entries(n.status??{}),([e,t])=>e,(e,t)=>{var i=M(()=>m(V(t),2));let a=()=>V(i)[0],o=()=>V(i)[1];{let t=M(()=>`status_${a()}`),i=M(()=>r(a())),s=M(()=>n.status_hex_hints?.[a()]??``),c=M(()=>`--sf-color-${a()}-light`);to(e,{get storeKey(){return V(t)},get label(){return V(i)},get hexHint(){return V(s)},get rawHint(){return o()},get cssVar(){return V(c)}})}}),D(s);var c=L(s,2),l=I(c),u=I(l);let d;var f=L(u,2),p=I(f,!0);D(f),D(l),Be(2),D(c);var h=L(c,2),g=e=>{var t=ao(),i=L(gr(t),2);q(i,21,()=>Object.entries(n.brand_dark??n.brand??{}),([e])=>e,(e,t)=>{var i=M(()=>m(V(t),1));let a=()=>V(i)[0];{let t=M(()=>`brand_dark_${a()}`),i=M(()=>r(a())),o=M(()=>n.brand_dark_hex_hints?.[a()]??``),s=M(()=>n.brand_dark?.[a()]??``),c=M(()=>`--sf-color-${a()}-dark`);to(e,{get storeKey(){return V(t)},get label(){return V(i)},get hexHint(){return V(o)},get rawHint(){return V(s)},get cssVar(){return V(c)}})}}),D(i);var a=L(i,4);q(a,21,()=>Object.entries(n.status_dark??n.status??{}),([e])=>e,(e,t)=>{var i=M(()=>m(V(t),1));let a=()=>V(i)[0];{let t=M(()=>`status_dark_${a()}`),i=M(()=>r(a())),o=M(()=>n.status_dark_hex_hints?.[a()]??``),s=M(()=>n.status_dark?.[a()]??``),c=M(()=>`--sf-color-${a()}-dark`);to(e,{get storeKey(){return V(t)},get label(){return V(i)},get hexHint(){return V(o)},get rawHint(){return V(s)},get cssVar(){return V(c)}})}}),D(a),W(e,t)};K(h,e=>{V(a)&&e(g)}),R(()=>{d=ua(u,1,`dark-toggle-btn svelte-1vle0rm`,null,d,{on:V(a)}),Y(u,`aria-pressed`,V(a)),G(p,V(a)?`Active — custom values override auto-derivation`:`Off — dark mode auto-derived from light source colors`)}),H(`click`,u,o),W(e,i)},$$slots:{default:!0}}),D(s),W(e,s),Ze()}Oi([`click`]);var lo=U(``),uo=U(` `),fo=U(` `),po=U(`

`),mo=U(`
`);function ho(e,t){let n=X(t,`cssVar`,3,``),r=X(t,`fieldId`,3,``),i=X(t,`description`,3,``);var a=mo(),o=I(a),s=I(o),c=e=>{var n=lo(),i=I(n,!0);D(n),R(()=>{Y(n,`for`,r()),G(i,t.label)}),W(e,n)},l=e=>{var n=uo(),r=I(n,!0);D(n),R(()=>G(r,t.label)),W(e,n)};K(s,e=>{r()?e(c):e(l,-1)});var u=L(s,2),f=e=>{var t=fo(),r=I(t,!0);D(t),R(()=>G(r,n())),W(e,t)};K(u,e=>{n()&&e(f)}),D(o);var p=L(o,2),m=I(p);ia(m,()=>t.children??d);var h=L(m,2),g=e=>{var t=po(),n=I(t,!0);D(t),R(()=>G(n,i())),W(e,t)};K(h,e=>{i()&&e(g)}),D(p),D(a),W(e,a)}var go=U(``);function _o(e,t){Xe(t,!0);let n=X(t,`default`,3,``),r=X(t,`cssVar`,3,``),i=X(t,`description`,3,``),a=X(t,`mono`,3,!1),o=X(t,`width`,3,`320px`),s=M(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return r()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,r)=>{var i=go();ba(i);let l,u;R(e=>{Y(i,`id`,t.fieldKey),l=ua(i,1,`text svelte-j8yw6l`,null,l,{mono:a()}),xa(i,V(s)),Y(i,`placeholder`,e),u=J(i,``,u,{width:o()})},[()=>String(n())]),H(`input`,i,c),W(e,i)},$$slots:{default:!0}}),Ze()}Oi([`input`]);async function vo(e,t){let{url:n,nonce:r}=Z.rest;if(!n)return console.info(`[slashed-admin] (dev) would POST`,e,t),{ok:!0,dev:!0};let i=await fetch(n+e,{method:`POST`,credentials:`same-origin`,headers:{"Content-Type":`application/json`,"X-WP-Nonce":r},body:JSON.stringify(t)});if(!i.ok){let e=await i.text();throw Error(e||`HTTP ${i.status}`)}return i.json()}function yo(e,t){return vo(`/tokens`,{section:e,values:t})}function bo(e){return vo(`/tokens/reset`,{section:e})}function xo(e){return vo(`/settings`,e)}async function So(){let{url:e,nonce:t}=Z.rest;if(!e)return console.info(`[slashed-admin] (dev) would GET /bricks-fonts`),Array.isArray(Z.bricksFonts)?Z.bricksFonts:[];let n=await fetch(e+`/bricks-fonts`,{credentials:`same-origin`,headers:{"X-WP-Nonce":t}});if(!n.ok)throw Error(await n.text()||`HTTP ${n.status}`);let r=await n.json();return Array.isArray(r?.fonts)?r.fonts:[]}async function Co(){let{url:e,nonce:t}=Z.rest;if(!e)return console.info(`[slashed-admin] (dev) would GET /tokens/export`),{schema_version:`1`,tokens:{},plugin_settings:{},dev:!0};let n=await fetch(e+`/tokens/export`,{credentials:`same-origin`,headers:{"X-WP-Nonce":t}});if(!n.ok)throw Error(await n.text()||`HTTP ${n.status}`);return n.json()}function wo(e){return vo(`/tokens/import`,e)}var To=[{label:`System UI`,value:`system-ui, sans-serif`},{label:`Neo-Grotesque`,value:`Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif`},{label:`Geometric Humanist`,value:`Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif`},{label:`Classical Humanist`,value:`Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif`},{label:`Humanist Sans`,value:`Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif`},{label:`Industrial Sans`,value:`'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif`},{label:`Rounded Sans`,value:`ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif`},{label:`Transitional Serif`,value:`Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif`},{label:`Old Style Serif`,value:`'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif`},{label:`Slab Serif`,value:`Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif`},{label:`Antique Serif`,value:`Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif`},{label:`Didone Serif`,value:`Didact Gothic, 'Bodoni MT', 'Bodoni 72', Didot, 'Playfair Display', serif`},{label:`Monospace`,value:`ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace`},{label:`Handwritten`,value:`'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive`}];function Eo(e){if(!e)return null;let t=String(e).replace(/\s+/g,` `).trim().toLowerCase();return To.find(e=>e.value.replace(/\s+/g,` `).trim().toLowerCase()===t)??null}var Do=U(``),Oo=U(`Bricks`),ko=U(``),Ao=U(``),jo=U(`

No Bricks fonts found. Add fonts in Bricks › Settings › Custom Fonts or the Bricks Font Manager, then reload this page.

`),Mo=U(``),No=U(`The quick brown fox`),Po=U(`
`);function Fo(e,t){Xe(t,!0);let n=X(t,`default`,3,``),r=X(t,`cssVar`,3,``),i=X(t,`description`,3,``),a=P(ar(Z.bricksFonts)),o=Z.activeIntegrations?.bricks??!0;La(async()=>{try{F(a,await So(),!0)}catch{}});let s=M(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey])),c=M(()=>V(s)||String(n()));function l(e){let t=(e||String(n())).trim().toLowerCase();return o&&V(a).some(e=>t===e.family.toLowerCase())?`bricks`:Eo(e||String(n()))?`system`:`manual`}let u=P(null),d=M(()=>V(u)??l(V(c)));function f(e){F(u,e,!0),e===`system`?To.find(e=>e.value.toLowerCase()===V(c).toLowerCase())||qa(t.section,t.fieldKey,To[0].value):e===`bricks`&&!V(a).find(e=>e.family.toLowerCase()===V(c).toLowerCase())&&V(a).length>0&&qa(t.section,t.fieldKey,V(a)[0].family)}function p(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function m(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function h(e){qa(t.section,t.fieldKey,e.currentTarget.value)}let g={adobe:` (Adobe)`,google:` (Google)`},_=e=>g[e]??``;ho(e,{get label(){return t.label},get cssVar(){return r()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,r)=>{var i=Po(),l=I(i),u=I(l);let g;var v=L(u,2),y=e=>{var t=Do();let n;R(()=>n=ua(t,1,`source-tab svelte-ow2kvz`,null,n,{"source-tab--active":V(d)===`bricks`})),H(`click`,t,()=>f(`bricks`)),W(e,t)},b=e=>{W(e,Oo())};K(v,e=>{o?e(y):e(b,-1)});var x=L(v,2);let S;D(l);var ee=L(l,2),C=e=>{var n=Ao();q(n,21,()=>To,e=>e.value,(e,t)=>{var n=ko(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).value)&&(n.value=(n.__value=V(t).value)??``)}),W(e,n)}),D(n);var r;pa(n),R(()=>{Y(n,`id`,t.fieldKey),r!==(r=V(c))&&(n.value=(n.__value=V(c))??``,fa(n,V(c)))}),H(`change`,n,p),W(e,n)},w=e=>{var n=Ii(),r=gr(n),i=e=>{var n=Ao();q(n,21,()=>V(a),e=>e.family,(e,t)=>{var n=ko(),r=I(n);D(n);var i={};R(e=>{G(r,`${V(t).label??``}${e??``}`),i!==(i=V(t).family)&&(n.value=(n.__value=V(t).family)??``)},[()=>_(V(t).source)]),W(e,n)}),D(n);var r;pa(n),R(()=>{Y(n,`id`,t.fieldKey),r!==(r=V(c))&&(n.value=(n.__value=V(c))??``,fa(n,V(c)))}),H(`change`,n,m),W(e,n)},o=e=>{W(e,jo())};K(r,e=>{V(a).length>0?e(i):e(o,-1)}),W(e,n)},te=e=>{var r=Mo();ba(r),R(e=>{Y(r,`id`,t.fieldKey),xa(r,V(s)),Y(r,`placeholder`,e)},[()=>String(n())]),H(`input`,r,h),W(e,r)};K(ee,e=>{V(d)===`system`?e(C):V(d)===`bricks`&&o?e(w,1):e(te,-1)});var ne=L(ee,2),re=e=>{var t=No();R(()=>J(t,`font-family: ${V(c)??``}`)),W(e,t)};K(ne,e=>{V(c)&&e(re)}),D(i),R(()=>{g=ua(u,1,`source-tab svelte-ow2kvz`,null,g,{"source-tab--active":V(d)===`system`}),S=ua(x,1,`source-tab svelte-ow2kvz`,null,S,{"source-tab--active":V(d)===`manual`})}),H(`click`,u,()=>f(`system`)),H(`click`,x,()=>f(`manual`)),W(e,i)},$$slots:{default:!0}}),Ze()}Oi([`click`,`change`,`input`]);var Io=U(` `),Lo=U(` `,1);function Ro(e,t){Xe(t,!0);let n=X(t,`min`,3,void 0),r=X(t,`max`,3,void 0),i=X(t,`step`,3,void 0),a=X(t,`default`,3,``),o=X(t,`cssVar`,3,``),s=X(t,`unit`,3,``),c=X(t,`description`,3,``),l=X(t,`width`,3,`120px`),u=M(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function d(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return o()},get fieldId(){return t.fieldKey},get description(){return c()},children:(e,o)=>{var c=Lo(),f=gr(c);ba(f);let p;var m=L(f,2),h=e=>{var t=Io(),n=I(t,!0);D(t),R(()=>G(n,s())),W(e,t)};K(m,e=>{s()&&e(h)}),R(e=>{Y(f,`id`,t.fieldKey),Y(f,`min`,n()),Y(f,`max`,r()),Y(f,`step`,i()),xa(f,V(u)),Y(f,`placeholder`,e),p=J(f,``,p,{width:l()})},[()=>String(a())]),H(`input`,f,d),W(e,c)},$$slots:{default:!0}}),Ze()}Oi([`input`]);var zo=U(`
`),Bo=U(`

Display Scale

`),Vo=U(`

Live Scale Preview

Text Scale

`);function Ho(e,t){Xe(t,!0);let n=M(Ga),r=P(ar(Ga().maxPx));Ar(()=>{V(r)V(n).maxPx&&F(r,V(n).maxPx,!0)});let i=(Z.defaults?.typography??{}).font_sizes??{};function a(e){let t=Q.typography??{},n=i[e]??{},r=t[`size_${e}_min`],a=t[`size_${e}_max`];return{min:r!==void 0&&r!==``?parseFloat(r):n.min??.75,max:a!==void 0&&a!==``?parseFloat(a):n.max??1}}let o=M(()=>{let e=Math.max(0,Math.min(1,(V(r)-V(n).minPx)/(V(n).maxPx-V(n).minPx))),t={};for(let n of Object.keys(i)){let{min:r,max:i}=a(n),o=r+(i-r)*e;t[n]={sizePx:o*16,sizeRem:o.toFixed(3)}}return t}),s=[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`],c=[`display-s`,`display-m`,`display-l`],l=M(()=>s.filter(e=>i[e])),u=M(()=>c.filter(e=>i[e]));var d=Vo(),f=I(d),p=L(I(f),2),m=I(p),h=I(m);D(m);var g=L(m,2);ba(g);var _=L(g,2),v=I(_);D(_);var y=L(_,2),b=I(y);D(y),D(p),D(f);var x=L(f,2);q(L(I(x),2),16,()=>V(l),e=>e,(e,t)=>{let n=M(()=>V(o)[t]);var r=Ii(),i=gr(r),a=e=>{var r=zo(),i=I(r),a=I(i,!0);D(i);var o=L(i,2);let s;var c=I(o,!0);D(o);var l=L(o,2),u=I(l);D(l),D(r),R((e,r)=>{G(a,t),s=J(o,``,s,e),G(c,t),G(u,`${V(n).sizeRem??``}rem / ${r??``}px`)},[()=>({"font-size":`${V(n).sizePx.toFixed(1)??``}px`}),()=>V(n).sizePx.toFixed(1)]),W(e,r)};K(i,e=>{V(n)&&e(a)}),W(e,r)}),D(x);var S=L(x,2),ee=e=>{var t=Bo();q(L(I(t),2),16,()=>V(u),e=>e,(e,t)=>{let n=M(()=>V(o)[t]);var r=Ii(),i=gr(r),a=e=>{var r=zo(),i=I(r),a=I(i,!0);D(i);var o=L(i,2);let s;var c=I(o,!0);D(o);var l=L(o,2),u=I(l);D(l),D(r),R((e,r)=>{G(a,t),s=J(o,``,s,e),G(c,t),G(u,`${V(n).sizeRem??``}rem / ${r??``}px`)},[()=>({"font-size":`${V(n).sizePx.toFixed(1)??``}px`}),()=>V(n).sizePx.toFixed(1)]),W(e,r)};K(i,e=>{V(n)&&e(a)}),W(e,r)}),D(t),W(e,t)};K(S,e=>{V(u).length>0&&e(ee)}),D(d),R(()=>{G(h,`${V(n).minPx??``}px`),Y(g,`min`,V(n).minPx),Y(g,`max`,V(n).maxPx),G(v,`${V(n).maxPx??``}px`),G(b,`${V(r)??``}px`)}),Ta(g,()=>V(r),e=>F(r,e)),W(e,d),Ze()}var Uo=[{label:`Minor Second (1.067)`,value:1.067},{label:`Major Second (1.125)`,value:1.125},{label:`Minor Third (1.200)`,value:1.2},{label:`Major Third (1.250)`,value:1.25},{label:`Perfect Fourth (1.333)`,value:1.333},{label:`Augmented Fourth (1.414)`,value:1.414},{label:`Perfect Fifth (1.500)`,value:1.5},{label:`Golden Ratio (1.618)`,value:1.618},{label:`Major Sixth (1.667)`,value:1.667},{label:`Octave (2.000)`,value:2}];function Wo(e,t,n){return e*t**+n}function Go(e,t=4){let n=10**t;return Math.round(e*n)/n}var Ko=U(``),qo=U(`
`),Jo=U(`
Scale Generator Computes all step min/max values from a modular scale. Click Apply to write them to the fields below.
`);function Yo(e,t){Xe(t,!0);let n=[{name:`2xs`,idx:-4},{name:`xs`,idx:-3},{name:`s`,idx:-2},{name:`m`,idx:0},{name:`l`,idx:1},{name:`xl`,idx:2},{name:`2xl`,idx:3},{name:`3xl`,idx:4},{name:`4xl`,idx:5},{name:`display-s`,idx:5},{name:`display-m`,idx:6},{name:`display-l`,idx:7}],r=P(1),i=P(1.25),a=P(1.25),o=P(1.333),s=P(.85),c=M(()=>n.map(({name:e,idx:t})=>{let n=e.startsWith(`display`)?V(s):1;return{name:e,min:Go(Wo(V(r)*n,V(a),t)),max:Go(Wo(V(i)*n,V(o),t))}}));function l(){Q.typography||(Q.typography={});for(let{name:e,min:t,max:n}of V(c))Q.typography[`size_${e}_min`]=String(t),Q.typography[`size_${e}_max`]=String(n);Ua()}var u=Jo(),d=L(I(u),2),f=I(d),p=L(I(f),2),m=I(p);ba(m),Be(2),D(p),D(f);var h=L(f,2),g=L(I(h),2),_=I(g);ba(_),Be(2),D(g),D(h);var v=L(h,2),y=L(I(v),2);q(y,21,()=>Uo,e=>e.value,(e,t)=>{var n=Ko(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).value)&&(n.value=(n.__value=V(t).value)??``)}),W(e,n)}),D(y),D(v);var b=L(v,2),x=L(I(b),2);q(x,21,()=>Uo,e=>e.value,(e,t)=>{var n=Ko(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).value)&&(n.value=(n.__value=V(t).value)??``)}),W(e,n)}),D(x),D(b);var S=L(b,2),ee=L(I(S),2),C=I(ee);ba(C),Be(2),D(ee),D(S),D(d);var w=L(d,2);q(w,21,()=>V(c),({name:e,min:t,max:n})=>e,(e,t)=>{let n=()=>V(t).name,r=()=>V(t).min,i=()=>V(t).max;var a=qo();let o;var s=I(a),c=I(s,!0);D(s);var l=L(s,2),u=I(l);D(l),D(a),R((e,t,r)=>{o=ua(a,1,`scale-gen__step svelte-1y8fkhh`,null,o,e),G(c,n()),G(u,`${t??``} / ${r??``}`)},[()=>({display:n().startsWith(`display`)}),()=>r().toFixed(3),()=>i().toFixed(3)]),W(e,a)}),D(w);var te=L(w,2),ne=I(te);D(te),D(u),Ta(m,()=>V(r),e=>F(r,e)),Ta(_,()=>V(i),e=>F(i,e)),ma(y,()=>V(a),e=>F(a,e)),ma(x,()=>V(o),e=>F(o,e)),Ta(C,()=>V(s),e=>F(s,e)),H(`click`,ne,l),W(e,u),Ze()}Oi([`click`]);var Xo=U(`
`),Zo=U(`

Additional Font Families

Font Size Scale

Min and max values in rem for fluid type scaling via clamp(). Leave both fields blank to use the framework defaults. The viewport range these sizes interpolate across (and the range the Live Scale Preview above scrubs) is the Fluid Scale Viewport Range set in the Spacing tab — - it's the shared source for both spacing and typography.

Scale Multipliers

`,1),Qo=W(`

Font Families

`);function $o(e,t){Ye(t,!0);let n=`typography`,r=Z.defaults?.[n]??{},i=r.font_families??{},a=r.font_sizes??{},o=e=>e.charAt(0).toUpperCase()+e.slice(1),s=[`body`,`heading`],c=Object.fromEntries(Object.entries(i).filter(([e])=>s.includes(e))),l=Object.fromEntries(Object.entries(i).filter(([e])=>!s.includes(e)));var u=Qo(),d=R(L(u),2);J(d,21,()=>Object.entries(c),([e,t])=>e,(e,t)=>{var r=N(()=>m(H(t),2));let i=()=>H(r)[0],a=()=>H(r)[1];{let t=N(()=>`font_${i()}`),r=N(()=>o(i())),s=N(()=>`--sf-font-${i()}`);Fo(e,{section:n,get fieldKey(){return H(t)},get label(){return H(r)},get default(){return a()},get cssVar(){return H(s)}})}}),O(d);var f=R(d,2);Ho(f,{}),io(R(f,2),{children:(e,t)=>{var i=Zo(),s=R(hr(i),2);J(s,21,()=>Object.entries(l),([e,t])=>e,(e,t)=>{var r=N(()=>m(H(t),2));let i=()=>H(r)[0],a=()=>H(r)[1];{let t=N(()=>`font_${i()}`),r=N(()=>o(i())),s=N(()=>`--sf-font-${i()}`);Fo(e,{section:n,get fieldKey(){return H(t)},get label(){return H(r)},get default(){return a()},get cssVar(){return H(s)}})}}),O(s);var c=R(s,6);Yo(c,{});var u=R(c,2);J(u,21,()=>Object.entries(a),([e,t])=>e,(e,t)=>{var r=N(()=>m(H(t),2));let i=()=>H(r)[0],a=()=>H(r)[1];var o=Xo(),s=L(o),c=L(s),l=L(c,!0);O(c);var u=R(c,2),d=L(u);O(u),O(s);var f=R(s,2),p=L(f);{let e=N(()=>`size_${i()}_min`);Ro(p,{section:n,get fieldKey(){return H(e)},label:`Min`,min:0,step:.01,get default(){return a().min},width:`80px`})}var h=R(p,2);{let e=N(()=>`size_${i()}_max`);Ro(h,{section:n,get fieldKey(){return H(e)},label:`Max`,min:0,step:.01,get default(){return a().max},width:`80px`})}O(f),O(o),z(()=>{K(l,i()),K(d,`--sf-text-${i()??``}`)}),G(e,o)}),O(u);var d=R(u,4),f=L(d);{let e=N(()=>r.scale_multipliers?.text_scale??1);Ro(f,{section:n,fieldKey:`text_scale`,label:`Text Scale`,min:0,step:.05,get default(){return H(e)},cssVar:`--sf-text-scale`})}var p=R(f,2);{let e=N(()=>r.scale_multipliers?.text_display_scale??1);Ro(p,{section:n,fieldKey:`text_display_scale`,label:`Display Scale`,min:0,step:.05,get default(){return H(e)},cssVar:`--sf-text-display-scale`})}O(d),G(e,i)},$$slots:{default:!0}}),O(u),G(e,u),Xe()}var es=W(`
`),ts=W(`

Live Scale Preview

Card heading
`);function ns(e,t){Ye(t,!0);let n=N(Ga),r=F(ir(Ga().maxPx));kr(()=>{H(r)H(n).maxPx&&I(r,H(n).maxPx,!0)});let i=Z.defaults?.spacing??{},a=i.space_sizes??{};function o(e){let t=Q.spacing??{},n=a[e]??{},r=t[`space_${e}_min`],i=t[`space_${e}_max`];return{min:r!==void 0&&r!==``?parseFloat(r):n.min??1,max:i!==void 0&&i!==``?parseFloat(i):n.max??1}}let s=N(()=>{let e=parseFloat(Q.spacing?.space_scale??i.space_scale??1)||1,t=Math.max(0,Math.min(1,(H(r)-H(n).minPx)/(H(n).maxPx-H(n).minPx))),a=[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`],s=o(`4xl`).max*e;return a.map(n=>{let{min:r,max:i}=o(n),a=(r+(i-r)*t)*e,c=a/s*100;return{name:n,sizeRem:a.toFixed(3),barPct:Math.min(c,100)}})}),c=N(()=>{let e=parseFloat(Q.spacing?.space_scale??i.space_scale??1)||1,t=Math.max(0,Math.min(1,(H(r)-H(n).minPx)/(H(n).maxPx-H(n).minPx))),a=n=>{let{min:r,max:i}=o(n);return((r+(i-r)*t)*e).toFixed(3)};return{xs:a(`xs`),s:a(`s`),m:a(`m`),l:a(`l`)}});var l=ts(),u=L(l),d=R(L(u),2),f=L(d),p=L(f);O(f);var m=R(f,2);ya(m);var h=R(m,2),g=L(h);O(h);var _=R(h,2),v=L(_);O(_),O(d),O(u);var y=R(u,2);J(y,21,()=>H(s),e=>e.name,(e,t)=>{var n=es(),r=L(n),i=L(r);O(r);var a=R(r,2),o=L(a);let s;O(a);var c=R(a,2),l=L(c);O(c),O(n),z(()=>{K(i,`--sf-space-${H(t).name??``}`),s=Y(o,``,s,{width:`${H(t).barPct??``}%`}),K(l,`${H(t).sizeRem??``}rem`)}),G(e,n)}),O(y);var b=R(y,2),x=L(b),S=L(x);O(x);var ee=R(x,2);let C;var w=L(ee);let te;var ne=R(L(w),2),re=R(L(ne),2),ie=L(re);O(re),O(ne),O(w);var ae=R(w,2),oe=L(ae);O(ae);var T=R(ae,2);let se;Y(R(L(T),2),``,{},{width:`3rem`}),ze(2),O(T),O(ee),O(b),O(l),z(()=>{K(p,`${H(n).minPx??``}px`),X(m,`min`,H(n).minPx),X(m,`max`,H(n).maxPx),K(g,`${H(n).maxPx??``}px`),K(v,`${H(r)??``}px`),K(S,`Container context at ${H(r)??``}px`),C=Y(ee,``,C,{padding:`${H(c).m??``}rem`,gap:`${H(c).s??``}rem`}),te=Y(w,``,te,{gap:`${H(c).s??``}rem`}),K(ie,`padding: ${H(c).m??``}rem`),K(oe,`Body section · gap between rows: ${H(c).s??``}rem`),se=Y(T,``,se,{gap:`${H(c).xs??``}rem`,"padding-top":`${H(c).xs??``}rem`})}),wa(m,()=>H(r),e=>I(r,e)),G(e,l),Xe()}var rs=W(`
`),is=W(`

Fluid Scale Viewport Range

The viewport width range (in rem) used to compute all fluid clamp() formulas for custom-overridden spacing and typography values. Default: 22.5 rem (360 px) → 90 rem (1440 px). Changing these only affects values you explicitly + it's the shared source for both spacing and typography.

Scale Multipliers

`,1),Qo=U(`

Font Families

`);function $o(e,t){Xe(t,!0);let n=`typography`,r=Z.defaults?.[n]??{},i=r.font_families??{},a=r.font_sizes??{},o=e=>e.charAt(0).toUpperCase()+e.slice(1),s=[`body`,`heading`],c=Object.fromEntries(Object.entries(i).filter(([e])=>s.includes(e))),l=Object.fromEntries(Object.entries(i).filter(([e])=>!s.includes(e)));var u=Qo(),d=L(I(u),2);q(d,21,()=>Object.entries(c),([e,t])=>e,(e,t)=>{var r=M(()=>m(V(t),2));let i=()=>V(r)[0],a=()=>V(r)[1];{let t=M(()=>`font_${i()}`),r=M(()=>o(i())),s=M(()=>`--sf-font-${i()}`);Fo(e,{section:n,get fieldKey(){return V(t)},get label(){return V(r)},get default(){return a()},get cssVar(){return V(s)}})}}),D(d);var f=L(d,2);Ho(f,{}),io(L(f,2),{children:(e,t)=>{var i=Zo(),s=L(gr(i),2);q(s,21,()=>Object.entries(l),([e,t])=>e,(e,t)=>{var r=M(()=>m(V(t),2));let i=()=>V(r)[0],a=()=>V(r)[1];{let t=M(()=>`font_${i()}`),r=M(()=>o(i())),s=M(()=>`--sf-font-${i()}`);Fo(e,{section:n,get fieldKey(){return V(t)},get label(){return V(r)},get default(){return a()},get cssVar(){return V(s)}})}}),D(s);var c=L(s,6);Yo(c,{});var u=L(c,2);q(u,21,()=>Object.entries(a),([e,t])=>e,(e,t)=>{var r=M(()=>m(V(t),2));let i=()=>V(r)[0],a=()=>V(r)[1];var o=Xo(),s=I(o),c=I(s),l=I(c,!0);D(c);var u=L(c,2),d=I(u);D(u),D(s);var f=L(s,2),p=I(f);{let e=M(()=>`size_${i()}_min`);Ro(p,{section:n,get fieldKey(){return V(e)},label:`Min`,min:0,step:.01,get default(){return a().min},width:`80px`})}var h=L(p,2);{let e=M(()=>`size_${i()}_max`);Ro(h,{section:n,get fieldKey(){return V(e)},label:`Max`,min:0,step:.01,get default(){return a().max},width:`80px`})}D(f),D(o),R(()=>{G(l,i()),G(d,`--sf-text-${i()??``}`)}),W(e,o)}),D(u);var d=L(u,4),f=I(d);{let e=M(()=>r.scale_multipliers?.text_scale??1);Ro(f,{section:n,fieldKey:`text_scale`,label:`Text Scale`,min:0,step:.05,get default(){return V(e)},cssVar:`--sf-text-scale`})}var p=L(f,2);{let e=M(()=>r.scale_multipliers?.text_display_scale??1);Ro(p,{section:n,fieldKey:`text_display_scale`,label:`Display Scale`,min:0,step:.05,get default(){return V(e)},cssVar:`--sf-text-display-scale`})}D(d),W(e,i)},$$slots:{default:!0}}),D(u),W(e,u),Ze()}var es=U(`
`),ts=U(`

Live Scale Preview

Card heading
`);function ns(e,t){Xe(t,!0);let n=M(Ga),r=P(ar(Ga().maxPx));Ar(()=>{V(r)V(n).maxPx&&F(r,V(n).maxPx,!0)});let i=Z.defaults?.spacing??{},a=i.space_sizes??{};function o(e){let t=Q.spacing??{},n=a[e]??{},r=t[`space_${e}_min`],i=t[`space_${e}_max`];return{min:r!==void 0&&r!==``?parseFloat(r):n.min??1,max:i!==void 0&&i!==``?parseFloat(i):n.max??1}}let s=M(()=>{let e=parseFloat(Q.spacing?.space_scale??i.space_scale??1)||1,t=Math.max(0,Math.min(1,(V(r)-V(n).minPx)/(V(n).maxPx-V(n).minPx))),a=[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`],s=o(`4xl`).max*e;return a.map(n=>{let{min:r,max:i}=o(n),a=(r+(i-r)*t)*e,c=a/s*100;return{name:n,sizeRem:a.toFixed(3),barPct:Math.min(c,100)}})}),c=M(()=>{let e=parseFloat(Q.spacing?.space_scale??i.space_scale??1)||1,t=Math.max(0,Math.min(1,(V(r)-V(n).minPx)/(V(n).maxPx-V(n).minPx))),a=n=>{let{min:r,max:i}=o(n);return((r+(i-r)*t)*e).toFixed(3)};return{xs:a(`xs`),s:a(`s`),m:a(`m`),l:a(`l`)}});var l=ts(),u=I(l),d=L(I(u),2),f=I(d),p=I(f);D(f);var m=L(f,2);ba(m);var h=L(m,2),g=I(h);D(h);var _=L(h,2),v=I(_);D(_),D(d),D(u);var y=L(u,2);q(y,21,()=>V(s),e=>e.name,(e,t)=>{var n=es(),r=I(n),i=I(r);D(r);var a=L(r,2),o=I(a);let s;D(a);var c=L(a,2),l=I(c);D(c),D(n),R(()=>{G(i,`--sf-space-${V(t).name??``}`),s=J(o,``,s,{width:`${V(t).barPct??``}%`}),G(l,`${V(t).sizeRem??``}rem`)}),W(e,n)}),D(y);var b=L(y,2),x=I(b),S=I(x);D(x);var ee=L(x,2);let C;var w=I(ee);let te;var ne=L(I(w),2),re=L(I(ne),2),ie=I(re);D(re),D(ne),D(w);var ae=L(w,2),oe=I(ae);D(ae);var se=L(ae,2);let ce;J(L(I(se),2),``,{},{width:`3rem`}),Be(2),D(se),D(ee),D(b),D(l),R(()=>{G(p,`${V(n).minPx??``}px`),Y(m,`min`,V(n).minPx),Y(m,`max`,V(n).maxPx),G(g,`${V(n).maxPx??``}px`),G(v,`${V(r)??``}px`),G(S,`Container context at ${V(r)??``}px`),C=J(ee,``,C,{padding:`${V(c).m??``}rem`,gap:`${V(c).s??``}rem`}),te=J(w,``,te,{gap:`${V(c).s??``}rem`}),G(ie,`padding: ${V(c).m??``}rem`),G(oe,`Body section · gap between rows: ${V(c).s??``}rem`),ce=J(se,``,ce,{gap:`${V(c).xs??``}rem`,"padding-top":`${V(c).xs??``}rem`})}),Ta(m,()=>V(r),e=>F(r,e)),W(e,l),Ze()}var rs=U(`
`),is=U(`

Fluid Scale Viewport Range

The viewport width range (in rem) used to compute all fluid clamp() formulas for custom-overridden spacing and typography values. Default: 22.5 rem (360 px) → 90 rem (1440 px). Changing these only affects values you explicitly override below or in the Typography tab — the framework's built-in scale uses the same defaults and is unaffected.

Space Scale Steps

Min and max values in rem for fluid spacing via clamp(). - Leave both fields blank to use the framework defaults.

Space Aliases

`,1),as=W(`

Spacing

The Space Scale multiplier scales every spacing token at once — the quickest + Leave both fields blank to use the framework defaults.

Space Aliases

`,1),as=U(`

Spacing

The Space Scale multiplier scales every spacing token at once — the quickest way to make a whole site more or less airy. Fine-grained per-step overrides, the fluid - viewport range, and named aliases live under Advanced.

`);function os(e,t){Ye(t,!0);let n=`spacing`,r=Z.defaults?.[n]??{},i=r.space_sizes??{},a=[{key:`gutter`,label:`Gutter`,cssVar:`--sf-space-gutter`},{key:`gap`,label:`Gap`,cssVar:`--sf-gap`},{key:`content_gap`,label:`Content Gap`,cssVar:`--sf-content-gap`},{key:`component_pad`,label:`Component Pad`,cssVar:`--sf-component-pad`},{key:`section_pad`,label:`Section Pad`,cssVar:`--sf-section-pad`}];var o=as(),s=R(L(o),4),c=L(s);{let e=N(()=>r.space_scale??1);Ro(c,{section:n,fieldKey:`space_scale`,label:`Space Scale`,min:0,step:.05,get default(){return H(e)},cssVar:`--sf-space-scale`})}O(s);var l=R(s,2);ns(l,{}),io(R(l,2),{children:(e,t)=>{var o=is(),s=R(hr(o),4),c=L(s);{let e=N(()=>r.viewport_min??22.5);Ro(c,{section:n,fieldKey:`viewport_min`,label:`Min viewport (rem)`,min:10,max:60,step:.5,get default(){return H(e)}})}var l=R(c,2);{let e=N(()=>r.viewport_max??90);Ro(l,{section:n,fieldKey:`viewport_max`,label:`Max viewport (rem)`,min:40,max:200,step:.5,get default(){return H(e)}})}O(s);var u=R(s,6);J(u,21,()=>Object.entries(i),([e,t])=>e,(e,t)=>{var r=N(()=>m(H(t),2));let i=()=>H(r)[0],a=()=>H(r)[1];var o=rs(),s=L(o),c=L(s),l=L(c,!0);O(c);var u=R(c,2),d=L(u);O(u),O(s);var f=R(s,2),p=L(f);{let e=N(()=>`space_${i()}_min`);Ro(p,{section:n,get fieldKey(){return H(e)},label:`Min`,min:0,step:.01,get default(){return a().min},width:`80px`})}var h=R(p,2);{let e=N(()=>`space_${i()}_max`);Ro(h,{section:n,get fieldKey(){return H(e)},label:`Max`,min:0,step:.01,get default(){return a().max},width:`80px`})}O(f),O(o),z(()=>{K(l,i()),K(d,`--sf-space-${i()??``}`)}),G(e,o)}),O(u);var d=R(u,4);J(d,21,()=>a,e=>e.key,(e,t)=>{{let i=N(()=>r[H(t).key]??``);_o(e,{section:n,get fieldKey(){return H(t).key},get label(){return H(t).label},get default(){return H(i)},get cssVar(){return H(t).cssVar},mono:!0})}}),O(d),G(e,o)},$$slots:{default:!0}}),O(o),G(e,o),Xe()}var ss=W(` `),cs=W(` `,1);function ls(e,t){Ye(t,!0);let n=Ia(t,`cssVar`,3,``),r=Ia(t,`unit`,3,``),i=Ia(t,`description`,3,``),a=N(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey])),o=N(()=>H(a)===``||Number.isNaN(Number(H(a)))?Number(t.default):Number(H(a)));function s(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return n()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,n)=>{var i=cs(),l=hr(i);ya(l);var u=R(l,2);ya(u);var d=R(u,2),f=e=>{var t=ss(),n=L(t,!0);O(t),z(()=>K(n,r())),G(e,t)};q(d,e=>{r()&&e(f)}),z(e=>{X(l,`min`,t.min),X(l,`max`,t.max),X(l,`step`,t.step),ba(l,H(o)),X(u,`id`,t.fieldKey),X(u,`min`,t.min),X(u,`max`,t.max),X(u,`step`,t.step),ba(u,H(a)),X(u,`placeholder`,e)},[()=>String(t.default)]),U(`input`,l,s),U(`input`,u,c),G(e,i)},$$slots:{default:!0}}),Xe()}Di([`input`]);var us=W(``),ds=W(``);function fs(e,t){Ye(t,!0);let n=Ia(t,`options`,19,()=>[]),r=Ia(t,`default`,3,``),i=Ia(t,`cssVar`,3,``),a=Ia(t,`description`,3,``),o=N(()=>n().map(e=>typeof e==`string`?{value:e,label:e}:e)),s=N(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return i()},get fieldId(){return t.fieldKey},get description(){return a()},children:(e,n)=>{var i=ds(),a=L(i),l=L(a);O(a),a.value=a.__value=``,J(R(a),17,()=>H(o),e=>e.value,(e,t)=>{var n=us(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).value)&&(n.value=(n.__value=H(t).value)??``)}),G(e,n)}),O(i);var u;fa(i),z(()=>{X(i,`id`,t.fieldKey),K(l,`Default (${r()??``})`),u!==(u=H(s))&&(i.value=(i.__value=H(s))??``,da(i,H(s)))}),U(`change`,i,c),G(e,i)},$$slots:{default:!0}}),Xe()}Di([`change`]);var ps=W(`
`),ms=W(`
`),hs=W(`
`),gs=W(`

Shadow

Motion — Durations

Base duration values in milliseconds.

Z-Index

Z-index layer values for stacking context management.

Contrast

`,1),_s=W(`

Radius

Shadows

Motion

Accessibility

`);function vs(e,t){Ye(t,!0);let n=Z.defaults?.radius??{},r=Z.defaults?.shadows??{},i=Z.defaults?.motion??{},a=Z.defaults?.zindex??{},o=Z.defaults?.contrast??{},s=i.durations??{},c=e=>e.charAt(0).toUpperCase()+e.slice(1),l=[0,2,4,8,12,16,24,9999],u=[`none`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`full`],d=N(()=>parseFloat(Q.radius?.radius_scale??Z.defaults?.radius?.radius_scale??1)),f=N(()=>l.map(e=>e*H(d))),p=N(()=>parseFloat(Q.shadows?.shadow_strength??r.shadow_strength??.08)),h=N(()=>parseFloat(Q.motion?.motion_scale??i.motion_scale??1)||1),g=[`instant`,`fast`,`normal`,`slow`,`slower`],_=N(()=>g.map(e=>{let t=Q.motion?.[`duration_${e}`],n=parseFloat(t!==void 0&&t!==``?t:s[e]??0);return{name:e,ms:Math.round(n*H(h))}})),v=(e,t)=>parseFloat(e!==void 0&&e!==``?e:t),y=N(()=>v(Q.contrast?.focus_ring_width,o.focus_ring_width??2)),b=N(()=>v(Q.contrast?.focus_ring_offset,o.focus_ring_offset??2)),x=N(()=>Q.contrast?.focus_ring_style??o.focus_ring_style??`solid`),S=N(()=>[{label:`xs`,shadow:`0 1px 2px 0 rgba(0,0,0,${(H(p)*.5).toFixed(4)})`},{label:`s`,shadow:`0 1px 2px 0 rgba(0,0,0,${(H(p)*.5).toFixed(4)}), 0 2px 6px 0 rgba(0,0,0,${H(p).toFixed(4)})`},{label:`m`,shadow:`0 1px 3px 0 rgba(0,0,0,${(H(p)*.5).toFixed(4)}), 0 4px 12px 0 rgba(0,0,0,${(H(p)*2).toFixed(4)})`},{label:`l`,shadow:`0 2px 4px 0 rgba(0,0,0,${(H(p)*.5).toFixed(4)}), 0 8px 24px 0 rgba(0,0,0,${(H(p)*3).toFixed(4)})`},{label:`xl`,shadow:`0 2px 8px 0 rgba(0,0,0,${(H(p)*.5).toFixed(4)}), 0 12px 36px 0 rgba(0,0,0,${(H(p)*3.5).toFixed(4)})`},{label:`glow`,shadow:`0 0 15px 2px rgba(74,48,208,${Math.min(H(p)*2,.7).toFixed(4)})`}]);var ee=_s(),C=R(L(ee),2),w=L(C);{let e=N(()=>n.radius_scale??1);Ro(w,{section:`radius`,fieldKey:`radius_scale`,label:`Radius Scale`,min:0,step:.1,get default(){return H(e)},cssVar:`--sf-radius-scale`})}O(C);var te=R(C,2);J(te,23,()=>H(f),(e,t)=>u[t],(e,t,n)=>{var r=ps(),i=L(r);let a;var o=R(i,2),s=L(o,!0);O(o),O(r),z(()=>{a=Y(i,``,a,{"border-radius":l[H(n)]===9999?`9999px`:`${H(t)}px`}),K(s,u[H(n)])}),G(e,r)}),O(te);var ne=R(te,4),re=L(ne);{let e=N(()=>r.shadow_strength??.08);ls(re,{section:`shadows`,fieldKey:`shadow_strength`,label:`Shadow Strength`,description:`Base opacity for shadow layers (0–1).`,min:0,max:1,step:.01,get default(){return H(e)},cssVar:`--sf-shadow-strength`})}O(ne);var ie=R(ne,2);J(ie,21,()=>H(S),e=>e.label,(e,t)=>{var n=ms(),r=L(n);let i;var a=L(r,!0);O(r),O(n),z(()=>{i=Y(r,``,i,{"box-shadow":H(t).shadow}),K(a,H(t).label)}),G(e,n)}),O(ie);var ae=R(ie,4),oe=L(ae);{let e=N(()=>i.motion_scale??1);Ro(oe,{section:`motion`,fieldKey:`motion_scale`,label:`Motion Scale`,min:0,step:.1,get default(){return H(e)},cssVar:`--sf-motion-scale`})}O(ae);var T=R(ae,2);J(T,21,()=>H(_),e=>e.name,(e,t)=>{var n=hs(),r=L(n),i=L(r,!0);O(r);var a=R(r,2),o=L(a);let s;O(a);var c=R(a,2),l=L(c);O(c),O(n),z(()=>{K(i,H(t).name),s=Y(o,``,s,{"animation-duration":`${H(t).ms??``}ms`}),K(l,`${H(t).ms??``}ms`)}),G(e,n)}),O(T);var se=R(T,4),ce=L(se);{let e=N(()=>o.focus_ring_width??2);ls(ce,{section:`contrast`,fieldKey:`focus_ring_width`,label:`Focus Ring Width`,min:0,max:8,step:.5,get default(){return H(e)},cssVar:`--sf-focus-ring-width`,unit:`px`})}var le=R(ce,2);{let e=N(()=>o.focus_ring_offset??2);ls(le,{section:`contrast`,fieldKey:`focus_ring_offset`,label:`Focus Ring Offset`,min:0,max:8,step:.5,get default(){return H(e)},cssVar:`--sf-focus-ring-offset`,unit:`px`})}var ue=R(le,2);{let e=N(()=>o.focus_ring_style??`solid`);fs(ue,{section:`contrast`,fieldKey:`focus_ring_style`,label:`Focus Ring Style`,options:[`solid`,`dashed`,`dotted`,`double`,`none`],get default(){return H(e)},cssVar:`--sf-focus-ring-style`})}O(se);var de=R(se,2),fe=L(de);let pe;var me=R(fe,2),he=L(me);O(me),O(de),io(R(de,2),{children:(e,t)=>{var n=gs(),i=R(hr(n),2),l=L(i);{let e=N(()=>r.glow_color??`var(--sf-color-primary)`);_o(l,{section:`shadows`,fieldKey:`glow_color`,label:`Glow Color`,get default(){return H(e)},cssVar:`--sf-shadow-glow-color`,mono:!0})}O(i);var u=R(i,6);J(u,21,()=>Object.entries(s),([e,t])=>e,(e,t)=>{var n=N(()=>m(H(t),2));let r=()=>H(n)[0],i=()=>H(n)[1];{let t=N(()=>`duration_${r()}`),n=N(()=>c(r())),a=N(()=>`--sf-duration-${r()}`);Ro(e,{section:`motion`,get fieldKey(){return H(t)},get label(){return H(n)},min:0,step:10,get default(){return i()},get cssVar(){return H(a)},unit:`ms`})}}),O(u);var d=R(u,6);J(d,21,()=>Object.entries(a),([e,t])=>e,(e,t)=>{var n=N(()=>m(H(t),2));let r=()=>H(n)[0],i=()=>H(n)[1];{let t=N(()=>c(r())),n=N(()=>`--sf-z-${r()}`);Ro(e,{section:`zindex`,get fieldKey(){return r()},get label(){return H(t)},step:1,get default(){return i()},get cssVar(){return H(n)}})}}),O(d);var f=R(d,4),p=L(f);{let e=N(()=>o.contrast_bias??0);ls(p,{section:`contrast`,fieldKey:`contrast_bias`,label:`Contrast Bias`,description:`Shifts derived shades up (positive) or down (negative).`,min:-.2,max:.2,step:.01,get default(){return H(e)},cssVar:`--sf-contrast-bias`})}var h=R(p,2);{let e=N(()=>o.contrast_threshold??.6);ls(h,{section:`contrast`,fieldKey:`contrast_threshold`,label:`Contrast Threshold`,description:`Lightness threshold for text-on-color (white vs. black).`,min:0,max:1,step:.01,get default(){return H(e)},cssVar:`--sf-contrast-threshold`})}var g=R(h,2);{let e=N(()=>o.opacity_disabled??.45);ls(g,{section:`contrast`,fieldKey:`opacity_disabled`,label:`Disabled Opacity`,min:0,max:1,step:.01,get default(){return H(e)},cssVar:`--sf-opacity-disabled`})}O(f),G(e,n)},$$slots:{default:!0}}),O(ee),z(()=>{pe=Y(fe,``,pe,{"--fp-width":`${H(y)??``}px`,"--fp-offset":`${H(b)??``}px`,"--fp-style":H(x)}),K(he,`${H(y)??``}px ${H(x)??``} · ${H(b)??``}px offset`)}),G(e,ee),Xe()}var ys=22.5,bs=90,xs=10,Ss=60,Cs=40,ws=200;function Ts(e){let t=(t,n,r,i)=>{let a=e?.[t];return!Os(a)||isNaN(parseFloat(a))?n:Math.max(r,Math.min(i,parseFloat(a)))};return{min:t(`viewport_min`,ys,xs,Ss),max:t(`viewport_max`,bs,Cs,ws)}}function Es(e,t,n,r){if(e<=0||t<=0||r<=n)return null;let i=r-n,a=(t-e)/i,o=parseFloat(a.toFixed(6)),s=parseFloat(e.toFixed(4));return`clamp(${s}rem, calc(${o} * (100vw - ${n}rem) + ${s}rem), ${parseFloat(t.toFixed(4))}rem)`}function Ds(e){let t=parseFloat(e);if(isNaN(t))return`0`;let n=t.toFixed(6).replace(/0+$/,``).replace(/\.$/,``);return n===``?`0`:n}function Os(e){return e!=null&&e!==``}function ks(e){return e==null?``:String(e).replace(/\/\*[\s\S]*?\*\//g,` `).replace(/[;{}]/g,` `).replace(/[/*]{2,}/g,` `).replace(/\s+/g,` `).trim()}function As(e){let t=[],n=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`];for(let r of n){let n=`brand_${r}`;if(Os(e[n])){let i=ks(e[n]);i&&t.push(`--sf-color-${r}-light: ${i};`)}}let r=[`success`,`warning`,`error`,`info`,`danger`];for(let n of r){let r=`status_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-color-${n}-light: ${i};`)}}if(e.dark_overrides_enabled!==`0`){for(let r of n){let n=`brand_dark_${r}`;if(Os(e[n])){let i=ks(e[n]);i&&t.push(`--sf-color-${r}-dark: ${i};`)}}for(let n of r){let r=`status_dark_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-color-${n}-dark: ${i};`)}}}return t}function js(e,t){let n=[];for(let t of[`body`,`heading`,`mono`,`display`,`humanist`,`geometric`,`slab`]){let r=`font_${t}`;if(Os(e[r])){let i=ks(e[r]);i&&n.push(`--sf-font-${t}: ${i};`)}}if(Os(e.text_scale)){let t=ks(e.text_scale);t&&n.push(`--sf-text-scale: ${t};`)}if(Os(e.text_display_scale)){let t=ks(e.text_display_scale);t&&n.push(`--sf-text-display-scale: ${t};`)}for(let r of[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`,`display-s`,`display-m`,`display-l`]){let i=`size_${r}_min`,a=`size_${r}_max`,o=e[i],s=e[a];if(Os(o)&&Os(s)){let e=Es(parseFloat(o),parseFloat(s),t.min,t.max);e&&n.push(`--sf-text-${r}: ${e};`)}}return n}function Ms(e,t){let n=[];if(Os(e.space_scale)){let t=ks(e.space_scale);t&&n.push(`--sf-space-scale: ${t};`)}for(let r of[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`]){let i=e[`space_${r}_min`],a=e[`space_${r}_max`];if(Os(i)&&Os(a)){let e=Es(parseFloat(i),parseFloat(a),t.min,t.max);e&&n.push(`--sf-space-${r}: calc(${e} * var(--sf-space-scale));`)}}for(let[t,r]of Object.entries({gutter:`--sf-space-gutter`,gap:`--sf-gap`,content_gap:`--sf-content-gap`,component_pad:`--sf-component-pad`,section_pad:`--sf-section-pad`}))if(Os(e[t])){let i=ks(e[t]);i&&n.push(`${r}: ${i};`)}return n}function Ns(e){let t=[];if(Os(e.radius_scale)){let n=ks(e.radius_scale);n&&t.push(`--sf-radius-scale: ${n};`)}return t}function Ps(e){let t=[];if(Os(e.shadow_strength)){let n=ks(e.shadow_strength);n&&t.push(`--sf-shadow-strength: calc(${n} + var(--sf-is-dark) * 0.17);`)}if(Os(e.glow_color)){let n=ks(e.glow_color);n&&t.push(`--sf-shadow-glow-color: ${n};`)}return t}function Fs(e){let t=[];if(Os(e.motion_scale)){let n=ks(e.motion_scale);n&&t.push(`--sf-motion-scale: ${n};`)}for(let n of[`instant`,`fast`,`normal`,`slow`,`slower`]){let r=`duration_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-duration-${n}: calc(${i}ms * var(--sf-motion-scale));`)}}return t}function Is(e){let t=[];for(let n of[`below`,`base`,`raised`,`low`,`mid`,`high`,`top`,`max`])Os(e[n])&&t.push(`--sf-z-${n}: ${parseInt(e[n],10)};`);return t}function Ls(e){let t=[];for(let[n,r]of Object.entries({contrast_bias:`--sf-contrast-bias`,contrast_threshold:`--sf-contrast-threshold`,opacity_disabled:`--sf-opacity-disabled`}))Os(e[n])&&t.push(`${r}: ${Ds(e[n])};`);for(let[n,r]of Object.entries({focus_ring_width:`--sf-focus-ring-width`,focus_ring_offset:`--sf-focus-ring-offset`}))Os(e[n])&&t.push(`${r}: ${Ds(e[n])}px;`);return Os(e.focus_ring_style)&&[`solid`,`dashed`,`dotted`,`double`,`none`].includes(e.focus_ring_style)&&t.push(`--sf-focus-ring-style: ${e.focus_ring_style};`),t}function Rs(e,t={}){let{mode:n=`layer`,banner:r=!1,version:i=``}=t,a=[],o=Ts(e.spacing);if(e.colors&&typeof e.colors==`object`&&a.push(...As(e.colors)),e.typography&&typeof e.typography==`object`&&a.push(...js(e.typography,o)),e.spacing&&typeof e.spacing==`object`&&a.push(...Ms(e.spacing,o)),e.radius&&typeof e.radius==`object`&&a.push(...Ns(e.radius)),e.shadows&&typeof e.shadows==`object`&&a.push(...Ps(e.shadows)),e.motion&&typeof e.motion==`object`&&a.push(...Fs(e.motion)),e.zindex&&typeof e.zindex==`object`&&a.push(...Is(e.zindex)),e.contrast&&typeof e.contrast==`object`&&a.push(...Ls(e.contrast)),a.length===0)return``;let s=``;if(r){let e=i?` v${i}`:``,t=a.length;s+=`/* SLASHED override tokens${e} — generated by the SLASHED for WordPress admin.\n Load this AFTER the SLASHED stylesheet. ${t} declaration${t===1?``:`s`}. */\n`}if(n===`root`){s+=`:root { + viewport range, and named aliases live under Advanced.

`);function os(e,t){Xe(t,!0);let n=`spacing`,r=Z.defaults?.[n]??{},i=r.space_sizes??{},a=[{key:`gutter`,label:`Gutter`,cssVar:`--sf-space-gutter`},{key:`gap`,label:`Gap`,cssVar:`--sf-gap`},{key:`content_gap`,label:`Content Gap`,cssVar:`--sf-content-gap`},{key:`component_pad`,label:`Component Pad`,cssVar:`--sf-component-pad`},{key:`section_pad`,label:`Section Pad`,cssVar:`--sf-section-pad`}];var o=as(),s=L(I(o),4),c=I(s);{let e=M(()=>r.space_scale??1);Ro(c,{section:n,fieldKey:`space_scale`,label:`Space Scale`,min:0,step:.05,get default(){return V(e)},cssVar:`--sf-space-scale`})}D(s);var l=L(s,2);ns(l,{}),io(L(l,2),{children:(e,t)=>{var o=is(),s=L(gr(o),4),c=I(s);{let e=M(()=>r.viewport_min??22.5);Ro(c,{section:n,fieldKey:`viewport_min`,label:`Min viewport (rem)`,min:10,max:60,step:.5,get default(){return V(e)}})}var l=L(c,2);{let e=M(()=>r.viewport_max??90);Ro(l,{section:n,fieldKey:`viewport_max`,label:`Max viewport (rem)`,min:40,max:200,step:.5,get default(){return V(e)}})}D(s);var u=L(s,6);q(u,21,()=>Object.entries(i),([e,t])=>e,(e,t)=>{var r=M(()=>m(V(t),2));let i=()=>V(r)[0],a=()=>V(r)[1];var o=rs(),s=I(o),c=I(s),l=I(c,!0);D(c);var u=L(c,2),d=I(u);D(u),D(s);var f=L(s,2),p=I(f);{let e=M(()=>`space_${i()}_min`);Ro(p,{section:n,get fieldKey(){return V(e)},label:`Min`,min:0,step:.01,get default(){return a().min},width:`80px`})}var h=L(p,2);{let e=M(()=>`space_${i()}_max`);Ro(h,{section:n,get fieldKey(){return V(e)},label:`Max`,min:0,step:.01,get default(){return a().max},width:`80px`})}D(f),D(o),R(()=>{G(l,i()),G(d,`--sf-space-${i()??``}`)}),W(e,o)}),D(u);var d=L(u,4);q(d,21,()=>a,e=>e.key,(e,t)=>{{let i=M(()=>r[V(t).key]??``);_o(e,{section:n,get fieldKey(){return V(t).key},get label(){return V(t).label},get default(){return V(i)},get cssVar(){return V(t).cssVar},mono:!0})}}),D(d),W(e,o)},$$slots:{default:!0}}),D(o),W(e,o),Ze()}var ss=U(` `),cs=U(` `,1);function ls(e,t){Xe(t,!0);let n=X(t,`cssVar`,3,``),r=X(t,`unit`,3,``),i=X(t,`description`,3,``),a=M(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey])),o=M(()=>V(a)===``||Number.isNaN(Number(V(a)))?Number(t.default):Number(V(a)));function s(e){qa(t.section,t.fieldKey,e.currentTarget.value)}function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return n()},get fieldId(){return t.fieldKey},get description(){return i()},children:(e,n)=>{var i=cs(),l=gr(i);ba(l);var u=L(l,2);ba(u);var d=L(u,2),f=e=>{var t=ss(),n=I(t,!0);D(t),R(()=>G(n,r())),W(e,t)};K(d,e=>{r()&&e(f)}),R(e=>{Y(l,`min`,t.min),Y(l,`max`,t.max),Y(l,`step`,t.step),xa(l,V(o)),Y(u,`id`,t.fieldKey),Y(u,`min`,t.min),Y(u,`max`,t.max),Y(u,`step`,t.step),xa(u,V(a)),Y(u,`placeholder`,e)},[()=>String(t.default)]),H(`input`,l,s),H(`input`,u,c),W(e,i)},$$slots:{default:!0}}),Ze()}Oi([`input`]);var us=U(``),ds=U(``);function fs(e,t){Xe(t,!0);let n=X(t,`options`,19,()=>[]),r=X(t,`default`,3,``),i=X(t,`cssVar`,3,``),a=X(t,`description`,3,``),o=M(()=>n().map(e=>typeof e==`string`?{value:e,label:e}:e)),s=M(()=>Q[t.section]?.[t.fieldKey]===void 0||Q[t.section]?.[t.fieldKey]===null?``:String(Q[t.section][t.fieldKey]));function c(e){qa(t.section,t.fieldKey,e.currentTarget.value)}ho(e,{get label(){return t.label},get cssVar(){return i()},get fieldId(){return t.fieldKey},get description(){return a()},children:(e,n)=>{var i=ds(),a=I(i),l=I(a);D(a),a.value=a.__value=``,q(L(a),17,()=>V(o),e=>e.value,(e,t)=>{var n=us(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).value)&&(n.value=(n.__value=V(t).value)??``)}),W(e,n)}),D(i);var u;pa(i),R(()=>{Y(i,`id`,t.fieldKey),G(l,`Default (${r()??``})`),u!==(u=V(s))&&(i.value=(i.__value=V(s))??``,fa(i,V(s)))}),H(`change`,i,c),W(e,i)},$$slots:{default:!0}}),Ze()}Oi([`change`]);var ps=U(`
`),ms=U(`
`),hs=U(`
`),gs=U(`

Shadow

Motion — Durations

Base duration values in milliseconds.

Z-Index

Z-index layer values for stacking context management.

Contrast

`,1),_s=U(`

Radius

Shadows

Motion

Accessibility

`);function vs(e,t){Xe(t,!0);let n=Z.defaults?.radius??{},r=Z.defaults?.shadows??{},i=Z.defaults?.motion??{},a=Z.defaults?.zindex??{},o=Z.defaults?.contrast??{},s=i.durations??{},c=e=>e.charAt(0).toUpperCase()+e.slice(1),l=[0,2,4,8,12,16,24,9999],u=[`none`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`full`],d=M(()=>parseFloat(Q.radius?.radius_scale??Z.defaults?.radius?.radius_scale??1)),f=M(()=>l.map(e=>e*V(d))),p=M(()=>parseFloat(Q.shadows?.shadow_strength??r.shadow_strength??.08)),h=M(()=>parseFloat(Q.motion?.motion_scale??i.motion_scale??1)||1),g=[`instant`,`fast`,`normal`,`slow`,`slower`],_=M(()=>g.map(e=>{let t=Q.motion?.[`duration_${e}`],n=parseFloat(t!==void 0&&t!==``?t:s[e]??0);return{name:e,ms:Math.round(n*V(h))}})),v=(e,t)=>parseFloat(e!==void 0&&e!==``?e:t),y=M(()=>v(Q.contrast?.focus_ring_width,o.focus_ring_width??2)),b=M(()=>v(Q.contrast?.focus_ring_offset,o.focus_ring_offset??2)),x=M(()=>Q.contrast?.focus_ring_style??o.focus_ring_style??`solid`),S=M(()=>[{label:`xs`,shadow:`0 1px 2px 0 rgba(0,0,0,${(V(p)*.5).toFixed(4)})`},{label:`s`,shadow:`0 1px 2px 0 rgba(0,0,0,${(V(p)*.5).toFixed(4)}), 0 2px 6px 0 rgba(0,0,0,${V(p).toFixed(4)})`},{label:`m`,shadow:`0 1px 3px 0 rgba(0,0,0,${(V(p)*.5).toFixed(4)}), 0 4px 12px 0 rgba(0,0,0,${(V(p)*2).toFixed(4)})`},{label:`l`,shadow:`0 2px 4px 0 rgba(0,0,0,${(V(p)*.5).toFixed(4)}), 0 8px 24px 0 rgba(0,0,0,${(V(p)*3).toFixed(4)})`},{label:`xl`,shadow:`0 2px 8px 0 rgba(0,0,0,${(V(p)*.5).toFixed(4)}), 0 12px 36px 0 rgba(0,0,0,${(V(p)*3.5).toFixed(4)})`},{label:`glow`,shadow:`0 0 15px 2px rgba(74,48,208,${Math.min(V(p)*2,.7).toFixed(4)})`}]);var ee=_s(),C=L(I(ee),2),w=I(C);{let e=M(()=>n.radius_scale??1);Ro(w,{section:`radius`,fieldKey:`radius_scale`,label:`Radius Scale`,min:0,step:.1,get default(){return V(e)},cssVar:`--sf-radius-scale`})}D(C);var te=L(C,2);q(te,23,()=>V(f),(e,t)=>u[t],(e,t,n)=>{var r=ps(),i=I(r);let a;var o=L(i,2),s=I(o,!0);D(o),D(r),R(()=>{a=J(i,``,a,{"border-radius":l[V(n)]===9999?`9999px`:`${V(t)}px`}),G(s,u[V(n)])}),W(e,r)}),D(te);var ne=L(te,4),re=I(ne);{let e=M(()=>r.shadow_strength??.08);ls(re,{section:`shadows`,fieldKey:`shadow_strength`,label:`Shadow Strength`,description:`Base opacity for shadow layers (0–1).`,min:0,max:1,step:.01,get default(){return V(e)},cssVar:`--sf-shadow-strength`})}D(ne);var ie=L(ne,2);q(ie,21,()=>V(S),e=>e.label,(e,t)=>{var n=ms(),r=I(n);let i;var a=I(r,!0);D(r),D(n),R(()=>{i=J(r,``,i,{"box-shadow":V(t).shadow}),G(a,V(t).label)}),W(e,n)}),D(ie);var ae=L(ie,4),oe=I(ae);{let e=M(()=>i.motion_scale??1);Ro(oe,{section:`motion`,fieldKey:`motion_scale`,label:`Motion Scale`,min:0,step:.1,get default(){return V(e)},cssVar:`--sf-motion-scale`})}D(ae);var se=L(ae,2);q(se,21,()=>V(_),e=>e.name,(e,t)=>{var n=hs(),r=I(n),i=I(r,!0);D(r);var a=L(r,2),o=I(a);let s;D(a);var c=L(a,2),l=I(c);D(c),D(n),R(()=>{G(i,V(t).name),s=J(o,``,s,{"animation-duration":`${V(t).ms??``}ms`}),G(l,`${V(t).ms??``}ms`)}),W(e,n)}),D(se);var ce=L(se,4),le=I(ce);{let e=M(()=>o.focus_ring_width??2);ls(le,{section:`contrast`,fieldKey:`focus_ring_width`,label:`Focus Ring Width`,min:0,max:8,step:.5,get default(){return V(e)},cssVar:`--sf-focus-ring-width`,unit:`px`})}var ue=L(le,2);{let e=M(()=>o.focus_ring_offset??2);ls(ue,{section:`contrast`,fieldKey:`focus_ring_offset`,label:`Focus Ring Offset`,min:0,max:8,step:.5,get default(){return V(e)},cssVar:`--sf-focus-ring-offset`,unit:`px`})}var de=L(ue,2);{let e=M(()=>o.focus_ring_style??`solid`);fs(de,{section:`contrast`,fieldKey:`focus_ring_style`,label:`Focus Ring Style`,options:[`solid`,`dashed`,`dotted`,`double`,`none`],get default(){return V(e)},cssVar:`--sf-focus-ring-style`})}D(ce);var fe=L(ce,2),pe=I(fe);let me;var he=L(pe,2),ge=I(he);D(he),D(fe),io(L(fe,2),{children:(e,t)=>{var n=gs(),i=L(gr(n),2),l=I(i);{let e=M(()=>r.glow_color??`var(--sf-color-primary)`);_o(l,{section:`shadows`,fieldKey:`glow_color`,label:`Glow Color`,get default(){return V(e)},cssVar:`--sf-shadow-glow-color`,mono:!0})}D(i);var u=L(i,6);q(u,21,()=>Object.entries(s),([e,t])=>e,(e,t)=>{var n=M(()=>m(V(t),2));let r=()=>V(n)[0],i=()=>V(n)[1];{let t=M(()=>`duration_${r()}`),n=M(()=>c(r())),a=M(()=>`--sf-duration-${r()}`);Ro(e,{section:`motion`,get fieldKey(){return V(t)},get label(){return V(n)},min:0,step:10,get default(){return i()},get cssVar(){return V(a)},unit:`ms`})}}),D(u);var d=L(u,6);q(d,21,()=>Object.entries(a),([e,t])=>e,(e,t)=>{var n=M(()=>m(V(t),2));let r=()=>V(n)[0],i=()=>V(n)[1];{let t=M(()=>c(r())),n=M(()=>`--sf-z-${r()}`);Ro(e,{section:`zindex`,get fieldKey(){return r()},get label(){return V(t)},step:1,get default(){return i()},get cssVar(){return V(n)}})}}),D(d);var f=L(d,4),p=I(f);{let e=M(()=>o.contrast_bias??0);ls(p,{section:`contrast`,fieldKey:`contrast_bias`,label:`Contrast Bias`,description:`Shifts derived shades up (positive) or down (negative).`,min:-.2,max:.2,step:.01,get default(){return V(e)},cssVar:`--sf-contrast-bias`})}var h=L(p,2);{let e=M(()=>o.contrast_threshold??.6);ls(h,{section:`contrast`,fieldKey:`contrast_threshold`,label:`Contrast Threshold`,description:`Lightness threshold for text-on-color (white vs. black).`,min:0,max:1,step:.01,get default(){return V(e)},cssVar:`--sf-contrast-threshold`})}var g=L(h,2);{let e=M(()=>o.opacity_disabled??.45);ls(g,{section:`contrast`,fieldKey:`opacity_disabled`,label:`Disabled Opacity`,min:0,max:1,step:.01,get default(){return V(e)},cssVar:`--sf-opacity-disabled`})}D(f),W(e,n)},$$slots:{default:!0}}),D(ee),R(()=>{me=J(pe,``,me,{"--fp-width":`${V(y)??``}px`,"--fp-offset":`${V(b)??``}px`,"--fp-style":V(x)}),G(ge,`${V(y)??``}px ${V(x)??``} · ${V(b)??``}px offset`)}),W(e,ee),Ze()}var ys=22.5,bs=90,xs=10,Ss=60,Cs=40,ws=200;function Ts(e){let t=(t,n,r,i)=>{let a=e?.[t];return!Os(a)||isNaN(parseFloat(a))?n:Math.max(r,Math.min(i,parseFloat(a)))};return{min:t(`viewport_min`,ys,xs,Ss),max:t(`viewport_max`,bs,Cs,ws)}}function Es(e,t,n,r){if(e<=0||t<=0||r<=n)return null;let i=r-n,a=(t-e)/i,o=parseFloat(a.toFixed(6)),s=parseFloat(e.toFixed(4));return`clamp(${s}rem, calc(${o} * (100vw - ${n}rem) + ${s}rem), ${parseFloat(t.toFixed(4))}rem)`}function Ds(e){let t=parseFloat(e);if(isNaN(t))return`0`;let n=t.toFixed(6).replace(/0+$/,``).replace(/\.$/,``);return n===``?`0`:n}function Os(e){return e!=null&&e!==``}function ks(e){return e==null?``:String(e).replace(/\/\*[\s\S]*?\*\//g,` `).replace(/[;{}]/g,` `).replace(/[/*]{2,}/g,` `).replace(/\s+/g,` `).trim()}function As(e){let t=[],n=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`];for(let r of n){let n=`brand_${r}`;if(Os(e[n])){let i=ks(e[n]);i&&t.push(`--sf-color-${r}-light: ${i};`)}}let r=[`success`,`warning`,`error`,`info`,`danger`];for(let n of r){let r=`status_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-color-${n}-light: ${i};`)}}if(e.dark_overrides_enabled!==`0`){for(let r of n){let n=`brand_dark_${r}`;if(Os(e[n])){let i=ks(e[n]);i&&t.push(`--sf-color-${r}-dark: ${i};`)}}for(let n of r){let r=`status_dark_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-color-${n}-dark: ${i};`)}}}return t}function js(e,t){let n=[];for(let t of[`body`,`heading`,`mono`,`display`,`humanist`,`geometric`,`slab`]){let r=`font_${t}`;if(Os(e[r])){let i=ks(e[r]);i&&n.push(`--sf-font-${t}: ${i};`)}}if(Os(e.text_scale)){let t=ks(e.text_scale);t&&n.push(`--sf-text-scale: ${t};`)}if(Os(e.text_display_scale)){let t=ks(e.text_display_scale);t&&n.push(`--sf-text-display-scale: ${t};`)}for(let r of[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`,`display-s`,`display-m`,`display-l`]){let i=`size_${r}_min`,a=`size_${r}_max`,o=e[i],s=e[a];if(Os(o)&&Os(s)){let e=Es(parseFloat(o),parseFloat(s),t.min,t.max);e&&n.push(`--sf-text-${r}: ${e};`)}}return n}function Ms(e,t){let n=[];if(Os(e.space_scale)){let t=ks(e.space_scale);t&&n.push(`--sf-space-scale: ${t};`)}for(let r of[`2xs`,`xs`,`s`,`m`,`l`,`xl`,`2xl`,`3xl`,`4xl`]){let i=e[`space_${r}_min`],a=e[`space_${r}_max`];if(Os(i)&&Os(a)){let e=Es(parseFloat(i),parseFloat(a),t.min,t.max);e&&n.push(`--sf-space-${r}: calc(${e} * var(--sf-space-scale));`)}}for(let[t,r]of Object.entries({gutter:`--sf-space-gutter`,gap:`--sf-gap`,content_gap:`--sf-content-gap`,component_pad:`--sf-component-pad`,section_pad:`--sf-section-pad`}))if(Os(e[t])){let i=ks(e[t]);i&&n.push(`${r}: ${i};`)}return n}function Ns(e){let t=[];if(Os(e.radius_scale)){let n=ks(e.radius_scale);n&&t.push(`--sf-radius-scale: ${n};`)}return t}function Ps(e){let t=[];if(Os(e.shadow_strength)){let n=ks(e.shadow_strength);n&&t.push(`--sf-shadow-strength: calc(${n} + var(--sf-is-dark) * 0.17);`)}if(Os(e.glow_color)){let n=ks(e.glow_color);n&&t.push(`--sf-shadow-glow-color: ${n};`)}return t}function Fs(e){let t=[];if(Os(e.motion_scale)){let n=ks(e.motion_scale);n&&t.push(`--sf-motion-scale: ${n};`)}for(let n of[`instant`,`fast`,`normal`,`slow`,`slower`]){let r=`duration_${n}`;if(Os(e[r])){let i=ks(e[r]);i&&t.push(`--sf-duration-${n}: calc(${i}ms * var(--sf-motion-scale));`)}}return t}function Is(e){let t=[];for(let n of[`below`,`base`,`raised`,`low`,`mid`,`high`,`top`,`max`])Os(e[n])&&t.push(`--sf-z-${n}: ${parseInt(e[n],10)};`);return t}function Ls(e){let t=[];for(let[n,r]of Object.entries({contrast_bias:`--sf-contrast-bias`,contrast_threshold:`--sf-contrast-threshold`,opacity_disabled:`--sf-opacity-disabled`}))Os(e[n])&&t.push(`${r}: ${Ds(e[n])};`);for(let[n,r]of Object.entries({focus_ring_width:`--sf-focus-ring-width`,focus_ring_offset:`--sf-focus-ring-offset`}))Os(e[n])&&t.push(`${r}: ${Ds(e[n])}px;`);return Os(e.focus_ring_style)&&[`solid`,`dashed`,`dotted`,`double`,`none`].includes(e.focus_ring_style)&&t.push(`--sf-focus-ring-style: ${e.focus_ring_style};`),t}function Rs(e,t={}){let{mode:n=`layer`,banner:r=!1,version:i=``}=t,a=[],o=Ts(e.spacing);if(e.colors&&typeof e.colors==`object`&&a.push(...As(e.colors)),e.typography&&typeof e.typography==`object`&&a.push(...js(e.typography,o)),e.spacing&&typeof e.spacing==`object`&&a.push(...Ms(e.spacing,o)),e.radius&&typeof e.radius==`object`&&a.push(...Ns(e.radius)),e.shadows&&typeof e.shadows==`object`&&a.push(...Ps(e.shadows)),e.motion&&typeof e.motion==`object`&&a.push(...Fs(e.motion)),e.zindex&&typeof e.zindex==`object`&&a.push(...Is(e.zindex)),e.contrast&&typeof e.contrast==`object`&&a.push(...Ls(e.contrast)),a.length===0)return``;let s=``;if(r){let e=i?` v${i}`:``,t=a.length;s+=`/* SLASHED override tokens${e} — generated by the SLASHED for WordPress admin.\n Load this AFTER the SLASHED stylesheet. ${t} declaration${t===1?``:`s`}. */\n`}if(n===`root`){s+=`:root { `;for(let e of a)s+=`\t${e}\n`;s+=`}`}else{s+=`@layer slashed.overrides { :root { `;for(let e of a)s+=`\t\t${e}\n`;s+=` } -}`}return s}function zs(e){if(!e||typeof e!=`object`)return!1;for(let t of Object.values(e))if(!(!t||typeof t!=`object`)){for(let e of Object.values(t))if(typeof e==`object`&&e){for(let t of Object.values(e))if(t!==``&&t!=null)return!0}else if(e!==``&&e!=null)return!0}return!1}var Bs=W(` `),Vs=W(`

`),Hs=W(`

`),Us=W(`

Export / Import Tokens

Export your current SLASHED token overrides (colors, typography, spacing, etc.) to a .json file and import them on any other WordPress site running this plugin. +}`}return s}function zs(e){if(!e||typeof e!=`object`)return!1;for(let t of Object.values(e))if(!(!t||typeof t!=`object`)){for(let e of Object.values(t))if(typeof e==`object`&&e){for(let t of Object.values(e))if(t!==``&&t!=null)return!0}else if(e!==``&&e!=null)return!0}return!1}var Bs=U(` `),Vs=U(`

`),Hs=U(`

`),Us=U(`

Export / Import Tokens

Export your current SLASHED token overrides (colors, typography, spacing, etc.) to a .json file and import them on any other WordPress site running this plugin. Token exports are builder-agnostic — the file carries the brand tokens that drive the visual result regardless of which builder or theme is in use.

Export

Downloads a .json file containing all your active token overrides and plugin settings. Share this file alongside your template export so the visual result is identical on every site.

Standalone CSS
 

Import

Upload a .json file previously exported from this plugin. Each section is validated @@ -31,21 +31,20 @@ var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array via this tab, then import your template via your builder. SLASHED re-registers all classes, variables, and color palettes automatically.

  • Verify that colors, spacing, and fonts match the original. If something looks off, check the browser console for unresolved var() calls — - this means the CSS bundle isn't loading or the token file wasn't imported yet.
  • `);function Ws(e,t){Ye(t,!0);let n=F(!1),r=F(``),i=F(!1),a=F(``),o=N(()=>Z.versions?.framework||Z.versions?.plugin||``),s=N(()=>Rs(Q,{mode:$.outputMode,banner:!0,version:H(o)})),c=N(()=>H(s).length>0);function l(){if(!H(s))return;let e=new Blob([H(s)],{type:`text/css`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`slashed-custom-${new Date().toISOString().slice(0,10)}.css`,n.click(),URL.revokeObjectURL(t)}async function u(){if(H(s)){I(a,``);try{await navigator.clipboard.writeText(H(s)),I(i,!0),setTimeout(()=>I(i,!1),1400)}catch{I(a,`Clipboard blocked — select the CSS below and copy manually.`)}}}async function d(){I(n,!0),I(r,``);try{let e=await Co(),t=JSON.stringify(e,null,2),n=new Blob([t],{type:`application/json`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`slashed-tokens-${new Date().toISOString().slice(0,10)}.json`,i.click(),URL.revokeObjectURL(r)}catch(e){I(r,e.message||`Export failed`,!0)}finally{I(n,!1)}}let f=F(null),p=F(!1),m=F(``),h=F(``),g=F(0);async function _(){let e=H(f)?.files?.[0];if(e){I(m,``),I(h,``),I(p,!0);try{let t=await e.text(),n=await wo(JSON.parse(t)),r=n.settings_imported?` Plugin settings restored.`:``;I(m,`Imported ${n.imported} section(s) successfully.${r}`),I(g,3);let i=setInterval(()=>{I(g,H(g)-1),H(g)<=0&&(clearInterval(i),window.location.reload())},1e3)}catch(e){I(h,e.message||`Import failed`,!0)}finally{I(p,!1),H(f)&&(H(f).value=``)}}}var v=Us(),y=R(L(v),4),b=R(L(y),4),x=L(b),S=L(x,!0);O(x);var ee=R(x,2),C=e=>{var t=Bs(),n=L(t,!0);O(t),z(()=>K(n,H(r))),G(e,t)};q(ee,e=>{H(r)&&e(C)}),O(b);var w=R(b,2),te=L(w),ne=R(L(te),2),re=L(ne);let ie;var ae=R(re,2);let oe;O(ne),O(te);var T=R(te,2),se=L(T),ce=R(se,2),le=L(ce,!0);O(ce);var ue=R(ce,2),de=e=>{var t=Bs(),n=L(t,!0);O(t),z(()=>K(n,H(a))),G(e,t)};q(ue,e=>{H(a)&&e(de)}),O(T);var fe=R(T,2),pe=L(fe),me=L(pe,!0);O(pe),O(fe),O(w),O(y);var he=R(y,2),ge=R(L(he),4),_e=L(ge);Fa(_e,e=>I(f,e),()=>H(f));var ve=R(_e,2),ye=L(ve,!0);O(ve),O(ge);var be=R(ge,2),xe=e=>{var t=Vs(),n=L(t),r=R(n),i=e=>{var t=Pi();z(()=>K(t,`Reloading in ${H(g)??``}…`)),G(e,t)};q(r,e=>{H(g)>0&&e(i)}),O(t),z(()=>K(n,`${H(m)??``} `)),G(e,t)};q(be,e=>{H(m)&&e(xe)});var Se=R(be,2),Ce=e=>{var t=Hs(),n=L(t,!0);O(t),z(()=>K(n,H(h))),G(e,t)};q(Se,e=>{H(h)&&e(Ce)}),O(he),ze(2),O(v),z(()=>{x.disabled=H(n),K(S,H(n)?`Exporting…`:`Download token file (.json)`),ie=la(re,1,`seg__btn svelte-19399h6`,null,ie,{"seg__btn--on":$.outputMode===`layer`}),X(re,`aria-pressed`,$.outputMode===`layer`),oe=la(ae,1,`seg__btn svelte-19399h6`,null,oe,{"seg__btn--on":$.outputMode===`root`}),X(ae,`aria-pressed`,$.outputMode===`root`),se.disabled=!H(c),X(se,`title`,H(c)?`Download overrides as a standalone CSS file`:`No overrides set yet`),ce.disabled=!H(c),X(ce,`title`,H(c)?`Copy the generated CSS to the clipboard`:`No overrides set yet`),K(le,H(i)?`Copied ✓`:`Copy CSS`),K(me,H(s)||`/* No overrides set yet — adjust a token to generate CSS. */`),ve.disabled=H(p),K(ye,H(p)?`Importing…`:`Import token file`)}),U(`click`,x,d),U(`click`,re,()=>$.outputMode=`layer`),U(`click`,ae,()=>$.outputMode=`root`),U(`click`,se,l),U(`click`,ce,u),U(`click`,ve,_),G(e,v),Xe()}Di([`click`]);var Gs=[{category:`Colors`,description:`Brand, status, and semantic color tokens. Source colors use oklch(); the framework derives light-dark pairs, 50–950 palettes, alpha scales, and state variants automatically. Palette and alpha scales require optional/tokens.palette.css (optimal bundle and above).`,tokens:[{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}`,description:`Resolved light-dark adaptive brand color for use in rules.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-light`,description:`Source color (oklch registered value). Set this to rebrand.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-dark`,description:`Optional dark-mode override. If set, replaces the auto-derived dark variant for full per-mode control.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{50,100,200,300,400,500,600,700,800,900,950}`,description:`Palette scale: 50 (lightest) → 950 (darkest), mixed with base/text. Requires tokens.palette.css.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{a5,a10,a30,a50,a80}`,description:`Alpha scale (5 steps): 5%, 10%, 30%, 50%, 80% opacity of the brand color. Requires tokens.palette.css.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{hover,active,muted,subtle,ghost,lighter,darker,xlight,xdark,superlight,superdark}`,description:`Semantic aliases for common UI states, mapped to palette steps.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}--{hover,active}`,description:`Double-dash state overrides used inside interactive components (e.g. hover/active button fills).`},{name:`--sf-color-{surface,inverse}`,description:`Surface (card/panel) and inverse (high-contrast) context colors.`},{name:`--sf-color-{success,warning,error,info,danger}`,description:`Status feedback colors (resolved adaptive value).`},{name:`--sf-color-{success,warning,error,info,danger}-{light,dark,strong,hover,active,muted,subtle,ghost,lighter,darker,xlight,xdark,superlight,superdark}`,description:`Status color source (-light), explicit dark override (-dark), emphasis (-strong), and state variants.`},{name:`--sf-color-bg`,description:`Page background color, derived from base.`},{name:`--sf-color-bg--{hover,active,selected,focus,disabled}`,description:`Interactive background overlays for hover/active/selected/focus/disabled states.`},{name:`--sf-color-text`,description:`Main body text color, contrast-aware.`},{name:`--sf-color-text--{secondary,muted,disabled,placeholder,inverse}`,description:`Secondary, muted, disabled, placeholder, and inverted text colors.`},{name:`--sf-color-text--on-{primary,secondary,tertiary,action,neutral,base,surface,inverse,success,warning,error,info,danger}`,description:`Auto-contrast text color to use on top of each colored surface.`},{name:`--sf-color-heading`,description:`Heading text color, slightly stronger than body text.`},{name:`--sf-color-link`,description:`Link color, derived from the action brand.`},{name:`--sf-color-link--{hover,active,visited,underline,disabled}`,description:`Link state colors and underline accent.`},{name:`--sf-link-underline-{offset,thickness}`,description:`Link underline geometry (offset from baseline, stroke thickness).`},{name:`--sf-color-border`,description:`Default border color.`},{name:`--sf-color-border--{subtle,strong,focus,disabled,translucent}`,description:`De-emphasized, emphasized, focus, disabled, and translucent border colors.`},{name:`--sf-color-{code-bg,code-text,mark-bg,mark-text}`,description:`Inline and background/foreground colors.`},{name:`--sf-color-{white,black}`,description:`Absolute white/black anchors in oklch space, for staying inside the token system.`},{name:`--sf-color-surface`,description:`Card/panel surface color (equals base).`},{name:`--sf-surface-color`,description:`Active surface color consumed by .sf-surface for background and auto-contrast text derivation.`},{name:`--sf-palette-mix-{50,100,200,300,400,600,700,800,900,950}`,description:`Intermediate mix ratios used when interpolating palette steps. Requires tokens.palette.css.`},{name:`--sf-color-{inset,raised}`,description:`Recessed (inset) and elevated (raised) surface background contexts.`},{name:`--sf-color-selection-{bg,text}`,description:`Text selection (::selection) background and foreground colors.`},{name:`--sf-color-overlay`,description:`Semi-transparent overlay for modals.`},{name:`--sf-color-dim`,description:`50% black overlay for dimming backgrounds.`},{name:`--sf-color-scheme`,description:`CSS color-scheme declaration (light dark). Holds a string, not a color.`}]},{category:`Typography`,description:`Font families, fluid size scale, weights, line-heights, letter-spacing, per-size sub-properties, and heading/body/prose configuration.`,tokens:[{name:`--sf-font-{body,heading,mono,display,humanist,geometric,slab}`,description:`Font stacks: body, heading, mono, display, plus curated humanist/geometric/slab fallback personalities.`},{name:`--sf-font-{features,variation}`,description:`font-feature-settings and font-variation-settings hooks.`},{name:`--sf-font-weight-{light,normal,medium,semibold,bold}`,description:`Named weight tokens: 300, 400, 500, 600, 700.`},{name:`--sf-font-weight-{body,heading,display,interactive,strong}`,description:`Semantic weight roles: body/heading/display type roles plus interactive (buttons/nav) and strong (bold inline).`},{name:`--sf-current-font-weight`,description:`Current context font weight (used by strong elements).`},{name:`--sf-leading-{tight,snug,normal,relaxed}`,description:`Line-height presets: 1.1, 1.3, 1.5, 1.625.`},{name:`--sf-tracking-{tight,normal,wide,wider,widest}`,description:`Letter-spacing presets from -0.025em to 0.1em.`},{name:`--sf-font-numeric`,description:`Numeric figure style (tabular-nums) so digits align in columns; applied to number inputs.`},{name:`--sf-text-{2xs,xs,s,m,l,xl,2xl,3xl,4xl}`,description:`Fluid type scale using clamp(). Honours --sf-text-scale.`},{name:`--sf-text-display-{s,m,l}`,description:`Extra-large display/hero sizes. Honour --sf-text-display-scale.`},{name:`--sf-display-{s,m,l}-line-height`,description:`Per-size line-height overrides for display/hero text sizes.`},{name:`--sf-text-{scale,display-scale}`,description:`Global multipliers for the body and display type scales (default 1).`},{name:`--sf-text-base-{max,min} / --sf-text-ratio-{max,min}`,description:`Fluid body-type scale config: base-size clamp endpoints and ratio clamp endpoints.`},{name:`--sf-text-display-base-{max,min}`,description:`Fluid display-type scale config: base-size clamp endpoints.`},{name:`--sf-leading-taper`,description:`Rate at which line-height contracts as type size grows (used by auto line-height logic).`},{name:`--sf-text-{2xs,xs,s,m,l,xl,2xl,3xl,4xl}-{line-height,font-weight,letter-spacing,max-width}`,description:`Per-size sub-property override knobs (relaxed leading for small text, tight leading for display). Requires tokens.sizes-extended.css.`},{name:`--sf-text-{xs,s,m,l,xl,2xl,3xl,4xl}-to-{2xs,xs,s,m,l,xl,2xl,3xl}`,description:`Text bridge tokens: a clamp() spanning from one step (wide) to another (narrow) for extra range of motion. Requires tokens.sizes-extended.css.`},{name:`--sf-h{1,2,3,4,5,6}-{size,font-weight,line-height,letter-spacing,max-width}`,description:`Per-heading-level configuration tokens including optional max-width cap.`},{name:`--sf-heading-{color,font-family,text-wrap}`,description:`Global heading color, font stack, and text-wrap mode (balance).`},{name:`--sf-body-{color,font-family,font-size,font-weight,line-height,text-wrap,em-style,strong-weight}`,description:`Body text configuration tokens.`},{name:`--sf-prose-{block-margin,heading-gap,list-gap,paragraph,figure-margin,figcaption-size,media-margin,media-radius,marker-color}`,description:`Long-form .sf-prose rhythm and element styling tokens.`},{name:`--sf-prose-{blockquote-border,blockquote-padding,hr-margin,nested-list-gap,table-pad}`,description:`Extended .sf-prose element tokens: blockquote decoration, rule margin, nested-list gap, and table cell padding.`},{name:`--sf-code-font-size`,description:`Inline font-size (relative em).`},{name:`--sf-optical-sizing`,description:`font-optical-sizing control (auto).`},{name:`--sf-line-clamp`,description:`Default line count for .sf-line-clamp-N.`}]},{category:`Spacing`,description:`Fluid spacing scale (clamp-based), gutters, section padding, component padding, flow, safe-area insets, and sticky-header offsets.`,tokens:[{name:`--sf-space-{none,px,2xs,xs,s,m,l,xl,2xl,3xl,4xl}`,description:`Fluid spacing scale. Honours --sf-space-scale (none/px are fixed).`},{name:`--sf-space-scale`,description:`Global multiplier for all space tokens (default 1).`},{name:`--sf-space-base-{max,min} / --sf-space-ratio-{max,min}`,description:`Fluid spacing scale config: base-size and ratio clamp endpoints.`},{name:`--sf-space-{gutter,gap,content}`,description:`Internal aliases: page gutter, default gap, content gap (consumed by --sf-gap / --sf-content-gap).`},{name:`--sf-gap / --sf-gap-size`,description:`Default layout gap and its raw size component.`},{name:`--sf-content-gap`,description:`Gap between content elements (defaults to space-s).`},{name:`--sf-component-pad`,description:`Internal padding for components (defaults to space-m).`},{name:`--sf-section-pad`,description:`Active section padding alias.`},{name:`--sf-section-pad--{xs,s,m,l,xl,2xl}`,description:`Vertical padding presets for page sections.`},{name:`--sf-flow-space`,description:`Gap applied between .sf-flow children (lobotomized owl).`},{name:`--sf-safe-{top,right,bottom,left}`,description:`Safe-area insets for notched devices.`},{name:`--sf-header-height`,description:`Resolved fixed-header height for sticky offset calculations.`},{name:`--sf-header-height-{mobile,desktop}`,description:`Per-breakpoint header height inputs.`},{name:`--sf-sticky-offset`,description:`Resolved sticky offset (defaults to header height).`},{name:`--sf-sticky-offset-{mobile,desktop}`,description:`Per-breakpoint sticky offset inputs.`}]},{category:`Sizing`,description:`Component sizes, touch targets, aspect ratios, and icon sizing.`,tokens:[{name:`--sf-size-{xs,s,m,l,xl}`,description:`Named size tokens: xs(1.5rem), s(2rem), m(2.5rem), l(2.75rem), xl(3.5rem).`},{name:`--sf-touch-target`,description:`Minimum interactive element size (defaults to size-l, 2.75rem).`},{name:`--sf-ratio-{square,portrait,video,cinema,golden,3-2,4-3}`,description:`Predefined aspect ratios for frames and containers.`},{name:`--sf-aspect`,description:`Generic aspect-ratio token read by the .sf-aspect macro (16/9).`},{name:`--sf-object-{fit,position}`,description:`Default object-fit (cover) and object-position (50% 50%) for media elements.`},{name:`--sf-content-intrinsic-size`,description:`Placeholder size for the .sf-content-auto macro's contain-intrinsic-size (500px).`}]},{category:`Layout`,description:`Container widths and layout-primitive tokens (stack, cluster, grid, sidebar, switcher, bento, cover, frame, reel, imposter, box, center, content-grid, divider, alternate, equal, multi-column).`,tokens:[{name:`--sf-container-{narrow,default,prose,wide,full}`,description:`Max-width presets for .sf-container.`},{name:`--sf-stack-gap`,description:`Vertical gap between .sf-stack children.`},{name:`--sf-cluster-{gap,align,justify}`,description:`Inline cluster layout tokens.`},{name:`--sf-sidebar-{width,gap,min-width}`,description:`Sidebar layout tokens.`},{name:`--sf-switcher-{threshold,gap}`,description:`Column-to-stack breakpoint and gap.`},{name:`--sf-grid-{min,gap}`,description:`Auto-fill grid minimum item width and gap.`},{name:`--sf-grid-min-{xs,s,m,l,xl,2xl}`,description:`Per-size minimum item widths for .sf-grid--*.`},{name:`--sf-bento-{cols-default,gap,row-default,row-compact,row-tall}`,description:`Dense bento grid configuration.`},{name:`--sf-cover-{min-height,padding}`,description:`Full-height cover layout.`},{name:`--sf-frame-ratio`,description:`Aspect ratio for .sf-frame (defaults to 16/9).`},{name:`--sf-reel-{gap,height,item-width}`,description:`Horizontal scroll strip configuration.`},{name:`--sf-imposter-margin`,description:`Safety margin for absolute-centered overlays.`},{name:`--sf-box-{padding,border-color,border-width}`,description:`Isolated .sf-box unit padding and border.`},{name:`--sf-center-{gutter,max}`,description:`Intrinsic-centering gutter and max-width.`},{name:`--sf-content-width / --sf-breakout-width`,description:`Breakout grid track widths.`},{name:`--sf-divider-{color,style,width,gap}`,description:`Divider appearance and surrounding gap tokens.`},{name:`--sf-alternate-{gap,inner-gap}`,description:`Zigzag .sf-alternate layout gaps.`},{name:`--sf-equal-{cols,gap}`,description:`Equal-columns count and gap.`},{name:`--sf-equal-min-col / --sf-equal-min-col-{2,3,4,6}`,description:`Minimum column width for equal-columns grid (base and per-column-count overrides).`},{name:`--sf-field-{block,required-marker,padding-block,padding-inline,radius}`,description:`Form field vertical rhythm, required indicator, and geometry (padding + radius).`},{name:`--sf-button-{padding-block,padding-inline,radius}`,description:`Button geometry tokens: block/inline padding and border-radius.`},{name:`--sf-gutter`,description:`Wide page/section-edge gutter (used by center/container). Override to set the page-edge breathing room across breakpoints.`},{name:`--sf-gutter-width`,description:`Page-level horizontal gutter width.`},{name:`--sf-section-scale`,description:`Global multiplier for section padding tokens (default 1).`},{name:`--sf-fluid-{max,min}-vw`,description:`Viewport-width breakpoints (%) used by all fluid clamp() calculations.`}]},{category:`Borders`,description:`Border shorthands, widths, styles, and stroke widths.`,tokens:[{name:`--sf-border / --sf-border-{subtle,strong}`,description:`Composed border shorthands (width + style + color). Replaces the three-part recipe.`},{name:`--sf-border-scale`,description:`Global multiplier for border widths (default 1).`},{name:`--sf-border-width-{hairline,1,2,3,4}`,description:`Border width scale: 0.5px, 1px, 2px, 3px, 4px.`},{name:`--sf-border-style`,description:`Default border style (solid).`},{name:`--sf-border-style-{dotted,soft,strong}`,description:`Border style presets (dotted, dashed, solid).`}]},{category:`Radius`,description:`Border radius scale and special shapes.`,tokens:[{name:`--sf-radius-{none,2xs,xs,s,m,l,xl,2xl,3xl,4xl,full}`,description:`Radius scale from 0 to 9999px (pill).`},{name:`--sf-radius-scale`,description:`Global multiplier for all radius tokens (default 1).`},{name:`--sf-radius-pill`,description:`Fully rounded (9999px).`},{name:`--sf-radius-outer`,description:`Outer radius = inner + padding (for nested rounding).`}]},{category:`Shadows`,description:`Box shadows, drop shadows, text shadows, and shadow configuration.`,tokens:[{name:`--sf-shadow-{xs,s,m,l,xl,2xl}`,description:`Elevation shadow scale, progressively more dramatic.`},{name:`--sf-shadow-inner`,description:`Inset shadow for recessed elements.`},{name:`--sf-shadow-glow`,description:`Colored glow effect (uses --sf-shadow-glow-color).`},{name:`--sf-shadow-none`,description:`Explicit no-shadow value.`},{name:`--sf-shadow-color / --sf-shadow-glow-color`,description:`Base shadow color (derived from neutral) and glow color.`},{name:`--sf-shadow-strength`,description:`Shadow opacity multiplier (adapts to dark mode).`},{name:`--sf-shadow-lightness`,description:`Lightness offset applied to shadow color in dark mode.`},{name:`--sf-drop-shadow-{s,m,l}`,description:`CSS filter drop-shadow equivalents.`},{name:`--sf-text-shadow-{s,m,l,none}`,description:`Text shadow presets.`}]},{category:`Effects`,description:`Blurs, opacities, gradients, masks, perspective, and contrast tuning.`,tokens:[{name:`--sf-blur`,description:`Single blur radius token (12px) for frosted-nav / overlay use. For other amounts use inline blur(Npx).`},{name:`--sf-opacity-{disabled,muted}`,description:`Named opacity tokens: disabled (0.4) for non-interactive elements, muted (0.6) for de-emphasized text/icons.`},{name:`--sf-theme-transition-duration`,description:`Duration knob for .sf-theme-transition cross-fade (default 300ms). Respects prefers-reduced-motion.`},{name:`--sf-gradient-{brand,primary,secondary,tertiary,surface}`,description:`Predefined gradients using brand colors.`},{name:`--sf-gradient-fade--{t,b,l,r}`,description:`Directional fade-to-background gradients.`},{name:`--sf-mask-scrim-{start,end}`,description:`Scroll mask fade depth.`},{name:`--sf-scrim-{color,direction,gradient}`,description:`Darkening overlay for the .sf-scrim text-over-image macro.`},{name:`--sf-scrim-text-shadow`,description:`Soft text-shadow halo for the .sf-text-protect macro.`},{name:`--sf-perspective-{near,normal,far}`,description:`3D perspective presets: 500px, 1000px, 2000px.`},{name:`--sf-contrast-{bias,threshold}`,description:`Color contrast tuning for auto text-on-color logic.`}]},{category:`Motion`,description:`Durations, easing curves, transitions, and animations.`,tokens:[{name:`--sf-duration-{none,instant,fast,normal,slow,slower}`,description:`Duration scale: 0ms to 600ms (respects --sf-motion-scale).`},{name:`--sf-motion-scale`,description:`Global animation speed multiplier (set 0 to disable).`},{name:`--sf-ease-{linear,in,out,in-out,bounce,elastic,overshoot,spring}`,description:`Easing function presets.`},{name:`--sf-transition-{all,colors,opacity,shadow,transform,fast,slow,enter,exit,overlay,form-field}`,description:`Pre-composed transition shorthands (overlay = top-layer display/overlay with allow-discrete; form-field = border+shadow+background for inputs).`},{name:`--sf-animation-{fade-in,fade-out,scale-up,scale-down,slide-in-up,slide-in-down,slide-in-left,slide-in-right,float,ping,blink,color-pulse,shimmer,spin}`,description:`Named keyframe animation shorthands.`},{name:`--sf-animation-delay-{1,2,3,4,5}`,description:`Stagger delays for sequential animations.`}]},{category:`Icons`,description:`Inline icon sizing and the boxed-icon container.`,tokens:[{name:`--sf-icon-{xs,s,m,l,xl,2xl}`,description:`Icon sizing in em units (0.875em to ~3em).`},{name:`--sf-icon-box-{bg,border,pad,radius}`,description:`Boxed icon (.sf-icon--boxed) background, border, padding, radius.`}]},{category:`Z-Index`,description:`Z-index scale for predictable layering.`,tokens:[{name:`--sf-z-{below,base,raised,sticky,fixed,dropdown,overlay,modal,toast,tooltip}`,description:`Semantic z-index ladder: -1, 0, 1, 100, 200, 300, 400, 500, 600, 700. Use component names, not numbers.`}]},{category:`States`,description:`Internal flags and state tokens that drive runtime .is-* behaviour.`,tokens:[{name:`--sf-is-dark`,description:`Numeric flag (0 or 1) indicating dark mode is active. Registered property.`},{name:`--sf-is-{active,current,open,pressed}`,description:`Internal numeric/derived flags mirrored from matching .is-* classes.`},{name:`--sf-state-pending-opacity`,description:`Opacity applied to elements in the .is-pending optimistic state.`}]},{category:`Focus`,description:`Focus ring appearance for keyboard navigation.`,tokens:[{name:`--sf-focus-ring-{width,offset,color,style,shadow}`,description:`Focus indicator configuration.`},{name:`--sf-caret-color`,description:`Text input caret color (defaults to action).`}]},{category:`Scroll`,description:`Scroll timeline, scroll-shadow, and scrollbar styling.`,tokens:[{name:`--sf-scroll-timeline-range-{start,end}`,description:`Scroll-driven animation range.`},{name:`--sf-scroll-shadow-size`,description:`Depth of the .sf-scroll-shadow mask gradient.`},{name:`--sf-scrollbar-{thumb,track}`,description:`Custom scrollbar colors.`}]},{category:`Print`,description:`Print stylesheet configuration.`,tokens:[{name:`--sf-print-{base-size,page-margin,page-size}`,description:`Print layout tokens: 11pt base, 2cm margins, A4 size.`}]},{category:`Misc`,description:`Internal helpers and string-valued tokens that don't belong to a single visual family.`,tokens:[{name:`--sf-lumlocker`,description:`Internal luminance lock value for color derivation.`},{name:`--sf-link-external-marker`,description:`External link arrow character.`}]}],Ks=[{category:`Layout Primitives`,description:`Breakpoint-free, container-query-driven layout components. Each is a single class with per-instance token overrides via inline style.`,classes:[{name:`.sf-section / .sf-section-group`,description:`Vertical page rhythm; -group collapses gap between adjacent sections.`},{name:`.sf-section--{xs,s,m,l,xl,2xl,collapse}`,description:`Section size variants and collapse.`},{name:`.sf-container`,description:`Centered max-width wrapper with gutters.`},{name:`.sf-container--{narrow,wide,full,prose}`,description:`Container width variants.`},{name:`.sf-box`,description:`Isolated unit with padding and optional border.`},{name:`.sf-center / .sf-center--intrinsic`,description:`Intrinsic centering with max-width.`},{name:`.sf-stack`,description:`Vertical flow with consistent gap.`},{name:`.sf-stack--{xs,s,m,l,xl,2xl,center,end,stretch}`,description:`Stack size and alignment variants.`},{name:`.sf-cluster`,description:`Wrapping inline group.`},{name:`.sf-cluster--{xs,s,m,l,xl,2xl,center,end,between,no-wrap}`,description:`Cluster size, alignment, and wrap variants.`},{name:`.sf-sidebar`,description:`Content + side panel that wraps.`},{name:`.sf-sidebar--{right,narrow,wide}`,description:`Sidebar side and width variants.`},{name:`.sf-switcher`,description:`N columns above threshold, stacked below.`},{name:`.sf-switcher--{no-wrap,vertical}`,description:`Switcher behaviour variants.`},{name:`.sf-grid`,description:`Auto-fill responsive grid.`},{name:`.sf-grid--{xs,s,m,l,xl,2xl,fit,dense}`,description:`Grid item-size and packing variants.`},{name:`.sf-grid-{1,2,3,4,6}`,description:`Fixed-column grids, container-responsive.`},{name:`.sf-grid-{1-2,2-1,1-3,3-1}`,description:`Ratio two-column grids.`},{name:`.sf-grid-cols-{1,2,3,4,6}`,description:`Fixed-column grids using grid-template-columns (explicit track variant).`},{name:`.sf-grid-cols-{1-2,2-1,1-3,3-1}`,description:`Ratio two-column grids using explicit column tracks.`},{name:`.sf-cq`,description:`Establishes a container-query context (container-type: inline-size) on the element.`},{name:`.sf-bento`,description:`Dense free-form grid.`},{name:`.sf-bento--{2,3,6,compact,tall}`,description:`Bento column-count (2, 3, 6) and row-height (compact, tall) variants.`},{name:`.sf-bento-{featured,full,tall,wide}`,description:`Bento child span modifiers: featured (2×2), full (row-span), tall (tall row), wide (2-col).`},{name:`.sf-equal / .sf-equal-height`,description:`Equal-width columns; -height equalizes flex child heights.`},{name:`.sf-equal--{2,3,4,6}`,description:`Equal-columns count variants.`},{name:`.sf-gap`,description:`Standalone gap utility for grid/flex parents.`},{name:`.sf-gap--{xs,s,m,l,xl,2xl}`,description:`Gap size variants.`},{name:`.sf-alternate`,description:`Zigzag two-column layout, reverses every other row.`},{name:`.sf-pancake`,description:`Sticky-footer grid: header / main(1fr) / footer.`},{name:`.sf-content-grid`,description:`Breakout layout grid. Children use .sf-breakout or .sf-full-bleed.`},{name:`.sf-breakout / .sf-full-bleed`,description:`Content-grid escape hatches: breakout band and edge-to-edge bleed.`},{name:`.sf-cover / .sf-cover__center`,description:`Full-height region with a centered content child.`},{name:`.sf-cover--{min,max,padding-s,padding-l}`,description:`Cover height and padding variants.`},{name:`.sf-frame`,description:`Aspect-ratio media box.`},{name:`.sf-frame--{square,portrait,video,cinema,3-2,4-3,golden}`,description:`Frame aspect-ratio variants.`},{name:`.sf-reel`,description:`Horizontal scroll strip with optional mask fade.`},{name:`.sf-imposter / .sf-imposter--{fixed,contain}`,description:`Absolutely-centered overlay and its position variants.`},{name:`.sf-subgrid / .sf-subgrid-rows`,description:`Inherit parent grid tracks.`},{name:`.sf-divider / .sf-divider--vertical`,description:`Token-driven separator (horizontal or vertical).`},{name:`.sf-divider--{soft,strong,dashed,dotted,gradient}`,description:`Divider colour/line-style modifiers and a fading gradient variant.`},{name:`.sf-icon`,description:`Em-based inline icon sizing.`},{name:`.sf-icon--{xs,s,m,l,xl,2xl,boxed}`,description:`Icon size variants and boxed container.`},{name:`.sf-prose / .sf-not-prose`,description:`Readable long-form text rhythm; -not resets a zone inside it.`}]},{category:`Macros`,description:`Recipe classes that answer 'what does this element do/look like?' - composable with layout primitives.`,classes:[{name:`.sf-flow`,description:`Lobotomized owl: consistent gap between consecutive children.`},{name:`.sf-truncate`,description:`Single-line ellipsis overflow.`},{name:`.sf-line-clamp-{2,3,N}`,description:`Multi-line text clamping with ellipsis. -N reads --sf-line-clamp.`},{name:`.sf-aspect`,description:`Generic aspect-ratio container (reads --sf-aspect token).`},{name:`.sf-scroll-shadow`,description:`Top + bottom mask gradient for scrolling containers.`},{name:`.sf-scroll-snap`,description:`Vertical scroll-snap container.`},{name:`.sf-overflow-fade`,description:`End-edge horizontal fade for overflowing inline content.`},{name:`.sf-no-tap-highlight`,description:`Suppresses WebKit/Android tap highlight.`},{name:`.sf-content-auto`,description:`content-visibility:auto — skips rendering offscreen content (reads --sf-content-intrinsic-size).`},{name:`.sf-tabular-nums`,description:`Fixed-width digits for column-aligned numbers (reads --sf-font-numeric).`},{name:`.sf-text-gradient`,description:`Gradient text effect using background-clip.`},{name:`.sf-clickable-parent / .sf-clickable-parent__overlay / .sf-focus-parent`,description:`Makes a whole card clickable via the first link inside; __overlay is a full-bleed pseudo-element fallback; -focus mirrors focus ring to the parent.`},{name:`.sf-focus-shadow`,description:`Opt-in: switches :focus-visible from outline to a box-shadow ring (follows border-radius).`},{name:`.sf-link-external`,description:`Adds external link indicator marker.`},{name:`.sf-link--{subtle,reverse}`,description:`Link underline affordance: subtle reveals on hover, reverse hides on hover.`},{name:`.sf-scrim / .sf-scrim--{top,bottom,full}`,description:`Darkening gradient overlay for legible text over a background image.`},{name:`.sf-scrim__content`,description:`Content child of .sf-scrim — positioned above the gradient overlay.`},{name:`.sf-text-protect`,description:`Soft text-shadow halo for legibility over busy images, without a darkening layer.`}]},{category:`Surfaces`,description:`Color surface utility classes that set background and auto-contrast text for a brand context.`,classes:[{name:`.sf-surface`,description:`Surface container — sets background from --sf-surface-color and derives auto-contrast text.`},{name:`.sf-surface--{primary,secondary,tertiary,action,neutral,inverse}`,description:`Brand-colored surface with auto-contrast text.`},{name:`.sf-surface--{success,warning,error,info,danger}`,description:`Status-colored surfaces.`},{name:`.sf-theme-transition`,description:`Apply to (or a subtree) to cross-fade colors when [data-theme] flips. Duration via --sf-theme-transition-duration. Respects prefers-reduced-motion.`}]},{category:`Animations`,description:`CSS animation utility classes that apply predefined keyframe animations.`,classes:[{name:`.sf-fade-in / .sf-fade-out`,description:`Opacity entrance/exit animations.`},{name:`.sf-scale-up / .sf-scale-down`,description:`Scale entrance/exit animations.`},{name:`.sf-slide-in-{up,down,left,right}`,description:`Directional slide-in entrance animations.`},{name:`.sf-color-pulse`,description:`Continuous color pulse animation.`},{name:`.sf-entrance--{fade,fade-up,fade-down,fade-left,fade-right,scale-up}`,description:`Scroll-triggered entrance animations (scroll-timeline driven).`}]},{category:`State Classes (.is-*)`,description:`Runtime state classes toggled by JS or mirrored from ARIA. They live in the slashed.states layer. Always pair with matching ARIA attributes.`,classes:[{name:`.is-hidden / .is-invisible / .is-visible`,description:`Visibility control: removed from layout / hidden but keeps box / visible.`},{name:`.is-disabled / .is-readonly`,description:`Non-interactive states with dimming.`},{name:`.is-loading / .is-pending / .is-busy`,description:`Loading states: spinner replacement / optimistic UI / cursor hint.`},{name:`.is-skeleton`,description:`Placeholder shimmer animation.`},{name:`.is-active / .is-selected / .is-current / .is-pressed`,description:`Selection/activation states.`},{name:`.is-highlighted`,description:`Transient emphasis (e.g. search result highlight).`},{name:`.is-open / .is-collapsed / .is-expanded`,description:`Disclosure states for modals, drawers, accordions.`},{name:`.is-valid / .is-invalid`,description:`Form field validation results (maps to aria-invalid).`},{name:`.is-success / .is-error / .is-warning / .is-info / .is-danger`,description:`General feedback states and destructive-action context.`},{name:`.is-sticky / .is-pinned / .is-fixed / .is-fullscreen`,description:`Positioning states.`},{name:`.is-clipped / .is-scrollable / .is-truncated / .is-resizable`,description:`Overflow handling states.`},{name:`.is-dragging / .is-drop-target / .is-draggable`,description:`Drag and drop states.`},{name:`.is-overlay / .is-focused / .is-clickable / .is-unselectable`,description:`Positioning, focus, cursor, and selection states.`},{name:`.is-empty`,description:`Hide element when empty (:empty pseudo-class).`}]}],qs=[{name:`--sf-is-dark`,description:`Numeric flag (0 or 1) indicating dark mode is active. Registered property.`},{name:`--sf-lumlocker`,description:`Internal luminance lock value for color derivation.`},{name:`--sf-color-scheme`,description:`CSS color-scheme declaration (light dark).`},{name:`--sf-current-font-weight`,description:`Current context font weight (used by strong elements).`},{name:`--sf-link-external-marker`,description:`External link arrow character.`},{name:`--sf-field-block`,description:`Vertical spacing between form fields.`},{name:`--sf-field-required-marker`,description:`Required field indicator string.`}],Js=W(`· change →`,1),Ys=W(`
  • `),Xs=W(`
      `),Zs=W(`
      Misc Tokens that do not fit a single category.
        `),Qs=W(`

        CSS Custom Properties (--sf-*)

        `),$s=W(`

        Utility & State Classes

        `),ec=W(`

        `),tc=W(`

        API Cheatsheet

        `);function nc(e,t){Ye(t,!0);let n=F(``),r=F(`all`),i=Z.inventory?.variables?.length??0,a=Z.inventory?.sf_classes?.length??0,o=Z.inventory?.is_classes?.length??0,s={essential:`Essential`,optimal:`Optimal`,full:`Full`},c=Z.pluginSettings?.css_bundle??`optimal`,l=window.slashedApp?.settingsUrl??``,u=N(()=>m(Gs,`tokens`)),d=N(()=>m(Ks,`classes`)),f=N(()=>qs.filter(e=>p(e.name,e.description)));function p(e,t){if(!H(n).trim())return!0;let r=H(n).trim().toLowerCase();return e.toLowerCase().includes(r)||t.toLowerCase().includes(r)}function m(e,t){return H(n).trim()?e.map(e=>({...e,[t]:e[t].filter(e=>p(e.name,e.description))})).filter(e=>e[t].length>0):e}let h=N(()=>H(r)===`all`||H(r)===`variables`),g=N(()=>H(r)===`all`||H(r)===`classes`),_=N(()=>H(n).trim()!==``&&(!H(h)||H(u).length===0&&H(f).length===0)&&(!H(g)||H(d).length===0));var v=tc(),y=L(v),b=L(y),x=R(L(b),2),S=L(x),ee=R(S),C=e=>{var t=Js(),n=R(hr(t));z(()=>X(n,`href`,l)),G(e,t)};q(ee,e=>{l&&e(C)}),O(x),O(b);var w=R(b,2),te=L(w);O(w),O(y);var ne=R(y,2),re=L(ne);ya(re);var ie=R(re,2),ae=L(ie);let oe;var T=R(ae,2);let se;var ce=R(T,2);let le;O(ie),O(ne);var ue=R(ne,2),de=e=>{var t=Qs(),r=R(L(t),2);J(r,17,()=>H(u),Ji,(e,t)=>{var r=Xs(),i=L(r),a=L(i),o=L(a,!0);O(a);var s=R(a,2),c=L(s,!0);O(s),O(i);var l=R(i,2);J(l,21,()=>H(t).tokens,Ji,(e,t)=>{var n=Ys(),r=L(n),i=L(r,!0);O(r);var a=R(r,2),o=L(a,!0);O(a),O(n),z(()=>{K(i,H(t).name),K(o,H(t).description)}),G(e,n)}),O(l),O(r),z(e=>{r.open=e,K(o,H(t).category),K(c,H(t).description)},[()=>!H(n).trim()]),G(e,r)});var i=R(r,2),a=e=>{var t=Zs(),r=R(L(t),2);J(r,21,()=>H(f),Ji,(e,t)=>{var n=Ys(),r=L(n),i=L(r,!0);O(r);var a=R(r,2),o=L(a,!0);O(a),O(n),z(()=>{K(i,H(t).name),K(o,H(t).description)}),G(e,n)}),O(r),O(t),z(e=>t.open=e,[()=>!H(n).trim()]),G(e,t)};q(i,e=>{H(f).length>0&&e(a)}),O(t),G(e,t)};q(ue,e=>{H(h)&&e(de)});var fe=R(ue,2),pe=e=>{var t=$s();J(R(L(t),2),17,()=>H(d),Ji,(e,t)=>{var r=Xs(),i=L(r),a=L(i),o=L(a,!0);O(a);var s=R(a,2),c=L(s,!0);O(s),O(i);var l=R(i,2);J(l,21,()=>H(t).classes,Ji,(e,t)=>{var n=Ys(),r=L(n),i=L(r,!0);O(r);var a=R(r,2),o=L(a,!0);O(a),O(n),z(()=>{K(i,H(t).name),K(o,H(t).description)}),G(e,n)}),O(l),O(r),z(e=>{r.open=e,K(o,H(t).category),K(c,H(t).description)},[()=>!H(n).trim()]),G(e,r)}),O(t),G(e,t)};q(fe,e=>{H(g)&&e(pe)});var me=R(fe,2),he=e=>{var t=ec(),r=L(t);O(t),z(()=>K(r,`No results for "${H(n)??``}"`)),G(e,t)};q(me,e=>{H(_)&&e(he)}),O(v),z(()=>{K(S,`${s[c]??c??``} bundle `),K(te,`${i??``} variables · ${a??``} layout/utility classes · ${o??``} state classes`),X(ae,`aria-pressed`,H(r)===`all`),oe=la(ae,1,`svelte-osej3t`,null,oe,{active:H(r)===`all`}),X(T,`aria-pressed`,H(r)===`variables`),se=la(T,1,`svelte-osej3t`,null,se,{active:H(r)===`variables`}),X(ce,`aria-pressed`,H(r)===`classes`),le=la(ce,1,`svelte-osej3t`,null,le,{active:H(r)===`classes`})}),wa(re,()=>H(n),e=>I(n,e)),U(`click`,ae,()=>I(r,`all`)),U(`click`,T,()=>I(r,`variables`)),U(`click`,ce,()=>I(r,`classes`)),G(e,v),Xe()}Di([`click`]);var rc=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`],ic=[`success`,`warning`,`error`,`info`,`danger`],ac=e=>`oklch(from var(${e}) clamp(0.65, calc(0.95 - l * 0.5), 0.88) calc(c * 0.9) h)`,oc=e=>`oklch(from var(${e}) clamp(0.16, calc(1.18 - l), 0.24) calc(c * 0.5) h)`,sc=e=>{let t=`--sf-color-${e}-light`;return e===`base`?oc(t):ac(t)};function cc(e,t,n){let r=[],i=t.defaults?.colors??{},a=e.colors??{},o=e.typography??{},s=e.radius??{},c=e.shadows??{},l=e.contrast??{},u=n?`dark`:`light`,d=(()=>{let e=l.contrast_threshold,n=parseFloat(e!==void 0&&e!==``?e:t.defaults?.contrast?.contrast_threshold??.6);return Number.isFinite(n)?n:.6})(),f=(()=>{let e=l.contrast_bias,n=parseFloat(e!==void 0&&e!==``?e:t.defaults?.contrast?.contrast_bias??0);return Number.isFinite(n)?n:0})(),p=a.dark_overrides_enabled!==`0`;for(let e of rc){let t=ks(a[`brand_${e}`]??i.brand_hex_hints?.[e]);t&&r.push(`--sf-color-${e}-light:${t}`);let n=p?ks(a[`brand_dark_${e}`]):``;r.push(`--sf-color-${e}-dark:${n||sc(e)}`)}for(let e of ic){let t=ks(a[`status_${e}`]??i.status_hex_hints?.[e]);t&&r.push(`--sf-color-${e}-light:${t}`);let n=p?ks(a[`status_dark_${e}`]):``;r.push(`--sf-color-${e}-dark:${n||sc(e)}`)}let m=e=>`oklch(from ${e} clamp(0.1, sign(${d} - l) * 999, 0.95) 0 0)`;for(let e of[...rc,...ic])r.push(`--c-${e}:var(--sf-color-${e}-${u})`),r.push(`--on-${e}:${m(`var(--c-${e})`)}`);r.push(`--c-surface:var(--c-base)`),r.push(`--c-bg:oklch(from var(--c-base) calc(l + 0.02) c h)`),r.push(`--c-raised:oklch(from var(--c-base) calc(l + 0.04) c h)`),r.push(`--c-inset:oklch(from var(--c-base) calc(l - 0.02) c h)`);let h=u===`dark`?`var(--c-neutral)`:`var(--sf-color-neutral-light)`;u===`dark`?(r.push(`--c-text:oklch(from ${h} clamp(0.70, calc(l + 0.25 + ${f}), 1) c h)`),r.push(`--c-text-secondary:oklch(from ${h} clamp(0.55, calc(l + 0.1 + ${f}), 0.90) c h)`),r.push(`--c-border:oklch(from ${h} clamp(0.25, calc(l - 0.3), 0.55) 0.005 h)`),r.push(`--c-border-subtle:oklch(from ${h} clamp(0.20, calc(l - 0.38), 0.45) 0.005 h)`),r.push(`--c-link:oklch(from var(--c-action) clamp(0.68, l, 1) c h)`)):(r.push(`--c-text:oklch(from ${h} clamp(0.05, calc(l - 0.4 - ${f}), 0.35) c h)`),r.push(`--c-text-secondary:oklch(from ${h} clamp(0.15, calc(l - 0.25 - ${f}), 0.45) c h)`),r.push(`--c-border:oklch(from ${h} clamp(0.70, calc(l + 0.35), 0.95) 0.005 h)`),r.push(`--c-border-subtle:oklch(from ${h} clamp(0.75, calc(l + 0.4), 0.97) 0.005 h)`),r.push(`--c-link:oklch(from var(--c-action) clamp(0, min(l - 0.07, 0.48), 1) c h)`)),r.push(`--c-text-muted:var(--c-neutral)`);for(let e of ic)r.push(`--tint-${e}:oklch(from var(--c-${e}) l c h / 0.14)`);let g=ks(o.font_body);g&&r.push(`--sf-font-body:${g}`);let _=ks(o.font_heading);_&&r.push(`--sf-font-heading:${_}`);let v=parseFloat(s.radius_scale??t.defaults?.radius?.radius_scale??1)||1;r.push(`--preview-radius-s:${Math.round(4*v)}px`),r.push(`--preview-radius-m:${Math.round(8*v)}px`),r.push(`--preview-radius-l:${Math.round(16*v)}px`);let y=c.shadow_strength,b=parseFloat(y!==void 0&&y!==``?y:t.defaults?.shadows?.shadow_strength??.08);return r.push(`--preview-shadow:0 2px 8px 0 rgba(0,0,0,${(b*2).toFixed(3)}),0 1px 3px 0 rgba(0,0,0,${b.toFixed(3)})`),r.join(`;`)}function lc(e){return e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function uc([e,t,n]){return .2126*lc(e)+.7152*lc(t)+.0722*lc(n)}function dc(e,t){let n=uc(e),r=uc(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function fc(e){return e>=7?`AAA`:e>=4.5?`AA`:e>=3?`AA-large`:`fail`}function pc(e){return e>=4.5?`AAA`:e>=3?`AA`:`fail`}function mc(e){return e===`AAA`?`badge--aaa`:e===`AA`?`badge--aa`:e===`AA-large`?`badge--aa-large`:`badge--fail`}function hc(e){let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.round(Math.max(0,Math.min(1,t))*255)}function gc(e,t,n){let r=lc(e),i=lc(t),a=lc(n),o=.4122214708*r+.5363325363*i+.0514459929*a,s=.2119034982*r+.6806995451*i+.1073969566*a,c=.0883024619*r+.2817188376*i+.6299787005*a,l=Math.cbrt(o),u=Math.cbrt(s),d=Math.cbrt(c),f=.2104542553*l+.793617785*u-.0040720468*d,p=1.9779984951*l-2.428592205*u+.4505937099*d,m=.0259040371*l+.7827717662*u-.808675766*d,h=Math.atan2(m,p)*180/Math.PI;return h<0&&(h+=360),[f,Math.hypot(p,m),h]}function _c(e,t,n){let r=e+.3963377774*t+.2158037573*n,i=e-.1055613458*t-.0638541728*n,a=e-.0894841775*t-1.291485548*n,o=r*r*r,s=i*i*i,c=a*a*a;return[4.0767416621*o-3.3077115913*s+.2309699292*c,-1.2684380046*o+2.6097574011*s-.3413193965*c,-.0041960863*o-.7034186147*s+1.707614701*c]}function vc(e,t,n){let r=n*Math.PI/180,i=t=>_c(e,t*Math.cos(r),t*Math.sin(r)),a=e=>e.every(e=>e>=-1e-4&&e<=1.0001),o=t;if(!a(i(o))){let e=0,n=t;for(let t=0;t<24;t+=1){let t=(e+n)/2;a(i(t))?e=t:n=t}o=e}let s=i(o);return{rgb:[hc(s[0]),hc(s[1]),hc(s[2])],chroma:o}}function yc(e,t,n){return vc(e,t,n).rgb}function bc(e){if(!e||typeof document>`u`||typeof CSS<`u`&&CSS.supports&&!CSS.supports(`color`,e))return null;try{let t=document.createElement(`canvas`);t.width=1,t.height=1;let n=t.getContext(`2d`);n.fillStyle=`#000`,n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a,o]=n.getImageData(0,0,1,1).data;return o===0?null:[r,i,a]}catch{return null}}function xc(e,t,n,r){let i=gc(...n)[0],a=i>=.5,o=null,s=null;for(let c=0;c<=1.0000001;c+=.0025){let{rgb:l,chroma:u}=vc(c,e,t),d=dc(l,n);d=i)&&(!o||d(e%360+360)%360),n=0,r=-1;for(let e=0;e<360;e+=1){let i=360;for(let n of t){let t=Math.abs(e-n),r=Math.min(t,360-t);rr&&(r=i,n=e)}return n}function Cc({roles:e={},surfaceRgb:t,locked:n={},target:r=4.5}){if(!t)return null;let i=[`primary`,`secondary`,`tertiary`,`action`],a=[],o=[];for(let t of i)if(n[t]&&e[t]){let[,n,r]=gc(...e[t]);a.push(r),o.push(n)}let s=o.length?o.reduce((e,t)=>e+t,0)/o.length:null,c={};for(let r of i)if(n[r]&&e[r]){let n=e[r];c[r]={color:null,rgb:n,ratio:dc(n,t),locked:!0}}let l=i.filter(t=>!(n[t]&&e[t])),u=[...l.filter(t=>e[t]),...l.filter(t=>!e[t])];for(let n of u){let i=a.length?Sc(a):e[n]?gc(...e[n])[2]:0;a.push(i);let o=s;o??(o=e[n]?gc(...e[n])[1]:.15),o=Math.max(o,.12);let l=xc(o,i,t,r);c[n]=l?{color:l.color,rgb:l.rgb,ratio:l.ratio,locked:!1}:null}return c}function wc({roles:e={},locked:t={},neutralTarget:n=7,accentTarget:r=4.5}){if(!e.base)return null;let i,a;if(t.base)i=e.base,a=null;else{let[,t,n]=gc(...e.base),r=Math.min(t,.02);a=`oklch(0.96 ${r.toFixed(4)} ${n.toFixed(2)})`,i=yc(.96,r,n)}let o={};if(o.base={color:a,rgb:i,ratio:null,locked:!!t.base},e.neutral)if(t.neutral)o.neutral={color:null,rgb:e.neutral,ratio:dc(e.neutral,i),locked:!0};else{let[,t,r]=gc(...e.neutral);o.neutral=xc(Math.min(t,.05),r,i,n)}let s=Cc({roles:{primary:e.primary,secondary:e.secondary,tertiary:e.tertiary,action:e.action},surfaceRgb:i,locked:{primary:t.primary,secondary:t.secondary,tertiary:t.tertiary,action:t.action},target:r});for(let t of[`primary`,`secondary`,`tertiary`,`action`])e[t]&&(o[t]=s[t]);return o}var Tc=W(``),Ec=W(``),Dc=W(`
        Aa
        Normal text Large text
        Normal: 4.5:1 AA · 7:1 AAA  |  Large: 3:1 AA · 4.5:1 AAA
        `,1),Oc=W(`
        Could not resolve this pair.
        `),kc=W(` `),Ac=W(` `),jc=W(` `),Mc=W(` `),Nc=W(`
        Aa
        `),Pc=W(``),Fc=W(` `),Ic=W(` `),Lc=W(`Locked — kept unchanged`),Rc=W(`Surface`),zc=W(`
        `),Bc=W(`
        No accessible value on this hue — left unchanged
        `),Vc=W(`
        `),Hc=W(`

        WCAG Contrast Checker

        Contrast for your token palette, resolved with the current overrides in mode — including derived surfaces and + this means the CSS bundle isn't loading or the token file wasn't imported yet.

        `);function Ws(e,t){Xe(t,!0);let n=P(!1),r=P(``),i=P(!1),a=P(``),o=M(()=>Z.versions?.framework||Z.versions?.plugin||``),s=M(()=>Rs(Q,{mode:$.outputMode,banner:!0,version:V(o)})),c=M(()=>V(s).length>0);function l(){if(!V(s))return;let e=new Blob([V(s)],{type:`text/css`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`slashed-custom-${new Date().toISOString().slice(0,10)}.css`,n.click(),URL.revokeObjectURL(t)}async function u(){if(V(s)){F(a,``);try{await navigator.clipboard.writeText(V(s)),F(i,!0),setTimeout(()=>F(i,!1),1400)}catch{F(a,`Clipboard blocked — select the CSS below and copy manually.`)}}}async function d(){F(n,!0),F(r,``);try{let e=await Co(),t=JSON.stringify(e,null,2),n=new Blob([t],{type:`application/json`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`slashed-tokens-${new Date().toISOString().slice(0,10)}.json`,i.click(),URL.revokeObjectURL(r)}catch(e){F(r,e.message||`Export failed`,!0)}finally{F(n,!1)}}let f=P(null),p=P(!1),m=P(``),h=P(``),g=P(0);async function _(){let e=V(f)?.files?.[0];if(e){F(m,``),F(h,``),F(p,!0);try{let t=await e.text(),n=await wo(JSON.parse(t)),r=n.settings_imported?` Plugin settings restored.`:``;F(m,`Imported ${n.imported} section(s) successfully.${r}`),F(g,3);let i=setInterval(()=>{F(g,V(g)-1),V(g)<=0&&(clearInterval(i),window.location.reload())},1e3)}catch(e){F(h,e.message||`Import failed`,!0)}finally{F(p,!1),V(f)&&(V(f).value=``)}}}var v=Us(),y=L(I(v),4),b=L(I(y),4),x=I(b),S=I(x,!0);D(x);var ee=L(x,2),C=e=>{var t=Bs(),n=I(t,!0);D(t),R(()=>G(n,V(r))),W(e,t)};K(ee,e=>{V(r)&&e(C)}),D(b);var w=L(b,2),te=I(w),ne=L(I(te),2),re=I(ne);let ie;var ae=L(re,2);let oe;D(ne),D(te);var se=L(te,2),ce=I(se),le=L(ce,2),ue=I(le,!0);D(le);var de=L(le,2),fe=e=>{var t=Bs(),n=I(t,!0);D(t),R(()=>G(n,V(a))),W(e,t)};K(de,e=>{V(a)&&e(fe)}),D(se);var pe=L(se,2),me=I(pe),he=I(me,!0);D(me),D(pe),D(w),D(y);var ge=L(y,2),_e=L(I(ge),4),ve=I(_e);Ia(ve,e=>F(f,e),()=>V(f));var ye=L(ve,2),be=I(ye,!0);D(ye),D(_e);var xe=L(_e,2),Se=e=>{var t=Vs(),n=I(t),r=L(n),i=e=>{var t=Fi();R(()=>G(t,`Reloading in ${V(g)??``}…`)),W(e,t)};K(r,e=>{V(g)>0&&e(i)}),D(t),R(()=>G(n,`${V(m)??``} `)),W(e,t)};K(xe,e=>{V(m)&&e(Se)});var Ce=L(xe,2),we=e=>{var t=Hs(),n=I(t,!0);D(t),R(()=>G(n,V(h))),W(e,t)};K(Ce,e=>{V(h)&&e(we)}),D(ge),Be(2),D(v),R(()=>{x.disabled=V(n),G(S,V(n)?`Exporting…`:`Download token file (.json)`),ie=ua(re,1,`seg__btn svelte-19399h6`,null,ie,{"seg__btn--on":$.outputMode===`layer`}),Y(re,`aria-pressed`,$.outputMode===`layer`),oe=ua(ae,1,`seg__btn svelte-19399h6`,null,oe,{"seg__btn--on":$.outputMode===`root`}),Y(ae,`aria-pressed`,$.outputMode===`root`),ce.disabled=!V(c),Y(ce,`title`,V(c)?`Download overrides as a standalone CSS file`:`No overrides set yet`),le.disabled=!V(c),Y(le,`title`,V(c)?`Copy the generated CSS to the clipboard`:`No overrides set yet`),G(ue,V(i)?`Copied ✓`:`Copy CSS`),G(he,V(s)||`/* No overrides set yet — adjust a token to generate CSS. */`),ye.disabled=V(p),G(be,V(p)?`Importing…`:`Import token file`)}),H(`click`,x,d),H(`click`,re,()=>$.outputMode=`layer`),H(`click`,ae,()=>$.outputMode=`root`),H(`click`,ce,l),H(`click`,le,u),H(`click`,ye,_),W(e,v),Ze()}Oi([`click`]);var Gs=[{category:`Colors`,description:`Brand, status, and semantic color tokens. Source colors use oklch(); the framework derives light-dark pairs, 50–950 palettes, alpha scales, and state variants automatically. Palette and alpha scales require optional/tokens.palette.css (optimal bundle and above).`,tokens:[{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}`,description:`Resolved light-dark adaptive brand color for use in rules.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-light`,description:`Source color (oklch registered value). Set this to rebrand.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-dark`,description:`Optional dark-mode override. If set, replaces the auto-derived dark variant for full per-mode control.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{50,100,200,300,400,500,600,700,800,900,950}`,description:`Palette scale: 50 (lightest) → 950 (darkest), mixed with base/text. Requires tokens.palette.css.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{a5,a10,a30,a50,a80}`,description:`Alpha scale (5 steps): 5%, 10%, 30%, 50%, 80% opacity of the brand color. Requires tokens.palette.css.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}-{hover,active,muted,subtle,ghost,lighter,darker,xlight,xdark,superlight,superdark}`,description:`Semantic aliases for common UI states, mapped to palette steps.`},{name:`--sf-color-{primary,secondary,tertiary,action,neutral,base}--{hover,active}`,description:`Double-dash state overrides used inside interactive components (e.g. hover/active button fills).`},{name:`--sf-color-{surface,inverse}`,description:`Surface (card/panel) and inverse (high-contrast) context colors.`},{name:`--sf-color-{success,warning,error,info,danger}`,description:`Status feedback colors (resolved adaptive value).`},{name:`--sf-color-{success,warning,error,info,danger}-{light,dark,strong,hover,active,muted,subtle,ghost,lighter,darker,xlight,xdark,superlight,superdark}`,description:`Status color source (-light), explicit dark override (-dark), emphasis (-strong), and state variants.`},{name:`--sf-color-bg`,description:`Page background color, derived from base.`},{name:`--sf-color-bg--{hover,active,selected,focus,disabled}`,description:`Interactive background overlays for hover/active/selected/focus/disabled states.`},{name:`--sf-color-text`,description:`Main body text color, contrast-aware.`},{name:`--sf-color-text--{secondary,muted,disabled,placeholder,inverse}`,description:`Secondary, muted, disabled, placeholder, and inverted text colors.`},{name:`--sf-color-text--on-{primary,secondary,tertiary,action,neutral,base,surface,inverse,success,warning,error,info,danger}`,description:`Auto-contrast text color to use on top of each colored surface.`},{name:`--sf-color-heading`,description:`Heading text color, slightly stronger than body text.`},{name:`--sf-color-link`,description:`Link color, derived from the action brand.`},{name:`--sf-color-link--{hover,active,visited,underline,disabled}`,description:`Link state colors and underline accent.`},{name:`--sf-link-underline-{offset,thickness}`,description:`Link underline geometry (offset from baseline, stroke thickness).`},{name:`--sf-color-border`,description:`Default border color.`},{name:`--sf-color-border--{subtle,strong,focus,disabled,translucent}`,description:`De-emphasized, emphasized, focus, disabled, and translucent border colors.`},{name:`--sf-color-{code-bg,code-text,mark-bg,mark-text}`,description:`Inline and background/foreground colors.`},{name:`--sf-color-{white,black}`,description:`Absolute white/black anchors in oklch space, for staying inside the token system.`},{name:`--sf-color-surface`,description:`Card/panel surface color (equals base).`},{name:`--sf-surface-color`,description:`Active surface color consumed by .sf-surface for background and auto-contrast text derivation.`},{name:`--sf-palette-mix-{50,100,200,300,400,600,700,800,900,950}`,description:`Intermediate mix ratios used when interpolating palette steps. Requires tokens.palette.css.`},{name:`--sf-color-{inset,raised}`,description:`Recessed (inset) and elevated (raised) surface background contexts.`},{name:`--sf-color-selection-{bg,text}`,description:`Text selection (::selection) background and foreground colors.`},{name:`--sf-color-overlay`,description:`Semi-transparent overlay for modals.`},{name:`--sf-color-dim`,description:`50% black overlay for dimming backgrounds.`},{name:`--sf-color-scheme`,description:`CSS color-scheme declaration (light dark). Holds a string, not a color.`}]},{category:`Typography`,description:`Font families, fluid size scale, weights, line-heights, letter-spacing, per-size sub-properties, and heading/body/prose configuration.`,tokens:[{name:`--sf-font-{body,heading,mono,display,humanist,geometric,slab}`,description:`Font stacks: body, heading, mono, display, plus curated humanist/geometric/slab fallback personalities.`},{name:`--sf-font-{features,variation}`,description:`font-feature-settings and font-variation-settings hooks.`},{name:`--sf-font-weight-{light,normal,medium,semibold,bold}`,description:`Named weight tokens: 300, 400, 500, 600, 700.`},{name:`--sf-font-weight-{body,heading,display,interactive,strong}`,description:`Semantic weight roles: body/heading/display type roles plus interactive (buttons/nav) and strong (bold inline).`},{name:`--sf-current-font-weight`,description:`Current context font weight (used by strong elements).`},{name:`--sf-leading-{tight,snug,normal,relaxed}`,description:`Line-height presets: 1.1, 1.3, 1.5, 1.625.`},{name:`--sf-tracking-{tight,normal,wide,wider,widest}`,description:`Letter-spacing presets from -0.025em to 0.1em.`},{name:`--sf-font-numeric`,description:`Numeric figure style (tabular-nums) so digits align in columns; applied to number inputs.`},{name:`--sf-text-{2xs,xs,s,m,l,xl,2xl,3xl,4xl}`,description:`Fluid type scale using clamp(). Honours --sf-text-scale.`},{name:`--sf-text-display-{s,m,l}`,description:`Extra-large display/hero sizes. Honour --sf-text-display-scale.`},{name:`--sf-display-{s,m,l}-line-height`,description:`Per-size line-height overrides for display/hero text sizes.`},{name:`--sf-text-{scale,display-scale}`,description:`Global multipliers for the body and display type scales (default 1).`},{name:`--sf-text-base-{max,min} / --sf-text-ratio-{max,min}`,description:`Fluid body-type scale config: base-size clamp endpoints and ratio clamp endpoints.`},{name:`--sf-text-display-base-{max,min}`,description:`Fluid display-type scale config: base-size clamp endpoints.`},{name:`--sf-leading-taper`,description:`Rate at which line-height contracts as type size grows (used by auto line-height logic).`},{name:`--sf-text-{2xs,xs,s,m,l,xl,2xl,3xl,4xl}-{line-height,font-weight,letter-spacing,max-width}`,description:`Per-size sub-property override knobs (relaxed leading for small text, tight leading for display). Requires tokens.sizes-extended.css.`},{name:`--sf-text-{xs,s,m,l,xl,2xl,3xl,4xl}-to-{2xs,xs,s,m,l,xl,2xl,3xl}`,description:`Text bridge tokens: a clamp() spanning from one step (wide) to another (narrow) for extra range of motion. Requires tokens.sizes-extended.css.`},{name:`--sf-h{1,2,3,4,5,6}-{size,font-weight,line-height,letter-spacing,max-width}`,description:`Per-heading-level configuration tokens including optional max-width cap.`},{name:`--sf-heading-{color,font-family,text-wrap}`,description:`Global heading color, font stack, and text-wrap mode (balance).`},{name:`--sf-body-{color,font-family,font-size,font-weight,line-height,text-wrap,em-style,strong-weight}`,description:`Body text configuration tokens.`},{name:`--sf-prose-{block-margin,heading-gap,list-gap,paragraph,figure-margin,figcaption-size,media-margin,media-radius,marker-color}`,description:`Long-form .sf-prose rhythm and element styling tokens.`},{name:`--sf-prose-{blockquote-border,blockquote-padding,hr-margin,nested-list-gap,table-pad}`,description:`Extended .sf-prose element tokens: blockquote decoration, rule margin, nested-list gap, and table cell padding.`},{name:`--sf-code-font-size`,description:`Inline font-size (relative em).`},{name:`--sf-optical-sizing`,description:`font-optical-sizing control (auto).`},{name:`--sf-line-clamp`,description:`Default line count for .sf-line-clamp-N.`}]},{category:`Spacing`,description:`Fluid spacing scale (clamp-based), gutters, section padding, component padding, flow, safe-area insets, and sticky-header offsets.`,tokens:[{name:`--sf-space-{none,px,2xs,xs,s,m,l,xl,2xl,3xl,4xl}`,description:`Fluid spacing scale. Honours --sf-space-scale (none/px are fixed).`},{name:`--sf-space-scale`,description:`Global multiplier for all space tokens (default 1).`},{name:`--sf-space-base-{max,min} / --sf-space-ratio-{max,min}`,description:`Fluid spacing scale config: base-size and ratio clamp endpoints.`},{name:`--sf-space-{gutter,gap,content}`,description:`Internal aliases: page gutter, default gap, content gap (consumed by --sf-gap / --sf-content-gap).`},{name:`--sf-gap / --sf-gap-size`,description:`Default layout gap and its raw size component.`},{name:`--sf-content-gap`,description:`Gap between content elements (defaults to space-s).`},{name:`--sf-component-pad`,description:`Internal padding for components (defaults to space-m).`},{name:`--sf-section-pad`,description:`Active section padding alias.`},{name:`--sf-section-pad--{xs,s,m,l,xl,2xl}`,description:`Vertical padding presets for page sections.`},{name:`--sf-flow-space`,description:`Gap applied between .sf-flow children (lobotomized owl).`},{name:`--sf-safe-{top,right,bottom,left}`,description:`Safe-area insets for notched devices.`},{name:`--sf-header-height`,description:`Resolved fixed-header height for sticky offset calculations.`},{name:`--sf-header-height-{mobile,desktop}`,description:`Per-breakpoint header height inputs.`},{name:`--sf-sticky-offset`,description:`Resolved sticky offset (defaults to header height).`},{name:`--sf-sticky-offset-{mobile,desktop}`,description:`Per-breakpoint sticky offset inputs.`}]},{category:`Sizing`,description:`Component sizes, touch targets, aspect ratios, and icon sizing.`,tokens:[{name:`--sf-size-{xs,s,m,l,xl}`,description:`Named size tokens: xs(1.5rem), s(2rem), m(2.5rem), l(2.75rem), xl(3.5rem).`},{name:`--sf-touch-target`,description:`Minimum interactive element size (defaults to size-l, 2.75rem).`},{name:`--sf-ratio-{square,portrait,video,cinema,golden,3-2,4-3}`,description:`Predefined aspect ratios for frames and containers.`},{name:`--sf-aspect`,description:`Generic aspect-ratio token read by the .sf-aspect macro (16/9).`},{name:`--sf-object-{fit,position}`,description:`Default object-fit (cover) and object-position (50% 50%) for media elements.`},{name:`--sf-content-intrinsic-size`,description:`Placeholder size for the .sf-content-auto macro's contain-intrinsic-size (500px).`}]},{category:`Layout`,description:`Container widths and layout-primitive tokens (stack, cluster, grid, sidebar, switcher, bento, cover, frame, reel, imposter, box, center, content-grid, divider, alternate, equal, multi-column).`,tokens:[{name:`--sf-container-{narrow,default,prose,wide,full}`,description:`Max-width presets for .sf-container.`},{name:`--sf-stack-gap`,description:`Vertical gap between .sf-stack children.`},{name:`--sf-cluster-{gap,align,justify}`,description:`Inline cluster layout tokens.`},{name:`--sf-sidebar-{width,gap,min-width}`,description:`Sidebar layout tokens.`},{name:`--sf-switcher-{threshold,gap}`,description:`Column-to-stack breakpoint and gap.`},{name:`--sf-grid-{min,gap}`,description:`Auto-fill grid minimum item width and gap.`},{name:`--sf-grid-min-{xs,s,m,l,xl,2xl}`,description:`Per-size minimum item widths for .sf-grid--*.`},{name:`--sf-bento-{cols-default,gap,row-default,row-compact,row-tall}`,description:`Dense bento grid configuration.`},{name:`--sf-cover-{min-height,padding}`,description:`Full-height cover layout.`},{name:`--sf-frame-ratio`,description:`Aspect ratio for .sf-frame (defaults to 16/9).`},{name:`--sf-reel-{gap,height,item-width}`,description:`Horizontal scroll strip configuration.`},{name:`--sf-imposter-margin`,description:`Safety margin for absolute-centered overlays.`},{name:`--sf-box-{padding,border-color,border-width}`,description:`Isolated .sf-box unit padding and border.`},{name:`--sf-center-{gutter,max}`,description:`Intrinsic-centering gutter and max-width.`},{name:`--sf-content-width / --sf-breakout-width`,description:`Breakout grid track widths.`},{name:`--sf-divider-{color,style,width,gap}`,description:`Divider appearance and surrounding gap tokens.`},{name:`--sf-alternate-{gap,inner-gap}`,description:`Zigzag .sf-alternate layout gaps.`},{name:`--sf-equal-{cols,gap}`,description:`Equal-columns count and gap.`},{name:`--sf-equal-min-col / --sf-equal-min-col-{2,3,4,6}`,description:`Minimum column width for equal-columns grid (base and per-column-count overrides).`},{name:`--sf-field-{block,required-marker,padding-block,padding-inline,radius}`,description:`Form field vertical rhythm, required indicator, and geometry (padding + radius).`},{name:`--sf-button-{padding-block,padding-inline,radius}`,description:`Button geometry tokens: block/inline padding and border-radius.`},{name:`--sf-gutter`,description:`Wide page/section-edge gutter (used by center/container). Override to set the page-edge breathing room across breakpoints.`},{name:`--sf-gutter-width`,description:`Page-level horizontal gutter width.`},{name:`--sf-section-scale`,description:`Global multiplier for section padding tokens (default 1).`},{name:`--sf-fluid-{max,min}-vw`,description:`Viewport-width breakpoints (%) used by all fluid clamp() calculations.`}]},{category:`Borders`,description:`Border shorthands, widths, styles, and stroke widths.`,tokens:[{name:`--sf-border / --sf-border-{subtle,strong}`,description:`Composed border shorthands (width + style + color). Replaces the three-part recipe.`},{name:`--sf-border-scale`,description:`Global multiplier for border widths (default 1).`},{name:`--sf-border-width-{hairline,1,2,3,4}`,description:`Border width scale: 0.5px, 1px, 2px, 3px, 4px.`},{name:`--sf-border-style`,description:`Default border style (solid).`},{name:`--sf-border-style-{dotted,soft,strong}`,description:`Border style presets (dotted, dashed, solid).`}]},{category:`Radius`,description:`Border radius scale and special shapes.`,tokens:[{name:`--sf-radius-{none,2xs,xs,s,m,l,xl,2xl,3xl,4xl,full}`,description:`Radius scale from 0 to 9999px (pill).`},{name:`--sf-radius-scale`,description:`Global multiplier for all radius tokens (default 1).`},{name:`--sf-radius-pill`,description:`Fully rounded (9999px).`},{name:`--sf-radius-outer`,description:`Outer radius = inner + padding (for nested rounding).`}]},{category:`Shadows`,description:`Box shadows, drop shadows, text shadows, and shadow configuration.`,tokens:[{name:`--sf-shadow-{xs,s,m,l,xl,2xl}`,description:`Elevation shadow scale, progressively more dramatic.`},{name:`--sf-shadow-inner`,description:`Inset shadow for recessed elements.`},{name:`--sf-shadow-glow`,description:`Colored glow effect (uses --sf-shadow-glow-color).`},{name:`--sf-shadow-none`,description:`Explicit no-shadow value.`},{name:`--sf-shadow-color / --sf-shadow-glow-color`,description:`Base shadow color (derived from neutral) and glow color.`},{name:`--sf-shadow-strength`,description:`Shadow opacity multiplier (adapts to dark mode).`},{name:`--sf-shadow-lightness`,description:`Lightness offset applied to shadow color in dark mode.`},{name:`--sf-drop-shadow-{s,m,l}`,description:`CSS filter drop-shadow equivalents.`},{name:`--sf-text-shadow-{s,m,l,none}`,description:`Text shadow presets.`}]},{category:`Effects`,description:`Blurs, opacities, gradients, masks, perspective, and contrast tuning.`,tokens:[{name:`--sf-blur`,description:`Single blur radius token (12px) for frosted-nav / overlay use. For other amounts use inline blur(Npx).`},{name:`--sf-opacity-{disabled,muted}`,description:`Named opacity tokens: disabled (0.4) for non-interactive elements, muted (0.6) for de-emphasized text/icons.`},{name:`--sf-theme-transition-duration`,description:`Duration knob for .sf-theme-transition cross-fade (default 300ms). Respects prefers-reduced-motion.`},{name:`--sf-gradient-{brand,primary,secondary,tertiary,surface}`,description:`Predefined gradients using brand colors.`},{name:`--sf-gradient-fade--{t,b,l,r}`,description:`Directional fade-to-background gradients.`},{name:`--sf-mask-scrim-{start,end}`,description:`Scroll mask fade depth.`},{name:`--sf-scrim-{color,direction,gradient}`,description:`Darkening overlay for the .sf-scrim text-over-image macro.`},{name:`--sf-scrim-text-shadow`,description:`Soft text-shadow halo for the .sf-text-protect macro.`},{name:`--sf-perspective-{near,normal,far}`,description:`3D perspective presets: 500px, 1000px, 2000px.`},{name:`--sf-contrast-{bias,threshold}`,description:`Color contrast tuning for auto text-on-color logic.`}]},{category:`Motion`,description:`Durations, easing curves, transitions, and animations.`,tokens:[{name:`--sf-duration-{none,instant,fast,normal,slow,slower}`,description:`Duration scale: 0ms to 600ms (respects --sf-motion-scale).`},{name:`--sf-motion-scale`,description:`Global animation speed multiplier (set 0 to disable).`},{name:`--sf-ease-{linear,in,out,in-out,bounce,elastic,overshoot,spring}`,description:`Easing function presets.`},{name:`--sf-transition-{all,colors,opacity,shadow,transform,fast,slow,enter,exit,overlay,form-field}`,description:`Pre-composed transition shorthands (overlay = top-layer display/overlay with allow-discrete; form-field = border+shadow+background for inputs).`},{name:`--sf-animation-{fade-in,fade-out,scale-up,scale-down,slide-in-up,slide-in-down,slide-in-left,slide-in-right,float,ping,blink,color-pulse,shimmer,spin}`,description:`Named keyframe animation shorthands.`},{name:`--sf-animation-delay-{1,2,3,4,5}`,description:`Stagger delays for sequential animations.`}]},{category:`Icons`,description:`Inline icon sizing and the boxed-icon container.`,tokens:[{name:`--sf-icon-{xs,s,m,l,xl,2xl}`,description:`Icon sizing in em units (0.875em to ~3em).`},{name:`--sf-icon-box-{bg,border,pad,radius}`,description:`Boxed icon (.sf-icon--boxed) background, border, padding, radius.`}]},{category:`Z-Index`,description:`Z-index scale for predictable layering.`,tokens:[{name:`--sf-z-{below,base,raised,sticky,fixed,dropdown,overlay,modal,toast,tooltip}`,description:`Semantic z-index ladder: -1, 0, 1, 100, 200, 300, 400, 500, 600, 700. Use component names, not numbers.`}]},{category:`States`,description:`Internal flags and state tokens that drive runtime .is-* behaviour.`,tokens:[{name:`--sf-is-dark`,description:`Numeric flag (0 or 1) indicating dark mode is active. Registered property.`},{name:`--sf-is-{active,current,open,pressed}`,description:`Internal numeric/derived flags mirrored from matching .is-* classes.`},{name:`--sf-state-pending-opacity`,description:`Opacity applied to elements in the .is-pending optimistic state.`}]},{category:`Focus`,description:`Focus ring appearance for keyboard navigation.`,tokens:[{name:`--sf-focus-ring-{width,offset,color,style,shadow}`,description:`Focus indicator configuration.`},{name:`--sf-caret-color`,description:`Text input caret color (defaults to action).`}]},{category:`Scroll`,description:`Scroll timeline, scroll-shadow, and scrollbar styling.`,tokens:[{name:`--sf-scroll-timeline-range-{start,end}`,description:`Scroll-driven animation range.`},{name:`--sf-scroll-shadow-size`,description:`Depth of the .sf-scroll-shadow mask gradient.`},{name:`--sf-scrollbar-{thumb,track}`,description:`Custom scrollbar colors.`}]},{category:`Print`,description:`Print stylesheet configuration.`,tokens:[{name:`--sf-print-{base-size,page-margin,page-size}`,description:`Print layout tokens: 11pt base, 2cm margins, A4 size.`}]},{category:`Misc`,description:`Internal helpers and string-valued tokens that don't belong to a single visual family.`,tokens:[{name:`--sf-lumlocker`,description:`Internal luminance lock value for color derivation.`},{name:`--sf-link-external-marker`,description:`External link arrow character.`}]}],Ks=[{category:`Layout Primitives`,description:`Breakpoint-free, container-query-driven layout components. Each is a single class with per-instance token overrides via inline style.`,classes:[{name:`.sf-section / .sf-section-group`,description:`Vertical page rhythm; -group collapses gap between adjacent sections.`},{name:`.sf-section--{xs,s,m,l,xl,2xl,collapse}`,description:`Section size variants and collapse.`},{name:`.sf-container`,description:`Centered max-width wrapper with gutters.`},{name:`.sf-container--{narrow,wide,full,prose}`,description:`Container width variants.`},{name:`.sf-box`,description:`Isolated unit with padding and optional border.`},{name:`.sf-center / .sf-center--intrinsic`,description:`Intrinsic centering with max-width.`},{name:`.sf-stack`,description:`Vertical flow with consistent gap.`},{name:`.sf-stack--{xs,s,m,l,xl,2xl,center,end,stretch}`,description:`Stack size and alignment variants.`},{name:`.sf-cluster`,description:`Wrapping inline group.`},{name:`.sf-cluster--{xs,s,m,l,xl,2xl,center,end,between,no-wrap}`,description:`Cluster size, alignment, and wrap variants.`},{name:`.sf-sidebar`,description:`Content + side panel that wraps.`},{name:`.sf-sidebar--{right,narrow,wide}`,description:`Sidebar side and width variants.`},{name:`.sf-switcher`,description:`N columns above threshold, stacked below.`},{name:`.sf-switcher--{no-wrap,vertical}`,description:`Switcher behaviour variants.`},{name:`.sf-grid`,description:`Auto-fill responsive grid.`},{name:`.sf-grid--{xs,s,m,l,xl,2xl,fit,dense}`,description:`Grid item-size and packing variants.`},{name:`.sf-grid-{1,2,3,4,6}`,description:`Fixed-column grids, container-responsive.`},{name:`.sf-grid-{1-2,2-1,1-3,3-1}`,description:`Ratio two-column grids.`},{name:`.sf-grid-cols-{1,2,3,4,6}`,description:`Fixed-column grids using grid-template-columns (explicit track variant).`},{name:`.sf-grid-cols-{1-2,2-1,1-3,3-1}`,description:`Ratio two-column grids using explicit column tracks.`},{name:`.sf-cq`,description:`Establishes a container-query context (container-type: inline-size) on the element.`},{name:`.sf-bento`,description:`Dense free-form grid.`},{name:`.sf-bento--{2,3,6,compact,tall}`,description:`Bento column-count (2, 3, 6) and row-height (compact, tall) variants.`},{name:`.sf-bento-{featured,full,tall,wide}`,description:`Bento child span modifiers: featured (2×2), full (row-span), tall (tall row), wide (2-col).`},{name:`.sf-equal / .sf-equal-height`,description:`Equal-width columns; -height equalizes flex child heights.`},{name:`.sf-equal--{2,3,4,6}`,description:`Equal-columns count variants.`},{name:`.sf-gap`,description:`Standalone gap utility for grid/flex parents.`},{name:`.sf-gap--{xs,s,m,l,xl,2xl}`,description:`Gap size variants.`},{name:`.sf-alternate`,description:`Zigzag two-column layout, reverses every other row.`},{name:`.sf-pancake`,description:`Sticky-footer grid: header / main(1fr) / footer.`},{name:`.sf-content-grid`,description:`Breakout layout grid. Children use .sf-breakout or .sf-full-bleed.`},{name:`.sf-breakout / .sf-full-bleed`,description:`Content-grid escape hatches: breakout band and edge-to-edge bleed.`},{name:`.sf-cover / .sf-cover__center`,description:`Full-height region with a centered content child.`},{name:`.sf-cover--{min,max,padding-s,padding-l}`,description:`Cover height and padding variants.`},{name:`.sf-frame`,description:`Aspect-ratio media box.`},{name:`.sf-frame--{square,portrait,video,cinema,3-2,4-3,golden}`,description:`Frame aspect-ratio variants.`},{name:`.sf-reel`,description:`Horizontal scroll strip with optional mask fade.`},{name:`.sf-imposter / .sf-imposter--{fixed,contain}`,description:`Absolutely-centered overlay and its position variants.`},{name:`.sf-subgrid / .sf-subgrid-rows`,description:`Inherit parent grid tracks.`},{name:`.sf-divider / .sf-divider--vertical`,description:`Token-driven separator (horizontal or vertical).`},{name:`.sf-divider--{soft,strong,dashed,dotted,gradient}`,description:`Divider colour/line-style modifiers and a fading gradient variant.`},{name:`.sf-icon`,description:`Em-based inline icon sizing.`},{name:`.sf-icon--{xs,s,m,l,xl,2xl,boxed}`,description:`Icon size variants and boxed container.`},{name:`.sf-prose / .sf-not-prose`,description:`Readable long-form text rhythm; -not resets a zone inside it.`}]},{category:`Macros`,description:`Recipe classes that answer 'what does this element do/look like?' - composable with layout primitives.`,classes:[{name:`.sf-flow`,description:`Lobotomized owl: consistent gap between consecutive children.`},{name:`.sf-truncate`,description:`Single-line ellipsis overflow.`},{name:`.sf-line-clamp-{2,3,N}`,description:`Multi-line text clamping with ellipsis. -N reads --sf-line-clamp.`},{name:`.sf-aspect`,description:`Generic aspect-ratio container (reads --sf-aspect token).`},{name:`.sf-scroll-shadow`,description:`Top + bottom mask gradient for scrolling containers.`},{name:`.sf-scroll-snap`,description:`Vertical scroll-snap container.`},{name:`.sf-overflow-fade`,description:`End-edge horizontal fade for overflowing inline content.`},{name:`.sf-no-tap-highlight`,description:`Suppresses WebKit/Android tap highlight.`},{name:`.sf-content-auto`,description:`content-visibility:auto — skips rendering offscreen content (reads --sf-content-intrinsic-size).`},{name:`.sf-tabular-nums`,description:`Fixed-width digits for column-aligned numbers (reads --sf-font-numeric).`},{name:`.sf-text-gradient`,description:`Gradient text effect using background-clip.`},{name:`.sf-clickable-parent / .sf-clickable-parent__overlay / .sf-focus-parent`,description:`Makes a whole card clickable via the first link inside; __overlay is a full-bleed pseudo-element fallback; -focus mirrors focus ring to the parent.`},{name:`.sf-focus-shadow`,description:`Opt-in: switches :focus-visible from outline to a box-shadow ring (follows border-radius).`},{name:`.sf-link-external`,description:`Adds external link indicator marker.`},{name:`.sf-link--{subtle,reverse}`,description:`Link underline affordance: subtle reveals on hover, reverse hides on hover.`},{name:`.sf-scrim / .sf-scrim--{top,bottom,full}`,description:`Darkening gradient overlay for legible text over a background image.`},{name:`.sf-scrim__content`,description:`Content child of .sf-scrim — positioned above the gradient overlay.`},{name:`.sf-text-protect`,description:`Soft text-shadow halo for legibility over busy images, without a darkening layer.`}]},{category:`Surfaces`,description:`Color surface utility classes that set background and auto-contrast text for a brand context.`,classes:[{name:`.sf-surface`,description:`Surface container — sets background from --sf-surface-color and derives auto-contrast text.`},{name:`.sf-surface--{primary,secondary,tertiary,action,neutral,inverse}`,description:`Brand-colored surface with auto-contrast text.`},{name:`.sf-surface--{success,warning,error,info,danger}`,description:`Status-colored surfaces.`},{name:`.sf-theme-transition`,description:`Apply to (or a subtree) to cross-fade colors when [data-theme] flips. Duration via --sf-theme-transition-duration. Respects prefers-reduced-motion.`}]},{category:`Animations`,description:`CSS animation utility classes that apply predefined keyframe animations.`,classes:[{name:`.sf-fade-in / .sf-fade-out`,description:`Opacity entrance/exit animations.`},{name:`.sf-scale-up / .sf-scale-down`,description:`Scale entrance/exit animations.`},{name:`.sf-slide-in-{up,down,left,right}`,description:`Directional slide-in entrance animations.`},{name:`.sf-color-pulse`,description:`Continuous color pulse animation.`},{name:`.sf-entrance--{fade,fade-up,fade-down,fade-left,fade-right,scale-up}`,description:`Scroll-triggered entrance animations (scroll-timeline driven).`}]},{category:`State Classes (.is-*)`,description:`Runtime state classes toggled by JS or mirrored from ARIA. They live in the slashed.states layer. Always pair with matching ARIA attributes.`,classes:[{name:`.is-hidden / .is-invisible / .is-visible`,description:`Visibility control: removed from layout / hidden but keeps box / visible.`},{name:`.is-disabled / .is-readonly`,description:`Non-interactive states with dimming.`},{name:`.is-loading / .is-pending / .is-busy`,description:`Loading states: spinner replacement / optimistic UI / cursor hint.`},{name:`.is-skeleton`,description:`Placeholder shimmer animation.`},{name:`.is-active / .is-selected / .is-current / .is-pressed`,description:`Selection/activation states.`},{name:`.is-highlighted`,description:`Transient emphasis (e.g. search result highlight).`},{name:`.is-open / .is-collapsed / .is-expanded`,description:`Disclosure states for modals, drawers, accordions.`},{name:`.is-valid / .is-invalid`,description:`Form field validation results (maps to aria-invalid).`},{name:`.is-success / .is-error / .is-warning / .is-info / .is-danger`,description:`General feedback states and destructive-action context.`},{name:`.is-sticky / .is-pinned / .is-fixed / .is-fullscreen`,description:`Positioning states.`},{name:`.is-clipped / .is-scrollable / .is-truncated / .is-resizable`,description:`Overflow handling states.`},{name:`.is-dragging / .is-drop-target / .is-draggable`,description:`Drag and drop states.`},{name:`.is-overlay / .is-focused / .is-clickable / .is-unselectable`,description:`Positioning, focus, cursor, and selection states.`},{name:`.is-empty`,description:`Hide element when empty (:empty pseudo-class).`}]}],qs=[{name:`--sf-is-dark`,description:`Numeric flag (0 or 1) indicating dark mode is active. Registered property.`},{name:`--sf-lumlocker`,description:`Internal luminance lock value for color derivation.`},{name:`--sf-color-scheme`,description:`CSS color-scheme declaration (light dark).`},{name:`--sf-current-font-weight`,description:`Current context font weight (used by strong elements).`},{name:`--sf-link-external-marker`,description:`External link arrow character.`},{name:`--sf-field-block`,description:`Vertical spacing between form fields.`},{name:`--sf-field-required-marker`,description:`Required field indicator string.`}],Js=U(`· change →`,1),Ys=U(`
      • `),Xs=U(`
          `),Zs=U(`
          Misc Tokens that do not fit a single category.
            `),Qs=U(`

            CSS Custom Properties (--sf-*)

            `),$s=U(`

            Utility & State Classes

            `),ec=U(`

            `),tc=U(`

            API Cheatsheet

            `);function nc(e,t){Xe(t,!0);let n=P(``),r=P(`all`),i=Z.inventory?.variables?.length??0,a=Z.inventory?.sf_classes?.length??0,o=Z.inventory?.is_classes?.length??0,s={essential:`Essential`,optimal:`Optimal`,full:`Full`},c=Z.pluginSettings?.css_bundle??`optimal`,l=window.slashedApp?.settingsUrl??``,u=M(()=>m(Gs,`tokens`)),d=M(()=>m(Ks,`classes`)),f=M(()=>qs.filter(e=>p(e.name,e.description)));function p(e,t){if(!V(n).trim())return!0;let r=V(n).trim().toLowerCase();return e.toLowerCase().includes(r)||t.toLowerCase().includes(r)}function m(e,t){return V(n).trim()?e.map(e=>({...e,[t]:e[t].filter(e=>p(e.name,e.description))})).filter(e=>e[t].length>0):e}let h=M(()=>V(r)===`all`||V(r)===`variables`),g=M(()=>V(r)===`all`||V(r)===`classes`),_=M(()=>V(n).trim()!==``&&(!V(h)||V(u).length===0&&V(f).length===0)&&(!V(g)||V(d).length===0));var v=tc(),y=I(v),b=I(y),x=L(I(b),2),S=I(x),ee=L(S),C=e=>{var t=Js(),n=L(gr(t));R(()=>Y(n,`href`,l)),W(e,t)};K(ee,e=>{l&&e(C)}),D(x),D(b);var w=L(b,2),te=I(w);D(w),D(y);var ne=L(y,2),re=I(ne);ba(re);var ie=L(re,2),ae=I(ie);let oe;var se=L(ae,2);let ce;var le=L(se,2);let ue;D(ie),D(ne);var de=L(ne,2),fe=e=>{var t=Qs(),r=L(I(t),2);q(r,17,()=>V(u),Yi,(e,t)=>{var r=Xs(),i=I(r),a=I(i),o=I(a,!0);D(a);var s=L(a,2),c=I(s,!0);D(s),D(i);var l=L(i,2);q(l,21,()=>V(t).tokens,Yi,(e,t)=>{var n=Ys(),r=I(n),i=I(r,!0);D(r);var a=L(r,2),o=I(a,!0);D(a),D(n),R(()=>{G(i,V(t).name),G(o,V(t).description)}),W(e,n)}),D(l),D(r),R(e=>{r.open=e,G(o,V(t).category),G(c,V(t).description)},[()=>!V(n).trim()]),W(e,r)});var i=L(r,2),a=e=>{var t=Zs(),r=L(I(t),2);q(r,21,()=>V(f),Yi,(e,t)=>{var n=Ys(),r=I(n),i=I(r,!0);D(r);var a=L(r,2),o=I(a,!0);D(a),D(n),R(()=>{G(i,V(t).name),G(o,V(t).description)}),W(e,n)}),D(r),D(t),R(e=>t.open=e,[()=>!V(n).trim()]),W(e,t)};K(i,e=>{V(f).length>0&&e(a)}),D(t),W(e,t)};K(de,e=>{V(h)&&e(fe)});var pe=L(de,2),me=e=>{var t=$s();q(L(I(t),2),17,()=>V(d),Yi,(e,t)=>{var r=Xs(),i=I(r),a=I(i),o=I(a,!0);D(a);var s=L(a,2),c=I(s,!0);D(s),D(i);var l=L(i,2);q(l,21,()=>V(t).classes,Yi,(e,t)=>{var n=Ys(),r=I(n),i=I(r,!0);D(r);var a=L(r,2),o=I(a,!0);D(a),D(n),R(()=>{G(i,V(t).name),G(o,V(t).description)}),W(e,n)}),D(l),D(r),R(e=>{r.open=e,G(o,V(t).category),G(c,V(t).description)},[()=>!V(n).trim()]),W(e,r)}),D(t),W(e,t)};K(pe,e=>{V(g)&&e(me)});var he=L(pe,2),ge=e=>{var t=ec(),r=I(t);D(t),R(()=>G(r,`No results for "${V(n)??``}"`)),W(e,t)};K(he,e=>{V(_)&&e(ge)}),D(v),R(()=>{G(S,`${s[c]??c??``} bundle `),G(te,`${i??``} variables · ${a??``} layout/utility classes · ${o??``} state classes`),Y(ae,`aria-pressed`,V(r)===`all`),oe=ua(ae,1,`svelte-osej3t`,null,oe,{active:V(r)===`all`}),Y(se,`aria-pressed`,V(r)===`variables`),ce=ua(se,1,`svelte-osej3t`,null,ce,{active:V(r)===`variables`}),Y(le,`aria-pressed`,V(r)===`classes`),ue=ua(le,1,`svelte-osej3t`,null,ue,{active:V(r)===`classes`})}),Ta(re,()=>V(n),e=>F(n,e)),H(`click`,ae,()=>F(r,`all`)),H(`click`,se,()=>F(r,`variables`)),H(`click`,le,()=>F(r,`classes`)),W(e,v),Ze()}Oi([`click`]);var rc=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`],ic=[`success`,`warning`,`error`,`info`,`danger`],ac=e=>`oklch(from var(${e}) clamp(0.65, calc(0.95 - l * 0.5), 0.88) calc(c * 0.9) h)`,oc=e=>`oklch(from var(${e}) clamp(0.16, calc(1.18 - l), 0.24) calc(c * 0.5) h)`,sc=e=>{let t=`--sf-color-${e}-light`;return e===`base`?oc(t):ac(t)};function cc(e,t,n){let r=[],i=t.defaults?.colors??{},a=e.colors??{},o=e.typography??{},s=e.radius??{},c=e.shadows??{},l=e.contrast??{},u=n?`dark`:`light`,d=(()=>{let e=l.contrast_threshold,n=parseFloat(e!==void 0&&e!==``?e:t.defaults?.contrast?.contrast_threshold??.6);return Number.isFinite(n)?n:.6})(),f=(()=>{let e=l.contrast_bias,n=parseFloat(e!==void 0&&e!==``?e:t.defaults?.contrast?.contrast_bias??0);return Number.isFinite(n)?n:0})(),p=a.dark_overrides_enabled!==`0`;for(let e of rc){let t=ks(a[`brand_${e}`]??i.brand_hex_hints?.[e]);t&&r.push(`--sf-color-${e}-light:${t}`);let n=p?ks(a[`brand_dark_${e}`]):``;r.push(`--sf-color-${e}-dark:${n||sc(e)}`)}for(let e of ic){let t=ks(a[`status_${e}`]??i.status_hex_hints?.[e]);t&&r.push(`--sf-color-${e}-light:${t}`);let n=p?ks(a[`status_dark_${e}`]):``;r.push(`--sf-color-${e}-dark:${n||sc(e)}`)}let m=e=>`oklch(from ${e} clamp(0.1, sign(${d} - l) * 999, 0.95) 0 0)`;for(let e of[...rc,...ic])r.push(`--c-${e}:var(--sf-color-${e}-${u})`),r.push(`--on-${e}:${m(`var(--c-${e})`)}`);r.push(`--c-surface:var(--c-base)`),r.push(`--c-bg:oklch(from var(--c-base) calc(l + 0.02) c h)`),r.push(`--c-raised:oklch(from var(--c-base) calc(l + 0.04) c h)`),r.push(`--c-inset:oklch(from var(--c-base) calc(l - 0.02) c h)`);let h=u===`dark`?`var(--c-neutral)`:`var(--sf-color-neutral-light)`;u===`dark`?(r.push(`--c-text:oklch(from ${h} clamp(0.70, calc(l + 0.25 + ${f}), 1) c h)`),r.push(`--c-text-secondary:oklch(from ${h} clamp(0.55, calc(l + 0.1 + ${f}), 0.90) c h)`),r.push(`--c-border:oklch(from ${h} clamp(0.25, calc(l - 0.3), 0.55) 0.005 h)`),r.push(`--c-border-subtle:oklch(from ${h} clamp(0.20, calc(l - 0.38), 0.45) 0.005 h)`),r.push(`--c-link:oklch(from var(--c-action) clamp(0.68, l, 1) c h)`)):(r.push(`--c-text:oklch(from ${h} clamp(0.05, calc(l - 0.4 - ${f}), 0.35) c h)`),r.push(`--c-text-secondary:oklch(from ${h} clamp(0.15, calc(l - 0.25 - ${f}), 0.45) c h)`),r.push(`--c-border:oklch(from ${h} clamp(0.70, calc(l + 0.35), 0.95) 0.005 h)`),r.push(`--c-border-subtle:oklch(from ${h} clamp(0.75, calc(l + 0.4), 0.97) 0.005 h)`),r.push(`--c-link:oklch(from var(--c-action) clamp(0, min(l - 0.07, 0.48), 1) c h)`)),r.push(`--c-text-muted:var(--c-neutral)`);for(let e of ic)r.push(`--tint-${e}:oklch(from var(--c-${e}) l c h / 0.14)`);let g=ks(o.font_body);g&&r.push(`--sf-font-body:${g}`);let _=ks(o.font_heading);_&&r.push(`--sf-font-heading:${_}`);let v=parseFloat(s.radius_scale??t.defaults?.radius?.radius_scale??1)||1;r.push(`--preview-radius-s:${Math.round(4*v)}px`),r.push(`--preview-radius-m:${Math.round(8*v)}px`),r.push(`--preview-radius-l:${Math.round(16*v)}px`);let y=c.shadow_strength,b=parseFloat(y!==void 0&&y!==``?y:t.defaults?.shadows?.shadow_strength??.08);return r.push(`--preview-shadow:0 2px 8px 0 rgba(0,0,0,${(b*2).toFixed(3)}),0 1px 3px 0 rgba(0,0,0,${b.toFixed(3)})`),r.join(`;`)}function lc(e){return e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function uc([e,t,n]){return .2126*lc(e)+.7152*lc(t)+.0722*lc(n)}function dc(e,t){let n=uc(e),r=uc(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function fc(e){return e>=7?`AAA`:e>=4.5?`AA`:e>=3?`AA-large`:`fail`}function pc(e){return e>=4.5?`AAA`:e>=3?`AA`:`fail`}function mc(e){return e===`AAA`?`badge--aaa`:e===`AA`?`badge--aa`:e===`AA-large`?`badge--aa-large`:`badge--fail`}function hc(e){let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.round(Math.max(0,Math.min(1,t))*255)}function gc(e,t,n){let r=lc(e),i=lc(t),a=lc(n),o=.4122214708*r+.5363325363*i+.0514459929*a,s=.2119034982*r+.6806995451*i+.1073969566*a,c=.0883024619*r+.2817188376*i+.6299787005*a,l=Math.cbrt(o),u=Math.cbrt(s),d=Math.cbrt(c),f=.2104542553*l+.793617785*u-.0040720468*d,p=1.9779984951*l-2.428592205*u+.4505937099*d,m=.0259040371*l+.7827717662*u-.808675766*d,h=Math.atan2(m,p)*180/Math.PI;return h<0&&(h+=360),[f,Math.hypot(p,m),h]}function _c(e,t,n){let r=e+.3963377774*t+.2158037573*n,i=e-.1055613458*t-.0638541728*n,a=e-.0894841775*t-1.291485548*n,o=r*r*r,s=i*i*i,c=a*a*a;return[4.0767416621*o-3.3077115913*s+.2309699292*c,-1.2684380046*o+2.6097574011*s-.3413193965*c,-.0041960863*o-.7034186147*s+1.707614701*c]}function vc(e,t,n){let r=n*Math.PI/180,i=t=>_c(e,t*Math.cos(r),t*Math.sin(r)),a=e=>e.every(e=>e>=-1e-4&&e<=1.0001),o=t;if(!a(i(o))){let e=0,n=t;for(let t=0;t<24;t+=1){let t=(e+n)/2;a(i(t))?e=t:n=t}o=e}let s=i(o);return{rgb:[hc(s[0]),hc(s[1]),hc(s[2])],chroma:o}}function yc(e,t,n){return vc(e,t,n).rgb}function bc(e){if(!e||typeof document>`u`||typeof CSS<`u`&&CSS.supports&&!CSS.supports(`color`,e))return null;try{let t=document.createElement(`canvas`);t.width=1,t.height=1;let n=t.getContext(`2d`);n.fillStyle=`#000`,n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a,o]=n.getImageData(0,0,1,1).data;return o===0?null:[r,i,a]}catch{return null}}function xc(e,t,n,r){let i=gc(...n)[0],a=i>=.5,o=null,s=null;for(let c=0;c<=1.0000001;c+=.0025){let{rgb:l,chroma:u}=vc(c,e,t),d=dc(l,n);d=i)&&(!o||d(e%360+360)%360),n=0,r=-1;for(let e=0;e<360;e+=1){let i=360;for(let n of t){let t=Math.abs(e-n),r=Math.min(t,360-t);rr&&(r=i,n=e)}return n}function Cc({roles:e={},surfaceRgb:t,locked:n={},target:r=4.5}){if(!t)return null;let i=[`primary`,`secondary`,`tertiary`,`action`],a=[],o=[];for(let t of i)if(n[t]&&e[t]){let[,n,r]=gc(...e[t]);a.push(r),o.push(n)}let s=o.length?o.reduce((e,t)=>e+t,0)/o.length:null,c={};for(let r of i)if(n[r]&&e[r]){let n=e[r];c[r]={color:null,rgb:n,ratio:dc(n,t),locked:!0}}let l=i.filter(t=>!(n[t]&&e[t])),u=[...l.filter(t=>e[t]),...l.filter(t=>!e[t])];for(let n of u){let i=a.length?Sc(a):e[n]?gc(...e[n])[2]:0;a.push(i);let o=s;o??(o=e[n]?gc(...e[n])[1]:.15),o=Math.max(o,.12);let l=xc(o,i,t,r);c[n]=l?{color:l.color,rgb:l.rgb,ratio:l.ratio,locked:!1}:null}return c}function wc({roles:e={},locked:t={},neutralTarget:n=7,accentTarget:r=4.5}){if(!e.base)return null;let i,a;if(t.base)i=e.base,a=null;else{let[,t,n]=gc(...e.base),r=Math.min(t,.02);a=`oklch(0.96 ${r.toFixed(4)} ${n.toFixed(2)})`,i=yc(.96,r,n)}let o={};if(o.base={color:a,rgb:i,ratio:null,locked:!!t.base},e.neutral)if(t.neutral)o.neutral={color:null,rgb:e.neutral,ratio:dc(e.neutral,i),locked:!0};else{let[,t,r]=gc(...e.neutral);o.neutral=xc(Math.min(t,.05),r,i,n)}let s=Cc({roles:{primary:e.primary,secondary:e.secondary,tertiary:e.tertiary,action:e.action},surfaceRgb:i,locked:{primary:t.primary,secondary:t.secondary,tertiary:t.tertiary,action:t.action},target:r});for(let t of[`primary`,`secondary`,`tertiary`,`action`])e[t]&&(o[t]=s[t]);return o}var Tc=U(``),Ec=U(``),Dc=U(`
            Aa
            Normal text Large text
            Normal: 4.5:1 AA · 7:1 AAA  |  Large: 3:1 AA · 4.5:1 AAA
            `,1),Oc=U(`
            Could not resolve this pair.
            `),kc=U(` `),Ac=U(` `),jc=U(` `),Mc=U(` `),Nc=U(`
            Aa
            `),Pc=U(``),Fc=U(` `),Ic=U(` `),Lc=U(`Locked — kept unchanged`),Rc=U(`Surface`),zc=U(`
            `),Bc=U(`
            No accessible value on this hue — left unchanged
            `),Vc=U(`
            `),Hc=U(`

            WCAG Contrast Checker

            Contrast for your token palette, resolved with the current overrides in mode — including derived surfaces and auto-contrasting text. Click any matrix cell to load it into the picker.

            Text on background

            AAA (≥ 7:1) AA (≥ 4.5:1) AA large only (≥ 3:1) Fail (< 3:1)

            Text on colors — used combinations

            How the auto-contrasting on-color text reads on each brand & status color in mode (button labels, badges).

            Accessible palette generator

            One coherent palette, generated against a single surface so the foundation and brand accents never drift. Lock the one or two brand colors a client gave you — the rest (and the neutral body text) are generated to clear - WCAG, with distinct hues spread around the unlocked colors.

            `,1);function Uc(e,t){Ye(t,!0);let n=F(!1),r=N(()=>cc(Q,Z,H(n))),i=N(()=>cc(Q,Z,!1)),a=[{key:`text`,label:`Text`,cssVar:`--c-text`},{key:`text-secondary`,label:`Text secondary`,cssVar:`--c-text-secondary`},{key:`text-muted`,label:`Text muted`,cssVar:`--c-text-muted`},{key:`link`,label:`Link`,cssVar:`--c-link`},{key:`primary`,label:`Primary`,cssVar:`--c-primary`},{key:`action`,label:`Action`,cssVar:`--c-action`}],o=[{key:`bg`,label:`Background`,cssVar:`--c-bg`},{key:`surface`,label:`Surface`,cssVar:`--c-surface`},{key:`inset`,label:`Inset`,cssVar:`--c-inset`},{key:`primary`,label:`Primary`,cssVar:`--c-primary`},{key:`action`,label:`Action`,cssVar:`--c-action`}],s=new Map(a.map(e=>[e.key,e])),c=new Map(o.map(e=>[e.key,e])),l=e=>s.get(e)?.cssVar??`--c-text`,u=e=>c.get(e)?.cssVar??`--c-bg`,d=[`primary`,`secondary`,`tertiary`,`action`,`success`,`warning`,`error`,`info`],f=d.flatMap(e=>[`--c-${e}`,`--on-${e}`]),p=[...new Set([...[...a,...o].map(e=>e.cssVar),...f])];function m(e){let t=/rgba?\(([^)]+)\)/.exec(e||``);if(!t)return null;let n=t[1].split(/[ ,/]+/).map(Number).filter(e=>!Number.isNaN(e));return n.length<3||n.length>=4&&n[3]===0?null:[n[0],n[1],n[2]]}let h={},g=F(ir({}));kr(()=>{H(r);let e={};for(let t of p){let n=h[t];if(!n)continue;let r=getComputedStyle(n).color;e[t]=m(r)??bc(r)}I(g,e,!0)});let _={base:`--c-base`,neutral:`--c-neutral`,primary:`--c-primary`,secondary:`--c-secondary`,tertiary:`--c-tertiary`,action:`--c-action`},v=[`base`,`neutral`,`primary`,`secondary`,`tertiary`,`action`],y={},b=F(ir({}));kr(()=>{H(i);let e={};for(let t of v){let n=y[t];if(!n)continue;let r=getComputedStyle(n).color;e[t]=m(r)??bc(r)}I(b,e,!0)});let x=F(ir(a[0].key)),S=F(ir(o[0].key)),ee=N(()=>H(g)[l(H(x))]??null),C=N(()=>H(g)[u(H(S))]??null),w=N(()=>H(ee)&&H(C)?dc(H(ee),H(C)):null),te=N(()=>H(w)===null?null:fc(H(w))),ne=N(()=>H(w)===null?null:pc(H(w))),re=N(()=>a.map(e=>o.map(t=>{let n=H(g)[e.cssVar],r=H(g)[t.cssVar];if(!n||!r)return{ratio:null,level:null};let i=dc(n,r);return{ratio:i,level:fc(i)}})));function ie(e,t){I(x,e,!0),I(S,t,!0)}let ae=N(()=>d.map(e=>{let t=H(g)[`--c-${e}`],n=H(g)[`--on-${e}`],r=t&&n?dc(n,t):null;return{role:e,ratio:r,level:r===null?null:fc(r)}}));function oe(){let e=s.has(H(S))?H(S):H(x),t=c.has(H(x))?H(x):H(S);I(x,e,!0),I(S,t,!0)}let T=F(null),se=F(!1),ce=F(!1),le=F(``),ue=ir({base:!1,neutral:!1,primary:!1,secondary:!1,tertiary:!1,action:!1});function de(e){ue[e]=!ue[e],H(T)&&fe()}function fe(){I(se,!0),I(le,``);let e={};for(let t of v)H(b)[t]&&(e[t]=H(b)[t]);I(T,wc({roles:e,locked:{...ue}}),!0),I(se,!1)}async function pe(){if(H(T)){I(ce,!0),I(le,``);try{let e={};for(let t of v){let n=H(T)[t];n&&n.color&&!n.locked&&(e[`brand_${t}`]=n.color)}await yo(`colors`,{...Q.colors??{},...e}),Q.colors??(Q.colors={}),Object.assign(Q.colors,e),I(le,`Applied ✓`),setTimeout(()=>{I(le,``)},3e3),I(T,null)}catch(e){I(le,`Error: `+(e.message||`save failed`))}finally{I(ce,!1)}}}function me(){I(T,null),I(le,``)}function he(e){return Q.colors?.[`brand_${e}`]??Z.defaults?.colors?.brand_hex_hints?.[e]??Z.defaults?.colors?.brand?.[e]??`#888`}let ge=e=>e.charAt(0).toUpperCase()+e.slice(1);var _e=Hc(),ve=hr(_e);J(ve,20,()=>p,e=>e,(e,t)=>{var n=Tc();Fa(n,(e,t)=>h[t]=e,e=>h?.[e],()=>[t]),z(()=>Y(n,`color: var(${t??``})`)),G(e,n)}),O(ve);var ye=R(ve,2);J(ye,20,()=>v,e=>e,(e,t)=>{var n=Tc();Fa(n,(e,t)=>y[t]=e,e=>y?.[e],()=>[t]),z(()=>Y(n,`color: var(${_[t]??``})`)),G(e,n)}),O(ye);var be=R(ye,2),xe=L(be),Se=L(xe),Ce=R(L(Se),2),we=R(L(Ce)),Te=L(we,!0);O(we),ze(),O(Ce),O(Se);var Ee=R(Se,2),De=L(Ee);let Oe;var ke=R(De,2);let Ae;O(Ee),O(xe);var je=R(xe,2),Me=L(je),Ne=L(Me),Pe=R(L(Ne),2);J(Pe,21,()=>a,e=>e.key,(e,t)=>{var n=Ec(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).key)&&(n.value=(n.__value=H(t).key)??``)}),G(e,n)}),O(Pe),O(Ne);var Fe=R(Ne,2),E=R(Fe,2),Ie=R(L(E),2);J(Ie,21,()=>o,e=>e.key,(e,t)=>{var n=Ec(),r=L(n,!0);O(n);var i={};z(()=>{K(r,H(t).label),i!==(i=H(t).key)&&(n.value=(n.__value=H(t).key)??``)}),G(e,n)}),O(Ie),O(E),O(Me);var D=R(Me,2),Le=L(D),Re=e=>{var t=Dc(),n=hr(t),r=R(n,2),i=L(r);O(r);var a=R(r,2),o=L(a),s=R(L(o),2),c=L(s,!0);O(s),O(o);var u=R(o,2),d=R(L(u),2),f=L(d,!0);O(d),O(u),O(a),ze(2),z((e,t,r,a)=>{Y(n,`color: var(${e??``})`),K(i,`${t??``}:1`),la(s,1,`badge ${r??``}`,`svelte-1n4yog1`),K(c,H(te)),la(d,1,`badge ${a??``}`,`svelte-1n4yog1`),K(f,H(ne))},[()=>l(H(x)),()=>H(w).toFixed(2),()=>mc(H(te)),()=>mc(H(ne))]),G(e,t)},Be=e=>{G(e,Oc())};q(Le,e=>{H(w)===null?e(Be,-1):e(Re)}),O(D),O(je);var Ve=R(je,4),He=L(Ve),Ue=L(He),We=L(Ue);J(R(L(We)),17,()=>o,e=>e.key,(e,t)=>{var n=kc(),r=L(n),i=R(r,2),a=L(i,!0);O(i),O(n),z(()=>{X(n,`title`,H(t).label),Y(r,`background: var(${H(t).cssVar??``})`),K(a,H(t).label)}),G(e,n)}),O(We),O(Ue);var Ge=R(Ue);J(Ge,23,()=>a,e=>e.key,(e,t,n)=>{var r=jc(),i=L(r),a=L(i,!0);O(i),J(R(i),19,()=>o,e=>e.key,(e,r,i)=>{let a=N(()=>H(re)[H(n)][H(i)]);var o=Ac();let s;var c=L(o,!0);O(o),z((e,n)=>{s=la(o,1,`grid-cell svelte-1n4yog1`,null,s,{"grid-cell--aaa":H(a).level===`AAA`,"grid-cell--aa":H(a).level===`AA`,"grid-cell--aa-large":H(a).level===`AA-large`,"grid-cell--fail":H(a).level===`fail`,"grid-cell--na":H(a).ratio===null,"grid-cell--active":H(x)===H(t).key&&H(S)===H(r).key}),X(o,`title`,`${H(t).label??``} on ${H(r).label??``}: ${e??``}`),X(o,`role`,H(a).ratio===null?void 0:`button`),X(o,`tabindex`,H(a).ratio===null?void 0:0),K(c,n)},[()=>H(a).ratio===null?`—`:H(a).ratio.toFixed(2)+`:1`,()=>H(a).ratio===null?`—`:H(a).ratio.toFixed(1)]),U(`click`,o,()=>H(a).ratio!==null&&ie(H(t).key,H(r).key)),U(`keydown`,o,e=>(e.key===`Enter`||e.key===` `)&&H(a).ratio!==null&&(e.preventDefault(),ie(H(t).key,H(r).key))),G(e,o)}),O(r),z(()=>K(a,H(t).label)),G(e,r)}),O(Ge),O(He),O(Ve);var Ke=R(Ve,6),qe=R(L(Ke)),Je=L(qe,!0);O(qe),ze(),O(Ke);var Ze=R(Ke,2);J(Ze,21,()=>H(ae),e=>e.role,(e,t)=>{var n=Nc(),r=R(L(n),2),i=L(r,!0);O(r);var a=R(r,2),o=e=>{var n=Mc(),r=L(n);O(n),z((e,t)=>{la(n,1,`badge ${e??``}`,`svelte-1n4yog1`),K(r,`${t??``}:1`)},[()=>mc(H(t).level),()=>H(t).ratio.toFixed(1)]),G(e,n)};q(a,e=>{H(t).ratio!==null&&e(o)}),O(n),z(e=>{Y(n,`background: var(--c-${H(t).role??``}); color: var(--on-${H(t).role??``});`),K(i,e)},[()=>ge(H(t).role)]),G(e,n)}),O(Ze);var Qe=R(Ze,2),$e=R(L(Qe),4);J($e,20,()=>v,e=>e,(e,t)=>{var n=Pc();let r;var i=L(n),a=L(i,!0);O(i);var o=R(i,2),s=R(o,2),c=L(s,!0);O(s),O(n),z((e,i,s)=>{r=la(n,1,`lock svelte-1n4yog1`,null,r,{"lock--on":ue[t]}),X(n,`aria-pressed`,ue[t]),X(n,`title`,e),K(a,ue[t]?`🔒`:`🔓`),Y(o,`background:${i??``}`),K(c,s)},[()=>ue[t]?`${ge(t)} is locked — kept as-is`:`Lock ${ge(t)} as a fixed anchor`,()=>he(t),()=>ge(t)]),U(`click`,n,()=>de(t)),G(e,n)}),O($e);var et=R($e,2),tt=L(et,!0);O(et);var nt=R(et,2),rt=e=>{var t=Fc(),n=L(t,!0);O(t),z(()=>K(n,H(le))),G(e,t)};q(nt,e=>{H(le)&&!H(T)&&e(rt)});var it=R(nt,2),at=e=>{var t=Vc(),n=L(t);J(n,16,()=>v,e=>e,(e,t)=>{let n=N(()=>H(T)[t]);var r=Fi(),i=hr(r),a=e=>{var r=zc(),i=L(r),a=R(i,2),o=L(a),s=L(o,!0),c=R(s),l=e=>{G(e,Pi(`🔒`))};q(c,e=>{H(n).locked&&e(l)}),O(o);var u=R(o,2),d=e=>{var t=Ic(),r=L(t,!0);O(t),z(()=>K(r,H(n).color)),G(e,t)},f=e=>{G(e,Lc())};q(u,e=>{H(n).color?e(d):H(n).locked&&e(f,1)}),O(a);var p=R(a,2),m=e=>{var t=Mc(),r=L(t);O(t),z((e,n,i)=>{la(t,1,`badge ${e??``}`,`svelte-1n4yog1`),K(r,`${n??``}:1  ${i??``}`)},[()=>mc(fc(H(n).ratio)),()=>H(n).ratio.toFixed(2),()=>fc(H(n).ratio)]),G(e,t)},h=e=>{G(e,Rc())};q(p,e=>{H(n).ratio==null?e(h,-1):e(m)}),O(r),z((e,t)=>{Y(i,`background:${e??``};`),K(s,t)},[()=>H(n).color?H(n).color:he(t),()=>ge(t)]),G(e,r)},o=e=>{var n=Bc(),r=L(n),i=R(r,2),a=L(i),o=L(a,!0);O(a),ze(2),O(i),O(n),z((e,t)=>{Y(r,`background:${e??``};`),K(o,t)},[()=>he(t),()=>ge(t)]),G(e,n)};q(i,e=>{H(n)?e(a):H(n)===null&&e(o,1)}),G(e,r)});var r=R(n,2),i=L(r),a=L(i,!0);O(i);var o=R(i,2),s=R(o,2),c=e=>{var t=Fc(),n=L(t,!0);O(t),z(()=>K(n,H(le))),G(e,t)};q(s,e=>{H(le)&&e(c)}),O(r),O(t),z(()=>{i.disabled=H(ce),K(a,H(ce)?`Saving…`:`Apply generated colors`),o.disabled=H(ce)}),U(`click`,i,pe),U(`click`,o,me),G(e,t)};q(it,e=>{H(T)&&e(at)}),O(Qe),O(be),z(e=>{Y(ve,H(r)),Y(ye,H(i)),Y(be,H(r)),K(Te,H(n)?`dark`:`light`),Oe=la(De,1,`mode-btn svelte-1n4yog1`,null,Oe,{active:!H(n)}),Ae=la(ke,1,`mode-btn svelte-1n4yog1`,null,Ae,{active:H(n)}),Y(D,`background: var(${e??``})`),K(Je,H(n)?`dark`:`light`),et.disabled=H(se),K(tt,H(se)?`Analyzing…`:`Generate accessible palette`)},[()=>u(H(S))]),U(`click`,De,()=>I(n,!1)),U(`click`,ke,()=>I(n,!0)),pa(Pe,()=>H(x),e=>I(x,e)),U(`click`,Fe,oe),pa(Ie,()=>H(S),e=>I(S,e)),U(`click`,et,fe),G(e,_e),Xe()}Di([`click`,`keydown`]);var Wc=W(`

            Content Grid

            Widths used by the content-grid breakout pattern.

            Sidebar

            Cover

            Frame

            Reel

            Imposter

            Equal Columns

            `,1),Gc=W(`

            Containers

            Max-width values for .sf-container size variants. Any valid CSS length + WCAG, with distinct hues spread around the unlocked colors.

            `,1);function Uc(e,t){Xe(t,!0);let n=P(!1),r=M(()=>cc(Q,Z,V(n))),i=M(()=>cc(Q,Z,!1)),a=[{key:`text`,label:`Text`,cssVar:`--c-text`},{key:`text-secondary`,label:`Text secondary`,cssVar:`--c-text-secondary`},{key:`text-muted`,label:`Text muted`,cssVar:`--c-text-muted`},{key:`link`,label:`Link`,cssVar:`--c-link`},{key:`primary`,label:`Primary`,cssVar:`--c-primary`},{key:`action`,label:`Action`,cssVar:`--c-action`}],o=[{key:`bg`,label:`Background`,cssVar:`--c-bg`},{key:`surface`,label:`Surface`,cssVar:`--c-surface`},{key:`inset`,label:`Inset`,cssVar:`--c-inset`},{key:`primary`,label:`Primary`,cssVar:`--c-primary`},{key:`action`,label:`Action`,cssVar:`--c-action`}],s=new Map(a.map(e=>[e.key,e])),c=new Map(o.map(e=>[e.key,e])),l=e=>s.get(e)?.cssVar??`--c-text`,u=e=>c.get(e)?.cssVar??`--c-bg`,d=[`primary`,`secondary`,`tertiary`,`action`,`success`,`warning`,`error`,`info`],f=d.flatMap(e=>[`--c-${e}`,`--on-${e}`]),p=[...new Set([...[...a,...o].map(e=>e.cssVar),...f])];function m(e){let t=/rgba?\(([^)]+)\)/.exec(e||``);if(!t)return null;let n=t[1].split(/[ ,/]+/).map(Number).filter(e=>!Number.isNaN(e));return n.length<3||n.length>=4&&n[3]===0?null:[n[0],n[1],n[2]]}let h={},g=P(ar({}));Ar(()=>{V(r);let e={};for(let t of p){let n=h[t];if(!n)continue;let r=getComputedStyle(n).color;e[t]=m(r)??bc(r)}F(g,e,!0)});let _={base:`--c-base`,neutral:`--c-neutral`,primary:`--c-primary`,secondary:`--c-secondary`,tertiary:`--c-tertiary`,action:`--c-action`},v=[`base`,`neutral`,`primary`,`secondary`,`tertiary`,`action`],y={},b=P(ar({}));Ar(()=>{V(i);let e={};for(let t of v){let n=y[t];if(!n)continue;let r=getComputedStyle(n).color;e[t]=m(r)??bc(r)}F(b,e,!0)});let x=P(ar(a[0].key)),S=P(ar(o[0].key)),ee=M(()=>V(g)[l(V(x))]??null),C=M(()=>V(g)[u(V(S))]??null),w=M(()=>V(ee)&&V(C)?dc(V(ee),V(C)):null),te=M(()=>V(w)===null?null:fc(V(w))),ne=M(()=>V(w)===null?null:pc(V(w))),re=M(()=>a.map(e=>o.map(t=>{let n=V(g)[e.cssVar],r=V(g)[t.cssVar];if(!n||!r)return{ratio:null,level:null};let i=dc(n,r);return{ratio:i,level:fc(i)}})));function ie(e,t){F(x,e,!0),F(S,t,!0)}let ae=M(()=>d.map(e=>{let t=V(g)[`--c-${e}`],n=V(g)[`--on-${e}`],r=t&&n?dc(n,t):null;return{role:e,ratio:r,level:r===null?null:fc(r)}}));function oe(){let e=s.has(V(S))?V(S):V(x),t=c.has(V(x))?V(x):V(S);F(x,e,!0),F(S,t,!0)}let se=P(null),ce=P(!1),le=P(!1),ue=P(``),de=ar({base:!1,neutral:!1,primary:!1,secondary:!1,tertiary:!1,action:!1});function fe(e){de[e]=!de[e],V(se)&&pe()}function pe(){F(ce,!0),F(ue,``);let e={};for(let t of v)V(b)[t]&&(e[t]=V(b)[t]);F(se,wc({roles:e,locked:{...de}}),!0),F(ce,!1)}async function me(){if(V(se)){F(le,!0),F(ue,``);try{let e={};for(let t of v){let n=V(se)[t];n&&n.color&&!n.locked&&(e[`brand_${t}`]=n.color)}await yo(`colors`,{...Q.colors??{},...e}),Q.colors??(Q.colors={}),Object.assign(Q.colors,e),F(ue,`Applied ✓`),setTimeout(()=>{F(ue,``)},3e3),F(se,null)}catch(e){F(ue,`Error: `+(e.message||`save failed`))}finally{F(le,!1)}}}function he(){F(se,null),F(ue,``)}function ge(e){return Q.colors?.[`brand_${e}`]??Z.defaults?.colors?.brand_hex_hints?.[e]??Z.defaults?.colors?.brand?.[e]??`#888`}let _e=e=>e.charAt(0).toUpperCase()+e.slice(1);var ve=Hc(),ye=gr(ve);q(ye,20,()=>p,e=>e,(e,t)=>{var n=Tc();Ia(n,(e,t)=>h[t]=e,e=>h?.[e],()=>[t]),R(()=>J(n,`color: var(${t??``})`)),W(e,n)}),D(ye);var be=L(ye,2);q(be,20,()=>v,e=>e,(e,t)=>{var n=Tc();Ia(n,(e,t)=>y[t]=e,e=>y?.[e],()=>[t]),R(()=>J(n,`color: var(${_[t]??``})`)),W(e,n)}),D(be);var xe=L(be,2),Se=I(xe),Ce=I(Se),we=L(I(Ce),2),Te=L(I(we)),Ee=I(Te,!0);D(Te),Be(),D(we),D(Ce);var De=L(Ce,2),Oe=I(De);let ke;var Ae=L(Oe,2);let je;D(De),D(Se);var Me=L(Se,2),Ne=I(Me),Pe=I(Ne),Fe=L(I(Pe),2);q(Fe,21,()=>a,e=>e.key,(e,t)=>{var n=Ec(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).key)&&(n.value=(n.__value=V(t).key)??``)}),W(e,n)}),D(Fe),D(Pe);var Ie=L(Pe,2),T=L(Ie,2),Le=L(I(T),2);q(Le,21,()=>o,e=>e.key,(e,t)=>{var n=Ec(),r=I(n,!0);D(n);var i={};R(()=>{G(r,V(t).label),i!==(i=V(t).key)&&(n.value=(n.__value=V(t).key)??``)}),W(e,n)}),D(Le),D(T),D(Ne);var E=L(Ne,2),Re=I(E),ze=e=>{var t=Dc(),n=gr(t),r=L(n,2),i=I(r);D(r);var a=L(r,2),o=I(a),s=L(I(o),2),c=I(s,!0);D(s),D(o);var u=L(o,2),d=L(I(u),2),f=I(d,!0);D(d),D(u),D(a),Be(2),R((e,t,r,a)=>{J(n,`color: var(${e??``})`),G(i,`${t??``}:1`),ua(s,1,`badge ${r??``}`,`svelte-1n4yog1`),G(c,V(te)),ua(d,1,`badge ${a??``}`,`svelte-1n4yog1`),G(f,V(ne))},[()=>l(V(x)),()=>V(w).toFixed(2),()=>mc(V(te)),()=>mc(V(ne))]),W(e,t)},Ve=e=>{W(e,Oc())};K(Re,e=>{V(w)===null?e(Ve,-1):e(ze)}),D(E),D(Me);var He=L(Me,4),Ue=I(He),We=I(Ue),Ge=I(We);q(L(I(Ge)),17,()=>o,e=>e.key,(e,t)=>{var n=kc(),r=I(n),i=L(r,2),a=I(i,!0);D(i),D(n),R(()=>{Y(n,`title`,V(t).label),J(r,`background: var(${V(t).cssVar??``})`),G(a,V(t).label)}),W(e,n)}),D(Ge),D(We);var Ke=L(We);q(Ke,23,()=>a,e=>e.key,(e,t,n)=>{var r=jc(),i=I(r),a=I(i,!0);D(i),q(L(i),19,()=>o,e=>e.key,(e,r,i)=>{let a=M(()=>V(re)[V(n)][V(i)]);var o=Ac();let s;var c=I(o,!0);D(o),R((e,n)=>{s=ua(o,1,`grid-cell svelte-1n4yog1`,null,s,{"grid-cell--aaa":V(a).level===`AAA`,"grid-cell--aa":V(a).level===`AA`,"grid-cell--aa-large":V(a).level===`AA-large`,"grid-cell--fail":V(a).level===`fail`,"grid-cell--na":V(a).ratio===null,"grid-cell--active":V(x)===V(t).key&&V(S)===V(r).key}),Y(o,`title`,`${V(t).label??``} on ${V(r).label??``}: ${e??``}`),Y(o,`role`,V(a).ratio===null?void 0:`button`),Y(o,`tabindex`,V(a).ratio===null?void 0:0),G(c,n)},[()=>V(a).ratio===null?`—`:V(a).ratio.toFixed(2)+`:1`,()=>V(a).ratio===null?`—`:V(a).ratio.toFixed(1)]),H(`click`,o,()=>V(a).ratio!==null&&ie(V(t).key,V(r).key)),H(`keydown`,o,e=>(e.key===`Enter`||e.key===` `)&&V(a).ratio!==null&&(e.preventDefault(),ie(V(t).key,V(r).key))),W(e,o)}),D(r),R(()=>G(a,V(t).label)),W(e,r)}),D(Ke),D(Ue),D(He);var qe=L(He,6),Je=L(I(qe)),Ye=I(Je,!0);D(Je),Be(),D(qe);var Qe=L(qe,2);q(Qe,21,()=>V(ae),e=>e.role,(e,t)=>{var n=Nc(),r=L(I(n),2),i=I(r,!0);D(r);var a=L(r,2),o=e=>{var n=Mc(),r=I(n);D(n),R((e,t)=>{ua(n,1,`badge ${e??``}`,`svelte-1n4yog1`),G(r,`${t??``}:1`)},[()=>mc(V(t).level),()=>V(t).ratio.toFixed(1)]),W(e,n)};K(a,e=>{V(t).ratio!==null&&e(o)}),D(n),R(e=>{J(n,`background: var(--c-${V(t).role??``}); color: var(--on-${V(t).role??``});`),G(i,e)},[()=>_e(V(t).role)]),W(e,n)}),D(Qe);var $e=L(Qe,2),et=L(I($e),4);q(et,20,()=>v,e=>e,(e,t)=>{var n=Pc();let r;var i=I(n),a=I(i,!0);D(i);var o=L(i,2),s=L(o,2),c=I(s,!0);D(s),D(n),R((e,i,s)=>{r=ua(n,1,`lock svelte-1n4yog1`,null,r,{"lock--on":de[t]}),Y(n,`aria-pressed`,de[t]),Y(n,`title`,e),G(a,de[t]?`🔒`:`🔓`),J(o,`background:${i??``}`),G(c,s)},[()=>de[t]?`${_e(t)} is locked — kept as-is`:`Lock ${_e(t)} as a fixed anchor`,()=>ge(t),()=>_e(t)]),H(`click`,n,()=>fe(t)),W(e,n)}),D(et);var tt=L(et,2),nt=I(tt,!0);D(tt);var rt=L(tt,2),it=e=>{var t=Fc(),n=I(t,!0);D(t),R(()=>G(n,V(ue))),W(e,t)};K(rt,e=>{V(ue)&&!V(se)&&e(it)});var at=L(rt,2),ot=e=>{var t=Vc(),n=I(t);q(n,16,()=>v,e=>e,(e,t)=>{let n=M(()=>V(se)[t]);var r=Ii(),i=gr(r),a=e=>{var r=zc(),i=I(r),a=L(i,2),o=I(a),s=I(o,!0),c=L(s),l=e=>{W(e,Fi(`🔒`))};K(c,e=>{V(n).locked&&e(l)}),D(o);var u=L(o,2),d=e=>{var t=Ic(),r=I(t,!0);D(t),R(()=>G(r,V(n).color)),W(e,t)},f=e=>{W(e,Lc())};K(u,e=>{V(n).color?e(d):V(n).locked&&e(f,1)}),D(a);var p=L(a,2),m=e=>{var t=Mc(),r=I(t);D(t),R((e,n,i)=>{ua(t,1,`badge ${e??``}`,`svelte-1n4yog1`),G(r,`${n??``}:1  ${i??``}`)},[()=>mc(fc(V(n).ratio)),()=>V(n).ratio.toFixed(2),()=>fc(V(n).ratio)]),W(e,t)},h=e=>{W(e,Rc())};K(p,e=>{V(n).ratio==null?e(h,-1):e(m)}),D(r),R((e,t)=>{J(i,`background:${e??``};`),G(s,t)},[()=>V(n).color?V(n).color:ge(t),()=>_e(t)]),W(e,r)},o=e=>{var n=Bc(),r=I(n),i=L(r,2),a=I(i),o=I(a,!0);D(a),Be(2),D(i),D(n),R((e,t)=>{J(r,`background:${e??``};`),G(o,t)},[()=>ge(t),()=>_e(t)]),W(e,n)};K(i,e=>{V(n)?e(a):V(n)===null&&e(o,1)}),W(e,r)});var r=L(n,2),i=I(r),a=I(i,!0);D(i);var o=L(i,2),s=L(o,2),c=e=>{var t=Fc(),n=I(t,!0);D(t),R(()=>G(n,V(ue))),W(e,t)};K(s,e=>{V(ue)&&e(c)}),D(r),D(t),R(()=>{i.disabled=V(le),G(a,V(le)?`Saving…`:`Apply generated colors`),o.disabled=V(le)}),H(`click`,i,me),H(`click`,o,he),W(e,t)};K(at,e=>{V(se)&&e(ot)}),D($e),D(xe),R(e=>{J(ye,V(r)),J(be,V(i)),J(xe,V(r)),G(Ee,V(n)?`dark`:`light`),ke=ua(Oe,1,`mode-btn svelte-1n4yog1`,null,ke,{active:!V(n)}),je=ua(Ae,1,`mode-btn svelte-1n4yog1`,null,je,{active:V(n)}),J(E,`background: var(${e??``})`),G(Ye,V(n)?`dark`:`light`),tt.disabled=V(ce),G(nt,V(ce)?`Analyzing…`:`Generate accessible palette`)},[()=>u(V(S))]),H(`click`,Oe,()=>F(n,!1)),H(`click`,Ae,()=>F(n,!0)),ma(Fe,()=>V(x),e=>F(x,e)),H(`click`,Ie,oe),ma(Le,()=>V(S),e=>F(S,e)),H(`click`,tt,pe),W(e,ve),Ze()}Oi([`click`,`keydown`]);var Wc=U(`

            Content Grid

            Widths used by the content-grid breakout pattern.

            Sidebar

            Cover

            Frame

            Reel

            Imposter

            Equal Columns

            `,1),Gc=U(`

            Containers

            Max-width values for .sf-container size variants. Any valid CSS length (rem, px, ch, %, etc.).

            Grid

            Minimum column width for .sf-grid auto-fill layouts. The grid will fit as many columns as possible at or above this width.

            Switcher

            Viewport width at which .sf-switcher flips from a stacked column to a row.

            Bento Grid

            Column count and row height presets for .sf-bento free-form grid layouts.

            Header & Sticky

            Set mobile and desktop header heights in rem. When both are provided, --sf-header-height becomes a fluid clamp() between them using the viewport range configured in the Spacing tab. Set both to the same value for a - fixed height. Leave blank to use the framework defaults (3.5rem mobile, 5rem desktop) — shown as the input placeholders.

            Header height
            Sticky offset
            `);function Kc(e,t){Ye(t,!0);let n=`layouts`,r=Z.defaults?.[n]??{};var i=Gc(),a=R(L(i),4),o=L(a);{let e=N(()=>r.container_narrow??`38rem`);_o(o,{section:n,fieldKey:`container_narrow`,label:`Narrow`,get default(){return H(e)},cssVar:`--sf-container-narrow`,mono:!0})}var s=R(o,2);{let e=N(()=>r.container_prose??`65ch`);_o(s,{section:n,fieldKey:`container_prose`,label:`Prose`,get default(){return H(e)},cssVar:`--sf-container-prose`,mono:!0})}var c=R(s,2);{let e=N(()=>r.container_default??`75rem`);_o(c,{section:n,fieldKey:`container_default`,label:`Default`,get default(){return H(e)},cssVar:`--sf-container-default`,mono:!0})}var l=R(c,2);{let e=N(()=>r.container_wide??`90rem`);_o(l,{section:n,fieldKey:`container_wide`,label:`Wide`,get default(){return H(e)},cssVar:`--sf-container-wide`,mono:!0})}O(a);var u=R(a,6),d=L(u);{let e=N(()=>r.grid_min??`16rem`);_o(d,{section:n,fieldKey:`grid_min`,label:`Default min`,get default(){return H(e)},cssVar:`--sf-grid-min`,mono:!0})}var f=R(d,2);{let e=N(()=>r.grid_min_xs??`10rem`);_o(f,{section:n,fieldKey:`grid_min_xs`,label:`XS min`,get default(){return H(e)},cssVar:`--sf-grid-min-xs`,mono:!0})}var p=R(f,2);{let e=N(()=>r.grid_min_s??`13rem`);_o(p,{section:n,fieldKey:`grid_min_s`,label:`S min`,get default(){return H(e)},cssVar:`--sf-grid-min-s`,mono:!0})}var m=R(p,2);{let e=N(()=>r.grid_min_l??`20rem`);_o(m,{section:n,fieldKey:`grid_min_l`,label:`L min`,get default(){return H(e)},cssVar:`--sf-grid-min-l`,mono:!0})}var h=R(m,2);{let e=N(()=>r.grid_min_xl??`24rem`);_o(h,{section:n,fieldKey:`grid_min_xl`,label:`XL min`,get default(){return H(e)},cssVar:`--sf-grid-min-xl`,mono:!0})}var g=R(h,2);{let e=N(()=>r.grid_min_2xl??`28rem`);_o(g,{section:n,fieldKey:`grid_min_2xl`,label:`2XL min`,get default(){return H(e)},cssVar:`--sf-grid-min-2xl`,mono:!0})}O(u);var _=R(u,6),v=L(_);{let e=N(()=>r.switcher_threshold??`30rem`);_o(v,{section:n,fieldKey:`switcher_threshold`,label:`Threshold`,get default(){return H(e)},cssVar:`--sf-switcher-threshold`,mono:!0})}O(_);var y=R(_,6),b=L(y);{let e=N(()=>r.bento_cols??`3`);_o(b,{section:n,fieldKey:`bento_cols`,label:`Columns`,get default(){return H(e)},cssVar:`--sf-bento-cols-default`,mono:!0})}var x=R(b,2);{let e=N(()=>r.bento_row_default??`10rem`);_o(x,{section:n,fieldKey:`bento_row_default`,label:`Row (default)`,get default(){return H(e)},cssVar:`--sf-bento-row-default`,mono:!0})}var S=R(x,2);{let e=N(()=>r.bento_row_compact??`6rem`);_o(S,{section:n,fieldKey:`bento_row_compact`,label:`Row (compact)`,get default(){return H(e)},cssVar:`--sf-bento-row-compact`,mono:!0})}var ee=R(S,2);{let e=N(()=>r.bento_row_tall??`16rem`);_o(ee,{section:n,fieldKey:`bento_row_tall`,label:`Row (tall)`,get default(){return H(e)},cssVar:`--sf-bento-row-tall`,mono:!0})}O(y);var C=R(y,6),w=L(C),te=R(L(w),2),ne=L(te);{let e=N(()=>r.header_height_mobile||`3.5`);Ro(ne,{section:n,fieldKey:`header_height_mobile`,label:`Mobile (rem)`,min:0,step:.25,get default(){return H(e)},cssVar:`--sf-header-height-mobile`,width:`100px`})}var re=R(ne,2);{let e=N(()=>r.header_height_desktop||`5`);Ro(re,{section:n,fieldKey:`header_height_desktop`,label:`Desktop (rem)`,min:0,step:.25,get default(){return H(e)},cssVar:`--sf-header-height-desktop`,width:`100px`})}O(te),O(w);var ie=R(w,2),ae=R(L(ie),2),oe=L(ae);{let e=N(()=>r.sticky_offset_mobile||`3.5`);Ro(oe,{section:n,fieldKey:`sticky_offset_mobile`,label:`Mobile (rem)`,min:0,step:.25,get default(){return H(e)},cssVar:`--sf-sticky-offset-mobile`,width:`100px`})}var T=R(oe,2);{let e=N(()=>r.sticky_offset_desktop||`5`);Ro(T,{section:n,fieldKey:`sticky_offset_desktop`,label:`Desktop (rem)`,min:0,step:.25,get default(){return H(e)},cssVar:`--sf-sticky-offset-desktop`,width:`100px`})}O(ae),O(ie),O(C),io(R(C,2),{children:(e,t)=>{var i=Wc(),a=R(hr(i),4),o=L(a);{let e=N(()=>r.content_width??`var(--sf-container-default)`);_o(o,{section:n,fieldKey:`content_width`,label:`Content width`,get default(){return H(e)},cssVar:`--sf-content-width`,mono:!0})}var s=R(o,2);{let e=N(()=>r.breakout_width??`var(--sf-container-wide)`);_o(s,{section:n,fieldKey:`breakout_width`,label:`Breakout width`,get default(){return H(e)},cssVar:`--sf-breakout-width`,mono:!0})}O(a);var c=R(a,4),l=L(c);{let e=N(()=>r.sidebar_width??`18rem`);_o(l,{section:n,fieldKey:`sidebar_width`,label:`Sidebar width`,get default(){return H(e)},cssVar:`--sf-sidebar-width`,mono:!0})}var u=R(l,2);{let e=N(()=>r.sidebar_min_width??`50%`);_o(u,{section:n,fieldKey:`sidebar_min_width`,label:`Content col minimum`,get default(){return H(e)},cssVar:`--sf-sidebar-min-width`,mono:!0})}O(c);var d=R(c,4),f=L(d);{let e=N(()=>r.cover_min_height??`100dvh`);_o(f,{section:n,fieldKey:`cover_min_height`,label:`Min height`,get default(){return H(e)},cssVar:`--sf-cover-min-height`,mono:!0})}var p=R(f,2);{let e=N(()=>r.cover_padding??`var(--sf-section-pad)`);_o(p,{section:n,fieldKey:`cover_padding`,label:`Padding`,get default(){return H(e)},cssVar:`--sf-cover-padding`,mono:!0})}O(d);var m=R(d,4),h=L(m);{let e=N(()=>r.frame_ratio??`16 / 9`);_o(h,{section:n,fieldKey:`frame_ratio`,label:`Aspect ratio`,get default(){return H(e)},cssVar:`--sf-frame-ratio`,mono:!0})}O(m);var g=R(m,4),_=L(g);{let e=N(()=>r.reel_item_width??`max-content`);_o(_,{section:n,fieldKey:`reel_item_width`,label:`Item width`,get default(){return H(e)},cssVar:`--sf-reel-item-width`,mono:!0})}var v=R(_,2);{let e=N(()=>r.reel_height??`auto`);_o(v,{section:n,fieldKey:`reel_height`,label:`Height`,get default(){return H(e)},cssVar:`--sf-reel-height`,mono:!0})}O(g);var y=R(g,4),b=L(y);{let e=N(()=>r.imposter_margin??`var(--sf-space-m)`);_o(b,{section:n,fieldKey:`imposter_margin`,label:`Margin`,get default(){return H(e)},cssVar:`--sf-imposter-margin`,mono:!0})}O(y);var x=R(y,4),S=L(x);{let e=N(()=>r.equal_min_col??`16rem`);_o(S,{section:n,fieldKey:`equal_min_col`,label:`Min column width`,get default(){return H(e)},cssVar:`--sf-equal-min-col`,mono:!0})}O(x),G(e,i)},$$slots:{default:!0}}),O(i),G(e,i),Xe()}var qc=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`});Object.freeze([`type`,`role`,`generic`]);var Jc=new Set([`section`,`container`,`block`,`div`]);Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function Yc(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Xc=W(` `),Zc=W(``),Qc=W(`
            `),$c=W(` `),el=W(` `),tl=W(` `),nl=W(`

            reBEMer default names

            reBEMer pre-fills the in-builder panel with a BEM name for each element. + fixed height. Leave blank to use the framework defaults (3.5rem mobile, 5rem desktop) — shown as the input placeholders.

            Header height
            Sticky offset
            `);function Kc(e,t){Xe(t,!0);let n=`layouts`,r=Z.defaults?.[n]??{};var i=Gc(),a=L(I(i),4),o=I(a);{let e=M(()=>r.container_narrow??`38rem`);_o(o,{section:n,fieldKey:`container_narrow`,label:`Narrow`,get default(){return V(e)},cssVar:`--sf-container-narrow`,mono:!0})}var s=L(o,2);{let e=M(()=>r.container_prose??`65ch`);_o(s,{section:n,fieldKey:`container_prose`,label:`Prose`,get default(){return V(e)},cssVar:`--sf-container-prose`,mono:!0})}var c=L(s,2);{let e=M(()=>r.container_default??`75rem`);_o(c,{section:n,fieldKey:`container_default`,label:`Default`,get default(){return V(e)},cssVar:`--sf-container-default`,mono:!0})}var l=L(c,2);{let e=M(()=>r.container_wide??`90rem`);_o(l,{section:n,fieldKey:`container_wide`,label:`Wide`,get default(){return V(e)},cssVar:`--sf-container-wide`,mono:!0})}D(a);var u=L(a,6),d=I(u);{let e=M(()=>r.grid_min??`16rem`);_o(d,{section:n,fieldKey:`grid_min`,label:`Default min`,get default(){return V(e)},cssVar:`--sf-grid-min`,mono:!0})}var f=L(d,2);{let e=M(()=>r.grid_min_xs??`10rem`);_o(f,{section:n,fieldKey:`grid_min_xs`,label:`XS min`,get default(){return V(e)},cssVar:`--sf-grid-min-xs`,mono:!0})}var p=L(f,2);{let e=M(()=>r.grid_min_s??`13rem`);_o(p,{section:n,fieldKey:`grid_min_s`,label:`S min`,get default(){return V(e)},cssVar:`--sf-grid-min-s`,mono:!0})}var m=L(p,2);{let e=M(()=>r.grid_min_l??`20rem`);_o(m,{section:n,fieldKey:`grid_min_l`,label:`L min`,get default(){return V(e)},cssVar:`--sf-grid-min-l`,mono:!0})}var h=L(m,2);{let e=M(()=>r.grid_min_xl??`24rem`);_o(h,{section:n,fieldKey:`grid_min_xl`,label:`XL min`,get default(){return V(e)},cssVar:`--sf-grid-min-xl`,mono:!0})}var g=L(h,2);{let e=M(()=>r.grid_min_2xl??`28rem`);_o(g,{section:n,fieldKey:`grid_min_2xl`,label:`2XL min`,get default(){return V(e)},cssVar:`--sf-grid-min-2xl`,mono:!0})}D(u);var _=L(u,6),v=I(_);{let e=M(()=>r.switcher_threshold??`30rem`);_o(v,{section:n,fieldKey:`switcher_threshold`,label:`Threshold`,get default(){return V(e)},cssVar:`--sf-switcher-threshold`,mono:!0})}D(_);var y=L(_,6),b=I(y);{let e=M(()=>r.bento_cols??`3`);_o(b,{section:n,fieldKey:`bento_cols`,label:`Columns`,get default(){return V(e)},cssVar:`--sf-bento-cols-default`,mono:!0})}var x=L(b,2);{let e=M(()=>r.bento_row_default??`10rem`);_o(x,{section:n,fieldKey:`bento_row_default`,label:`Row (default)`,get default(){return V(e)},cssVar:`--sf-bento-row-default`,mono:!0})}var S=L(x,2);{let e=M(()=>r.bento_row_compact??`6rem`);_o(S,{section:n,fieldKey:`bento_row_compact`,label:`Row (compact)`,get default(){return V(e)},cssVar:`--sf-bento-row-compact`,mono:!0})}var ee=L(S,2);{let e=M(()=>r.bento_row_tall??`16rem`);_o(ee,{section:n,fieldKey:`bento_row_tall`,label:`Row (tall)`,get default(){return V(e)},cssVar:`--sf-bento-row-tall`,mono:!0})}D(y);var C=L(y,6),w=I(C),te=L(I(w),2),ne=I(te);{let e=M(()=>r.header_height_mobile||`3.5`);Ro(ne,{section:n,fieldKey:`header_height_mobile`,label:`Mobile (rem)`,min:0,step:.25,get default(){return V(e)},cssVar:`--sf-header-height-mobile`,width:`100px`})}var re=L(ne,2);{let e=M(()=>r.header_height_desktop||`5`);Ro(re,{section:n,fieldKey:`header_height_desktop`,label:`Desktop (rem)`,min:0,step:.25,get default(){return V(e)},cssVar:`--sf-header-height-desktop`,width:`100px`})}D(te),D(w);var ie=L(w,2),ae=L(I(ie),2),oe=I(ae);{let e=M(()=>r.sticky_offset_mobile||`3.5`);Ro(oe,{section:n,fieldKey:`sticky_offset_mobile`,label:`Mobile (rem)`,min:0,step:.25,get default(){return V(e)},cssVar:`--sf-sticky-offset-mobile`,width:`100px`})}var se=L(oe,2);{let e=M(()=>r.sticky_offset_desktop||`5`);Ro(se,{section:n,fieldKey:`sticky_offset_desktop`,label:`Desktop (rem)`,min:0,step:.25,get default(){return V(e)},cssVar:`--sf-sticky-offset-desktop`,width:`100px`})}D(ae),D(ie),D(C),io(L(C,2),{children:(e,t)=>{var i=Wc(),a=L(gr(i),4),o=I(a);{let e=M(()=>r.content_width??`var(--sf-container-default)`);_o(o,{section:n,fieldKey:`content_width`,label:`Content width`,get default(){return V(e)},cssVar:`--sf-content-width`,mono:!0})}var s=L(o,2);{let e=M(()=>r.breakout_width??`var(--sf-container-wide)`);_o(s,{section:n,fieldKey:`breakout_width`,label:`Breakout width`,get default(){return V(e)},cssVar:`--sf-breakout-width`,mono:!0})}D(a);var c=L(a,4),l=I(c);{let e=M(()=>r.sidebar_width??`18rem`);_o(l,{section:n,fieldKey:`sidebar_width`,label:`Sidebar width`,get default(){return V(e)},cssVar:`--sf-sidebar-width`,mono:!0})}var u=L(l,2);{let e=M(()=>r.sidebar_min_width??`50%`);_o(u,{section:n,fieldKey:`sidebar_min_width`,label:`Content col minimum`,get default(){return V(e)},cssVar:`--sf-sidebar-min-width`,mono:!0})}D(c);var d=L(c,4),f=I(d);{let e=M(()=>r.cover_min_height??`100dvh`);_o(f,{section:n,fieldKey:`cover_min_height`,label:`Min height`,get default(){return V(e)},cssVar:`--sf-cover-min-height`,mono:!0})}var p=L(f,2);{let e=M(()=>r.cover_padding??`var(--sf-section-pad)`);_o(p,{section:n,fieldKey:`cover_padding`,label:`Padding`,get default(){return V(e)},cssVar:`--sf-cover-padding`,mono:!0})}D(d);var m=L(d,4),h=I(m);{let e=M(()=>r.frame_ratio??`16 / 9`);_o(h,{section:n,fieldKey:`frame_ratio`,label:`Aspect ratio`,get default(){return V(e)},cssVar:`--sf-frame-ratio`,mono:!0})}D(m);var g=L(m,4),_=I(g);{let e=M(()=>r.reel_item_width??`max-content`);_o(_,{section:n,fieldKey:`reel_item_width`,label:`Item width`,get default(){return V(e)},cssVar:`--sf-reel-item-width`,mono:!0})}var v=L(_,2);{let e=M(()=>r.reel_height??`auto`);_o(v,{section:n,fieldKey:`reel_height`,label:`Height`,get default(){return V(e)},cssVar:`--sf-reel-height`,mono:!0})}D(g);var y=L(g,4),b=I(y);{let e=M(()=>r.imposter_margin??`var(--sf-space-m)`);_o(b,{section:n,fieldKey:`imposter_margin`,label:`Margin`,get default(){return V(e)},cssVar:`--sf-imposter-margin`,mono:!0})}D(y);var x=L(y,4),S=I(x);{let e=M(()=>r.equal_min_col??`16rem`);_o(S,{section:n,fieldKey:`equal_min_col`,label:`Min column width`,get default(){return V(e)},cssVar:`--sf-equal-min-col`,mono:!0})}D(x),W(e,i)},$$slots:{default:!0}}),D(i),W(e,i),Ze()}var qc=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`}),Jc=new Set([`section`,`container`,`block`,`div`]);Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function Yc(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Xc=U(` `),Zc=U(``),Qc=U(`
            `),$c=U(` `),el=U(` `),tl=U(` `),nl=U(`

            reBEMer default names

            reBEMer pre-fills the in-builder panel with a BEM name for each element. Names you set on an element in Bricks always win; these defaults only seed unnamed elements. Leave a field at its default to use the built-in - suggestion — only your changes are saved.

            Element-type mode names each container after its own Bricks type; role - mode infers a name from a container's children; generic mode names every - container item and lets auto-numbering disambiguate.

            Bricks element type BEM name
            `);function rl(e,t){Ye(t,!0);let n=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,r=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]),i=typeof window<`u`&&window.slashedApp?.bricksElements||{},a=(()=>{let e=new Set([...Object.keys(i),...Object.keys(qc)]),t=[];for(let a of e){if(Jc.has(a))continue;let e=i[a]||``,o=Yc(e),s=n.test(o)&&!r.has(o),c=qc[a]||(s?o:``)||`item`;t.push({type:a,label:e,def:c})}return t.sort((e,t)=>e.type.localeCompare(t.type))})(),o=Z.pluginSettings&&Z.pluginSettings.rebemer_element_map||{},s=[`type`,`role`,`generic`],c=F(ir({...o})),l=F(ir(s.includes(Z.pluginSettings?.rebemer_container_mode)?Z.pluginSettings.rebemer_container_mode:`type`)),u=F(!1),d=F(``),f=F(``);function p(e,t){return Object.prototype.hasOwnProperty.call(H(c),e)?H(c)[e]:t}function m(e){return!!e&&(!n.test(e)||r.has(e))}function h(e,t,n){let r=String(n).trim().toLowerCase(),i={...H(c)};r===``||r===t?delete i[e]:i[e]=r,I(c,i,!0)}let g=N(()=>Object.values(H(c)).filter(m).length),_=N(()=>Object.keys(H(c)).length);async function v(){if(H(g)>0){I(f,`Fix invalid names before saving (lowercase letters, digits, hyphens).`);return}I(u,!0),I(f,``),I(d,``);try{let e=await xo({rebemer_element_map:H(c),rebemer_container_mode:H(l)});e&&typeof e==`object`&&!e.dev&&(e.rebemer_element_map&&typeof e.rebemer_element_map==`object`&&I(c,{...e.rebemer_element_map},!0),e.rebemer_container_mode&&I(l,e.rebemer_container_mode,!0),Z.pluginSettings.rebemer_element_map={...H(c)},Z.pluginSettings.rebemer_container_mode=H(l)),I(d,`Saved. New defaults apply next time you open the reBEMer panel.`)}catch(e){I(f,e&&e.message||`Save failed.`,!0)}finally{I(u,!1)}}function y(){I(c,{},!0),I(l,`type`),I(d,`Cleared — save to apply.`),I(f,``)}var b=nl(),x=R(L(b),2),S=L(x),ee=R(L(S),2),C=L(ee);C.value=C.__value=`type`;var w=R(C);w.value=w.__value=`role`;var te=R(w);te.value=te.__value=`generic`,O(ee),O(S),ze(2),O(x);var ne=R(x,2),re=L(ne),ie=L(re);O(re);var ae=R(re,2);J(R(L(ae),2),17,()=>a,({type:e,label:t,def:n})=>e,(e,t)=>{let n=()=>H(t).type,r=()=>H(t).label,i=()=>H(t).def;var a=Qc(),o=L(a),s=L(o),c=L(s,!0);O(s);var l=R(s,2),u=e=>{var t=Xc(),n=L(t,!0);O(t),z(()=>K(n,r())),G(e,t)};q(l,e=>{r()&&e(u)}),O(o);var d=R(o,2),f=L(d);ya(f);let g;var _=R(f,2),v=e=>{var t=Zc();z(()=>X(t,`aria-label`,`Reset ${n()} to default (${i()})`)),U(`click`,t,()=>h(n(),i(),i())),G(e,t)},y=N(()=>p(n(),i())!==i());q(_,e=>{H(y)&&e(v)}),O(d),O(a),z((e,t)=>{K(c,n()),ba(f,e),X(f,`placeholder`,i()),X(f,`aria-label`,`BEM name for ${n()}`),g=la(f,1,`svelte-4f2ow1`,null,g,t)},[()=>p(n(),i()),()=>({invalid:m(p(n(),i()))})]),U(`input`,f,e=>h(n(),i(),e.currentTarget.value)),G(e,a)}),O(ae),O(ne);var oe=R(ne,2),T=L(oe),se=L(T),ce=e=>{var t=$c(),n=L(t,!0);O(t),z(()=>K(n,H(f))),G(e,t)},le=e=>{var t=el(),n=L(t,!0);O(t),z(()=>K(n,H(d))),G(e,t)},ue=e=>{var t=tl(),n=L(t);O(t),z(()=>K(n,`${H(_)??``} override${H(_)===1?``:`s`}`)),G(e,t)};q(se,e=>{H(f)?e(ce):H(d)?e(le,1):H(_)>0&&e(ue,2)}),O(T);var de=R(T,2),fe=L(de),pe=R(fe,2),me=L(pe,!0);O(pe),O(de),O(oe),O(b),z(()=>{K(ie,`Showing ${a.length??``} elements registered in Bricks (including those added by plugins or custom code).`),fe.disabled=H(u),pe.disabled=H(u)||H(g)>0,K(me,H(u)?`Saving…`:`Save changes`)}),pa(ee,()=>H(l),e=>I(l,e)),U(`click`,fe,y),U(`click`,pe,v),G(e,b),Xe()}Di([`input`,`click`]);var il=W(`
            `),al=W(`
            `),ol=W(`
            `),sl=W(`

            Live preview

            Typography

            The quick brown fox jumps over the lazy dog

            Body text uses --sf-color-text--secondary over the page + suggestion — only your changes are saved.

            Layout containers (section / container / div / block) are named after their own Bricks + type and aren't listed below.

            Bricks element type BEM name
            `);function rl(e,t){Xe(t,!0);let n=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,r=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]),i=typeof window<`u`&&window.slashedApp?.bricksElements||{},a=(()=>{let e=new Set([...Object.keys(i),...Object.keys(qc)]),t=[];for(let a of e){if(Jc.has(a))continue;let e=i[a]||``,o=Yc(e),s=n.test(o)&&!r.has(o),c=qc[a]||(s?o:``)||`item`;t.push({type:a,label:e,def:c})}return t.sort((e,t)=>e.type.localeCompare(t.type))})(),o=P(ar({...Z.pluginSettings&&Z.pluginSettings.rebemer_element_map||{}})),s=P(!1),c=P(``),l=P(``);function u(e,t){return Object.prototype.hasOwnProperty.call(V(o),e)?V(o)[e]:t}function d(e){return!!e&&(!n.test(e)||r.has(e))}function f(e,t,n){let r=String(n).trim().toLowerCase(),i={...V(o)};r===``||r===t?delete i[e]:i[e]=r,F(o,i,!0)}let p=M(()=>Object.values(V(o)).filter(d).length),m=M(()=>Object.keys(V(o)).length);async function h(){if(V(p)>0){F(l,`Fix invalid names before saving (lowercase letters, digits, hyphens).`);return}F(s,!0),F(l,``),F(c,``);try{let e=await xo({rebemer_element_map:V(o)});e&&typeof e==`object`&&!e.dev&&(e.rebemer_element_map&&typeof e.rebemer_element_map==`object`&&F(o,{...e.rebemer_element_map},!0),Z.pluginSettings.rebemer_element_map={...V(o)}),F(c,`Saved. New defaults apply next time you open the reBEMer panel.`)}catch(e){F(l,e&&e.message||`Save failed.`,!0)}finally{F(s,!1)}}function g(){F(o,{},!0),F(c,`Cleared — save to apply.`),F(l,``)}var _=nl(),v=L(I(_),2),y=L(I(v),2),b=I(y);D(y);var x=L(y,2);q(L(I(x),2),17,()=>a,({type:e,label:t,def:n})=>e,(e,t)=>{let n=()=>V(t).type,r=()=>V(t).label,i=()=>V(t).def;var a=Qc(),o=I(a),s=I(o),c=I(s,!0);D(s);var l=L(s,2),p=e=>{var t=Xc(),n=I(t,!0);D(t),R(()=>G(n,r())),W(e,t)};K(l,e=>{r()&&e(p)}),D(o);var m=L(o,2),h=I(m);ba(h);let g;var _=L(h,2),v=e=>{var t=Zc();R(()=>Y(t,`aria-label`,`Reset ${n()} to default (${i()})`)),H(`click`,t,()=>f(n(),i(),i())),W(e,t)},y=M(()=>u(n(),i())!==i());K(_,e=>{V(y)&&e(v)}),D(m),D(a),R((e,t)=>{G(c,n()),xa(h,e),Y(h,`placeholder`,i()),Y(h,`aria-label`,`BEM name for ${n()}`),g=ua(h,1,`svelte-4f2ow1`,null,g,t)},[()=>u(n(),i()),()=>({invalid:d(u(n(),i()))})]),H(`input`,h,e=>f(n(),i(),e.currentTarget.value)),W(e,a)}),D(x),D(v);var S=L(v,2),ee=I(S),C=I(ee),w=e=>{var t=$c(),n=I(t,!0);D(t),R(()=>G(n,V(l))),W(e,t)},te=e=>{var t=el(),n=I(t,!0);D(t),R(()=>G(n,V(c))),W(e,t)},ne=e=>{var t=tl(),n=I(t);D(t),R(()=>G(n,`${V(m)??``} override${V(m)===1?``:`s`}`)),W(e,t)};K(C,e=>{V(l)?e(w):V(c)?e(te,1):V(m)>0&&e(ne,2)}),D(ee);var re=L(ee,2),ie=I(re),ae=L(ie,2),oe=I(ae,!0);D(ae),D(re),D(S),D(_),R(()=>{G(b,`Showing ${a.length??``} elements registered in Bricks (including those added by plugins or custom code).`),ie.disabled=V(s),ae.disabled=V(s)||V(p)>0,G(oe,V(s)?`Saving…`:`Save changes`)}),H(`click`,ie,g),H(`click`,ae,h),W(e,_),Ze()}Oi([`input`,`click`]);var il=U(`
            `),al=U(`
            `),ol=U(`
            `),sl=U(`

            Live preview

            Typography

            The quick brown fox jumps over the lazy dog

            Body text uses --sf-color-text--secondary over the page background. Headings, body, secondary and muted text each pull from their own token so the hierarchy stays readable in both modes.

            Muted caption · an inline link · auto-contrasting.

            Surfaces

            Brand & status

            Buttons

            Primary Secondary Action Outline Ghost Disabled

            Feedback

            Card component

            S

            Card Component

            Design token preview

            Active

            Radius, shadow, colours, surfaces, and typography working together — - every value updates live as you adjust tokens.

            Form field

            Generated CSS:
            `);function cl(e,t){Ye(t,!0);let n=rc,r=ic,i=F(!1),a=N(()=>cc(Q,Z,H(i))),o=[{var:`--c-inset`,label:`Inset`},{var:`--c-bg`,label:`Background`},{var:`--c-surface`,label:`Surface`},{var:`--c-raised`,label:`Raised`}],s=N(()=>Rs(Q));var c=sl();let l;var u=L(c),d=R(L(u),2),f=L(d);let p;var m=R(f,2);let h;O(d),O(u);var g=R(u,2),_=L(g),v=R(L(_),6),y=R(L(v));ze(),O(v),O(_);var b=R(_,2),x=R(L(b),2);J(x,21,()=>o,e=>e.var,(e,t)=>{var n=il();let r;var i=L(n),a=L(i,!0);O(i),O(n),z(()=>{r=Y(n,``,r,{background:`var(${H(t).var})`}),K(a,H(t).label)}),G(e,n)}),O(x),O(b);var S=R(b,2),ee=R(L(S),2),C=L(ee);J(C,16,()=>n,e=>e,(e,t)=>{var n=al();let r;var i=L(n,!0);O(n),z(()=>{X(n,`title`,t),r=Y(n,``,r,{background:`var(--c-${t})`,color:`var(--on-${t})`}),K(i,t)}),G(e,n)}),J(R(C,2),16,()=>r,e=>e,(e,t)=>{var n=al();let r;var i=L(n,!0);O(n),z(()=>{X(n,`title`,t),r=Y(n,``,r,{background:`var(--c-${t})`,color:`var(--on-${t})`}),K(i,t)}),G(e,n)}),O(ee),O(S);var w=R(S,2),te=R(L(w),2),ne=L(te);Y(ne,``,{},{background:`var(--c-primary)`,color:`var(--on-primary)`});var re=R(ne,2);Y(re,``,{},{background:`var(--c-secondary)`,color:`var(--on-secondary)`});var ie=R(re,2);Y(ie,``,{},{background:`var(--c-action)`,color:`var(--on-action)`});var ae=R(ie,2);Y(ae,``,{},{"border-color":`var(--c-primary)`,color:`var(--c-primary)`});var oe=R(ae,2);Y(oe,``,{},{color:`var(--c-text-secondary)`}),Y(R(oe,2),``,{},{background:`var(--c-neutral)`,color:`var(--on-neutral)`,opacity:`0.55`}),O(te),O(w);var T=R(w,2),se=R(L(T),2);J(se,20,()=>r,e=>e,(e,t)=>{var n=ol();let r;var i=L(n);let a;var o=L(i,!0);O(i);var s=R(i,2),c=L(s);O(s),O(n),z(()=>{r=Y(n,``,r,{background:`var(--tint-${t})`,"border-inline-start-color":`var(--c-${t})`}),a=Y(i,``,a,{background:`var(--c-${t})`,color:`var(--on-${t})`}),K(o,t),K(c,`${t??``} message — readable on its tint.`)}),G(e,n)}),O(se),O(T);var ce=R(T,2),le=R(L(ce),2),ue=L(le);Y(ue,``,{},{background:`var(--c-primary)`});var de=R(ue,2),fe=L(de),pe=L(fe);Y(pe,``,{},{background:`var(--c-secondary)`,color:`var(--on-secondary)`}),Y(R(pe,4),``,{},{background:`var(--c-success)`,color:`var(--on-success)`}),O(fe);var me=R(fe,4),he=L(me);Y(he,``,{},{background:`var(--c-info)`,color:`var(--on-info)`});var ge=R(he,2);Y(ge,``,{},{background:`var(--c-warning)`,color:`var(--on-warning)`}),Y(R(ge,2),``,{},{background:`var(--c-action)`,color:`var(--on-action)`}),O(me),O(de),O(le),O(ce),ze(2),O(g);var _e=R(g,2),ve=R(L(_e)),ye=L(ve,!0);O(ve),O(_e),O(c),z(()=>{l=la(c,1,`slashed-preview svelte-g79qke`,null,l,{"is-dark":H(i)}),Y(c,H(a)),p=la(f,1,`slashed-preview__mode-btn svelte-g79qke`,null,p,{active:!H(i)}),h=la(m,1,`slashed-preview__mode-btn svelte-g79qke`,null,h,{active:H(i)}),K(ye,H(s)||`/* (defaults — no overrides set) */`)}),U(`click`,f,()=>I(i,!1)),U(`click`,m,()=>I(i,!0)),U(`click`,y,e=>e.preventDefault()),G(e,c),Xe()}Di([`click`]);var ll=W(` `),ul=W(`Saving…`),dl=W(`Saved`),fl=W(`Unsaved changes`),pl=W(`All changes saved`),ml=W(`
            `);function hl(e,t){Ye(t,!0);let n=[`contrast`,`radius`,`shadows`,`motion`,`zindex`];async function r(){if(!$.saving){$.saving=!0,$.error=``;try{if($.activeTab===`misc`){let e=await Promise.allSettled(n.map(e=>yo(e,Q[e]??{}))),t=[];if(e.forEach((e,r)=>{e.status===`fulfilled`?e.value?.values&&(Q[n[r]]=e.value.values):t.push(n[r])}),t.length>0)throw Error(`Failed to save: ${t.join(`, `)}`)}else{let e=$.activeTab,t=await yo(e,Q[e]??{});t&&t.values&&(Q[e]=t.values)}$.dirty=!1,$.lastSavedAt=Date.now()}catch(e){$.error=e&&e.message||String(e)}finally{$.saving=!1}}}async function i(){if(!$.saving&&confirm(`Reset the ${Z.tabs[$.activeTab]??$.activeTab} tab to defaults?`)){$.saving=!0,$.error=``;try{if($.activeTab===`misc`){let e=await Promise.allSettled(n.map(e=>bo(e))),t=[];if(e.forEach((e,r)=>{e.status===`fulfilled`?Wa(n[r]):t.push(n[r])}),t.length>0)throw Error(`Failed to reset: ${t.join(`, `)}`)}else await bo($.activeTab),Wa($.activeTab);$.dirty=!1,$.lastSavedAt=Date.now()}catch(e){$.error=e&&e.message||String(e)}finally{$.saving=!1}}}let a=F(!1);kr(()=>{if($.lastSavedAt){I(a,!0);let e=setTimeout(()=>I(a,!1),2e3);return()=>clearTimeout(e)}});let o=N(()=>zs(Q));function s(){let e=Rs(Q);if(!e)return;let t=new Blob([e],{type:`text/css`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`slashed-custom.css`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}var c=ml();let l;var u=L(c),d=L(u),f=e=>{var t=ll(),n=L(t,!0);O(t),z(()=>K(n,$.error)),G(e,t)},p=e=>{G(e,ul())},m=e=>{G(e,dl())},h=e=>{G(e,fl())},g=e=>{G(e,pl())};q(d,e=>{$.error?e(f):$.saving?e(p,1):H(a)?e(m,2):$.dirty?e(h,3):e(g,-1)}),O(u);var _=R(u,2),v=L(_),y=R(v,2),b=R(y,2),x=L(b,!0);O(b),O(_),O(c),z(()=>{l=la(c,1,`bar svelte-1oj49qa`,null,l,{dirty:$.dirty}),v.disabled=$.saving,y.disabled=!H(o),b.disabled=$.saving||!$.dirty,K(x,$.saving?`Saving…`:`Save changes`)}),U(`click`,v,i),U(`click`,y,s),U(`click`,b,r),G(e,c),Xe()}Di([`click`]);var gl=W(` `),_l=W(`

            SLASHED Design Tokens

            Adjust framework tokens, inspect generated variables, and manage the bundled CSS in one place.

            `);function vl(e,t){Ye(t,!0);let n=[`cheatsheet`,`export`,`wcag`,`rebemer`],r=N(()=>n.includes($.activeTab));kr(()=>{function e(e){$.dirty&&(e.preventDefault(),e.returnValue=``)}return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)});var i=_l(),a=L(i),o=L(a),s=R(L(o),4),c=L(s),l=e=>{var t=gl(),n=L(t);O(t),z(()=>K(n,`Framework ${Z.versions.framework??``}`)),G(e,t)};q(c,e=>{Z.versions.framework&&e(l)});var u=R(c,2),d=e=>{var t=gl(),n=L(t);O(t),z(()=>K(n,`Plugin v${Z.versions.plugin??``}`)),G(e,t)};q(u,e=>{Z.versions.plugin&&e(d)}),O(s),O(o),ze(2),O(a);var f=R(a,2);Xa(f,{});var p=R(f,2),m=L(p),h=e=>{co(e,{})},g=e=>{$o(e,{})},_=e=>{os(e,{})},v=e=>{Kc(e,{})},y=e=>{vs(e,{})},b=e=>{rl(e,{})},x=e=>{Ws(e,{})},S=e=>{nc(e,{})},ee=e=>{Uc(e,{})};q(m,e=>{$.activeTab===`colors`?e(h):$.activeTab===`typography`?e(g,1):$.activeTab===`spacing`?e(_,2):$.activeTab===`layouts`?e(v,3):$.activeTab===`misc`?e(y,4):$.activeTab===`rebemer`?e(b,5):$.activeTab===`export`?e(x,6):$.activeTab===`cheatsheet`?e(S,7):$.activeTab===`wcag`&&e(ee,8)}),O(p);var C=R(p,2);cl(C,{});var w=R(C,2),te=e=>{hl(e,{})};q(w,e=>{H(r)||e(te)}),O(i),G(e,i),Xe()}var yl=document.getElementById(`slashed-admin-app`);yl&&Ii(vl,{target:yl}); + every value updates live as you adjust tokens.

            Form field

            Generated CSS:
            `);function cl(e,t){Xe(t,!0);let n=rc,r=ic,i=P(!1),a=M(()=>cc(Q,Z,V(i))),o=[{var:`--c-inset`,label:`Inset`},{var:`--c-bg`,label:`Background`},{var:`--c-surface`,label:`Surface`},{var:`--c-raised`,label:`Raised`}],s=M(()=>Rs(Q));var c=sl();let l;var u=I(c),d=L(I(u),2),f=I(d);let p;var m=L(f,2);let h;D(d),D(u);var g=L(u,2),_=I(g),v=L(I(_),6),y=L(I(v));Be(),D(v),D(_);var b=L(_,2),x=L(I(b),2);q(x,21,()=>o,e=>e.var,(e,t)=>{var n=il();let r;var i=I(n),a=I(i,!0);D(i),D(n),R(()=>{r=J(n,``,r,{background:`var(${V(t).var})`}),G(a,V(t).label)}),W(e,n)}),D(x),D(b);var S=L(b,2),ee=L(I(S),2),C=I(ee);q(C,16,()=>n,e=>e,(e,t)=>{var n=al();let r;var i=I(n,!0);D(n),R(()=>{Y(n,`title`,t),r=J(n,``,r,{background:`var(--c-${t})`,color:`var(--on-${t})`}),G(i,t)}),W(e,n)}),q(L(C,2),16,()=>r,e=>e,(e,t)=>{var n=al();let r;var i=I(n,!0);D(n),R(()=>{Y(n,`title`,t),r=J(n,``,r,{background:`var(--c-${t})`,color:`var(--on-${t})`}),G(i,t)}),W(e,n)}),D(ee),D(S);var w=L(S,2),te=L(I(w),2),ne=I(te);J(ne,``,{},{background:`var(--c-primary)`,color:`var(--on-primary)`});var re=L(ne,2);J(re,``,{},{background:`var(--c-secondary)`,color:`var(--on-secondary)`});var ie=L(re,2);J(ie,``,{},{background:`var(--c-action)`,color:`var(--on-action)`});var ae=L(ie,2);J(ae,``,{},{"border-color":`var(--c-primary)`,color:`var(--c-primary)`});var oe=L(ae,2);J(oe,``,{},{color:`var(--c-text-secondary)`}),J(L(oe,2),``,{},{background:`var(--c-neutral)`,color:`var(--on-neutral)`,opacity:`0.55`}),D(te),D(w);var se=L(w,2),ce=L(I(se),2);q(ce,20,()=>r,e=>e,(e,t)=>{var n=ol();let r;var i=I(n);let a;var o=I(i,!0);D(i);var s=L(i,2),c=I(s);D(s),D(n),R(()=>{r=J(n,``,r,{background:`var(--tint-${t})`,"border-inline-start-color":`var(--c-${t})`}),a=J(i,``,a,{background:`var(--c-${t})`,color:`var(--on-${t})`}),G(o,t),G(c,`${t??``} message — readable on its tint.`)}),W(e,n)}),D(ce),D(se);var le=L(se,2),ue=L(I(le),2),de=I(ue);J(de,``,{},{background:`var(--c-primary)`});var fe=L(de,2),pe=I(fe),me=I(pe);J(me,``,{},{background:`var(--c-secondary)`,color:`var(--on-secondary)`}),J(L(me,4),``,{},{background:`var(--c-success)`,color:`var(--on-success)`}),D(pe);var he=L(pe,4),ge=I(he);J(ge,``,{},{background:`var(--c-info)`,color:`var(--on-info)`});var _e=L(ge,2);J(_e,``,{},{background:`var(--c-warning)`,color:`var(--on-warning)`}),J(L(_e,2),``,{},{background:`var(--c-action)`,color:`var(--on-action)`}),D(he),D(fe),D(ue),D(le),Be(2),D(g);var ve=L(g,2),ye=L(I(ve)),be=I(ye,!0);D(ye),D(ve),D(c),R(()=>{l=ua(c,1,`slashed-preview svelte-g79qke`,null,l,{"is-dark":V(i)}),J(c,V(a)),p=ua(f,1,`slashed-preview__mode-btn svelte-g79qke`,null,p,{active:!V(i)}),h=ua(m,1,`slashed-preview__mode-btn svelte-g79qke`,null,h,{active:V(i)}),G(be,V(s)||`/* (defaults — no overrides set) */`)}),H(`click`,f,()=>F(i,!1)),H(`click`,m,()=>F(i,!0)),H(`click`,y,e=>e.preventDefault()),W(e,c),Ze()}Oi([`click`]);var ll=U(` `),ul=U(`Saving…`),dl=U(`Saved`),fl=U(`Unsaved changes`),pl=U(`All changes saved`),ml=U(`
            `);function hl(e,t){Xe(t,!0);let n=[`contrast`,`radius`,`shadows`,`motion`,`zindex`];async function r(){if(!$.saving){$.saving=!0,$.error=``;try{if($.activeTab===`misc`){let e=await Promise.allSettled(n.map(e=>yo(e,Q[e]??{}))),t=[];if(e.forEach((e,r)=>{e.status===`fulfilled`?e.value?.values&&(Q[n[r]]=e.value.values):t.push(n[r])}),t.length>0)throw Error(`Failed to save: ${t.join(`, `)}`)}else{let e=$.activeTab,t=await yo(e,Q[e]??{});t&&t.values&&(Q[e]=t.values)}$.dirty=!1,$.lastSavedAt=Date.now()}catch(e){$.error=e&&e.message||String(e)}finally{$.saving=!1}}}async function i(){if(!$.saving&&confirm(`Reset the ${Z.tabs[$.activeTab]??$.activeTab} tab to defaults?`)){$.saving=!0,$.error=``;try{if($.activeTab===`misc`){let e=await Promise.allSettled(n.map(e=>bo(e))),t=[];if(e.forEach((e,r)=>{e.status===`fulfilled`?Wa(n[r]):t.push(n[r])}),t.length>0)throw Error(`Failed to reset: ${t.join(`, `)}`)}else await bo($.activeTab),Wa($.activeTab);$.dirty=!1,$.lastSavedAt=Date.now()}catch(e){$.error=e&&e.message||String(e)}finally{$.saving=!1}}}let a=P(!1);Ar(()=>{if($.lastSavedAt){F(a,!0);let e=setTimeout(()=>F(a,!1),2e3);return()=>clearTimeout(e)}});let o=M(()=>zs(Q));function s(){let e=Rs(Q);if(!e)return;let t=new Blob([e],{type:`text/css`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`slashed-custom.css`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}var c=ml();let l;var u=I(c),d=I(u),f=e=>{var t=ll(),n=I(t,!0);D(t),R(()=>G(n,$.error)),W(e,t)},p=e=>{W(e,ul())},m=e=>{W(e,dl())},h=e=>{W(e,fl())},g=e=>{W(e,pl())};K(d,e=>{$.error?e(f):$.saving?e(p,1):V(a)?e(m,2):$.dirty?e(h,3):e(g,-1)}),D(u);var _=L(u,2),v=I(_),y=L(v,2),b=L(y,2),x=I(b,!0);D(b),D(_),D(c),R(()=>{l=ua(c,1,`bar svelte-1oj49qa`,null,l,{dirty:$.dirty}),v.disabled=$.saving,y.disabled=!V(o),b.disabled=$.saving||!$.dirty,G(x,$.saving?`Saving…`:`Save changes`)}),H(`click`,v,i),H(`click`,y,s),H(`click`,b,r),W(e,c),Ze()}Oi([`click`]);var gl=U(` `),_l=U(`

            SLASHED Design Tokens

            Adjust framework tokens, inspect generated variables, and manage the bundled CSS in one place.

            `);function vl(e,t){Xe(t,!0);let n=[`cheatsheet`,`export`,`wcag`,`rebemer`],r=M(()=>n.includes($.activeTab));Ar(()=>{function e(e){$.dirty&&(e.preventDefault(),e.returnValue=``)}return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)});var i=_l(),a=I(i),o=I(a),s=L(I(o),4),c=I(s),l=e=>{var t=gl(),n=I(t);D(t),R(()=>G(n,`Framework ${Z.versions.framework??``}`)),W(e,t)};K(c,e=>{Z.versions.framework&&e(l)});var u=L(c,2),d=e=>{var t=gl(),n=I(t);D(t),R(()=>G(n,`Plugin v${Z.versions.plugin??``}`)),W(e,t)};K(u,e=>{Z.versions.plugin&&e(d)}),D(s),D(o),Be(2),D(a);var f=L(a,2);Xa(f,{});var p=L(f,2),m=I(p),h=e=>{co(e,{})},g=e=>{$o(e,{})},_=e=>{os(e,{})},v=e=>{Kc(e,{})},y=e=>{vs(e,{})},b=e=>{rl(e,{})},x=e=>{Ws(e,{})},S=e=>{nc(e,{})},ee=e=>{Uc(e,{})};K(m,e=>{$.activeTab===`colors`?e(h):$.activeTab===`typography`?e(g,1):$.activeTab===`spacing`?e(_,2):$.activeTab===`layouts`?e(v,3):$.activeTab===`misc`?e(y,4):$.activeTab===`rebemer`?e(b,5):$.activeTab===`export`?e(x,6):$.activeTab===`cheatsheet`?e(S,7):$.activeTab===`wcag`&&e(ee,8)}),D(p);var C=L(p,2);cl(C,{});var w=L(C,2),te=e=>{hl(e,{})};K(w,e=>{V(r)||e(te)}),D(i),W(e,i),Ze()}var yl=document.getElementById(`slashed-admin-app`);yl&&Li(vl,{target:yl}); //# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js b/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js index 9a5557a2..d3a43b49 100644 --- a/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js +++ b/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js @@ -1,7 +1,7 @@ var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}function h(e,t){if(m(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(m(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return m(t)==`symbol`?t:t+``}function _(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=1024,y=2048,b=4096,x=8192,S=16384,ee=32768,te=1<<25,ne=65536,C=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),fe=Symbol(`attributes`),pe=Symbol(`class`),me=Symbol(`style`),he=Symbol(`text`),ge=Symbol(`form reset`),_e=new class extends Error{constructor(...e){super(...e),_(this,`name`,`StaleReactionError`),_(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},ve=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function be(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function xe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function De(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ke(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ae(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var je={},w=Symbol(`uninitialized`);function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Pe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Fe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function Ie(e){T=e}var E;function Le(e){if(e===null)throw Ne(),je;return E=e}function Re(){return Le(ur(E))}function D(e){if(T){if(ur(E)!==null)throw Ne(),je;E=e}}function ze(e=1){if(T){for(var t=e,n=E;t--;)n=ur(n);E=n}}function Be(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ur(n);e&&n.remove(),n=i}}function Ve(e){if(!e||e.nodeType!==8)throw Ne(),je;return e.data}function He(e){return e===this.v}function Ue(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function We(e){return!Ue(e,this.v)}var Ge=!1,Ke=!1,O=null;function qe(e){O=e}function Je(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:G,l:Ke&&!t?{s:null,u:null,$:[]}:null}}function Ye(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)Tr(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Xe(){return!Ke||O!==null&&O.l===null}var Ze=[];function Qe(){var e=Ze;Ze=[],f(e)}function $e(e){if(Ze.length===0&&!on){var t=Ze;queueMicrotask(()=>{t===Ze&&Qe()})}Ze.push(e)}function et(){for(;Ze.length>0;)Qe()}function tt(e){var t=G;if(t===null)return W.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;nt(e,t)}function nt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var rt=~(y|b|v);function k(e,t){e.f=e.f&rt|t}function it(e){e.f&512||e.deps===null?k(e,v):k(e,b)}function at(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,at(t.deps))}function ot(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),at(e.deps),k(e,v)}var st=!1,ct=!1;function lt(e){var t=ct;try{return ct=!1,[e(),ct]}finally{ct=t}}function ut(e){let t=0,n=Jn(0),r;return()=>{Sr()&&(K(n),kr(()=>(t===0&&(r=gi(()=>e(()=>Qn(n)))),t+=1,()=>{$e(()=>{--t,t===0&&(r?.(),r=void 0,Qn(n))})})))}}function dt(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function ft(e,t){dt(e,t),t.add(e)}function A(e,t,n){dt(e,t),t.set(e,n)}function j(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function M(e,t,n){return e.set(j(e,t),n),n}function N(e,t){return e.get(j(e,t))}var pt=ne|C;function mt(e,t,n,r){new jt(e,t,n,r)}var ht=new WeakMap,gt=new WeakMap,_t=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap,P=new WeakSet,jt=class{constructor(e,t,n,r){ft(this,P),_(this,`parent`,void 0),_(this,`is_pending`,!1),_(this,`transform_error`,void 0),A(this,ht,void 0),A(this,gt,T?E:null),A(this,_t,void 0),A(this,vt,void 0),A(this,yt,void 0),A(this,bt,null),A(this,xt,null),A(this,St,null),A(this,Ct,null),A(this,wt,0),A(this,Tt,0),A(this,Et,!1),A(this,Dt,new Set),A(this,Ot,new Set),A(this,kt,null),A(this,At,ut(()=>(M(kt,this,Jn(N(wt,this))),()=>{M(kt,this,null)}))),M(ht,this,e),M(_t,this,t),M(vt,this,e=>{var t=G;t.b=this,t.f|=128,n(e)}),this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),M(yt,this,Ar(()=>{if(T){let e=N(gt,this);Re();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));j(P,this,Nt).call(this,t)}else t?j(P,this,Pt).call(this):j(P,this,Mt).call(this)}else j(P,this,Ft).call(this)},pt)),T&&M(ht,this,E)}defer_effect(e){ot(e,N(Dt,this),N(Ot,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!N(_t,this).pending}update_pending_count(e,t){j(P,this,Rt).call(this,e,t),M(wt,this,N(wt,this)+e),!(!N(kt,this)||N(Et,this))&&(M(Et,this,!0),$e(()=>{M(Et,this,!1),N(kt,this)&&Xn(N(kt,this),N(wt,this))}))}get_effect_pending(){return N(At,this).call(this),K(N(kt,this))}error(e){if(!N(_t,this).onerror&&!N(_t,this).failed)throw e;I?.is_fork?(N(bt,this)&&I.skip_effect(N(bt,this)),N(xt,this)&&I.skip_effect(N(xt,this)),N(St,this)&&I.skip_effect(N(St,this)),I.oncommit(()=>{j(P,this,zt).call(this,e)})):j(P,this,zt).call(this,e)}};function Mt(){try{M(bt,this,jr(()=>N(vt,this).call(this,N(ht,this))))}catch(e){this.error(e)}}function Nt(e){let t=N(_t,this).failed;t&&M(St,this,jr(()=>{t(N(ht,this),()=>e,()=>()=>{})}))}function Pt(){let e=N(_t,this).pending;e&&(this.is_pending=!0,M(xt,this,jr(()=>e(N(ht,this)))),$e(()=>{var e=M(Ct,this,document.createDocumentFragment()),t=cr();e.append(t),M(bt,this,j(P,this,Lt).call(this,()=>jr(()=>N(vt,this).call(this,t)))),N(Tt,this)===0&&(N(ht,this).before(e),M(Ct,this,null),Rr(N(xt,this),()=>{M(xt,this,null)}),j(P,this,It).call(this,I))}))}function Ft(){try{if(this.is_pending=this.has_pending_snippet(),M(Tt,this,0),M(wt,this,0),M(bt,this,jr(()=>{N(vt,this).call(this,N(ht,this))})),N(Tt,this)>0){var e=M(Ct,this,document.createDocumentFragment());Hr(N(bt,this),e);let t=N(_t,this).pending;M(xt,this,jr(()=>t(N(ht,this))))}else j(P,this,It).call(this,I)}catch(e){this.error(e)}}function It(e){this.is_pending=!1,e.transfer_effects(N(Dt,this),N(Ot,this))}function Lt(e){var t=G,n=W,r=O;Yr(N(yt,this)),Jr(N(yt,this)),qe(N(yt,this).ctx);try{return Dn.ensure(),e()}catch(e){return tt(e),null}finally{Yr(t),Jr(n),qe(r)}}function Rt(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;j(P,n=this.parent,Rt).call(n,e,t)}return}M(Tt,this,N(Tt,this)+e),N(Tt,this)===0&&(j(P,this,It).call(this,t),N(xt,this)&&Rr(N(xt,this),()=>{M(xt,this,null)}),N(Ct,this)&&(N(ht,this).before(N(Ct,this)),M(Ct,this,null)))}function zt(e){N(bt,this)&&(Fr(N(bt,this)),M(bt,this,null)),N(xt,this)&&(Fr(N(xt,this)),M(xt,this,null)),N(St,this)&&(Fr(N(St,this)),M(St,this,null)),T&&(Le(N(gt,this)),ze(),Le(Be()));var t=N(_t,this).onerror;let n=N(_t,this).failed;var r=!1,i=!1;let a=()=>{if(r){Fe();return}r=!0,i&&Ae(),N(St,this)!==null&&Rr(N(St,this),()=>{M(St,this,null)}),j(P,this,Lt).call(this,()=>{j(P,this,Ft).call(this)})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){nt(e,N(yt,this)&&N(yt,this).parent)}n&&M(St,this,j(P,this,Lt).call(this,()=>{try{return jr(()=>{var t=G;t.b=this,t.f|=128,n(N(ht,this),()=>e,()=>a)})}catch(e){return nt(e,N(yt,this).parent),null}}))};$e(()=>{var t;try{t=this.transform_error(e)}catch(e){nt(e,N(yt,this)&&N(yt,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>nt(e,N(yt,this)&&N(yt,this).parent)):o(t)})}function Bt(e,t,n,r){let i=Xe()?Wt:qt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=G,c=Vt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){nt(e,s)}Ht()}}var d=Ut();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Kt(e))).then(u).catch(e=>nt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Ht()}):f()}function Vt(){var e=G,t=W,n=O,r=I;return function(i=!0){Yr(e),Jr(t),qe(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ht(e=!0){Yr(null),Jr(null),qe(null),e&&I?.deactivate()}function Ut(){var e=G,t=e.b,n=I,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Wt(e){var t=2|y;return G!==null&&(G.f|=C),{ctx:O,deps:null,effects:null,equals:He,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:G,ac:null}}var Gt=Symbol(`obsolete`);function Kt(e,t,n){let r=G;r===null&&be();var i=void 0,a=Jn(w),o=!W,s=new Set;return Or(()=>{var t=G,n=p();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==_e&&n.reject(e)}).finally(Ht)}catch(e){n.reject(e),Ht()}var c=I;if(o){if(t.f&32768)var l=Ut();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Gt);else for(let e of s.values())e.reject(Gt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Gt&&(c.activate(),t?(a.f|=ce,Xn(a,t)):(a.f&8388608&&(a.f^=ce),Xn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Cr(()=>{for(let e of s)e.reject(Gt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function F(e){let t=Wt(e);return Ge||Zr(t),t}function qt(e){let t=Wt(e);return t.equals=We,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;nthis.schedule(e)){var n=N(wn,this).get(e);if(n){N(wn,this).delete(e);for(var r of n.d)k(r,y),t(r);for(r of n.m)k(r,b),t(r)}N(Tn,this).add(e)}capture(e,t,n=!1){e.v!==w&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),rn?.set(e,t)),this.is_fork||(e.v=t)}activate(){I=this}deactivate(){I=null,rn=null}flush(){try{sn=!0,I=this,j(L,this,kn).call(this)}finally{un=0,an=null,cn=null,ln=null,sn=!1,I=null,rn=null,Kn.clear()}}discard(){for(let e of N(gn,this))e(this);N(gn,this).clear();for(let e of this.async_deriveds.values())e.reject(Gt);j(L,this,Fn).call(this),N(yn,this)?.resolve()}register_created_effect(e){N(xn,this).push(e)}increment(e,t){if(M(_n,this,N(_n,this)+1),e){let e=N(vn,this).get(t)??0;N(vn,this).set(t,e+1)}}decrement(e,t){if(M(_n,this,N(_n,this)-1),e){let e=N(vn,this).get(t)??0;e===1?N(vn,this).delete(t):N(vn,this).set(t,e-1)}N(En,this)||(M(En,this,!0),$e(()=>{M(En,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)N(Sn,this).add(t);for(let e of t)N(Cn,this).add(e);e.clear(),t.clear()}oncommit(e){N(hn,this).add(e)}ondiscard(e){N(gn,this).add(e)}settled(){return(N(yn,this)??M(yn,this,p())).promise}static ensure(){if(I===null){let t=I=new e;!sn&&!on&&$e(()=>{N(fn,t)||t.flush()})}return I}apply(){if(!Ge||!this.is_fork&&N(pn,this)===null&&N(mn,this)===null){rn=null;return}rn=new Map;for(let[e,[t]]of this.current)rn.set(e,t);for(let t=en;t!==null;t=N(mn,t))if(!(t===this||t.is_fork)){var e=!1;if(t.id1e3&&(j(L,this,Fn).call(this),Ln());for(let e of N(Sn,this))N(Cn,this).delete(e),k(e,y),this.schedule(e);for(let e of N(Cn,this))k(e,b),this.schedule(e);let e=N(bn,this);M(bn,this,[]),this.apply();var t=cn=[],n=[],r=ln=[];for(let r of e)try{j(L,this,An).call(this,r,t,n)}catch(e){throw Wn(r),j(L,this,On).call(this)||this.discard(),e}if(I=null,r.length>0){var i=$t.ensure();for(let e of r)i.schedule(e)}if(cn=null,ln=null,j(L,this,On).call(this)){j(L,this,Nn).call(this,n),j(L,this,Nn).call(this,t);for(let[e,t]of N(wn,this))Un(e,t);r.length>0&&j(L,I,kn).call(I);return}let a=j(L,this,jn).call(this);if(a){j(L,this,Nn).call(this,n),j(L,this,Nn).call(this,t),j(L,a,Mn).call(a,this);return}N(Sn,this).clear(),N(Cn,this).clear();for(let e of N(hn,this))e(this);N(hn,this).clear(),nn=this,zn(n),zn(t),nn=null,N(yn,this)?.resolve();var o=I;if(N(_n,this)===0&&(N(bn,this).length===0||o!==null)&&(j(L,this,Fn).call(this),Ge&&(j(L,this,Pn).call(this),I=o)),N(bn,this).length>0)if(o!==null){let e=o;N(bn,e).push(...N(bn,this).filter(t=>!N(bn,e).includes(t)))}else o=this;o!==null&&j(L,o,kn).call(o)}function An(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||N(wn,this).has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):Ge&&i&16777224?n.push(r):si(r)&&(i&16&&N(Cn,this).add(r),fi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function jn(){for(var e=N(pn,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=N(pn,e)}return null}function Mn(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(N(Sn,e),N(Cn,e));let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(N(Cn,this).delete(i),k(i,y),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),j(L,e,Fn).call(e),I=this,j(L,this,kn).call(this)}function Nn(e){for(var t=0;t!u.current.get(e)[1]);if(!(!N(fn,u)||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of N(Tn,this))u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):j(L,u,Nn).call(u,[e])});u.activate();var a=new Set,o=new Map;for(var s of t)Bn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return n?n[0]!==t[0]||n[1]!==t[1]:!0}).map(([e])=>e);if(c.length>0)for(let e of N(xn,this))!(e.f&155648)&&Vn(e,c,o)&&(e.f&4194320?(k(e,y),u.schedule(e)):N(Sn,u).add(e));if(N(bn,u).length>0&&!N(En,u)){u.apply();for(var l of N(bn,u))j(L,u,An).call(u,l,[],[]);M(bn,u,[])}u.deactivate()}}}}function Fn(){if(this.linked){var e=N(pn,this),t=N(mn,this);e===null?en=t:M(mn,e,t),t===null?tn=e:M(pn,t,e),this.linked=!1}}function In(e){var t=on;on=!0;try{var n;for(e&&(I!==null&&!I.is_fork&&I.flush(),n=e());;){if(et(),I===null)return n;I.flush()}}finally{on=t}}function Ln(){try{Te()}catch(e){nt(e,an)}}var Rn=null;function zn(e){var t=e.length;if(t!==0){for(var n=0;n0)){Kn.clear();for(let e of Rn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Rn.has(n)&&(Rn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||fi(n)}}Rn.clear()}}Rn=null}}function Bn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Bn(i,t,n,r):e&4194320&&!(e&2048)&&Vn(i,t,r)&&(k(i,y),Hn(i))}}function Vn(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&Vn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Hn(e){I.schedule(e)}function Un(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,v);for(var n=e.first;n!==null;)Un(n,t),n=n.next}}function Wn(e){k(e,v);for(var t=e.first;t!==null;)Wn(t),t=t.next}var Gn=new Set,Kn=new Map,qn=!1;function Jn(e,t){return{f:0,v:e,reactions:null,equals:He,rv:0,wv:0}}function R(e,t){let n=Jn(e,t);return Zr(n),n}function Yn(e,t=!1,n=!0){let r=Jn(e);if(t||(r.equals=We),Ke&&n&&O!==null&&O.l!==null){var i;((i=O.l).s??(i.s=[])).push(r)}return r}function z(e,t,n=!1){return W!==null&&(!qr||W.f&131072)&&Xe()&&W.f&4325394&&(Xr===null||!Xr.has(e))&&ke(),Xn(e,n?er(t):t,ln)}function Xn(e,t,n=null){if(!e.equals(t)){Kn.set(e,Gr?t:e.v);var r=Dn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Yt(t),rn===null&&it(t)}e.wv=oi(),$n(e,y,n),Xe()&&G!==null&&G.f&1024&&!(G.f&96)&&(ei===null?ti([e]):ei.push(e)),!r.is_fork&&Gn.size>0&&!qn&&Zn()}return t}function Zn(){qn=!1;for(let e of Gn){e.f&1024&&k(e,b);let t;try{t=si(e)}catch{t=!0}t&&fi(e)}Gn.clear()}function Qn(e){z(e,e.v+1)}function $n(e,t,n){var r=e.reactions;if(r!==null)for(var i=Xe(),a=r.length,o=0;o{if(ii===d)return e();var t=W,n=ii;Jr(null),ai(d);var r=e();return Jr(t),ai(n),r};return i&&r.set(`length`,R(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&De();var i=r.get(t);return i===void 0?f(()=>{var e=R(n.value,u);return r.set(t,e),e}):z(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>R(w,u));r.set(t,e),Qn(o)}}else z(n,w),Qn(o);return!0},get(e,n,i){if(n===le)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>R(er(s?e[n]:w),u)),r.set(n,o)),o!==void 0){var c=K(o);return c===w?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=K(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==w)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==w||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>R(i?er(e[t]):w,u)),r.set(t,n)),K(n)===w)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;dR(w,u)),r.set(d+``,p)):z(p,w)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>R(void 0,u)),z(c,er(n)),r.set(t,c));else{l=c.v!==w;var m=f(()=>er(n));z(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&z(g,_+1)}Qn(o)}return!0},ownKeys(e){K(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==w});for(var[n,i]of r)i.v!==w&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Oe()}})}function tr(e){try{if(typeof e==`object`&&e&&le in e)return e[le]}catch{}return e}function nr(e,t){return Object.is(tr(e),tr(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var rr,ir,ar,or;function sr(){if(rr===void 0){rr=window,ir=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ar=a(t,`firstChild`).get,or=a(t,`nextSibling`).get,u(e)&&(e[pe]=void 0,e[fe]=null,e[me]=void 0,e.__e=void 0),u(n)&&(n[he]=void 0)}}function cr(e=``){return document.createTextNode(e)}function lr(e){return ar.call(e)}function ur(e){return or.call(e)}function B(e,t){if(!T)return lr(e);var n=lr(E);if(n===null)n=E.appendChild(cr());else if(t&&n.nodeType!==3){var r=cr();return n?.before(r),Le(r),r}return t&&mr(n),Le(n),n}function V(e,t=!1){if(!T){var n=lr(e);return n instanceof Comment&&n.data===``?ur(n):n}if(t){if(E?.nodeType!==3){var r=cr();return E?.before(r),Le(r),r}mr(E)}return E}function H(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=ur(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=cr();return r===null?i?.after(a):r.before(a),Le(a),a}mr(r)}return Le(r),r}function dr(e){e.textContent=``}function fr(){return!Ge||Rn!==null?!1:(G.f&ee)!==0}function pr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function mr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var hr=!1;function gr(){hr||(hr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ge]?.()})},{capture:!0}))}function _r(e){var t=W,n=G;Jr(null),Yr(null);try{return e()}finally{Jr(t),Yr(n)}}function vr(e,t,n,r=n){e.addEventListener(t,()=>_r(n));let i=e[ge];i?e[ge]=()=>{i(),r(!0)}:e[ge]=()=>r(!0),gr()}function yr(e){G===null&&(W===null&&we(e),Ce()),Gr&&Se(e)}function br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function xr(e,t){var n=G;n!==null&&n.f&8192&&(e|=x);var r={ctx:O,deps:null,nodes:null,f:e|y|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};I?.register_created_effect(r);var i=r;if(e&4)cn===null?Dn.ensure().schedule(r):cn.push(r);else if(t!==null){try{fi(r)}catch(e){throw Fr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&br(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??(a.effects=[])).push(i)}return r}function Sr(){return W!==null&&!qr}function Cr(e){let t=xr(8,null);return k(t,v),t.teardown=e,t}function wr(e){yr(`$effect`);var t=G.f;if(!W&&t&32&&O!==null&&!O.i){var n=O;(n.e??(n.e=[])).push(e)}else return Tr(e)}function Tr(e){return xr(4|re,e)}function Er(e){Dn.ensure();let t=xr(64|C,e);return(e={})=>new Promise(n=>{e.outro?Rr(t,()=>{Fr(t),n(void 0)}):(Fr(t),n(void 0))})}function Dr(e){return xr(4,e)}function Or(e){return xr(se|C,e)}function kr(e,t=0){return xr(8|t,e)}function U(e,t=[],n=[],r=[]){Bt(r,t,n,t=>{xr(8,()=>{e(...t.map(K))})})}function Ar(e,t=0){return xr(16|t,e)}function jr(e){return xr(32|C,e)}function Mr(e){var t=e.teardown;if(t!==null){let e=Gr,n=W;Kr(!0),Jr(null);try{t.call(null)}finally{Kr(e),Jr(n)}}}function Nr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&_r(()=>{e.abort(_e)});var r=n.next;n.f&64?n.parent=null:Fr(n,t),n=r}}function Pr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Fr(t),t=n}}function Fr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Ir(e.nodes.start,e.nodes.end),n=!0),e.f|=te,Nr(e,t&&!n),di(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Mr(e),e.f^=te,e.f|=S;var i=e.parent;i!==null&&i.first!==null&&Lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Ir(e,t){for(;e!==null;){var n=e===t?null:ur(e);e.remove(),e=n}}function Lr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Rr(e,t,n=!0){var r=[];zr(e,r,!0);var i=()=>{n&&Fr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function zr(e,t,n){if(!(e.f&8192)){e.f^=x;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;zr(i,t,o?n:!1)}i=a}}}function Br(e){Vr(e,!0)}function Vr(e,t){if(e.f&8192){e.f^=x,e.f&1024||(k(e,y),Dn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Vr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ur(n);t.append(n),n=i}}var Ur=null,Wr=!1,Gr=!1;function Kr(e){Gr=e}var W=null,qr=!1;function Jr(e){W=e}var G=null;function Yr(e){G=e}var Xr=null;function Zr(e){W!==null&&(!Ge||W.f&2)&&(Xr??(Xr=new Set)).add(e)}var Qr=null,$r=0,ei=null;function ti(e){ei=e}var ni=1,ri=0,ii=ri;function ai(e){ii=e}function oi(){return++ni}function si(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&rn===null&&k(e,v)}return!1}function ci(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ge&&Xr!==null&&Xr.has(e)))for(var i=0;i{e.ac.abort(_e)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=ee;var f=e.deps,p=I?.is_fork;if(Qr!==null){var m;if(p||di(e,$r),f!==null&&$r>0)for(f.length=$r+Qr.length,m=0;m{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),In()}function K(e){var t=(e.f&2)!=0;if(Ur?.add(e),W!==null&&!qr&&!(G!==null&&G.f&16384)&&(Xr===null||!Xr.has(e))){var r=W.deps;if(W.f&2097152)e.rvn?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?$e(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ci(e,t,n,r,i){var a={capture:r,passive:i},o=Si(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Cr(()=>{t.removeEventListener(e,o,a)})}function q(e,t,n){(t[yi]??(t[yi]={}))[e]=n}function wi(e){for(var t=0;t{throw e});throw p}}finally{e[yi]=t,delete e.currentTarget,Jr(d),Yr(f)}}}var Di=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Oi(e){return Di?.createHTML(e)??e}function ki(e){var t=pr(`template`);return t.innerHTML=Oi(e.replaceAll(``,``)),t.content}function Ai(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(``);return()=>{if(T)return Ai(E,null),E;i===void 0&&(i=ki(a?e:``+e),n||(i=lr(i)));var t=r||ir?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=lr(t),s=t.lastChild;Ai(o,s)}else Ai(t,t);return t}}function ji(e=``){if(!T){var t=cr(e+``);return Ai(t,t),t}var n=E;return n.nodeType===3?mr(n):(n.before(n=cr()),Le(n)),Ai(n,n),n}function Mi(){if(T)return Ai(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=cr();return e.append(t,n),Ai(t,n),e}function Y(e,t){if(T){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Re();return}e!==null&&e.before(t)}function X(e,t){var n,r=t==null?``:typeof t==`object`?`${t}`:t;r!==((n=e)[he]??(n[he]=e.nodeValue))&&(e[he]=r,e.nodeValue=`${r}`)}function Ni(e,t){return Fi(e,t)}var Pi=new Map;function Fi(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){sr();var l=void 0,u=Er(()=>{var s=n??t.appendChild(cr());mt(s,{pending:()=>{}},t=>{Je({});var n=O;if(o&&(n.c=o),a&&(i.$$events=a),T&&Ai(t,null),l=e(t,i)||{},T&&(G.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Ne(),je;Ye()},c);var u=new Set,d=e=>{for(var n=0;n{for(var e of u)for(let n of[t,document]){var r=Pi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ei),r.delete(e),r.size===0&&Pi.delete(n)):r.set(e,i)}xi.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Ii.set(l,u),l}var Ii=new WeakMap;function Li(e,t){let n=Ii.get(e);return n?(Ii.delete(e),n(t)):Promise.resolve()}var Ri=new WeakMap,zi=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,Hi=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Gi=class{constructor(e,t=!0){_(this,`anchor`,void 0),A(this,Ri,new Map),A(this,zi,new Map),A(this,Bi,new Map),A(this,Vi,new Set),A(this,Hi,!0),A(this,Ui,e=>{if(N(Ri,this).has(e)){var t=N(Ri,this).get(e),n=N(zi,this).get(t);if(n)Br(n),N(Vi,this).delete(t);else{var r=N(Bi,this).get(t);r&&(Br(r.effect),N(zi,this).set(t,r.effect),N(Bi,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of N(Ri,this)){if(N(Ri,this).delete(t),t===e)break;let r=N(Bi,this).get(n);r&&(Fr(r.effect),N(Bi,this).delete(n))}for(let[e,r]of N(zi,this)){if(e===t||N(Vi,this).has(e))continue;let i=()=>{if(Array.from(N(Ri,this).values()).includes(e)){var t=document.createDocumentFragment();Hr(r,t),t.append(cr()),N(Bi,this).set(e,{effect:r,fragment:t})}else Fr(r);N(Vi,this).delete(e),N(zi,this).delete(e)};N(Hi,this)||!n?(N(Vi,this).add(e),Rr(r,i,!1)):i()}}}),A(this,Wi,e=>{N(Ri,this).delete(e);let t=Array.from(N(Ri,this).values());for(let[e,n]of N(Bi,this))t.includes(e)||(Fr(n.effect),N(Bi,this).delete(e))}),this.anchor=e,M(Hi,this,t)}ensure(e,t){var n=I,r=fr();if(t&&!N(zi,this).has(e)&&!N(Bi,this).has(e))if(r){var i=document.createDocumentFragment(),a=cr();i.append(a),N(Bi,this).set(e,{effect:jr(()=>t(a)),fragment:i})}else N(zi,this).set(e,jr(()=>t(this.anchor)));if(N(Ri,this).set(n,e),r){for(let[t,r]of N(zi,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of N(Bi,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(N(Ui,this)),n.ondiscard(N(Wi,this))}else T&&(this.anchor=E),N(Ui,this).call(this,n)}};function Z(e,t,n=!1){var r;T&&(r=E,Re());var i=new Gi(e),a=n?ne:0;function o(e,t){if(T){var n=Ve(r);if(e!==parseInt(n.substring(1))){var a=Be();Le(a),i.anchor=a,Ie(!1),i.ensure(e,t),Ie(!0);return}}i.ensure(e,t)}Ar(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ki(e,t){return t}function qi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Ji(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=i.length===0&&n!==null;if(l){var u=n,d=u.parentNode;dr(d),d.append(u),e.items.clear()}Ji(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Ji(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Zi(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,$i(d,null,c)):Br(d):Rr(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Ar(()=>{p=K(f);var e=p.length;let t=!1;T&&Ve(c)===`[!`!=(e===0)&&(c=Be(),Le(c),Ie(!1),t=!0);for(var r=new Set,u=I,v=fr(),y=0;ys(c)):(d=jr(()=>s(Yi??(Yi=cr()))),d.f|=ie)),e>r.size&&xe(``,``,``),T&&e>0&&Le(Be()),!h)if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Ie(!0),K(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function Xi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Zi(e,t,n,i,a){var o=(i&8)!=0,s=t.length,c=e.items,l=Xi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v0){var C=i&4&&s===0?n:null;if(o){for(v=0;v{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Qi(e,t,n,r,i,a,o,s){var c=o&1?o&16?Jn(n):Yn(n,!1,!1):null,l=o&2?Jn(i):null;return{v:c,i:l,e:jr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function $i(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=ur(r);if(a.before(r),r===i)return;r=o}}function ea(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var ta=[...` -\r\f\xA0\v`];function na(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ta.includes(r[o-1]))&&(s===r.length||ta.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ra(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ia(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function aa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ia)),i&&c.push(...Object.keys(i).map(ia));var l=0,u=-1;let t=e.length;for(var d=0;d{la(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Cr(()=>{t.disconnect()})}function da(e,t,n=t){var r=new WeakSet,i=!0;vr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),fa);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&fa(o)}n(a),e.__value=a,I!==null&&r.add(I)}),Dr(()=>{var a=t();if(e===document.activeElement){var o=Ge?nn:I;if(r.has(o))return}if(la(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=fa(s),n(a))}e.__value=a,i=!1}),ua(e)}function fa(e){return`__value`in e?e.__value:e.value}var pa=Symbol(`is custom element`),ma=Symbol(`is html`),ha=ve?`link`:`LINK`;function ga(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$(e,`checked`,null),e.checked=r}}};e[ge]=n,$e(n),gr()}}function $(e,t,n,r){var i=_a(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ha)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _a(e){var t;return(t=e)[fe]??(t[fe]={[pa]:e.nodeName.includes(`-`),[ma]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var va=new Map;function ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function ba(e,t,n=t){var r=new WeakSet;vr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Sa(e)?Ca(a):a,n(a),I!==null&&r.add(I),await pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||gi(t)==null&&e.value)&&(n(Sa(e)?Ca(e.value):e.value),I!==null&&r.add(I)),kr(()=>{var n=t();if(e===document.activeElement){var i=Ge?nn:I;if(r.has(i))return}Sa(e)&&n===Ca(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function xa(e,t,n=t){vr(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(T&&e.defaultChecked!==e.checked||gi(t)==null)&&n(e.checked),kr(()=>{e.checked=!!t()})}function Sa(e){var t=e.type;return t===`number`||t===`range`}function Ca(e){return e===``?null:+e}var wa,Ta=new WeakMap,Ea=new WeakMap,Da=new WeakMap,Oa=new WeakSet,ka=class{constructor(e){ft(this,Oa),A(this,Ta,new WeakMap),A(this,Ea,void 0),A(this,Da,void 0),M(Da,this,e)}observe(e,t){var n=N(Ta,this).get(e)||new Set;return n.add(t),N(Ta,this).set(e,n),j(Oa,this,Aa).call(this).observe(e,N(Da,this)),()=>{var n=N(Ta,this).get(e);n.delete(t),n.size===0&&(N(Ta,this).delete(e),N(Ea,this).unobserve(e))}}};wa=ka;function Aa(){return N(Ea,this)??M(Ea,this,new ResizeObserver(e=>{for(var t of e){wa.entries.set(t.target,t);for(var n of N(Ta,this).get(t.target)||[])n(t)}}))}_(ka,`entries`,new WeakMap);function ja(e,t){return e===t||e?.[le]===t}function Ma(e={},t,n,r){var i=O.r,a=G;return Dr(()=>{var o,s;return kr(()=>{o=s,s=r?.()||[],gi(()=>{ja(n(...s),e)||(t(e,...s),o&&ja(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ja(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Na(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=Wt(r)),K(u)):(l&&(l=!1,c=s?gi(r):r),c);let f;if(o){var p=le in e||ue in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=lt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ee(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Wt:qt)(()=>(v=!1,g()));o&&K(y);var b=G;return(function(e,t){if(arguments.length>0){let n=t?K(y):i&&o?er(e):e;return z(y,n),v=!0,c!==void 0&&(c=n),e}return Gr&&v||b.f&16384?y.v:K(y)})}function Pa(e){O===null&&ye(`onMount`),Ke&&O.l!==null?Fa(O).m.push(e):wr(()=>{let t=gi(e);if(typeof t==`function`)return t})}function Fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}var Ia=`[data-v-app]`,La=[`header`,`content`,`footer`],Ra=null,za=null;function Ba(e){let t=e instanceof Set?e:new Set(e||[]);for(let e=0;e<16;e++){let e=crypto.randomUUID().replace(/-/g,``).slice(0,8);if(!t.has(e))return e}throw Error(`rebemer: id collision exhausted`)}function Va(){if(typeof document>`u`)return!1;let e=document.querySelector(Ia)?.__vue_app__?.config?.globalProperties?.$_state;return!e||typeof e!=`object`||!Array.isArray(e.globalClasses)?(Ra=null,!1):(Ra=e,za=null,!0)}function Ha(){if(za!==null)return za;let e=typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null;if(!e)return za=!1,!1;let t=e.config?.globalProperties??{};if(typeof Ra?.$history?.pause==`function`&&typeof Ra?.$history?.resume==`function`)return za={pause:()=>Ra.$history.pause(),resume:()=>Ra.$history.resume()},za;let n=t.$_bricksData??t.bricksData;return typeof n?.history?.pause==`function`&&typeof n?.history?.resume==`function`?(za={pause:()=>n.history.pause(),resume:()=>n.history.resume()},za):(za=!1,!1)}function Ua(e){let t=Ha();if(t)try{t.pause(),e()}finally{t.resume()}else e()}function Wa(e){if(!Ra||!e)return null;for(let t of La){let n=Ra[t];if(!Array.isArray(n))continue;let r=n.find(t=>t&&t.id===e);if(r)return r}return null}function Ga(e){let t=Wa(e);if(!t)return[];let n=[{id:t.id,depth:0,label:t.label,name:t.name,settings:t.settings}];return Ka(t,1,n),n}function Ka(e,t,n){if(!(!e||!Array.isArray(e.children)))for(let r of e.children){let e=Wa(r);e&&(n.push({id:e.id,depth:t,label:e.label,name:e.name,settings:e.settings}),Ka(e,t+1,n))}}function qa(){return Ra?Ra.globalClasses:[]}function Ja(e,t){if(!Ra)throw Error(`rebemer: not ready`);let n=Ra.globalClasses,r=n.find(t=>t&&t.name===e);if(r)return r.id;let i=Ba(new Set(n.map(e=>e?.id).filter(Boolean)));return n.push({id:i,name:e,settings:t||{}}),i}function Ya(e,t){let n=Wa(e);if(!n)return;n.settings||(n.settings={});let r=Array.isArray(t)?t:[];Array.isArray(n.settings._cssGlobalClasses)?n.settings._cssGlobalClasses.splice(0,n.settings._cssGlobalClasses.length,...r):n.settings._cssGlobalClasses=[...r]}function Xa(e,t){let n=Wa(e);n&&(n.label=t)}function Za(e){if(!e||typeof e!=`string`||typeof window>`u`)return``;let t=(typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null)?.config?.globalProperties??{},n=[window.bricks?.elements,t.$_bricksData?.elements,t.bricksData?.elements,Ra?.elements];for(let t of n){if(!t)continue;let n=t instanceof Map?t.get(e):t[e],r=n?.label??n?.nicename??n?.title;if(typeof r==`string`&&r.trim())return r}return``}var Qa=`slashed-rebemer-host`,$a=`slashed-class-hint`,eo=[`#bricks-panel`,`.bricks-class-manager`,`#bricks-class-manager`,`[data-control="cssClasses"]`],to=`rebemer-class-hint-btn`,no=50;function ro(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n[0]===`.`&&(n=n.slice(1)),!n.startsWith(`sf-`)&&!n.startsWith(`is-`))||!Object.prototype.hasOwnProperty.call(t,n))return null;let r=t[n];return!r||typeof r.description!=`string`?null:{name:n,description:r.description,category:r.category}}var io={},ao=null,oo=null,so=null,co=null,lo=null;function uo(){if(ao&&ao.isConnected)return ao;let e=document.getElementById(Qa);e||(e=document.createElement(`div`),e.id=Qa,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=$a,t.className=`rebemer-class-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

            `,e.appendChild(t),ao=t,t}function fo(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function po(e){let t=e.dataset.sfClass,n=t?ro(t,io):null;if(!n)return;let r=uo();r.querySelector(`.rebemer-class-hint__name`).textContent=`.${n.name}`;let i=r.querySelector(`.rebemer-class-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category,r.querySelector(`.rebemer-class-hint__desc`).textContent=n.description,r.hidden=!1,fo(r,e),lo=e}function mo(){ao&&(ao.hidden=!0),lo=null}function ho(e){po(e.currentTarget)}function go(){mo()}function _o(e){e.preventDefault(),e.stopPropagation()}function vo(e){e.key===`Escape`&&mo()}function yo(e){let t=ro(e.textContent,io);if(t)return t;let n=e.querySelectorAll(`span, [contenteditable], .name, .label, a`);for(let e of n){let t=ro(e.textContent,io);if(t)return t}return null}function bo(e){return e.querySelector(`.actions, [class*="action"], [class*="icons"], [class*="controls"]`)||e}function xo(){let e=document.createElement(`span`);return e.className=to,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What does this class do?`),e.addEventListener(`mouseenter`,ho),e.addEventListener(`mouseleave`,go),e.addEventListener(`focus`,ho),e.addEventListener(`blur`,go),e.addEventListener(`click`,_o),e}function So(){for(let e of document.querySelectorAll(`.rebemer-class-hint-btn`)){let t=e.closest(`li`),n=t?yo(t):null;n?e.dataset.sfClass!==n.name&&(e.dataset.sfClass=n.name):(lo===e&&mo(),e.remove())}let e=document.querySelectorAll(eo.join(`,`));for(let t of e)for(let e of t.querySelectorAll(`li`)){if(e.querySelector(`.rebemer-class-hint-btn`)||e.querySelector(`li`))continue;let t=yo(e);if(!t)continue;let n=xo();n.dataset.sfClass=t.name,bo(e).appendChild(n)}}function Co(){co===null&&(co=setTimeout(()=>{co=null,So()},no))}function wo(e){let t=eo.join(`,`);for(let n of e){let e=n.target;if(e&&e.nodeType===1){if(e.classList&&e.classList.contains(to))continue;if(e.closest&&e.closest(t))return!0}for(let e of n.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(to))&&(e.matches&&e.matches(t)||e.closest&&e.closest(t)||e.querySelector&&e.querySelector(t)))return!0}return!1}function To(e,t,n={}){if(Eo(),io=t&&typeof t==`object`?t:{},!e||Object.keys(io).length===0)return;oo=new AbortController;let{signal:r}=oo;document.addEventListener(`keydown`,vo,{passive:!0,signal:r}),window.addEventListener(`scroll`,mo,{capture:!0,passive:!0,signal:r}),so=new MutationObserver(e=>{lo&&!lo.isConnected&&mo(),wo(e)&&Co()}),so.observe(document.body,{childList:!0,subtree:!0}),So(),n.signal&&(n.signal.aborted?Eo():n.signal.addEventListener(`abort`,Eo,{once:!0}))}function Eo(){co!==null&&(clearTimeout(co),co=null),so&&(so.disconnect(),so=null),oo&&(oo.abort(),oo=null);try{document.querySelectorAll(`.rebemer-class-hint-btn`).forEach(e=>e.remove())}catch{}ao&&(ao.remove(),ao=null),lo=null,io={}}var Do=`li.variable-picker-item`,Oo=`slashed-var-swatch`,ko=`slashed-sf-color-btn`,Ao=50,jo=(e,...t)=>console[e](`[slashed-swatches]`,...t);function Mo(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n.slice(0,2)!==`--`&&(n=`--`+n.replace(/^-+/,``)),n.indexOf(`--sf-color-`)!==0))return null;let r=t[n];return typeof r==`string`&&r?r:null}var No=!1,Po={},Fo=null,Io=null,Lo=null,Ro=null,zo=new WeakSet;function Bo(e){if(!Fo)return;let t=e.querySelector(`[data-control="text"].color-input`);if(!t)return;let n=e.querySelector(`:scope > .slashed-sf-color-btn`);if(!n){n=document.createElement(`div`),n.className=ko,n.setAttribute(`aria-label`,`SLASHED Colors`),n.setAttribute(`data-balloon`,`SLASHED Colors`),n.setAttribute(`data-balloon-pos`,`top`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`);let r=document.createElement(`span`);r.className=`slashed-sf-color-btn__dot`,r.setAttribute(`aria-hidden`,`true`),n.appendChild(r),n.addEventListener(`click`,n=>{n.stopPropagation();let r=e.querySelector(`[data-control="text"].color-input`);Fo&&Fo(r??t)}),n.addEventListener(`keydown`,e=>{e.key===` `?(e.preventDefault(),n.click()):e.key===`Enter`&&n.click()});let i=e.querySelector(`:scope > .bricks-control-preview`);if(i)e.insertBefore(n,i.nextSibling);else{let t=e.querySelector(`:scope > .input-wrapper`);t?e.insertBefore(n,t):e.appendChild(n)}}if(Vo(n,t),Ro){let e=t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`);e&&!zo.has(e)&&(zo.add(e),e.addEventListener(`input`,()=>Vo(n,t),{signal:Ro.signal}))}}function Vo(e,t){let n=e.querySelector(`.slashed-sf-color-btn__dot`),r=((t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`))?.value??``).match(/^var\((--[^)]+)\)/)?.[1],i=r?Po[r]??null:null;n&&(i?(n.style.background=i,n.style.removeProperty(`box-shadow`)):n.style.removeProperty(`background`)),i?e.style.setProperty(`--sf-active-color`,i):e.style.removeProperty(`--sf-active-color`),e.classList.toggle(`slashed-sf-color-btn--active`,!!i);let a=e.closest(`[data-control="color"]`);if(a){let e=a.querySelector(`:scope > .bricks-control-preview`);e&&Ho(e,!!i)}}function Ho(e,t){let n=e.querySelector(`.bricks-control-transparency-pattern`),r=e.querySelector(`.slashed-sf-preview-label`);t?(n&&n.style.setProperty(`visibility`,`hidden`),r||(r=document.createElement(`span`),r.className=`slashed-sf-preview-label`,r.setAttribute(`aria-hidden`,`true`),r.textContent=`✕`,e.appendChild(r))):(n&&n.style.removeProperty(`visibility`),r&&r.remove())}function Uo(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function Wo(e){if(e.classList.contains(`title`)||e.classList.contains(`category`)){let t=e.querySelector(`:scope > .slashed-var-swatch`);t&&t.remove();return}let t=Mo(Uo(e),Po),n=e.querySelector(`:scope > .slashed-var-swatch`);if(!t){n&&n.remove();return}n||(n=document.createElement(`span`),n.className=Oo,n.setAttribute(`aria-hidden`,`true`),e.insertBefore(n,e.firstChild)),n.dataset.color!==t&&(n.style.setProperty(`--slashed-swatch-color`,t),n.dataset.color=t)}function Go(){try{let e=document.querySelectorAll(Do);for(let t of e)Wo(t)}catch(e){jo(`warn`,`swatch pass failed`,e)}if(Fo)try{document.querySelectorAll(`[data-control="color"]`).forEach(Bo)}catch(e){jo(`warn`,`SF button inject failed`,e)}}function Ko(){Lo===null&&(Lo=setTimeout(()=>{Lo=null,Go()},Ao))}function qo(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest&&(e.closest(Do)||Fo&&e.closest(`[data-control="color"]`)))return!0;for(let e of t.addedNodes)if(e.nodeType===1&&(e.matches&&e.matches(Do)||e.querySelector&&e.querySelector(Do)||Fo&&(e.matches&&e.matches(`[data-control="color"]`)||e.querySelector&&e.querySelector(`[data-control="color"]`))))return!0}return!1}function Jo(e,t,n={}){Yo(),No=!!e,Po=t&&typeof t==`object`?t:{},Fo=typeof n.onOpenPanel==`function`?n.onOpenPanel:null,!(!(No&&Object.keys(Po).length>0)&&!Fo)&&(Ro=new AbortController,Io=new MutationObserver(e=>{qo(e)&&Ko()}),Io.observe(document.body,{childList:!0,subtree:!0}),Go(),n.signal&&(n.signal.aborted?Yo():n.signal.addEventListener(`abort`,Yo,{once:!0})))}function Yo(){Lo!==null&&(clearTimeout(Lo),Lo=null),Io&&(Io.disconnect(),Io=null),Ro&&(Ro.abort(),Ro=null);try{document.querySelectorAll(`.slashed-var-swatch`).forEach(e=>e.remove()),document.querySelectorAll(`.slashed-sf-color-btn`).forEach(e=>e.remove())}catch{}No=!1,Po={},Fo=null,zo=new WeakSet}var Xo=`li.variable-picker-item`,Zo=`slashed-var-hint-btn`,Qo=`slashed-var-hint`,$o=`slashed-rebemer-host`,es=50;function ts(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n))return null;let r=n.replace(/^-+/,``);if(!r||!Object.prototype.hasOwnProperty.call(t,r))return null;let i=t[r];return i?{name:r,category:i.category||``,description:i.description||``}:null}var ns={},rs=null,is=null,as=null,os=null,ss=null;function cs(){if(rs&&rs.isConnected)return rs;let e=document.getElementById($o);e||(e=document.createElement(`div`),e.id=$o,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=Qo,t.className=`slashed-var-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

            `,e.appendChild(t),rs=t,t}function ls(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function us(e){let t=e.dataset.sfVar,n=t?ts(t,ns):null;if(!n)return;let r=cs();r.querySelector(`.slashed-var-hint__name`).textContent=`--`+n.name;let i=r.querySelector(`.slashed-var-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category;let a=r.querySelector(`.slashed-var-hint__desc`);a&&(a.textContent=n.description||``,a.hidden=!n.description),r.hidden=!1,ls(r,e),ss=e}function ds(){rs&&(rs.hidden=!0),ss=null}function fs(e){us(e.currentTarget)}function ps(){ds()}function ms(e){e.preventDefault(),e.stopPropagation()}function hs(e){e.key===`Escape`&&ds()}function gs(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function _s(){let e=document.createElement(`span`);return e.className=Zo,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What is this variable?`),e.addEventListener(`mouseenter`,fs),e.addEventListener(`mouseleave`,ps),e.addEventListener(`focus`,fs),e.addEventListener(`blur`,ps),e.addEventListener(`click`,ms),e}function vs(){for(let e of document.querySelectorAll(`.slashed-var-hint-btn`)){let t=e.closest(`li`),n=t?ts(gs(t),ns):null;n?e.dataset.sfVar!==n.name&&(e.dataset.sfVar=n.name):(ss===e&&ds(),e.remove())}for(let e of document.querySelectorAll(Xo)){if(e.classList.contains(`title`)||e.classList.contains(`category`)||e.querySelector(`.slashed-var-hint-btn`))continue;let t=ts(gs(e),ns);if(!t)continue;let n=_s();n.dataset.sfVar=t.name,e.appendChild(n)}}function ys(){os===null&&(os=setTimeout(()=>{os=null,vs()},es))}function bs(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest){if(e.classList&&e.classList.contains(Zo))continue;if(e.closest(Xo))return!0}for(let e of t.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(Zo))&&(e.matches&&e.matches(Xo)||e.querySelector&&e.querySelector(Xo)))return!0}return!1}function xs(e,t={}){if(Ss(),ns=e&&typeof e==`object`?e:{},Object.keys(ns).length===0)return;is=new AbortController;let{signal:n}=is;document.addEventListener(`keydown`,hs,{passive:!0,signal:n}),window.addEventListener(`scroll`,ds,{capture:!0,passive:!0,signal:n}),as=new MutationObserver(e=>{ss&&!ss.isConnected&&ds(),bs(e)&&ys()}),as.observe(document.body,{childList:!0,subtree:!0}),vs(),t.signal&&(t.signal.aborted?Ss():t.signal.addEventListener(`abort`,Ss,{once:!0}))}function Ss(){os!==null&&(clearTimeout(os),os=null),as&&(as.disconnect(),as=null),is&&(is.abort(),is=null);try{document.querySelectorAll(`.slashed-var-hint-btn`).forEach(e=>e.remove())}catch{}rs&&(rs.remove(),rs=null),ss=null,ns={}}if(typeof window<`u`){var Cs,ws;((Cs=(ws=window).__svelte??(ws.__svelte={})).v??(Cs.v=new Set)).add(`5`)}var Ts=J(`reBEM`);function Es(e,t){Je(t,!0);function n(e){e.stopPropagation(),e.preventDefault(),t.onActivate?.(t.elementId)}var r=Ts();U(()=>{$(r,`title`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`),$(r,`aria-label`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`)}),q(`click`,r,n),q(`keydown`,r,e=>(e.key===`Enter`||e.key===` `)&&n(e)),Y(e,r),Ye()}wi([`click`,`keydown`]);function Ds(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Os=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,ks=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]);function As(e){return e?ks.has(e)?{ok:!1,reason:`"${e}" is a CSS keyword.`}:Os.test(e)?{ok:!0}:{ok:!1,reason:`Use lowercase letters, digits, and hyphens.`}:{ok:!1,reason:`Name is empty.`}}var js=new Set(`_padding._padding_top._padding_right._padding_bottom._padding_left._margin._margin_top._margin_right._margin_bottom._margin_left._width._widthMin._widthMax._minWidth._maxWidth._height._heightMin._heightMax._minHeight._maxHeight._aspectRatio._overflow._overflowX._overflowY._color._background._backgroundColor._backgroundImage._backgroundSize._backgroundPosition._backgroundRepeat._backgroundAttachment._backgroundBlendMode._typography._fontFamily._fontSize._fontWeight._fontStyle._lineHeight._letterSpacing._wordSpacing._textAlign._textTransform._textDecoration._textDecorationColor._textShadow._textIndent._whiteSpace._listStyleType._listStylePosition._border._borderRadius._borderColor._borderStyle._borderWidth._outline._outlineColor._outlineStyle._outlineWidth._outlineOffset._boxShadow._filter._backdropFilter._opacity._blendMode._transform._transformOrigin._transition._animation._display._flexDirection._flexWrap._flexGrow._flexShrink._flexBasis._alignItems._alignSelf._alignContent._justifyContent._justifyItems._justifySelf._gap._rowGap._columnGap._gridTemplateColumns._gridTemplateRows._gridGap._gridAutoFlow._gridAutoColumns._gridAutoRows._gridColumn._gridRow._gridArea._position._top._right._bottom._left._zIndex._objectFit._objectPosition._cursor._pointerEvents._userSelect`.split(`.`));function Ms(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)&&t.push(n);return t.sort(),t}var Ns=new Set([`_cssGlobalClasses`,`_cssClasses`,`_cssId`,`_attributes`,`_hidden`,`_hidden_lg`,`_hidden_md`,`_hidden_sm`,`_hidden_xl`,`_name`,`_label`,`_id`,`tag`,`children`,`parent`]);function Ps(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)||Ns.has(n)||n.startsWith(`_hidden_`)||t.push(n);return t.sort(),t}var Fs=new Set([`add`,`rename`,`replace`,`migrate`,`mixed`]),Is=new Set([`user`,`label`]);function Ls(e,t){let n=new Map,r=[];for(let i of e){for(;r.length&&r[r.length-1].depth>=i.depth;)r.pop();let e=i.id===t,a=!e&&i.isBlockRoot===!0;if(e||a){let e=Ds(i.name);e&&i.include!==!1&&(r.push({depth:i.depth,blockName:e}),n.set(i.id,e))}else{let e=r.length?r[r.length-1].blockName:``;e&&n.set(i.id,e)}}return n}function Rs({rootId:e,rows:t,mode:n}){if(!Fs.has(n))return{ok:!1,ops:[],error:`Invalid mode: ${n}`};let r=t.find(t=>t.id===e);if(!r)return{ok:!1,ops:[],error:`Root row missing.`};if(!Ds(r.name))return{ok:!1,ops:[],error:`Block name is empty.`};let i=[];for(let n of t)!n.isBlockRoot||!n.include||n.id===e||Ds(n.name)||i.push(n.originalLabel||n.id);if(i.length>0)return{ok:!1,ops:[],error:`Block name is empty for: ${i.join(`, `)}.`};let a=Ls(t,e),o=[];for(let n of t){if(!n.include)continue;let t=n.id===e,r=!t&&n.isBlockRoot===!0,i=a.get(n.id);if(!i)continue;let s;if(t||r)s=i;else{let e=Ds(n.name);if(!e)continue;s=`${i}__${e}`}o.push({row:n,isRoot:t||r,blockName:i,finalClass:s,modifierSlugs:[],suggestedFrom:n.suggestedFrom||`fallback`})}if(o.length===0)return{ok:!1,ops:[],error:`No rows to apply. Include at least one row.`};let s=Vs(o);if(!s.ok)return{ok:!1,ops:[],error:s.error};if(n!==`migrate`)for(let e of o)e.modifierSlugs=(Array.isArray(e.row.modifiers)?e.row.modifiers:[]).map(e=>Ds(e)).filter(Boolean);return{ok:!0,ops:o}}function zs({rootId:e,rows:t,mode:n,syncLabels:r,removeExisting:i=!1}){let a=Rs({rootId:e,rows:t,mode:n});if(!a.ok)return{ok:!1,error:a.error};let o=a.ops,s=qa();if(n===`migrate`){let e=Bs(o,s);if(!e.ok)return e}let c=new Map;for(let e of o){if(c.has(e.row.id))continue;let t=Wa(e.row.id);if(!t)continue;let i={classIds:Ws(t.settings).slice(),label:r?t.label??``:null};if(n===`migrate`&&Array.isArray(e.row.migrateKeys)){let n={};for(let r of e.row.migrateKeys)Object.prototype.hasOwnProperty.call(t.settings||{},r)&&(n[r]=JSON.parse(JSON.stringify(t.settings[r])));i.migrateKeys=n}c.set(e.row.id,i)}let l=0;try{Ua(()=>{for(let e of o){let t=Wa(e.row.id);if(!t)continue;let a=Ws(t.settings),o=e.row.op??`add`,c=n===`mixed`?[`add`,`rename`,`replace`].includes(o)?o:`add`:n,u=i&&(c===`rename`||c===`replace`),d={};if(c===`rename`&&a.length>0){let t=e.row.renameFamilyId||a[0],n=s.find(e=>e&&e.id===t);n&&n.settings&&(d=JSON.parse(JSON.stringify(n.settings)))}else c===`migrate`&&(d=Hs(t.settings,e.row.migrateKeys));if(c===`migrate`){let t=s.find(t=>t&&t.name===e.finalClass);if(t){(!t.settings||typeof t.settings!=`object`)&&(t.settings={});for(let[e,n]of Object.entries(d))Object.prototype.hasOwnProperty.call(t.settings,e)||(t.settings[e]=n)}}let f=Ja(e.finalClass,d),p;switch(c){case`add`:case`migrate`:p=a.includes(f)?a:[...a,f];break;case`rename`:{let t=e.row.renameFamilyId||(a[0]??null),n=[f],r=t?s.find(e=>e&&e.id===t):null;if(r&&!u){let i=r.name+`--`;for(let o of a){if(o===t)continue;let a=s.find(e=>e&&e.id===o);if(a)if(a.name.startsWith(i)){let t=a.name.slice(r.name.length),i=a.settings?JSON.parse(JSON.stringify(a.settings)):{};n.push(Ja(e.finalClass+t,i))}else n.push(o)}}p=n;break}case`replace`:if(e.row.renameFamilyId&&!u){let t=s.find(t=>t&&t.id===e.row.renameFamilyId);if(t){let n=t.name+`--`;p=[f,...a.filter(t=>{if(t===e.row.renameFamilyId)return!1;let r=s.find(e=>e&&e.id===t);return!r||!r.name.startsWith(n)})]}else p=[f]}else p=[f];break}for(let t of e.modifierSlugs){let n=Ja(`${e.finalClass}--${t}`,{});p.includes(n)||p.push(n)}if(Ya(e.row.id,p),c===`migrate`&&Us(t.settings,e.row.migrateKeys),r){let t=Gs(e.finalClass,e.blockName);t&&Xa(e.row.id,t)}l++}})}catch(e){for(let[e,t]of c)try{if(Ya(e,t.classIds),t.migrateKeys){let n=Wa(e);n&&n.settings&&Object.assign(n.settings,t.migrateKeys)}t.label!==null&&Xa(e,t.label)}catch{}let t=e instanceof Error?e.message:String(e);return console.warn(`[reBEMer] apply failed after`,l,`mutation(s), rolled back:`,t),{ok:!1,error:`Operation failed and was rolled back: ${t}`}}return l===0?{ok:!1,error:`No elements were modified. The subtree may have changed.`}:{ok:!0,count:l}}function Bs(e,t){for(let n of e){let e=t.find(e=>e&&e.name===n.finalClass);if(!e)continue;let r=Wa(n.row.id);if(!r)continue;let i=Hs(r.settings,n.row.migrateKeys),a=e.settings&&typeof e.settings==`object`?e.settings:{},o=[];for(let[e,t]of Object.entries(i))Object.prototype.hasOwnProperty.call(a,e)&&JSON.stringify(a[e])!==JSON.stringify(t)&&o.push(e.replace(/^_/,``));if(o.length>0){let e=o.join(`, `);return{ok:!1,error:`Migrate blocked: existing class "${n.finalClass}" has conflicting values for ${e}. Pick a different name or use Add mode.`}}}return{ok:!0}}function Vs(e){let t=new Map;for(let n of e){let e=t.get(n.finalClass)||[];e.push(n),t.set(n.finalClass,e)}for(let[e,n]of t){if(n.length===1)continue;let t=n.filter(e=>Is.has(e.suggestedFrom));if(t.length>1)return{ok:!1,error:`"${e}" is used by ${t.length} rows. Edit one to make it unique.`};let r=1;for(let t of n)Is.has(t.suggestedFrom)||(t.finalClass=`${e}-${r++}`,t.suggestedFrom=`auto-number`)}let n=new Map;for(let t of e){let e=n.get(t.finalClass);if(e)return{ok:!1,error:`"${t.finalClass}" is produced by 2 rows after auto-numbering (one ${e}, one ${t.suggestedFrom}). Pick a different name for one of them.`};n.set(t.finalClass,t.suggestedFrom)}return{ok:!0}}function Hs(e,t){if(!e||!Array.isArray(t))return{};let n={};for(let r of t)js.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function Us(e,t){if(!(!e||!Array.isArray(t)))for(let n of t)js.has(n)&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}function Ws(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}function Gs(e,t){let n=e;return n===t?Ks(t.replace(/-/g,` `)):(n.startsWith(t+`__`)&&(n=n.slice(t.length+2)),n=n.replace(/--.+$/,``),Ks(n.replace(/-/g,` `)))}function Ks(e){return e.replace(/(^|\s)([a-z])/g,(e,t,n)=>t+n.toUpperCase())}var qs=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`});function Js(){if(typeof window>`u`)return{};let e=window.slashedBricksEditor?.rebemerElementMap;return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function Ys(){return{...qs,...Js()}}var Xs=Object.freeze([`type`,`role`,`generic`]);function Zs(){if(typeof window>`u`)return`type`;let e=window.slashedBricksEditor?.rebemerContainerMode;return Xs.includes(e)?e:`type`}var Qs=new Set([`section`,`container`,`block`,`div`]);function $s(e,t=`item`){return!e||typeof e!=`string`||Qs.has(e)?t:Ys()[e]||t}function ec(e){return typeof e==`string`&&Qs.has(e)}var tc=Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function nc(e,t,n,r=`role`,i=``){if(r===`type`)return i||`item`;if(r===`generic`)return`item`;let a=new Set(e.filter(Boolean)),o=(...e)=>e.some(e=>a.has(e)),s=o(`button`,`button-group`),c=o(`heading`),l=o(`text-basic`,`text`),u=o(`image`),d=o(`nav-nested`,`nav-menu`),f=o(`form`),p=o(`icon`,`icon-box`),m=o(`list`);return f?`form`:d?`nav`:s&&!c&&!l?`actions`:u&&!l&&!c&&!s?`media`:c&&!l&&!s?`header`:l&&!c&&!s?`body`:c&&l?`content`:c&&s?`header`:p&&!l&&!c?`icon-group`:m?`list-wrap`:n>1?t===0?`header`:t===n-1?`footer`:`body`:`content`}var rc=J(``),ic=J(`BLOCK`),ac=J(`suggested`),oc=J(` `),sc=J(``),cc=J(`
            `),lc=J(``),uc=J(`
            `),dc=J(`
            `),fc=J(`

            No existing classes — a new class will be added instead.

            `),pc=J(``),mc=J(`
            Rename
            `),hc=J(`

            Will rename

            `),gc=J(`

            Will rename

            `),_c=J(` `,1),vc=J(`
            Replace
            `),yc=J(`

            All existing classes will be removed from this element.

            `),bc=J(`

            No existing classes — a new class will be created.

            `),xc=J(`

            Will remove the selected family and replace with the new class (empty settings). Other classes kept.

            `),Sc=J(`A class named already exists. +\r\f\xA0\v`];function na(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ta.includes(r[o-1]))&&(s===r.length||ta.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ra(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ia(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function aa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ia)),i&&c.push(...Object.keys(i).map(ia));var l=0,u=-1;let t=e.length;for(var d=0;d{la(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Cr(()=>{t.disconnect()})}function da(e,t,n=t){var r=new WeakSet,i=!0;vr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),fa);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&fa(o)}n(a),e.__value=a,I!==null&&r.add(I)}),Dr(()=>{var a=t();if(e===document.activeElement){var o=Ge?nn:I;if(r.has(o))return}if(la(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=fa(s),n(a))}e.__value=a,i=!1}),ua(e)}function fa(e){return`__value`in e?e.__value:e.value}var pa=Symbol(`is custom element`),ma=Symbol(`is html`),ha=ve?`link`:`LINK`;function ga(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$(e,`checked`,null),e.checked=r}}};e[ge]=n,$e(n),gr()}}function $(e,t,n,r){var i=_a(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ha)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _a(e){var t;return(t=e)[fe]??(t[fe]={[pa]:e.nodeName.includes(`-`),[ma]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var va=new Map;function ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function ba(e,t,n=t){var r=new WeakSet;vr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Sa(e)?Ca(a):a,n(a),I!==null&&r.add(I),await pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||gi(t)==null&&e.value)&&(n(Sa(e)?Ca(e.value):e.value),I!==null&&r.add(I)),kr(()=>{var n=t();if(e===document.activeElement){var i=Ge?nn:I;if(r.has(i))return}Sa(e)&&n===Ca(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function xa(e,t,n=t){vr(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(T&&e.defaultChecked!==e.checked||gi(t)==null)&&n(e.checked),kr(()=>{e.checked=!!t()})}function Sa(e){var t=e.type;return t===`number`||t===`range`}function Ca(e){return e===``?null:+e}var wa,Ta=new WeakMap,Ea=new WeakMap,Da=new WeakMap,Oa=new WeakSet,ka=class{constructor(e){ft(this,Oa),A(this,Ta,new WeakMap),A(this,Ea,void 0),A(this,Da,void 0),M(Da,this,e)}observe(e,t){var n=N(Ta,this).get(e)||new Set;return n.add(t),N(Ta,this).set(e,n),j(Oa,this,Aa).call(this).observe(e,N(Da,this)),()=>{var n=N(Ta,this).get(e);n.delete(t),n.size===0&&(N(Ta,this).delete(e),N(Ea,this).unobserve(e))}}};wa=ka;function Aa(){return N(Ea,this)??M(Ea,this,new ResizeObserver(e=>{for(var t of e){wa.entries.set(t.target,t);for(var n of N(Ta,this).get(t.target)||[])n(t)}}))}_(ka,`entries`,new WeakMap);function ja(e,t){return e===t||e?.[le]===t}function Ma(e={},t,n,r){var i=O.r,a=G;return Dr(()=>{var o,s;return kr(()=>{o=s,s=r?.()||[],gi(()=>{ja(n(...s),e)||(t(e,...s),o&&ja(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ja(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Na(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=Wt(r)),K(u)):(l&&(l=!1,c=s?gi(r):r),c);let f;if(o){var p=le in e||ue in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=lt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ee(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Wt:qt)(()=>(v=!1,g()));o&&K(y);var b=G;return(function(e,t){if(arguments.length>0){let n=t?K(y):i&&o?er(e):e;return z(y,n),v=!0,c!==void 0&&(c=n),e}return Gr&&v||b.f&16384?y.v:K(y)})}function Pa(e){O===null&&ye(`onMount`),Ke&&O.l!==null?Fa(O).m.push(e):wr(()=>{let t=gi(e);if(typeof t==`function`)return t})}function Fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}var Ia=`[data-v-app]`,La=[`header`,`content`,`footer`],Ra=null,za=null;function Ba(e){let t=e instanceof Set?e:new Set(e||[]);for(let e=0;e<16;e++){let e=crypto.randomUUID().replace(/-/g,``).slice(0,8);if(!t.has(e))return e}throw Error(`rebemer: id collision exhausted`)}function Va(){if(typeof document>`u`)return!1;let e=document.querySelector(Ia)?.__vue_app__?.config?.globalProperties?.$_state;return!e||typeof e!=`object`||!Array.isArray(e.globalClasses)?(Ra=null,!1):(Ra=e,za=null,!0)}function Ha(){if(za!==null)return za;let e=typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null;if(!e)return za=!1,!1;let t=e.config?.globalProperties??{};if(typeof Ra?.$history?.pause==`function`&&typeof Ra?.$history?.resume==`function`)return za={pause:()=>Ra.$history.pause(),resume:()=>Ra.$history.resume()},za;let n=t.$_bricksData??t.bricksData;return typeof n?.history?.pause==`function`&&typeof n?.history?.resume==`function`?(za={pause:()=>n.history.pause(),resume:()=>n.history.resume()},za):(za=!1,!1)}function Ua(e){let t=Ha();if(t)try{t.pause(),e()}finally{t.resume()}else e()}function Wa(e){if(!Ra||!e)return null;for(let t of La){let n=Ra[t];if(!Array.isArray(n))continue;let r=n.find(t=>t&&t.id===e);if(r)return r}return null}function Ga(e){let t=Wa(e);if(!t)return[];let n=[{id:t.id,depth:0,label:t.label,name:t.name,settings:t.settings}];return Ka(t,1,n),n}function Ka(e,t,n){if(!(!e||!Array.isArray(e.children)))for(let r of e.children){let e=Wa(r);e&&(n.push({id:e.id,depth:t,label:e.label,name:e.name,settings:e.settings}),Ka(e,t+1,n))}}function qa(){return Ra?Ra.globalClasses:[]}function Ja(e,t){if(!Ra)throw Error(`rebemer: not ready`);let n=Ra.globalClasses,r=n.find(t=>t&&t.name===e);if(r)return r.id;let i=Ba(new Set(n.map(e=>e?.id).filter(Boolean)));return n.push({id:i,name:e,settings:t||{}}),i}function Ya(e,t){let n=Wa(e);if(!n)return;n.settings||(n.settings={});let r=Array.isArray(t)?t:[];Array.isArray(n.settings._cssGlobalClasses)?n.settings._cssGlobalClasses.splice(0,n.settings._cssGlobalClasses.length,...r):n.settings._cssGlobalClasses=[...r]}function Xa(e,t){let n=Wa(e);n&&(n.label=t)}function Za(e){if(!e||typeof e!=`string`||typeof window>`u`)return``;let t=(typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null)?.config?.globalProperties??{},n=[window.bricks?.elements,t.$_bricksData?.elements,t.bricksData?.elements,Ra?.elements];for(let t of n){if(!t)continue;let n=t instanceof Map?t.get(e):t[e],r=n?.label??n?.nicename??n?.title;if(typeof r==`string`&&r.trim())return r}return``}var Qa=`slashed-rebemer-host`,$a=`slashed-class-hint`,eo=[`#bricks-panel`,`.bricks-class-manager`,`#bricks-class-manager`,`[data-control="cssClasses"]`],to=`rebemer-class-hint-btn`,no=50;function ro(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n[0]===`.`&&(n=n.slice(1)),!n.startsWith(`sf-`)&&!n.startsWith(`is-`))||!Object.prototype.hasOwnProperty.call(t,n))return null;let r=t[n];return!r||typeof r.description!=`string`?null:{name:n,description:r.description,category:r.category}}var io={},ao=null,oo=null,so=null,co=null,lo=null;function uo(){if(ao&&ao.isConnected)return ao;let e=document.getElementById(Qa);e||(e=document.createElement(`div`),e.id=Qa,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=$a,t.className=`rebemer-class-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

            `,e.appendChild(t),ao=t,t}function fo(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function po(e){let t=e.dataset.sfClass,n=t?ro(t,io):null;if(!n)return;let r=uo();r.querySelector(`.rebemer-class-hint__name`).textContent=`.${n.name}`;let i=r.querySelector(`.rebemer-class-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category,r.querySelector(`.rebemer-class-hint__desc`).textContent=n.description,r.hidden=!1,fo(r,e),lo=e}function mo(){ao&&(ao.hidden=!0),lo=null}function ho(e){po(e.currentTarget)}function go(){mo()}function _o(e){e.preventDefault(),e.stopPropagation()}function vo(e){e.key===`Escape`&&mo()}function yo(e){let t=ro(e.textContent,io);if(t)return t;let n=e.querySelectorAll(`span, [contenteditable], .name, .label, a`);for(let e of n){let t=ro(e.textContent,io);if(t)return t}return null}function bo(e){return e.querySelector(`.actions, [class*="action"], [class*="icons"], [class*="controls"]`)||e}function xo(){let e=document.createElement(`span`);return e.className=to,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What does this class do?`),e.addEventListener(`mouseenter`,ho),e.addEventListener(`mouseleave`,go),e.addEventListener(`focus`,ho),e.addEventListener(`blur`,go),e.addEventListener(`click`,_o),e}function So(){for(let e of document.querySelectorAll(`.rebemer-class-hint-btn`)){let t=e.closest(`li`),n=t?yo(t):null;n?e.dataset.sfClass!==n.name&&(e.dataset.sfClass=n.name):(lo===e&&mo(),e.remove())}let e=document.querySelectorAll(eo.join(`,`));for(let t of e)for(let e of t.querySelectorAll(`li`)){if(e.querySelector(`.rebemer-class-hint-btn`)||e.querySelector(`li`))continue;let t=yo(e);if(!t)continue;let n=xo();n.dataset.sfClass=t.name,bo(e).appendChild(n)}}function Co(){co===null&&(co=setTimeout(()=>{co=null,So()},no))}function wo(e){let t=eo.join(`,`);for(let n of e){let e=n.target;if(e&&e.nodeType===1){if(e.classList&&e.classList.contains(to))continue;if(e.closest&&e.closest(t))return!0}for(let e of n.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(to))&&(e.matches&&e.matches(t)||e.closest&&e.closest(t)||e.querySelector&&e.querySelector(t)))return!0}return!1}function To(e,t,n={}){if(Eo(),io=t&&typeof t==`object`?t:{},!e||Object.keys(io).length===0)return;oo=new AbortController;let{signal:r}=oo;document.addEventListener(`keydown`,vo,{passive:!0,signal:r}),window.addEventListener(`scroll`,mo,{capture:!0,passive:!0,signal:r}),so=new MutationObserver(e=>{lo&&!lo.isConnected&&mo(),wo(e)&&Co()}),so.observe(document.body,{childList:!0,subtree:!0}),So(),n.signal&&(n.signal.aborted?Eo():n.signal.addEventListener(`abort`,Eo,{once:!0}))}function Eo(){co!==null&&(clearTimeout(co),co=null),so&&(so.disconnect(),so=null),oo&&(oo.abort(),oo=null);try{document.querySelectorAll(`.rebemer-class-hint-btn`).forEach(e=>e.remove())}catch{}ao&&(ao.remove(),ao=null),lo=null,io={}}var Do=`li.variable-picker-item`,Oo=`slashed-var-swatch`,ko=`slashed-sf-color-btn`,Ao=50,jo=(e,...t)=>console[e](`[slashed-swatches]`,...t);function Mo(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n.slice(0,2)!==`--`&&(n=`--`+n.replace(/^-+/,``)),n.indexOf(`--sf-color-`)!==0))return null;let r=t[n];return typeof r==`string`&&r?r:null}var No=!1,Po={},Fo=null,Io=null,Lo=null,Ro=null,zo=new WeakSet;function Bo(e){if(!Fo)return;let t=e.querySelector(`[data-control="text"].color-input`);if(!t)return;let n=e.querySelector(`:scope > .slashed-sf-color-btn`);if(!n){n=document.createElement(`div`),n.className=ko,n.setAttribute(`aria-label`,`SLASHED Colors`),n.setAttribute(`data-balloon`,`SLASHED Colors`),n.setAttribute(`data-balloon-pos`,`top`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`);let r=document.createElement(`span`);r.className=`slashed-sf-color-btn__dot`,r.setAttribute(`aria-hidden`,`true`),n.appendChild(r),n.addEventListener(`click`,n=>{n.stopPropagation();let r=e.querySelector(`[data-control="text"].color-input`);Fo&&Fo(r??t)}),n.addEventListener(`keydown`,e=>{e.key===` `?(e.preventDefault(),n.click()):e.key===`Enter`&&n.click()});let i=e.querySelector(`:scope > .bricks-control-preview`);if(i)e.insertBefore(n,i.nextSibling);else{let t=e.querySelector(`:scope > .input-wrapper`);t?e.insertBefore(n,t):e.appendChild(n)}}if(Vo(n,t),Ro){let e=t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`);e&&!zo.has(e)&&(zo.add(e),e.addEventListener(`input`,()=>Vo(n,t),{signal:Ro.signal}))}}function Vo(e,t){let n=e.querySelector(`.slashed-sf-color-btn__dot`),r=((t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`))?.value??``).match(/^var\((--[^)]+)\)/)?.[1],i=r?Po[r]??null:null;n&&(i?(n.style.background=i,n.style.removeProperty(`box-shadow`)):n.style.removeProperty(`background`)),i?e.style.setProperty(`--sf-active-color`,i):e.style.removeProperty(`--sf-active-color`),e.classList.toggle(`slashed-sf-color-btn--active`,!!i);let a=e.closest(`[data-control="color"]`);if(a){let e=a.querySelector(`:scope > .bricks-control-preview`);e&&Ho(e,!!i)}}function Ho(e,t){let n=e.querySelector(`.bricks-control-transparency-pattern`),r=e.querySelector(`.slashed-sf-preview-label`);t?(n&&n.style.setProperty(`visibility`,`hidden`),r||(r=document.createElement(`span`),r.className=`slashed-sf-preview-label`,r.setAttribute(`aria-hidden`,`true`),r.textContent=`✕`,e.appendChild(r))):(n&&n.style.removeProperty(`visibility`),r&&r.remove())}function Uo(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function Wo(e){if(e.classList.contains(`title`)||e.classList.contains(`category`)){let t=e.querySelector(`:scope > .slashed-var-swatch`);t&&t.remove();return}let t=Mo(Uo(e),Po),n=e.querySelector(`:scope > .slashed-var-swatch`);if(!t){n&&n.remove();return}n||(n=document.createElement(`span`),n.className=Oo,n.setAttribute(`aria-hidden`,`true`),e.insertBefore(n,e.firstChild)),n.dataset.color!==t&&(n.style.setProperty(`--slashed-swatch-color`,t),n.dataset.color=t)}function Go(){try{let e=document.querySelectorAll(Do);for(let t of e)Wo(t)}catch(e){jo(`warn`,`swatch pass failed`,e)}if(Fo)try{document.querySelectorAll(`[data-control="color"]`).forEach(Bo)}catch(e){jo(`warn`,`SF button inject failed`,e)}}function Ko(){Lo===null&&(Lo=setTimeout(()=>{Lo=null,Go()},Ao))}function qo(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest&&(e.closest(Do)||Fo&&e.closest(`[data-control="color"]`)))return!0;for(let e of t.addedNodes)if(e.nodeType===1&&(e.matches&&e.matches(Do)||e.querySelector&&e.querySelector(Do)||Fo&&(e.matches&&e.matches(`[data-control="color"]`)||e.querySelector&&e.querySelector(`[data-control="color"]`))))return!0}return!1}function Jo(e,t,n={}){Yo(),No=!!e,Po=t&&typeof t==`object`?t:{},Fo=typeof n.onOpenPanel==`function`?n.onOpenPanel:null,!(!(No&&Object.keys(Po).length>0)&&!Fo)&&(Ro=new AbortController,Io=new MutationObserver(e=>{qo(e)&&Ko()}),Io.observe(document.body,{childList:!0,subtree:!0}),Go(),n.signal&&(n.signal.aborted?Yo():n.signal.addEventListener(`abort`,Yo,{once:!0})))}function Yo(){Lo!==null&&(clearTimeout(Lo),Lo=null),Io&&(Io.disconnect(),Io=null),Ro&&(Ro.abort(),Ro=null);try{document.querySelectorAll(`.slashed-var-swatch`).forEach(e=>e.remove()),document.querySelectorAll(`.slashed-sf-color-btn`).forEach(e=>e.remove())}catch{}No=!1,Po={},Fo=null,zo=new WeakSet}var Xo=`li.variable-picker-item`,Zo=`slashed-var-hint-btn`,Qo=`slashed-var-hint`,$o=`slashed-rebemer-host`,es=50;function ts(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n))return null;let r=n.replace(/^-+/,``);if(!r||!Object.prototype.hasOwnProperty.call(t,r))return null;let i=t[r];return i?{name:r,category:i.category||``,description:i.description||``}:null}var ns={},rs=null,is=null,as=null,os=null,ss=null;function cs(){if(rs&&rs.isConnected)return rs;let e=document.getElementById($o);e||(e=document.createElement(`div`),e.id=$o,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=Qo,t.className=`slashed-var-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

            `,e.appendChild(t),rs=t,t}function ls(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function us(e){let t=e.dataset.sfVar,n=t?ts(t,ns):null;if(!n)return;let r=cs();r.querySelector(`.slashed-var-hint__name`).textContent=`--`+n.name;let i=r.querySelector(`.slashed-var-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category;let a=r.querySelector(`.slashed-var-hint__desc`);a&&(a.textContent=n.description||``,a.hidden=!n.description),r.hidden=!1,ls(r,e),ss=e}function ds(){rs&&(rs.hidden=!0),ss=null}function fs(e){us(e.currentTarget)}function ps(){ds()}function ms(e){e.preventDefault(),e.stopPropagation()}function hs(e){e.key===`Escape`&&ds()}function gs(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function _s(){let e=document.createElement(`span`);return e.className=Zo,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What is this variable?`),e.addEventListener(`mouseenter`,fs),e.addEventListener(`mouseleave`,ps),e.addEventListener(`focus`,fs),e.addEventListener(`blur`,ps),e.addEventListener(`click`,ms),e}function vs(){for(let e of document.querySelectorAll(`.slashed-var-hint-btn`)){let t=e.closest(`li`),n=t?ts(gs(t),ns):null;n?e.dataset.sfVar!==n.name&&(e.dataset.sfVar=n.name):(ss===e&&ds(),e.remove())}for(let e of document.querySelectorAll(Xo)){if(e.classList.contains(`title`)||e.classList.contains(`category`)||e.querySelector(`.slashed-var-hint-btn`))continue;let t=ts(gs(e),ns);if(!t)continue;let n=_s();n.dataset.sfVar=t.name,e.appendChild(n)}}function ys(){os===null&&(os=setTimeout(()=>{os=null,vs()},es))}function bs(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest){if(e.classList&&e.classList.contains(Zo))continue;if(e.closest(Xo))return!0}for(let e of t.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(Zo))&&(e.matches&&e.matches(Xo)||e.querySelector&&e.querySelector(Xo)))return!0}return!1}function xs(e,t={}){if(Ss(),ns=e&&typeof e==`object`?e:{},Object.keys(ns).length===0)return;is=new AbortController;let{signal:n}=is;document.addEventListener(`keydown`,hs,{passive:!0,signal:n}),window.addEventListener(`scroll`,ds,{capture:!0,passive:!0,signal:n}),as=new MutationObserver(e=>{ss&&!ss.isConnected&&ds(),bs(e)&&ys()}),as.observe(document.body,{childList:!0,subtree:!0}),vs(),t.signal&&(t.signal.aborted?Ss():t.signal.addEventListener(`abort`,Ss,{once:!0}))}function Ss(){os!==null&&(clearTimeout(os),os=null),as&&(as.disconnect(),as=null),is&&(is.abort(),is=null);try{document.querySelectorAll(`.slashed-var-hint-btn`).forEach(e=>e.remove())}catch{}rs&&(rs.remove(),rs=null),ss=null,ns={}}if(typeof window<`u`){var Cs,ws;((Cs=(ws=window).__svelte??(ws.__svelte={})).v??(Cs.v=new Set)).add(`5`)}var Ts=J(`reBEM`);function Es(e,t){Je(t,!0);function n(e){e.stopPropagation(),e.preventDefault(),t.onActivate?.(t.elementId)}var r=Ts();U(()=>{$(r,`title`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`),$(r,`aria-label`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`)}),q(`click`,r,n),q(`keydown`,r,e=>(e.key===`Enter`||e.key===` `)&&n(e)),Y(e,r),Ye()}wi([`click`,`keydown`]);function Ds(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Os=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,ks=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]);function As(e){return e?ks.has(e)?{ok:!1,reason:`"${e}" is a CSS keyword.`}:Os.test(e)?{ok:!0}:{ok:!1,reason:`Use lowercase letters, digits, and hyphens.`}:{ok:!1,reason:`Name is empty.`}}var js=new Set(`_padding._padding_top._padding_right._padding_bottom._padding_left._margin._margin_top._margin_right._margin_bottom._margin_left._width._widthMin._widthMax._minWidth._maxWidth._height._heightMin._heightMax._minHeight._maxHeight._aspectRatio._overflow._overflowX._overflowY._color._background._backgroundColor._backgroundImage._backgroundSize._backgroundPosition._backgroundRepeat._backgroundAttachment._backgroundBlendMode._typography._fontFamily._fontSize._fontWeight._fontStyle._lineHeight._letterSpacing._wordSpacing._textAlign._textTransform._textDecoration._textDecorationColor._textShadow._textIndent._whiteSpace._listStyleType._listStylePosition._border._borderRadius._borderColor._borderStyle._borderWidth._outline._outlineColor._outlineStyle._outlineWidth._outlineOffset._boxShadow._filter._backdropFilter._opacity._blendMode._transform._transformOrigin._transition._animation._display._flexDirection._flexWrap._flexGrow._flexShrink._flexBasis._alignItems._alignSelf._alignContent._justifyContent._justifyItems._justifySelf._gap._rowGap._columnGap._gridTemplateColumns._gridTemplateRows._gridGap._gridAutoFlow._gridAutoColumns._gridAutoRows._gridColumn._gridRow._gridArea._position._top._right._bottom._left._zIndex._objectFit._objectPosition._cursor._pointerEvents._userSelect`.split(`.`));function Ms(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)&&t.push(n);return t.sort(),t}var Ns=new Set([`_cssGlobalClasses`,`_cssClasses`,`_cssId`,`_attributes`,`_hidden`,`_hidden_lg`,`_hidden_md`,`_hidden_sm`,`_hidden_xl`,`_name`,`_label`,`_id`,`tag`,`children`,`parent`]);function Ps(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)||Ns.has(n)||n.startsWith(`_hidden_`)||t.push(n);return t.sort(),t}var Fs=new Set([`add`,`rename`,`replace`,`migrate`,`mixed`]),Is=new Set([`user`,`label`]);function Ls(e,t){let n=new Map,r=[];for(let i of e){for(;r.length&&r[r.length-1].depth>=i.depth;)r.pop();let e=i.id===t,a=!e&&i.isBlockRoot===!0;if(e||a){let e=Ds(i.name);e&&i.include!==!1&&(r.push({depth:i.depth,blockName:e}),n.set(i.id,e))}else{let e=r.length?r[r.length-1].blockName:``;e&&n.set(i.id,e)}}return n}function Rs({rootId:e,rows:t,mode:n}){if(!Fs.has(n))return{ok:!1,ops:[],error:`Invalid mode: ${n}`};let r=t.find(t=>t.id===e);if(!r)return{ok:!1,ops:[],error:`Root row missing.`};if(!Ds(r.name))return{ok:!1,ops:[],error:`Block name is empty.`};let i=[];for(let n of t)!n.isBlockRoot||!n.include||n.id===e||Ds(n.name)||i.push(n.originalLabel||n.id);if(i.length>0)return{ok:!1,ops:[],error:`Block name is empty for: ${i.join(`, `)}.`};let a=Ls(t,e),o=[];for(let n of t){if(!n.include)continue;let t=n.id===e,r=!t&&n.isBlockRoot===!0,i=a.get(n.id);if(!i)continue;let s;if(t||r)s=i;else{let e=Ds(n.name);if(!e)continue;s=`${i}__${e}`}o.push({row:n,isRoot:t||r,blockName:i,finalClass:s,modifierSlugs:[],suggestedFrom:n.suggestedFrom||`fallback`})}if(o.length===0)return{ok:!1,ops:[],error:`No rows to apply. Include at least one row.`};let s=Vs(o);if(!s.ok)return{ok:!1,ops:[],error:s.error};if(n!==`migrate`)for(let e of o)e.modifierSlugs=(Array.isArray(e.row.modifiers)?e.row.modifiers:[]).map(e=>Ds(e)).filter(Boolean);return{ok:!0,ops:o}}function zs({rootId:e,rows:t,mode:n,syncLabels:r,removeExisting:i=!1}){let a=Rs({rootId:e,rows:t,mode:n});if(!a.ok)return{ok:!1,error:a.error};let o=a.ops,s=qa();if(n===`migrate`){let e=Bs(o,s);if(!e.ok)return e}let c=new Map;for(let e of o){if(c.has(e.row.id))continue;let t=Wa(e.row.id);if(!t)continue;let i={classIds:Ws(t.settings).slice(),label:r?t.label??``:null};if(n===`migrate`&&Array.isArray(e.row.migrateKeys)){let n={};for(let r of e.row.migrateKeys)Object.prototype.hasOwnProperty.call(t.settings||{},r)&&(n[r]=JSON.parse(JSON.stringify(t.settings[r])));i.migrateKeys=n}c.set(e.row.id,i)}let l=0;try{Ua(()=>{for(let e of o){let t=Wa(e.row.id);if(!t)continue;let a=Ws(t.settings),o=e.row.op??`add`,c=n===`mixed`?[`add`,`rename`,`replace`].includes(o)?o:`add`:n,u=i&&(c===`rename`||c===`replace`),d={};if(c===`rename`&&a.length>0){let t=e.row.renameFamilyId||a[0],n=s.find(e=>e&&e.id===t);n&&n.settings&&(d=JSON.parse(JSON.stringify(n.settings)))}else c===`migrate`&&(d=Hs(t.settings,e.row.migrateKeys));if(c===`migrate`){let t=s.find(t=>t&&t.name===e.finalClass);if(t){(!t.settings||typeof t.settings!=`object`)&&(t.settings={});for(let[e,n]of Object.entries(d))Object.prototype.hasOwnProperty.call(t.settings,e)||(t.settings[e]=n)}}let f=Ja(e.finalClass,d),p;switch(c){case`add`:case`migrate`:p=a.includes(f)?a:[...a,f];break;case`rename`:{let t=e.row.renameFamilyId||(a[0]??null),n=[f],r=t?s.find(e=>e&&e.id===t):null;if(r&&!u){let i=r.name+`--`;for(let o of a){if(o===t)continue;let a=s.find(e=>e&&e.id===o);if(a)if(a.name.startsWith(i)){let t=a.name.slice(r.name.length),i=a.settings?JSON.parse(JSON.stringify(a.settings)):{};n.push(Ja(e.finalClass+t,i))}else n.push(o)}}p=n;break}case`replace`:if(e.row.renameFamilyId&&!u){let t=s.find(t=>t&&t.id===e.row.renameFamilyId);if(t){let n=t.name+`--`;p=[f,...a.filter(t=>{if(t===e.row.renameFamilyId)return!1;let r=s.find(e=>e&&e.id===t);return!r||!r.name.startsWith(n)})]}else p=[f]}else p=[f];break}for(let t of e.modifierSlugs){let n=Ja(`${e.finalClass}--${t}`,{});p.includes(n)||p.push(n)}if(Ya(e.row.id,p),c===`migrate`&&Us(t.settings,e.row.migrateKeys),r){let t=Gs(e.finalClass,e.blockName);t&&Xa(e.row.id,t)}l++}})}catch(e){for(let[e,t]of c)try{if(Ya(e,t.classIds),t.migrateKeys){let n=Wa(e);n&&n.settings&&Object.assign(n.settings,t.migrateKeys)}t.label!==null&&Xa(e,t.label)}catch{}let t=e instanceof Error?e.message:String(e);return console.warn(`[reBEMer] apply failed after`,l,`mutation(s), rolled back:`,t),{ok:!1,error:`Operation failed and was rolled back: ${t}`}}return l===0?{ok:!1,error:`No elements were modified. The subtree may have changed.`}:{ok:!0,count:l}}function Bs(e,t){for(let n of e){let e=t.find(e=>e&&e.name===n.finalClass);if(!e)continue;let r=Wa(n.row.id);if(!r)continue;let i=Hs(r.settings,n.row.migrateKeys),a=e.settings&&typeof e.settings==`object`?e.settings:{},o=[];for(let[e,t]of Object.entries(i))Object.prototype.hasOwnProperty.call(a,e)&&JSON.stringify(a[e])!==JSON.stringify(t)&&o.push(e.replace(/^_/,``));if(o.length>0){let e=o.join(`, `);return{ok:!1,error:`Migrate blocked: existing class "${n.finalClass}" has conflicting values for ${e}. Pick a different name or use Add mode.`}}}return{ok:!0}}function Vs(e){let t=new Map;for(let n of e){let e=t.get(n.finalClass)||[];e.push(n),t.set(n.finalClass,e)}for(let[e,n]of t){if(n.length===1)continue;let t=n.filter(e=>Is.has(e.suggestedFrom));if(t.length>1)return{ok:!1,error:`"${e}" is used by ${t.length} rows. Edit one to make it unique.`};let r=1;for(let t of n)Is.has(t.suggestedFrom)||(t.finalClass=`${e}-${r++}`,t.suggestedFrom=`auto-number`)}let n=new Map;for(let t of e){let e=n.get(t.finalClass);if(e)return{ok:!1,error:`"${t.finalClass}" is produced by 2 rows after auto-numbering (one ${e}, one ${t.suggestedFrom}). Pick a different name for one of them.`};n.set(t.finalClass,t.suggestedFrom)}return{ok:!0}}function Hs(e,t){if(!e||!Array.isArray(t))return{};let n={};for(let r of t)js.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function Us(e,t){if(!(!e||!Array.isArray(t)))for(let n of t)js.has(n)&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}function Ws(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}function Gs(e,t){let n=e;return n===t?Ks(t.replace(/-/g,` `)):(n.startsWith(t+`__`)&&(n=n.slice(t.length+2)),n=n.replace(/--.+$/,``),Ks(n.replace(/-/g,` `)))}function Ks(e){return e.replace(/(^|\s)([a-z])/g,(e,t,n)=>t+n.toUpperCase())}var qs=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`});function Js(){if(typeof window>`u`)return{};let e=window.slashedBricksEditor?.rebemerElementMap;return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function Ys(){return{...qs,...Js()}}var Xs=new Set([`section`,`container`,`block`,`div`]);function Zs(e,t=`item`){return!e||typeof e!=`string`||Xs.has(e)?t:Ys()[e]||t}function Qs(e){return typeof e==`string`&&Xs.has(e)}var $s=Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function ec(e){return typeof e==`string`&&e?e:`item`}var tc=J(``),nc=J(`BLOCK`),rc=J(`suggested`),ic=J(` `),ac=J(``),oc=J(`
            `),sc=J(``),cc=J(`
            `),lc=J(`
            `),uc=J(`

            No existing classes — a new class will be added instead.

            `),dc=J(``),fc=J(`
            Rename
            `),pc=J(`

            Will rename

            `),mc=J(`

            Will rename

            `),hc=J(` `,1),gc=J(`
            Replace
            `),_c=J(`

            All existing classes will be removed from this element.

            `),vc=J(`

            No existing classes — a new class will be created.

            `),yc=J(`

            Will remove the selected family and replace with the new class (empty settings). Other classes kept.

            `),bc=J(`A class named already exists. On Apply, missing style keys will be merged into it. Conflicting - values block the migration — pick a different name or use Add.`,1),Cc=J(`A class named already exists + values block the migration — pick a different name or use Add.`,1),xc=J(`A class named already exists globally. Apply will attach the existing class instead of - creating a duplicate.`,1),wc=J(`

            `),Tc=J(` `),Ec=J(`Migrate: `,1),Dc=J(`No migratable keys on this element.`),Oc=J(` `),kc=J(`
            `),Ac=J(`
            `);function jc(e,t){Je(t,!0);let n=Na(t,`row`,15),r=Na(t,`rootId`,3,``),i=Na(t,`globalClasses`,19,()=>[]),a=Na(t,`removeExisting`,3,!1),o=Na(t,`finalClassNames`,19,()=>[]),s=F(()=>t.mode!==`migrate`),c=F(()=>t.mode===`migrate`),l=F(()=>t.mode===`mixed`),u=F(()=>!t.isRoot&&t.blockName?`${t.blockName}__`:``),d=F(()=>K(l)?n().op??`add`:t.mode===`rename`?`rename`:t.mode===`replace`?`replace`:`add`),f=F(()=>{if(K(d)!==`rename`&&K(d)!==`replace`||!Array.isArray(n().currentClassIds))return[];let e=[];for(let t of n().currentClassIds){let r=i().find(e=>e?.id===t);if(!r||r.name.includes(`--`))continue;let a=n().currentClassIds.filter(e=>i().find(t=>t?.id===e)?.name.startsWith(r.name+`--`)).length;e.push({id:r.id,name:r.name,modCount:a})}for(let t of n().currentClassIds){let n=i().find(e=>e?.id===t);if(!n||!n.name.includes(`--`))continue;let r=n.name.slice(0,n.name.indexOf(`--`));e.some(e=>e.name===r)||e.push({id:n.id,name:n.name,modCount:0})}return e}),p=F(()=>K(f).find(e=>e.id===n().renameFamilyId)??K(f)[0]??null);wr(()=>{K(d)!==`rename`||!K(f).length||K(f).some(e=>e.id===n().renameFamilyId)||n(n().renameFamilyId=K(f)[0].id,!0)});let m=F(()=>n().isBlockRoot===!0&&n().id!==r()),h=F(()=>n().id!==r()),g=F(()=>n().suggestedFrom===`element-type`||n().suggestedFrom===`fallback`),_=F(()=>{if(!o().length||!n().include||!Array.isArray(i()))return null;for(let e of o()){let t=i().find(t=>t&&t.name===e);if(t)return t}return null}),v=F(()=>!Array.isArray(n().modifiers)||n().modifiers.every(e=>!Ds(e)));function y(){n().suggestedFrom!==`user`&&n(n().suggestedFrom=`user`,!0)}function b(e){return e.startsWith(`_`)?e.slice(1):e}var x=Ac();let S;var ee=B(x),te=B(ee);ga(te),D(ee);var ne=H(ee,2),C=B(ne),re=B(C,!0);D(C);var ie=H(C,2),ae=e=>{var t=rc();let r;var i=B(t,!0);D(t),U(e=>{r=oa(t,1,`rebemer-row__type rebemer-row__type--toggle`,null,r,{"rebemer-row__type--block":K(m)}),$(t,`title`,K(m)?`Sub-block root — click to revert to element`:`Click to promote to block root`),t.disabled=!n().include,X(i,e)},[()=>K(m)?`BLOCK`:(n().bricksType||`ELEM`).toUpperCase()]),q(`click`,t,()=>{n(n().isBlockRoot=!n().isBlockRoot,!0)}),Y(e,t)},oe=e=>{Y(e,ic())};Z(ie,e=>{K(h)?e(ae):e(oe,-1)});var se=H(ie,2),ce=e=>{var t=ac();U(()=>$(t,`title`,`Pre-filled from ${n().suggestedFrom===`element-type`?`Bricks element type`:`fallback`}`)),Y(e,t)};Z(se,e=>{K(g)&&n().include&&e(ce)}),D(ne);var le=H(ne,2),ue=B(le),de=B(ue),fe=e=>{var t=oc(),n=B(t,!0);D(t),U(()=>X(n,K(u))),Y(e,t)};Z(de,e=>{K(u)&&e(fe)});var pe=H(de,2);ga(pe),D(ue);var me=H(ue,2),he=e=>{var t=uc(),r=B(t);Q(r,17,()=>n().modifiers,Ki,(e,t,r)=>{var i=cc(),a=B(i);ga(a);var o=H(a,2),s=e=>{var t=sc();U(()=>t.disabled=!n().include),q(`click`,t,()=>{n(n().modifiers=n().modifiers.filter((e,t)=>t!==r),!0)}),Y(e,t)};Z(o,e=>{n().modifiers.length>1&&e(s)}),D(i),U(()=>a.disabled=!n().include),ba(a,()=>n().modifiers[r],e=>n(n().modifiers[r]=e,!0)),Y(e,i)});var i=H(r,2),a=e=>{var t=lc();U(()=>t.disabled=!n().include),q(`click`,t,()=>{n(n().modifiers=[...n().modifiers,``],!0)}),Y(e,t)};Z(i,e=>{K(v)||e(a)}),D(t),Y(e,t)};Z(me,e=>{K(s)&&e(he)}),D(le);var ge=H(le,2),_e=e=>{var t=dc(),r=B(t);let i;var a=H(r,2);let o;var s=H(a,2);let c;D(t),U(()=>{i=oa(r,1,`rebemer-row__op-btn`,null,i,{"rebemer-row__op-btn--on":n().op===`add`}),$(r,`aria-pressed`,n().op===`add`),o=oa(a,1,`rebemer-row__op-btn`,null,o,{"rebemer-row__op-btn--on":n().op===`rename`}),$(a,`aria-pressed`,n().op===`rename`),c=oa(s,1,`rebemer-row__op-btn`,null,c,{"rebemer-row__op-btn--on":n().op===`replace`}),$(s,`aria-pressed`,n().op===`replace`)}),q(`click`,r,()=>{n(n().op=`add`,!0)}),q(`click`,a,()=>{n(n().op=`rename`,!0),!n().renameFamilyId&&K(f).length&&n(n().renameFamilyId=K(f)[0].id,!0)}),q(`click`,s,()=>{n(n().op=`replace`,!0),n(n().renameFamilyId=``,!0)}),Y(e,t)};Z(ge,e=>{K(l)&&n().include&&e(_e)});var ve=H(ge,2),ye=e=>{var t=Mi(),r=V(t),i=e=>{var t=Mi(),r=V(t),i=e=>{Y(e,fc())},o=e=>{var t=_c(),r=V(t),i=e=>{var t=mc(),r=H(B(t),2);Q(r,21,()=>K(f),Ki,(e,t)=>{var n=pc(),r=B(n);D(n);var i={};U(()=>{X(r,`${K(t).name??``}${K(t).modCount>0?` (+ ${K(t).modCount} modifier${K(t).modCount>1?`s`:``})`:``}`),i!==(i=K(t).id)&&(n.value=(n.__value=K(t).id)??``)}),Y(e,n)}),D(r),D(t),da(r,()=>n().renameFamilyId,e=>n(n().renameFamilyId=e,!0)),Y(e,t)};Z(r,e=>{K(f).length>1&&e(i)});var o=H(r,2),s=e=>{let t=F(()=>1+K(p).modCount);var r=Mi(),i=V(r),o=e=>{var t=hc(),n=H(B(t)),r=B(n,!0);D(n);var i=H(n);D(t),U(()=>{X(r,K(p).name),X(i,`${K(p).modCount>0?` (+ ${K(p).modCount} modifier${K(p).modCount>1?`s`:``})`:``} and remove all other classes from this element.`)}),Y(e,t)},s=e=>{var r=gc(),i=H(B(r)),a=B(i,!0);D(i);var o=H(i);D(r),U(()=>{X(a,K(p).name),X(o,`${K(p).modCount>0?` (+ ${K(p).modCount} modifier${K(p).modCount>1?`s`:``})`:``}${(n().currentClassIds?.length??0)>K(t)?` Other classes kept.`:``}`)}),Y(e,r)};Z(i,e=>{a()?e(o):e(s,-1)}),Y(e,r)};Z(o,e=>{K(p)&&e(s)}),Y(e,t)};Z(r,e=>{K(f).length===0?e(i):e(o,-1)}),Y(e,t)},o=e=>{var t=_c(),r=V(t),i=e=>{var t=vc(),r=H(B(t),2),i=B(r);i.value=i.__value=``,Q(H(i),17,()=>K(f),Ki,(e,t)=>{var n=pc(),r=B(n);D(n);var i={};U(()=>{X(r,`${K(t).name??``}${K(t).modCount>0?` (+ ${K(t).modCount} modifier${K(t).modCount>1?`s`:``})`:``}`),i!==(i=K(t).id)&&(n.value=(n.__value=K(t).id)??``)}),Y(e,n)}),D(r),D(t),U(()=>r.disabled=a()),da(r,()=>n().renameFamilyId,e=>n(n().renameFamilyId=e,!0)),Y(e,t)};Z(r,e=>{K(f).length>0&&e(i)});var o=H(r,2),s=e=>{Y(e,yc())},c=e=>{Y(e,bc())},l=e=>{Y(e,xc())},u=e=>{Y(e,yc())};Z(o,e=>{a()?e(s):K(f).length===0?e(c,1):n().renameFamilyId?e(l,2):e(u,-1)}),Y(e,t)};Z(r,e=>{K(d)===`rename`?e(i):e(o,-1)}),Y(e,t)};Z(ve,e=>{(K(d)===`rename`||K(d)===`replace`)&&n().include&&e(ye)});var be=H(ve,2),xe=e=>{var t=wc(),n=B(t),r=e=>{var t=Sc(),n=H(V(t)),r=B(n,!0);D(n),ze(),U(()=>X(r,K(_).name)),Y(e,t)},i=e=>{var t=Cc(),n=H(V(t)),r=B(n,!0);D(n),ze(),U(()=>X(r,K(_).name)),Y(e,t)};Z(n,e=>{K(c)?e(r):e(i,-1)}),D(t),Y(e,t)};Z(be,e=>{K(_)&&e(xe)});var Se=H(be,2),Ce=e=>{var t=kc(),r=B(t),i=e=>{var t=Ec();Q(H(V(t),2),17,()=>n().migrateKeys,Ki,(e,t)=>{var n=Tc(),r=B(n,!0);D(n),U(e=>{$(n,`title`,`Will be lifted into ${(o()[0]||`the new class`)??``}`),X(r,e)},[()=>b(K(t))]),Y(e,n)}),Y(e,t)},a=e=>{Y(e,Dc())};Z(r,e=>{n().migrateKeys?.length?e(i):e(a,-1)});var s=H(r,2),c=e=>{var t=Oc(),r=B(t);D(t),U(()=>X(r,`${n().skippedKeys.length??``} skipped`)),Y(e,t)};Z(s,e=>{n().skippedKeys?.length&&e(c)}),D(t),Y(e,t)};Z(Se,e=>{K(c)&&n().include&&e(Ce)}),D(x),U(()=>{S=oa(x,1,`rebemer-row`,null,S,{"rebemer-row--disabled":!n().include,"rebemer-row--suggested":K(g)}),ca(x,`--rebemer-row-depth: ${n().depth??0??``}`),X(re,n().originalLabel),$(pe,`placeholder`,t.isRoot?`block-name`:`element-name`),pe.disabled=!n().include}),xa(te,()=>n().include,e=>n(n().include=e,!0)),q(`input`,pe,y),ba(pe,()=>n().name,e=>n(n().name=e,!0)),Y(e,x),Ye()}wi([`click`,`input`]);var Mc=J(` `);function Nc(e,t){Je(t,!0);let n=Na(t,`kind`,3,`info`),r=Na(t,`duration`,3,3e3),i=R(!0);wr(()=>{if(!K(i)||r()<=0)return;let e=setTimeout(()=>{z(i,!1),t.onDismiss?.()},r());return()=>clearTimeout(e)});let a=F(()=>n()===`error`?`alert`:`status`);var o=Mi(),s=V(o),c=e=>{var r=Mc(),o=B(r,!0);D(r),U(()=>{oa(r,1,`rebemer-toast rebemer-toast--${n()??``}`),$(r,`role`,K(a)),$(r,`aria-live`,n()===`error`?`assertive`:`polite`),X(o,t.message)}),q(`click`,r,()=>{z(i,!1),t.onDismiss?.()}),Y(e,r)};Z(s,e=>{K(i)&&e(c)}),Y(e,o),Ye()}wi([`click`]);var Pc=J(``),Fc=J(`Will migrate `,1),Ic=J(` `),Lc=J(``),Rc=J(` `,1);function zc(e,t){Je(t,!0);let n={add:`Attaches a new BEM class to each element without removing any existing classes.`,rename:`Renames an existing class family to the new name (its settings carry over). When an element has several classes, pick which family to rename per row; other classes are kept unless "Remove all existing classes" is on.`,replace:`Swaps classes for a new BEM class with empty settings. Pick a family to replace just that one (keeping the rest), or leave "— All classes —" / enable "Remove all existing classes" to clear the element.`,migrate:`Lifts inline element styles (padding, color, typography, etc.) into a new global class.`,mixed:`Per-element control — every row defaults to Add. Switch any row to Rename (targets one class family, keeps others) or Replace (a selected family, or all classes). "Remove all existing classes" clears every renamed/replaced row.`};function r(e){return e===`rename`||e===`replace`||e===`mixed`}function i(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}let a=R(`add`),o=R(!0),s=R(!1),c=R(er([])),l=R(er([])),u=R(null),d=R(null),f=F(()=>K(c)[0]?.originalLabel??``),p=F(()=>K(c).length===0?new Map:Ls(K(c),t.rootId)),m=F(()=>{if(K(a)!==`migrate`)return null;let e=0,t=0;for(let n of K(c))n.include&&(e+=n.migrateKeys?.length??0,t+=n.skippedKeys?.length??0);return{willMigrate:e,willSkip:t}}),h=F(()=>{if(K(c).length===0)return new Map;let e=Rs({rootId:t.rootId,rows:K(c),mode:K(a)}),n=new Map;if(!e.ok)return n;for(let t of e.ops){let e=[t.finalClass];for(let n of t.modifierSlugs??[])e.push(`${t.finalClass}--${n}`);n.set(t.row.id,e)}return n});Pa(()=>{let e=Ga(t.rootId);z(l,qa().slice(),!0);let n=e.map((e,t)=>{let n=t===0,r=e.label||``,a=Ds(r),o=e.name||``,s,c;if(a)s=a,c=`label`;else if(n)s=`block`,c=`fallback`;else if(o&&!ec(o)){let e=$s(o,``);if(e)s=e,c=`element-type`;else{let e=Ds(Za(o));e&&As(e).ok?(s=e,c=`element-type`):(s=`item`,c=`fallback`)}}else s=`item`,c=`fallback`;let l=i(e.settings);return{id:e.id,depth:e.depth,bricksType:o,originalLabel:r||(n?`block`:`element`),name:s,modifiers:[``],isBlockRoot:!1,include:!0,suggestedFrom:c,migrateKeys:Ms(e.settings),skippedKeys:Ps(e.settings),currentClassCount:l.length,currentClassIds:l,op:`add`,renameFamilyId:``}});if(n.length>1){let t=Zs(),r=new Map(e.map(e=>[e.id,[]])),i=[];for(let t of e){for(;i.length&&i[i.length-1].depth>=t.depth;)i.pop();i.length&&r.get(i[i.length-1].id).push(t.id),i.push(t)}let a=new Map(e.map(e=>[e.id,e])),o=new Map(n.map(e=>[e.id,e]));for(let[,e]of r){if(!e.length)continue;let n=new Map;for(let t of e){let e=a.get(t)?.name;e&&n.set(e,(n.get(e)??0)+1)}let i=e.filter(e=>ec(a.get(e)?.name??``));for(let s of e){let e=o.get(s),c=a.get(s);if(!(!e||!c||e.suggestedFrom===`label`)){if(ec(c.name))e.name=nc((r.get(s)??[]).map(e=>a.get(e)?.name??``).filter(Boolean),i.indexOf(s),i.length,t,c.name),e.suggestedFrom=`element-type`;else if((n.get(c.name)??0)===1){let t=tc[c.name];t&&(e.name=t,e.suggestedFrom=`element-type`)}}}}}z(c,n,!0)});function g(e){if(e.key===`Escape`){t.onClose?.();return}K(d)&&e.target instanceof Node&&K(d).contains(e.target)&&e.key===`Enter`&&(e.target?.tagName===`INPUT`||e.target?.tagName===`SELECT`)&&(e.preventDefault(),v())}let _=null;function v(){let e=As(Ds(K(c)[0]?.name??``));if(!e.ok){z(u,{kind:`error`,message:e.reason},!0);return}for(let e of K(c)){if(!e.isBlockRoot||!e.include)continue;let t=As(Ds(e.name??``));if(!t.ok){z(u,{kind:`error`,message:`Sub-block "${e.originalLabel}": ${t.reason}`},!0);return}}let n=zs({rootId:t.rootId,rows:K(c),mode:K(a),syncLabels:K(o),removeExisting:K(s)});n.ok?(z(u,{kind:`success`,message:`Applied to ${n.count} element${n.count===1?``:`s`}.`},!0),_&&clearTimeout(_),_=setTimeout(()=>t.onClose?.(),800)):z(u,{kind:`error`,message:n.error},!0)}wr(()=>()=>{_&&clearTimeout(_)});var y=Rc();Ci(`keydown`,rr,g);var b=V(y),x=B(b),S=B(x),ee=H(B(S)),te=B(ee,!0);D(ee),D(S);var ne=H(S,2);D(x);var C=H(x,2),re=B(C),ie=H(B(re),2),ae=B(ie);ae.value=ae.__value=`add`;var oe=H(ae);oe.value=oe.__value=`rename`;var se=H(oe);se.value=se.__value=`replace`;var ce=H(se);ce.value=ce.__value=`migrate`;var le=H(ce);le.value=le.__value=`mixed`,D(ie),D(re);var ue=H(re,2),de=B(ue);ga(de),ze(2),D(ue);var fe=H(ue,2),pe=e=>{var t=Pc(),n=B(t);ga(n),ze(2),D(t),xa(n,()=>K(s),e=>z(s,e)),Y(e,t)},me=F(()=>r(K(a)));Z(fe,e=>{K(me)&&e(pe)}),D(C);var he=H(C,2),ge=B(he,!0);D(he);var _e=H(he,2),ve=e=>{var t=Lc();let n;var r=B(t),i=e=>{Y(e,ji(`No migratable style keys found on any included element. Apply will attach empty classes.`))},a=e=>{var t=Fc(),n=H(V(t)),r=B(n,!0);D(n);var i=H(n);U(()=>{X(r,K(m).willMigrate),X(i,` style key${K(m).willMigrate===1?``:`s`} into new classes.`)}),Y(e,t)};Z(r,e=>{K(m).willMigrate===0?e(i):e(a,-1)});var o=H(r,2),s=e=>{var t=Ic(),n=B(t);D(t),U(()=>X(n,`${K(m).willSkip??``} key${K(m).willSkip===1?``:`s`} not on the allowlist will stay on the element.`)),Y(e,t)};Z(o,e=>{K(m).willSkip>0&&e(s)}),D(t),U(()=>n=oa(t,1,`rebemer-panel__notice`,null,n,{"rebemer-panel__notice--warn":K(m).willSkip>0||K(m).willMigrate===0})),Y(e,t)};Z(_e,e=>{K(m)&&e(ve)});var ye=H(_e,2);Q(ye,23,()=>K(c),e=>e.id,(e,n,r)=>{{let i=F(()=>K(p).get(K(n).id)??``),o=F(()=>K(n).id===t.rootId||K(n).isBlockRoot),u=F(()=>K(h).get(K(n).id)??[]);jc(e,{get mode(){return K(a)},get blockName(){return K(i)},get isRoot(){return K(o)},get rootId(){return t.rootId},get globalClasses(){return K(l)},get removeExisting(){return K(s)},get finalClassNames(){return K(u)},get row(){return K(c)[K(r)]},set row(e){K(c)[K(r)]=e}})}}),D(ye);var be=H(ye,2),xe=B(be),Se=H(xe,2);D(be),D(b),Ma(b,e=>z(d,e),()=>K(d));var Ce=H(b,2),we=e=>{Nc(e,{get kind(){return K(u).kind},get message(){return K(u).message},onDismiss:()=>{z(u,null)}})};Z(Ce,e=>{K(u)&&e(we)}),U(()=>{X(te,K(f)),X(ge,n[K(a)])}),q(`click`,ne,()=>t.onClose?.()),da(ie,()=>K(a),e=>z(a,e)),xa(de,()=>K(o),e=>z(o,e)),q(`click`,xe,()=>t.onClose?.()),q(`click`,Se,v),Y(e,y),Ye()}wi([`click`]);var Bc=J(``);function Vc(e,t){var n=Bc();let r;U(()=>{r=oa(n,1,`slashed-cp-launch`,null,r,{"slashed-cp-launch--on":t.open}),$(n,`aria-pressed`,t.open)}),q(`click`,n,function(...e){t.onToggle?.apply(this,e)}),Y(e,n)}wi([`click`]);var Hc=`--sf-color-`,Uc=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`],Wc=[`success`,`warning`,`error`,`info`,`danger`],Gc=[`a5`,`a10`,`a20`,`a30`,`a40`,`a50`,`a60`,`a70`,`a80`,`a90`,`a95`],Kc=[`superlight`,`xlight`,`lighter`,`darker`,`xdark`,`superdark`,`hover`,`active`,`strong`,`subtle`,`muted`,`ghost`],qc=[`text`,`heading`,`bg`,`surface`,`inset`,`raised`,`overlay`,`inverse`,`border`,`link`,`code`,`selection`,`mark`,`dim`],Jc=(e=>new Set(e))([...Uc,...Wc]),Yc={primary:{tagline:`Brand identity & main emphasis`,use:`Headlines, primary buttons, key brand moments.`},secondary:{tagline:`Supporting brand tone`,use:`Secondary surfaces and muted brand accents.`},tertiary:{tagline:`Accent / highlight`,use:`Badges, tags, decorative highlights.`},action:{tagline:`Interactive & links`,use:`Links, focus rings, anything clickable.`},neutral:{tagline:`Text, icons & dividers`,use:`Body text, borders, neutral UI chrome.`},base:{tagline:`Page & surface backgrounds`,use:`Page background and raised surfaces.`},success:{tagline:`Positive / confirmation`,use:`Success messages and valid state.`},warning:{tagline:`Caution`,use:`Warnings and at-risk / pending state.`},error:{tagline:`Form & validation errors`,use:`Invalid inputs and error messages.`},info:{tagline:`Informational`,use:`Tips and neutral notices.`},danger:{tagline:`Destructive actions`,use:`Delete / remove and irreversible actions.`},semantic:{tagline:`Ready-made role tokens`,use:`Pre-wired roles that already adapt to light/dark.`}},Xc=[{id:`text-on`,label:`Text on color`,match:e=>e.startsWith(`text--on`)},{id:`text`,label:`Text`,match:e=>e===`text`||e===`heading`||e.startsWith(`text-`)},{id:`state`,label:`Interactive states`,match:e=>e.startsWith(`bg--`)},{id:`surface`,label:`Surfaces & backgrounds`,match:e=>[`bg`,`surface`,`inset`,`raised`,`overlay`,`inverse`].some(t=>e===t||e.startsWith(t+`-`))},{id:`border`,label:`Borders`,match:e=>e===`border`||e.startsWith(`border-`)},{id:`link`,label:`Links`,match:e=>e===`link`||e.startsWith(`link-`)},{id:`select`,label:`Selection & marks`,match:e=>e.startsWith(`selection`)||e.startsWith(`mark`)||e===`dim`},{id:`code`,label:`Code`,match:e=>e.startsWith(`code`)}];function Zc(e){if(typeof e!=`string`||e.indexOf(Hc)!==0)return null;let t=e.slice(11);if(!t||t===`scheme`)return null;let n=t.indexOf(`-`),r=n===-1?t:t.slice(0,n);if(!Jc.has(r))return{family:`semantic`,kind:`semantic`,step:null,key:t};let i=n===-1?``:t.slice(n+1);return i===``?{family:r,kind:`base`,step:null,key:t}:i===`light`?null:/^[0-9]+$/.test(i)?{family:r,kind:`scale`,step:Number(i),key:t}:/^a[0-9]+$/.test(i)?{family:r,kind:`alpha`,step:i,key:t}:{family:r,kind:`alias`,step:i,key:t}}function Qc(e){return e.kind===`alpha`?!0:/(?:^|-)(?:subtle|muted|ghost|translucent|overlay|dim|underline)$/.test(e.key)}function $c(e){switch(e.kind){case`base`:return el(e.family);case`scale`:return String(e.step);case`alpha`:return String(e.step).toUpperCase();case`alias`:return el(String(e.step));default:return tl(e.key)}}function el(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function tl(e){return e.split(`--`).map(e=>e.split(`-`).map(el).join(` `)).join(` · `)}function nl(e,t,n,r){let i=n[e];if(typeof i!=`string`||!i)return null;let a=typeof r[e]==`string`&&r[e]?r[e]:i;return{var:e,name:e.slice(2),label:$c(t),light:i,dark:a,alpha:Qc(t)}}function rl(e,t){let n={base:0,scale:1,alias:2,alpha:3};if(n[e.info.kind]!==n[t.info.kind])return n[e.info.kind]-n[t.info.kind];if(e.info.kind===`scale`)return e.info.step-t.info.step;if(e.info.kind===`alpha`)return Gc.indexOf(e.info.step)-Gc.indexOf(t.info.step);if(e.info.kind===`alias`){let n=Kc.indexOf(e.info.step),r=Kc.indexOf(t.info.step),i=n===-1?999:n,a=r===-1?999:r;return i===a?String(e.info.step).localeCompare(String(t.info.step)):i-a}return 0}function il(e,t){let n=qc.findIndex(t=>e.info.key===t||e.info.key.startsWith(t+`-`)),r=qc.findIndex(e=>t.info.key===e||t.info.key.startsWith(e+`-`)),i=n===-1?qc.length:n,a=r===-1?qc.length:r;return i===a?e.info.key.localeCompare(t.info.key):i-a}function al(e,t,n){let r=Array.isArray(e)?e:[],i=t&&typeof t==`object`?t:{},a=n&&typeof n==`object`?n:{},o=new Map,s=[];for(let e of r){let t=Zc(e);if(!t)continue;let n=nl(e,t,i,a);if(!n)continue;let r={swatch:n,info:t};if(t.family===`semantic`){s.push(r);continue}o.has(t.family)||o.set(t.family,[]),o.get(t.family).push(r)}let c=[],l=(e,t)=>{let n=o.get(e);if(!n||n.length===0)return;n.sort(rl);let r=n.filter(e=>e.info.kind===`base`||e.info.kind===`scale`),i=n.filter(e=>e.info.kind===`alias`),a=n.filter(e=>e.info.kind===`alpha`),s=[];r.length&&s.push({id:`scale`,label:`Shades & tints`,swatches:r.map(e=>e.swatch)}),a.length&&s.push({id:`alpha`,label:`Transparent`,swatches:a.map(e=>e.swatch)}),i.length&&s.push({id:`alias`,label:`Semantic`,swatches:i.map(e=>e.swatch)});let l=Yc[e]||{};c.push({id:e,label:el(e),type:t,count:n.length,tagline:l.tagline||``,use:l.use||``,sections:s})};for(let e of Uc)l(e,`brand`);for(let e of Wc)l(e,`status`);if(s.length){s.sort(il);let e=new Map(Xc.map(e=>[e.id,[]])),t=[];for(let n of s){let r=Xc.find(e=>e.match(n.info.key));r?e.get(r.id).push(n.swatch):t.push(n.swatch)}let n=[];for(let t of Xc){let r=e.get(t.id);r.length&&n.push({id:t.id,label:t.label,swatches:r})}t.length&&n.push({id:`other`,label:`Other`,swatches:t});let r=Yc.semantic||{};c.push({id:`semantic`,label:`Semantic`,type:`semantic`,count:s.length,tagline:r.tagline||``,use:r.use||``,sections:n})}return{groups:c}}function ol(e,t){let n=String(t||``).trim().toLowerCase();if(!n)return e;if(!e||!Array.isArray(e.groups))return{groups:[]};let r=[];for(let t of e.groups){let e=[];for(let r of t.sections){let i=r.swatches.filter(e=>e.name.toLowerCase().includes(n)||e.label.toLowerCase().includes(n)||t.label.toLowerCase().includes(n));i.length&&e.push({...r,swatches:i})}if(e.length){let n=e.reduce((e,t)=>e+t.swatches.length,0);r.push({...t,sections:e,count:n})}}return{groups:r}}function sl(e){return`var(${e.var})`}function cl(e,t){return t===`dark`?e.dark:e.light}var ll=[{id:`typography`,label:`Typography`,tokens:[{var:`--sf-color-heading`,label:`Heading`},{var:`--sf-color-text`,label:`Text`},{var:`--sf-color-text--muted`,label:`Text · Muted`},{var:`--sf-color-text--secondary`,label:`Text · Secondary`},{var:`--sf-color-text--on-primary`,label:`On Primary`},{var:`--sf-color-text--on-secondary`,label:`On Secondary`}]},{id:`surfaces`,label:`Surfaces`,tokens:[{var:`--sf-color-bg`,label:`Background`},{var:`--sf-color-surface`,label:`Surface`},{var:`--sf-color-raised`,label:`Raised`},{var:`--sf-color-inset`,label:`Inset`},{var:`--sf-color-overlay`,label:`Overlay`},{var:`--sf-color-inverse`,label:`Inverse`}]},{id:`structure`,label:`Structure`,tokens:[{var:`--sf-color-border`,label:`Border`},{var:`--sf-color-border--subtle`,label:`Border · Subtle`},{var:`--sf-color-border--strong`,label:`Border · Strong`},{var:`--sf-color-link`,label:`Link`},{var:`--sf-color-link--hover`,label:`Link · Hover`}]},{id:`brand`,label:`Brand`,tokens:[{var:`--sf-color-primary`,label:`Primary`},{var:`--sf-color-secondary`,label:`Secondary`},{var:`--sf-color-tertiary`,label:`Tertiary`},{var:`--sf-color-action`,label:`Action`},{var:`--sf-color-neutral`,label:`Neutral`},{var:`--sf-color-base`,label:`Base`}]},{id:`feedback`,label:`Feedback`,tokens:[{var:`--sf-color-success`,label:`Success`},{var:`--sf-color-success-subtle`,label:`Success · Subtle`},{var:`--sf-color-warning`,label:`Warning`},{var:`--sf-color-warning-subtle`,label:`Warning · Subtle`},{var:`--sf-color-error`,label:`Error`},{var:`--sf-color-error-subtle`,label:`Error · Subtle`},{var:`--sf-color-info`,label:`Info`},{var:`--sf-color-danger`,label:`Danger`}]}];function ul(e,t,n){let r=t&&typeof t==`object`?t:{},i=n&&typeof n==`object`?n:{},a=[];for(let e of ll){let t=[];for(let n of e.tokens){let e=r[n.var];if(!e)continue;let a=i[n.var]||e;t.push({var:n.var,name:n.var.slice(2),label:n.label,light:e,dark:a,alpha:/overlay|subtle|ghost|muted|dim|alpha/i.test(n.var)})}t.length&&a.push({id:e.id,label:e.label,swatches:t})}return{groups:a}}var dl=J(``);function fl(e,t){Je(t,!0);let n=Na(t,`onPick`,3,void 0),r=F(()=>`${t.swatch.name}\nlight ${t.swatch.light} · dark ${t.swatch.dark}`);var i=dl();let a;U(e=>{a=oa(i,1,`slashed-cp-swatch`,null,a,{"slashed-cp-swatch--alpha":t.swatch.alpha,"slashed-cp-swatch--split":t.mode===`both`}),ca(i,`--cp-l:${t.swatch.light??``}; --cp-d:${t.swatch.dark??``}; --cp-solid:${e??``};`),$(i,`title`,K(r)),$(i,`aria-label`,t.swatch.name)},[()=>cl(t.swatch,t.mode===`dark`?`dark`:`light`)]),q(`click`,i,()=>n()?.(t.swatch)),Y(e,i),Ye()}wi([`click`]);var pl=J(``),ml=J(``),hl=J(``),gl=J(`
            `),_l=J(`

            `,1),vl=J(``),yl=J(`

            Scale 50 → 950

            `,1),bl=J(``),xl=J(`
            `),Sl=J(` `,1),Cl=J(`
            `),wl=J(`
            `),Tl=J(`
            `),El=J(``),Dl=J(`

            `),Ol=J(` `),kl=J(``),Al=J(`
          • `),jl=J(`
              `),Ml=J(`
              `),Nl=J(` `,1),Pl=J(`

              `),Fl=J(``),Il=J(`

              `),Ll=J(`

              Quick Use

              Palette

              Brand

              Status

              `,1),Rl=J(``),zl=J(`

              Color System

              var()
              `,1);function Bl(e,t){Je(t,!0);let n=(e,t=d)=>{var n=Tl();Q(n,21,t,e=>e.id,(e,t)=>{let n=F(()=>oe(K(t))),r=F(()=>se(K(t))),i=F(()=>K(u)===K(t).id);var a=wl(),o=B(a);let c;var l=B(o),d=e=>{var t=pl();U(()=>ca(t,`--sw-l: ${K(n).light??``}; --sw-d: ${K(n).dark??``}`)),Y(e,t)};Z(l,e=>{K(n)&&e(d)});var p=H(l,2),m=B(p,!0);D(p);var h=H(p,2),g=B(h,!0);D(h);var _=H(h,2);Q(_,21,()=>K(r),e=>e.var,(e,t)=>{var n=ml();U(()=>{ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`),$(n,`title`,K(t).label)}),Y(e,n)}),D(_);var v=H(_,2),y=B(v,!0);D(v),D(o);var b=H(o,2),x=e=>{let r=F(()=>ae(K(t),`alias`)),i=F(()=>ce(K(t))),a=F(()=>ae(K(t),`alpha`));var o=Cl(),c=B(o),l=e=>{var r=hl(),i=B(r),a=B(i,!0);D(i),D(r),U(()=>{ca(r,`--sw-l: ${K(n).light??``}; --sw-d: ${K(n).dark??``}`),$(r,`title`,`${K(t).label??``} base — ${K(n).name??``}`),X(a,K(t).label)}),q(`click`,r,()=>C(K(n))),Y(e,r)};Z(c,e=>{K(n)&&e(l)});var u=H(c,2),d=e=>{var t=_l(),n=V(t),i=B(n);D(n);var a=H(n,2);Q(a,21,()=>K(r).swatches,e=>e.var,(e,t)=>{var n=gl(),r=B(n);fl(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i),D(n),U(()=>X(a,K(t).label)),Y(e,n)}),D(a),U(()=>X(i,`Aliases · ${K(r).swatches.length??``}`)),Y(e,t)};Z(u,e=>{K(r)?.swatches.length&&e(d)});var p=H(u,2),m=e=>{var t=yl(),n=H(V(t),2);Q(n,21,()=>K(i),e=>e.var,(e,t)=>{var n=vl();U(()=>{$(n,`title`,`${K(t).label??``} — ${K(t).name??``}`),ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(n),Y(e,t)};Z(p,e=>{K(i).length&&e(m)});var h=H(p,2),g=e=>{var n=Sl(),r=V(n),i=B(r),o=B(i,!0);D(i),ze(),D(r);var s=H(r,2),c=e=>{var t=xl();Q(t,21,()=>K(a).swatches,e=>e.var,(e,t)=>{var n=bl();U(()=>{$(n,`title`,`${K(t).label??``} — ${K(t).name??``}`),ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(t),Y(e,t)},l=F(()=>K(f).has(K(t).id));Z(s,e=>{K(l)&&e(c)}),U(e=>X(o,e),[()=>K(f).has(K(t).id)?`▾`:`▸`]),q(`click`,r,()=>ie(K(t).id)),Y(e,n)};Z(h,e=>{K(a)?.swatches.length&&e(g)}),D(o),Y(e,o)};Z(b,e=>{K(i)&&e(x)}),D(a),U(()=>{c=oa(o,1,`slashed-cp__scan-row`,null,c,{"slashed-cp__scan-row--open":K(i)}),$(o,`aria-expanded`,K(i)),X(m,K(t).label),X(g,K(t).tagline),X(y,K(i)?`▾`:`▸`)}),q(`click`,o,()=>re(K(t).id)),Y(e,a)}),D(n),Y(e,n)},r=Na(t,`dockedLeft`,3,null),i=F(()=>typeof t.onPickValue==`function`),a=[{id:`both`,label:`Both`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}],o=[`Hover`,`Active`,`Subtle`,`Ghost`,`Superlight`],s=R(`both`),c=R(``),l=R(null),u=R(null),f=R(er(new Set)),p=F(()=>al(t.source?.variables,t.source?.light,t.source?.dark)),m=F(()=>K(c).trim()),h=F(()=>ol(K(p),K(m))),g=F(()=>ul(t.source?.variables,t.source?.light,t.source?.dark)),_=F(()=>K(p).groups.reduce((e,t)=>e+t.count,0)),v=F(()=>K(p).groups.filter(e=>e.type===`brand`)),y=F(()=>K(p).groups.filter(e=>e.type===`status`)),b;function x(){if(typeof document>`u`)return null;let e=document.querySelector(`iframe#bricks-builder-iframe, iframe[name="bricks-builder-iframe"], #bricks-builder-area iframe`);try{return e?.contentDocument?.documentElement??null}catch{return null}}function S(e){let t=x();if(t)try{b===void 0&&(b=t.getAttribute(`data-theme`)),e===`light`||e===`dark`?t.setAttribute(`data-theme`,e):b===null?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,b)}catch{}}function ee(){let e=x();if(!(!e||b===void 0))try{b===null?e.removeAttribute(`data-theme`):e.setAttribute(`data-theme`,b)}catch{}}function te(e){z(s,e,!0),S(e)}Pa(()=>()=>ee());async function ne(e){try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.style.cssText=`position:fixed;opacity:0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}async function C(e){let n=sl(e);if(K(i)){if(t.onPickValue(n)===!1){z(l,{kind:`error`,message:`Couldn't apply ${n} — input not found`},!0);return}t.onPick?.();return}z(l,await ne(n)?{kind:`info`,message:`Copied — ${e.name}`}:{kind:`error`,message:`Couldn't copy ${n}`},!0)}function re(e){z(u,K(u)===e?null:e,!0),z(f,new Set,!0)}function ie(e){let t=new Set(K(f));t.has(e)?t.delete(e):t.add(e),z(f,t,!0)}function ae(e,t){return e.sections.find(e=>e.id===t)}function oe(e){return ae(e,`scale`)?.swatches[0]??null}function se(e){let t=ae(e,`alias`);if(!t?.swatches.length)return[];let n=o.map(e=>t.swatches.find(t=>t.label===e)).filter(Boolean);return n.length?n:t.swatches.slice(0,5)}function ce(e){return ae(e,`scale`)?.swatches.slice(1)??[]}function le(e){e.key===`Escape`&&t.onClose?.()}var ue=zl();Ci(`keydown`,rr,le);var de=V(ue);let fe;var pe=B(de),me=H(B(pe),2);Q(me,21,()=>a,e=>e.id,(e,t)=>{var n=El();let r;var i=B(n,!0);D(n),U(()=>{r=oa(n,1,`slashed-cp__seg-btn`,null,r,{"slashed-cp__seg-btn--on":K(s)===K(t).id}),$(n,`aria-pressed`,K(s)===K(t).id),X(i,K(t).label)}),q(`click`,n,()=>te(K(t).id)),Y(e,n)}),D(me);var he=H(me,2);D(pe);var ge=H(pe,2),_e=B(ge);ga(_e),D(ge);var ve=H(ge,2),ye=B(ve),be=e=>{var t=Nl(),n=V(t),r=e=>{var t=Dl(),n=B(t);D(t),U(()=>X(n,`No tokens match "${K(m)??``}".`)),Y(e,t)};Z(n,e=>{K(h).groups.length===0&&e(r)}),Q(H(n,2),17,()=>K(h).groups,e=>e.id,(e,t)=>{var n=Pl(),r=B(n),i=B(r),a=B(i),o=H(a),c=e=>{var n=Ol(),r=B(n,!0);D(n),U(()=>X(r,K(t).tagline)),Y(e,n)};Z(o,e=>{K(t).tagline&&e(c)});var l=H(o,2),u=B(l,!0);D(l),D(i),D(r),Q(H(r,2),17,()=>K(t).sections,e=>e.id,(e,n)=>{var r=Nl(),i=V(r),a=e=>{var t=kl(),r=B(t,!0);D(t),U(()=>X(r,K(n).label)),Y(e,t)};Z(i,e=>{K(n).label&&e(a)});var o=H(i,2),c=e=>{var t=jl();Q(t,21,()=>K(n).swatches,e=>e.var,(e,t)=>{var n=Al(),r=B(n);fl(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i);var o=H(i,2),c=B(o,!0);D(o),D(n),U(()=>{X(a,K(t).label),X(c,K(t).name)}),Y(e,n)}),D(t),Y(e,t)},l=e=>{var t=Ml();Q(t,21,()=>K(n).swatches,e=>e.var,(e,t)=>{var n=gl(),r=B(n);fl(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i),D(n),U(()=>X(a,K(t).label)),Y(e,n)}),D(t),Y(e,t)};Z(o,e=>{K(t).type===`semantic`?e(c):e(l,-1)}),Y(e,r)}),D(n),U(()=>{$(n,`data-type`,K(t).type),X(a,`${K(t).label??``} `),X(u,K(t).count)}),Y(e,n)}),Y(e,t)},xe=e=>{var t=Ll(),r=V(t);Q(H(B(r),2),17,()=>K(g).groups,e=>e.id,(e,t)=>{var n=Il(),r=B(n),i=B(r,!0);D(r);var a=H(r,2);Q(a,21,()=>K(t).swatches,e=>e.var,(e,t)=>{var n=Fl(),r=B(n);let i;var a=H(r,2),o=B(a,!0);D(a),D(n),U(()=>{$(n,`title`,K(t).name),i=oa(r,1,`slashed-cp__qu-sw`,null,i,{"slashed-cp__qu-sw--alpha":K(t).alpha}),ca(r,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`),X(o,K(t).label)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(a),D(n),U(()=>X(i,K(t).label)),Y(e,n)}),D(r);var i=H(r,2),a=H(B(i),4);n(a,()=>K(v)),n(H(a,4),()=>K(y)),D(i),Y(e,t)};Z(ye,e=>{K(m)?e(be):e(xe,-1)}),D(ve);var Se=H(ve,2),Ce=B(Se),we=e=>{Y(e,Rl())};Z(Ce,e=>{K(s)===`both`&&e(we)});var Te=H(Ce,2),Ee=B(Te);ze(),D(Te),D(Se),D(de);var De=H(de,2),Oe=e=>{Nc(e,{get kind(){return K(l).kind},get message(){return K(l).message},onDismiss:()=>{z(l,null)}})};Z(De,e=>{K(l)&&e(Oe)}),U(()=>{fe=oa(de,1,`slashed-cp`,null,fe,{"slashed-cp--docked":K(i)}),$(de,`data-mode`,K(s)),ca(de,K(i)&&r()!=null?`--cp-dock-left: ${r()}px`:``),$(_e,`placeholder`,`Search ${K(_)} tokens…`),X(Ee,`${K(i)?`Click to insert`:`Click to copy`} `)}),q(`click`,de,e=>e.stopPropagation()),q(`mousedown`,de,e=>e.stopPropagation()),q(`pointerdown`,de,e=>e.stopPropagation()),q(`touchstart`,de,e=>e.stopPropagation(),void 0,!0),q(`click`,he,()=>t.onClose?.()),ba(_e,()=>K(c),e=>z(c,e)),Y(e,ue),Ye()}wi([`click`,`mousedown`,`pointerdown`,`touchstart`]);var Vl=J(` `,1);function Hl(e,t){let n=R(!1);var r=Vl(),i=V(r);Vc(i,{get open(){return K(n)},onToggle:()=>z(n,!K(n))});var a=H(i,2),o=e=>{Bl(e,{get source(){return t.source},onClose:()=>z(n,!1)})};Z(a,e=>{K(n)&&e(o)}),Y(e,r)}var Ul=`#bricks-structure`,Wl=`li[data-id]`,Gl=`slashed-rebemer-host`,Kl=400,ql=25,Jl=(e,...t)=>console[e](`[reBEMer]`,...t),Yl=new AbortController,{signal:Xl}=Yl,Zl=new Map,Ql=null,$l=null,eu=null;function tu(){let e=document.getElementById(Gl);return e||(e=document.createElement(`div`),e.id=Gl,document.body.appendChild(e)),e}var nu=null;function ru(){nu=window.slashedBricksEditor,nu&&typeof nu==`object`&&(To(nu.showClassHints,nu.classHints,{signal:Xl}),Jo(nu.showColorSwatches,nu.colorHexMap,{signal:Xl,onOpenPanel:nu.showColorPanel?e=>fu(e):void 0}),xs(nu.variableHints||{},{signal:Xl}));let e=0,t=()=>{if(!Xl.aborted){if(Va()){iu();return}if(++e>=ql){Jl(`warn`,`Bricks Vue app not detected after grace window — reBEMer disabled on this page.`);return}setTimeout(t,Kl)}};t()}function iu(){cu();let e=document.querySelector(Ul);if(e){au(e);return}let t=new MutationObserver(()=>{let e=document.querySelector(Ul);e&&(t.disconnect(),au(e))});t.observe(document.body,{childList:!0,subtree:!0}),Xl.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function au(e){let t=null,n=new MutationObserver(()=>{t===null&&(t=setTimeout(()=>{t=null,ou(e)},50))});n.observe(e,{childList:!0,subtree:!0}),Xl.addEventListener(`abort`,()=>{n.disconnect(),t!==null&&clearTimeout(t)},{once:!0}),ou(e)}function ou(e){for(let[e,t]of Zl)if(!t.host.isConnected){try{Li(t.instance)}catch(e){Jl(`warn`,`badge unmount failed`,e)}Zl.delete(e)}let t=e.querySelectorAll(Wl);for(let e of t){let t=e.getAttribute(`data-id`);if(!t)continue;let n=Zl.get(t);n&&n.host.isConnected&&e.contains(n.host)||su(e)}}function su(e){let t=e.getAttribute(`data-id`);if(!t)return;let n=e.querySelector(`:scope > .structure-item`)||e,r=n.querySelector(`:scope > ul.actions`)||n.querySelector(`:scope > .actions`)||n.querySelector(`:scope > .structure-item-actions`),i=document.createElement(`span`);i.className=`rebemer-badge-host`,r?n.insertBefore(i,r):n.appendChild(i);let a=n.querySelector(`:scope > .title, :scope > .structure-item-title, :scope > .name, :scope .label`),o=Ni(Es,{target:i,props:{elementId:t,label:a?a.textContent.trim():``,onActivate:mu}}),s=Zl.get(t);if(s){try{Li(s.instance)}catch(e){Jl(`warn`,`badge remount cleanup failed`,e)}s.host.isConnected&&s.host.remove()}Zl.set(t,{instance:o,host:i})}function cu(){if($l)return;let e=nu&&nu.colorPanel;if(!nu?.showColorPanel||!e||!Array.isArray(e.variables)||e.variables.length===0)return;let t=document.createElement(`div`);tu().appendChild(t),$l={instance:Ni(Hl,{target:t,props:{source:e}}),node:t}}function lu(){if($l){try{Li($l.instance)}catch(e){Jl(`warn`,`color app unmount failed`,e)}$l.node.remove(),$l=null}}function uu(e,t){if(!e||!e.isConnected)return!1;try{let n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set;return n?n.call(e,t):e.value=t,e.dispatchEvent(new Event(`input`,{bubbles:!0})),!0}catch{return!1}}function du(e){let t=[`#bricks-panel-inner`,`#bricks-panel`,`[id^="bricks-panel"]`];if(e)for(let n of t){let t=e.closest(n);if(t){let e=t.getBoundingClientRect();if(e.width>100)return Math.ceil(e.right)}}for(let e of t){let t=document.querySelector(e);if(t){let e=t.getBoundingClientRect();if(e.width>100)return Math.ceil(e.right)}}return null}function fu(e){pu();let t=nu?.colorPanel;if(!t||!Array.isArray(t.variables)||t.variables.length===0)return;let n=du(e),r=document.createElement(`div`);tu().appendChild(r),eu={instance:Ni(Bl,{target:r,props:{source:t,dockedLeft:n,onPickValue:t=>{let n=uu(e?.querySelector(`input[type="text"]`)??e?.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`),t);if(n){let n=t.match(/^var\((--[^)]+)\)/)?.[1],r=n?nu?.colorHexMap?.[n]??null:null,i=(e?.closest(`[data-control="color"]`))?.querySelector(`:scope > .slashed-sf-color-btn`);if(i){let e=i.querySelector(`.slashed-sf-color-btn__dot`);e&&(r?(e.style.background=r,e.style.removeProperty(`box-shadow`)):e.style.removeProperty(`background`)),i.classList.toggle(`slashed-sf-color-btn--active`,!!r)}if(r){let t=e?.closest(`[data-control="color"]`);requestAnimationFrame(()=>{if(!t)return;let e=t.querySelector(`.bricks-control-preview`);e&&(Ho(e,!0),e.classList.remove(`empty`))})}}return n},onPick:pu,onClose:pu}}),node:r}}function pu(){if(eu){try{Li(eu.instance)}catch(e){Jl(`warn`,`color picker panel unmount failed`,e)}eu.node.remove(),eu=null}}function mu(e){hu();let t=document.createElement(`div`);tu().appendChild(t),Ql={instance:Ni(zc,{target:t,props:{rootId:e,onClose:hu}}),node:t}}function hu(){if(Ql){try{Li(Ql.instance)}catch(e){Jl(`warn`,`panel unmount failed`,e)}Ql.node.remove(),Ql=null}}window.addEventListener(`beforeunload`,()=>{Yl.abort(),hu(),lu(),pu(),Eo(),Yo(),Ss();for(let{instance:e}of Zl.values())try{Li(e)}catch{}Zl.clear()},{once:!0}),document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,ru,{once:!0}):ru(); + creating a duplicate.`,1),Sc=J(`

              `),Cc=J(` `),wc=J(`Migrate: `,1),Tc=J(`No migratable keys on this element.`),Ec=J(` `),Dc=J(`
              `),Oc=J(`
              `);function kc(e,t){Je(t,!0);let n=Na(t,`row`,15),r=Na(t,`rootId`,3,``),i=Na(t,`globalClasses`,19,()=>[]),a=Na(t,`removeExisting`,3,!1),o=Na(t,`finalClassNames`,19,()=>[]),s=F(()=>t.mode!==`migrate`),c=F(()=>t.mode===`migrate`),l=F(()=>t.mode===`mixed`),u=F(()=>!t.isRoot&&t.blockName?`${t.blockName}__`:``),d=F(()=>K(l)?n().op??`add`:t.mode===`rename`?`rename`:t.mode===`replace`?`replace`:`add`),f=F(()=>{if(K(d)!==`rename`&&K(d)!==`replace`||!Array.isArray(n().currentClassIds))return[];let e=[];for(let t of n().currentClassIds){let r=i().find(e=>e?.id===t);if(!r||r.name.includes(`--`))continue;let a=n().currentClassIds.filter(e=>i().find(t=>t?.id===e)?.name.startsWith(r.name+`--`)).length;e.push({id:r.id,name:r.name,modCount:a})}for(let t of n().currentClassIds){let n=i().find(e=>e?.id===t);if(!n||!n.name.includes(`--`))continue;let r=n.name.slice(0,n.name.indexOf(`--`));e.some(e=>e.name===r)||e.push({id:n.id,name:n.name,modCount:0})}return e}),p=F(()=>K(f).find(e=>e.id===n().renameFamilyId)??K(f)[0]??null);wr(()=>{K(d)!==`rename`||!K(f).length||K(f).some(e=>e.id===n().renameFamilyId)||n(n().renameFamilyId=K(f)[0].id,!0)});let m=F(()=>n().isBlockRoot===!0&&n().id!==r()),h=F(()=>n().id!==r()),g=F(()=>n().suggestedFrom===`element-type`||n().suggestedFrom===`fallback`),_=F(()=>{if(!o().length||!n().include||!Array.isArray(i()))return null;for(let e of o()){let t=i().find(t=>t&&t.name===e);if(t)return t}return null}),v=F(()=>!Array.isArray(n().modifiers)||n().modifiers.every(e=>!Ds(e)));function y(){n().suggestedFrom!==`user`&&n(n().suggestedFrom=`user`,!0)}function b(e){return e.startsWith(`_`)?e.slice(1):e}var x=Oc();let S;var ee=B(x),te=B(ee);ga(te),D(ee);var ne=H(ee,2),C=B(ne),re=B(C,!0);D(C);var ie=H(C,2),ae=e=>{var t=tc();let r;var i=B(t,!0);D(t),U(e=>{r=oa(t,1,`rebemer-row__type rebemer-row__type--toggle`,null,r,{"rebemer-row__type--block":K(m)}),$(t,`title`,K(m)?`Sub-block root — click to revert to element`:`Click to promote to block root`),t.disabled=!n().include,X(i,e)},[()=>K(m)?`BLOCK`:(n().bricksType||`ELEM`).toUpperCase()]),q(`click`,t,()=>{n(n().isBlockRoot=!n().isBlockRoot,!0)}),Y(e,t)},oe=e=>{Y(e,nc())};Z(ie,e=>{K(h)?e(ae):e(oe,-1)});var se=H(ie,2),ce=e=>{var t=rc();U(()=>$(t,`title`,`Pre-filled from ${n().suggestedFrom===`element-type`?`Bricks element type`:`fallback`}`)),Y(e,t)};Z(se,e=>{K(g)&&n().include&&e(ce)}),D(ne);var le=H(ne,2),ue=B(le),de=B(ue),fe=e=>{var t=ic(),n=B(t,!0);D(t),U(()=>X(n,K(u))),Y(e,t)};Z(de,e=>{K(u)&&e(fe)});var pe=H(de,2);ga(pe),D(ue);var me=H(ue,2),he=e=>{var t=cc(),r=B(t);Q(r,17,()=>n().modifiers,Ki,(e,t,r)=>{var i=oc(),a=B(i);ga(a);var o=H(a,2),s=e=>{var t=ac();U(()=>t.disabled=!n().include),q(`click`,t,()=>{n(n().modifiers=n().modifiers.filter((e,t)=>t!==r),!0)}),Y(e,t)};Z(o,e=>{n().modifiers.length>1&&e(s)}),D(i),U(()=>a.disabled=!n().include),ba(a,()=>n().modifiers[r],e=>n(n().modifiers[r]=e,!0)),Y(e,i)});var i=H(r,2),a=e=>{var t=sc();U(()=>t.disabled=!n().include),q(`click`,t,()=>{n(n().modifiers=[...n().modifiers,``],!0)}),Y(e,t)};Z(i,e=>{K(v)||e(a)}),D(t),Y(e,t)};Z(me,e=>{K(s)&&e(he)}),D(le);var ge=H(le,2),_e=e=>{var t=lc(),r=B(t);let i;var a=H(r,2);let o;var s=H(a,2);let c;D(t),U(()=>{i=oa(r,1,`rebemer-row__op-btn`,null,i,{"rebemer-row__op-btn--on":n().op===`add`}),$(r,`aria-pressed`,n().op===`add`),o=oa(a,1,`rebemer-row__op-btn`,null,o,{"rebemer-row__op-btn--on":n().op===`rename`}),$(a,`aria-pressed`,n().op===`rename`),c=oa(s,1,`rebemer-row__op-btn`,null,c,{"rebemer-row__op-btn--on":n().op===`replace`}),$(s,`aria-pressed`,n().op===`replace`)}),q(`click`,r,()=>{n(n().op=`add`,!0)}),q(`click`,a,()=>{n(n().op=`rename`,!0),!n().renameFamilyId&&K(f).length&&n(n().renameFamilyId=K(f)[0].id,!0)}),q(`click`,s,()=>{n(n().op=`replace`,!0),n(n().renameFamilyId=``,!0)}),Y(e,t)};Z(ge,e=>{K(l)&&n().include&&e(_e)});var ve=H(ge,2),ye=e=>{var t=Mi(),r=V(t),i=e=>{var t=Mi(),r=V(t),i=e=>{Y(e,uc())},o=e=>{var t=hc(),r=V(t),i=e=>{var t=fc(),r=H(B(t),2);Q(r,21,()=>K(f),Ki,(e,t)=>{var n=dc(),r=B(n);D(n);var i={};U(()=>{X(r,`${K(t).name??``}${K(t).modCount>0?` (+ ${K(t).modCount} modifier${K(t).modCount>1?`s`:``})`:``}`),i!==(i=K(t).id)&&(n.value=(n.__value=K(t).id)??``)}),Y(e,n)}),D(r),D(t),da(r,()=>n().renameFamilyId,e=>n(n().renameFamilyId=e,!0)),Y(e,t)};Z(r,e=>{K(f).length>1&&e(i)});var o=H(r,2),s=e=>{let t=F(()=>1+K(p).modCount);var r=Mi(),i=V(r),o=e=>{var t=pc(),n=H(B(t)),r=B(n,!0);D(n);var i=H(n);D(t),U(()=>{X(r,K(p).name),X(i,`${K(p).modCount>0?` (+ ${K(p).modCount} modifier${K(p).modCount>1?`s`:``})`:``} and remove all other classes from this element.`)}),Y(e,t)},s=e=>{var r=mc(),i=H(B(r)),a=B(i,!0);D(i);var o=H(i);D(r),U(()=>{X(a,K(p).name),X(o,`${K(p).modCount>0?` (+ ${K(p).modCount} modifier${K(p).modCount>1?`s`:``})`:``}${(n().currentClassIds?.length??0)>K(t)?` Other classes kept.`:``}`)}),Y(e,r)};Z(i,e=>{a()?e(o):e(s,-1)}),Y(e,r)};Z(o,e=>{K(p)&&e(s)}),Y(e,t)};Z(r,e=>{K(f).length===0?e(i):e(o,-1)}),Y(e,t)},o=e=>{var t=hc(),r=V(t),i=e=>{var t=gc(),r=H(B(t),2),i=B(r);i.value=i.__value=``,Q(H(i),17,()=>K(f),Ki,(e,t)=>{var n=dc(),r=B(n);D(n);var i={};U(()=>{X(r,`${K(t).name??``}${K(t).modCount>0?` (+ ${K(t).modCount} modifier${K(t).modCount>1?`s`:``})`:``}`),i!==(i=K(t).id)&&(n.value=(n.__value=K(t).id)??``)}),Y(e,n)}),D(r),D(t),U(()=>r.disabled=a()),da(r,()=>n().renameFamilyId,e=>n(n().renameFamilyId=e,!0)),Y(e,t)};Z(r,e=>{K(f).length>0&&e(i)});var o=H(r,2),s=e=>{Y(e,_c())},c=e=>{Y(e,vc())},l=e=>{Y(e,yc())},u=e=>{Y(e,_c())};Z(o,e=>{a()?e(s):K(f).length===0?e(c,1):n().renameFamilyId?e(l,2):e(u,-1)}),Y(e,t)};Z(r,e=>{K(d)===`rename`?e(i):e(o,-1)}),Y(e,t)};Z(ve,e=>{(K(d)===`rename`||K(d)===`replace`)&&n().include&&e(ye)});var be=H(ve,2),xe=e=>{var t=Sc(),n=B(t),r=e=>{var t=bc(),n=H(V(t)),r=B(n,!0);D(n),ze(),U(()=>X(r,K(_).name)),Y(e,t)},i=e=>{var t=xc(),n=H(V(t)),r=B(n,!0);D(n),ze(),U(()=>X(r,K(_).name)),Y(e,t)};Z(n,e=>{K(c)?e(r):e(i,-1)}),D(t),Y(e,t)};Z(be,e=>{K(_)&&e(xe)});var Se=H(be,2),Ce=e=>{var t=Dc(),r=B(t),i=e=>{var t=wc();Q(H(V(t),2),17,()=>n().migrateKeys,Ki,(e,t)=>{var n=Cc(),r=B(n,!0);D(n),U(e=>{$(n,`title`,`Will be lifted into ${(o()[0]||`the new class`)??``}`),X(r,e)},[()=>b(K(t))]),Y(e,n)}),Y(e,t)},a=e=>{Y(e,Tc())};Z(r,e=>{n().migrateKeys?.length?e(i):e(a,-1)});var s=H(r,2),c=e=>{var t=Ec(),r=B(t);D(t),U(()=>X(r,`${n().skippedKeys.length??``} skipped`)),Y(e,t)};Z(s,e=>{n().skippedKeys?.length&&e(c)}),D(t),Y(e,t)};Z(Se,e=>{K(c)&&n().include&&e(Ce)}),D(x),U(()=>{S=oa(x,1,`rebemer-row`,null,S,{"rebemer-row--disabled":!n().include,"rebemer-row--suggested":K(g)}),ca(x,`--rebemer-row-depth: ${n().depth??0??``}`),X(re,n().originalLabel),$(pe,`placeholder`,t.isRoot?`block-name`:`element-name`),pe.disabled=!n().include}),xa(te,()=>n().include,e=>n(n().include=e,!0)),q(`input`,pe,y),ba(pe,()=>n().name,e=>n(n().name=e,!0)),Y(e,x),Ye()}wi([`click`,`input`]);var Ac=J(` `);function jc(e,t){Je(t,!0);let n=Na(t,`kind`,3,`info`),r=Na(t,`duration`,3,3e3),i=R(!0);wr(()=>{if(!K(i)||r()<=0)return;let e=setTimeout(()=>{z(i,!1),t.onDismiss?.()},r());return()=>clearTimeout(e)});let a=F(()=>n()===`error`?`alert`:`status`);var o=Mi(),s=V(o),c=e=>{var r=Ac(),o=B(r,!0);D(r),U(()=>{oa(r,1,`rebemer-toast rebemer-toast--${n()??``}`),$(r,`role`,K(a)),$(r,`aria-live`,n()===`error`?`assertive`:`polite`),X(o,t.message)}),q(`click`,r,()=>{z(i,!1),t.onDismiss?.()}),Y(e,r)};Z(s,e=>{K(i)&&e(c)}),Y(e,o),Ye()}wi([`click`]);var Mc=J(``),Nc=J(`Will migrate `,1),Pc=J(` `),Fc=J(``),Ic=J(` `,1);function Lc(e,t){Je(t,!0);let n={add:`Attaches a new BEM class to each element without removing any existing classes.`,rename:`Renames an existing class family to the new name (its settings carry over). When an element has several classes, pick which family to rename per row; other classes are kept unless "Remove all existing classes" is on.`,replace:`Swaps classes for a new BEM class with empty settings. Pick a family to replace just that one (keeping the rest), or leave "— All classes —" / enable "Remove all existing classes" to clear the element.`,migrate:`Lifts inline element styles (padding, color, typography, etc.) into a new global class.`,mixed:`Per-element control — every row defaults to Add. Switch any row to Rename (targets one class family, keeps others) or Replace (a selected family, or all classes). "Remove all existing classes" clears every renamed/replaced row.`};function r(e){return e===`rename`||e===`replace`||e===`mixed`}function i(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}let a=R(`add`),o=R(!0),s=R(!1),c=R(er([])),l=R(er([])),u=R(null),d=R(null),f=F(()=>K(c)[0]?.originalLabel??``),p=F(()=>K(c).length===0?new Map:Ls(K(c),t.rootId)),m=F(()=>{if(K(a)!==`migrate`)return null;let e=0,t=0;for(let n of K(c))n.include&&(e+=n.migrateKeys?.length??0,t+=n.skippedKeys?.length??0);return{willMigrate:e,willSkip:t}}),h=F(()=>{if(K(c).length===0)return new Map;let e=Rs({rootId:t.rootId,rows:K(c),mode:K(a)}),n=new Map;if(!e.ok)return n;for(let t of e.ops){let e=[t.finalClass];for(let n of t.modifierSlugs??[])e.push(`${t.finalClass}--${n}`);n.set(t.row.id,e)}return n});Pa(()=>{let e=Ga(t.rootId);z(l,qa().slice(),!0);let n=e.map((e,t)=>{let n=t===0,r=e.label||``,a=Ds(r),o=e.name||``,s,c;if(a)s=a,c=`label`;else if(n)s=`block`,c=`fallback`;else if(o&&!Qs(o)){let e=Zs(o,``);if(e)s=e,c=`element-type`;else{let e=Ds(Za(o));e&&As(e).ok?(s=e,c=`element-type`):(s=`item`,c=`fallback`)}}else s=`item`,c=`fallback`;let l=i(e.settings);return{id:e.id,depth:e.depth,bricksType:o,originalLabel:r||(n?`block`:`element`),name:s,modifiers:[``],isBlockRoot:!1,include:!0,suggestedFrom:c,migrateKeys:Ms(e.settings),skippedKeys:Ps(e.settings),currentClassCount:l.length,currentClassIds:l,op:`add`,renameFamilyId:``}});if(n.length>1){let t=new Map(e.map(e=>[e.id,[]])),r=[];for(let n of e){for(;r.length&&r[r.length-1].depth>=n.depth;)r.pop();r.length&&t.get(r[r.length-1].id).push(n.id),r.push(n)}let i=new Map(e.map(e=>[e.id,e])),a=new Map(n.map(e=>[e.id,e]));for(let[,e]of t){if(!e.length)continue;let t=new Map;for(let n of e){let e=i.get(n)?.name;e&&t.set(e,(t.get(e)??0)+1)}for(let n of e){let e=a.get(n),r=i.get(n);if(!(!e||!r||e.suggestedFrom===`label`)){if(Qs(r.name))e.name=ec(r.name),e.suggestedFrom=`element-type`;else if((t.get(r.name)??0)===1){let t=$s[r.name];t&&(e.name=t,e.suggestedFrom=`element-type`)}}}}}z(c,n,!0)});function g(e){if(e.key===`Escape`){t.onClose?.();return}K(d)&&e.target instanceof Node&&K(d).contains(e.target)&&e.key===`Enter`&&(e.target?.tagName===`INPUT`||e.target?.tagName===`SELECT`)&&(e.preventDefault(),v())}let _=null;function v(){let e=As(Ds(K(c)[0]?.name??``));if(!e.ok){z(u,{kind:`error`,message:e.reason},!0);return}for(let e of K(c)){if(!e.isBlockRoot||!e.include)continue;let t=As(Ds(e.name??``));if(!t.ok){z(u,{kind:`error`,message:`Sub-block "${e.originalLabel}": ${t.reason}`},!0);return}}let n=zs({rootId:t.rootId,rows:K(c),mode:K(a),syncLabels:K(o),removeExisting:K(s)});n.ok?(z(u,{kind:`success`,message:`Applied to ${n.count} element${n.count===1?``:`s`}.`},!0),_&&clearTimeout(_),_=setTimeout(()=>t.onClose?.(),800)):z(u,{kind:`error`,message:n.error},!0)}wr(()=>()=>{_&&clearTimeout(_)});var y=Ic();Ci(`keydown`,rr,g);var b=V(y),x=B(b),S=B(x),ee=H(B(S)),te=B(ee,!0);D(ee),D(S);var ne=H(S,2);D(x);var C=H(x,2),re=B(C),ie=H(B(re),2),ae=B(ie);ae.value=ae.__value=`add`;var oe=H(ae);oe.value=oe.__value=`rename`;var se=H(oe);se.value=se.__value=`replace`;var ce=H(se);ce.value=ce.__value=`migrate`;var le=H(ce);le.value=le.__value=`mixed`,D(ie),D(re);var ue=H(re,2),de=B(ue);ga(de),ze(2),D(ue);var fe=H(ue,2),pe=e=>{var t=Mc(),n=B(t);ga(n),ze(2),D(t),xa(n,()=>K(s),e=>z(s,e)),Y(e,t)},me=F(()=>r(K(a)));Z(fe,e=>{K(me)&&e(pe)}),D(C);var he=H(C,2),ge=B(he,!0);D(he);var _e=H(he,2),ve=e=>{var t=Fc();let n;var r=B(t),i=e=>{Y(e,ji(`No migratable style keys found on any included element. Apply will attach empty classes.`))},a=e=>{var t=Nc(),n=H(V(t)),r=B(n,!0);D(n);var i=H(n);U(()=>{X(r,K(m).willMigrate),X(i,` style key${K(m).willMigrate===1?``:`s`} into new classes.`)}),Y(e,t)};Z(r,e=>{K(m).willMigrate===0?e(i):e(a,-1)});var o=H(r,2),s=e=>{var t=Pc(),n=B(t);D(t),U(()=>X(n,`${K(m).willSkip??``} key${K(m).willSkip===1?``:`s`} not on the allowlist will stay on the element.`)),Y(e,t)};Z(o,e=>{K(m).willSkip>0&&e(s)}),D(t),U(()=>n=oa(t,1,`rebemer-panel__notice`,null,n,{"rebemer-panel__notice--warn":K(m).willSkip>0||K(m).willMigrate===0})),Y(e,t)};Z(_e,e=>{K(m)&&e(ve)});var ye=H(_e,2);Q(ye,23,()=>K(c),e=>e.id,(e,n,r)=>{{let i=F(()=>K(p).get(K(n).id)??``),o=F(()=>K(n).id===t.rootId||K(n).isBlockRoot),u=F(()=>K(h).get(K(n).id)??[]);kc(e,{get mode(){return K(a)},get blockName(){return K(i)},get isRoot(){return K(o)},get rootId(){return t.rootId},get globalClasses(){return K(l)},get removeExisting(){return K(s)},get finalClassNames(){return K(u)},get row(){return K(c)[K(r)]},set row(e){K(c)[K(r)]=e}})}}),D(ye);var be=H(ye,2),xe=B(be),Se=H(xe,2);D(be),D(b),Ma(b,e=>z(d,e),()=>K(d));var Ce=H(b,2),we=e=>{jc(e,{get kind(){return K(u).kind},get message(){return K(u).message},onDismiss:()=>{z(u,null)}})};Z(Ce,e=>{K(u)&&e(we)}),U(()=>{X(te,K(f)),X(ge,n[K(a)])}),q(`click`,ne,()=>t.onClose?.()),da(ie,()=>K(a),e=>z(a,e)),xa(de,()=>K(o),e=>z(o,e)),q(`click`,xe,()=>t.onClose?.()),q(`click`,Se,v),Y(e,y),Ye()}wi([`click`]);var Rc=J(``);function zc(e,t){var n=Rc();let r;U(()=>{r=oa(n,1,`slashed-cp-launch`,null,r,{"slashed-cp-launch--on":t.open}),$(n,`aria-pressed`,t.open)}),q(`click`,n,function(...e){t.onToggle?.apply(this,e)}),Y(e,n)}wi([`click`]);var Bc=`--sf-color-`,Vc=[`primary`,`secondary`,`tertiary`,`action`,`neutral`,`base`],Hc=[`success`,`warning`,`error`,`info`,`danger`],Uc=[`a5`,`a10`,`a20`,`a30`,`a40`,`a50`,`a60`,`a70`,`a80`,`a90`,`a95`],Wc=[`superlight`,`xlight`,`lighter`,`darker`,`xdark`,`superdark`,`hover`,`active`,`strong`,`subtle`,`muted`,`ghost`],Gc=[`text`,`heading`,`bg`,`surface`,`inset`,`raised`,`overlay`,`inverse`,`border`,`link`,`code`,`selection`,`mark`,`dim`],Kc=(e=>new Set(e))([...Vc,...Hc]),qc={primary:{tagline:`Brand identity & main emphasis`,use:`Headlines, primary buttons, key brand moments.`},secondary:{tagline:`Supporting brand tone`,use:`Secondary surfaces and muted brand accents.`},tertiary:{tagline:`Accent / highlight`,use:`Badges, tags, decorative highlights.`},action:{tagline:`Interactive & links`,use:`Links, focus rings, anything clickable.`},neutral:{tagline:`Text, icons & dividers`,use:`Body text, borders, neutral UI chrome.`},base:{tagline:`Page & surface backgrounds`,use:`Page background and raised surfaces.`},success:{tagline:`Positive / confirmation`,use:`Success messages and valid state.`},warning:{tagline:`Caution`,use:`Warnings and at-risk / pending state.`},error:{tagline:`Form & validation errors`,use:`Invalid inputs and error messages.`},info:{tagline:`Informational`,use:`Tips and neutral notices.`},danger:{tagline:`Destructive actions`,use:`Delete / remove and irreversible actions.`},semantic:{tagline:`Ready-made role tokens`,use:`Pre-wired roles that already adapt to light/dark.`}},Jc=[{id:`text-on`,label:`Text on color`,match:e=>e.startsWith(`text--on`)},{id:`text`,label:`Text`,match:e=>e===`text`||e===`heading`||e.startsWith(`text-`)},{id:`state`,label:`Interactive states`,match:e=>e.startsWith(`bg--`)},{id:`surface`,label:`Surfaces & backgrounds`,match:e=>[`bg`,`surface`,`inset`,`raised`,`overlay`,`inverse`].some(t=>e===t||e.startsWith(t+`-`))},{id:`border`,label:`Borders`,match:e=>e===`border`||e.startsWith(`border-`)},{id:`link`,label:`Links`,match:e=>e===`link`||e.startsWith(`link-`)},{id:`select`,label:`Selection & marks`,match:e=>e.startsWith(`selection`)||e.startsWith(`mark`)||e===`dim`},{id:`code`,label:`Code`,match:e=>e.startsWith(`code`)}];function Yc(e){if(typeof e!=`string`||e.indexOf(Bc)!==0)return null;let t=e.slice(11);if(!t||t===`scheme`)return null;let n=t.indexOf(`-`),r=n===-1?t:t.slice(0,n);if(!Kc.has(r))return{family:`semantic`,kind:`semantic`,step:null,key:t};let i=n===-1?``:t.slice(n+1);return i===``?{family:r,kind:`base`,step:null,key:t}:i===`light`?null:/^[0-9]+$/.test(i)?{family:r,kind:`scale`,step:Number(i),key:t}:/^a[0-9]+$/.test(i)?{family:r,kind:`alpha`,step:i,key:t}:{family:r,kind:`alias`,step:i,key:t}}function Xc(e){return e.kind===`alpha`?!0:/(?:^|-)(?:subtle|muted|ghost|translucent|overlay|dim|underline)$/.test(e.key)}function Zc(e){switch(e.kind){case`base`:return Qc(e.family);case`scale`:return String(e.step);case`alpha`:return String(e.step).toUpperCase();case`alias`:return Qc(String(e.step));default:return $c(e.key)}}function Qc(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function $c(e){return e.split(`--`).map(e=>e.split(`-`).map(Qc).join(` `)).join(` · `)}function el(e,t,n,r){let i=n[e];if(typeof i!=`string`||!i)return null;let a=typeof r[e]==`string`&&r[e]?r[e]:i;return{var:e,name:e.slice(2),label:Zc(t),light:i,dark:a,alpha:Xc(t)}}function tl(e,t){let n={base:0,scale:1,alias:2,alpha:3};if(n[e.info.kind]!==n[t.info.kind])return n[e.info.kind]-n[t.info.kind];if(e.info.kind===`scale`)return e.info.step-t.info.step;if(e.info.kind===`alpha`)return Uc.indexOf(e.info.step)-Uc.indexOf(t.info.step);if(e.info.kind===`alias`){let n=Wc.indexOf(e.info.step),r=Wc.indexOf(t.info.step),i=n===-1?999:n,a=r===-1?999:r;return i===a?String(e.info.step).localeCompare(String(t.info.step)):i-a}return 0}function nl(e,t){let n=Gc.findIndex(t=>e.info.key===t||e.info.key.startsWith(t+`-`)),r=Gc.findIndex(e=>t.info.key===e||t.info.key.startsWith(e+`-`)),i=n===-1?Gc.length:n,a=r===-1?Gc.length:r;return i===a?e.info.key.localeCompare(t.info.key):i-a}function rl(e,t,n){let r=Array.isArray(e)?e:[],i=t&&typeof t==`object`?t:{},a=n&&typeof n==`object`?n:{},o=new Map,s=[];for(let e of r){let t=Yc(e);if(!t)continue;let n=el(e,t,i,a);if(!n)continue;let r={swatch:n,info:t};if(t.family===`semantic`){s.push(r);continue}o.has(t.family)||o.set(t.family,[]),o.get(t.family).push(r)}let c=[],l=(e,t)=>{let n=o.get(e);if(!n||n.length===0)return;n.sort(tl);let r=n.filter(e=>e.info.kind===`base`||e.info.kind===`scale`),i=n.filter(e=>e.info.kind===`alias`),a=n.filter(e=>e.info.kind===`alpha`),s=[];r.length&&s.push({id:`scale`,label:`Shades & tints`,swatches:r.map(e=>e.swatch)}),a.length&&s.push({id:`alpha`,label:`Transparent`,swatches:a.map(e=>e.swatch)}),i.length&&s.push({id:`alias`,label:`Semantic`,swatches:i.map(e=>e.swatch)});let l=qc[e]||{};c.push({id:e,label:Qc(e),type:t,count:n.length,tagline:l.tagline||``,use:l.use||``,sections:s})};for(let e of Vc)l(e,`brand`);for(let e of Hc)l(e,`status`);if(s.length){s.sort(nl);let e=new Map(Jc.map(e=>[e.id,[]])),t=[];for(let n of s){let r=Jc.find(e=>e.match(n.info.key));r?e.get(r.id).push(n.swatch):t.push(n.swatch)}let n=[];for(let t of Jc){let r=e.get(t.id);r.length&&n.push({id:t.id,label:t.label,swatches:r})}t.length&&n.push({id:`other`,label:`Other`,swatches:t});let r=qc.semantic||{};c.push({id:`semantic`,label:`Semantic`,type:`semantic`,count:s.length,tagline:r.tagline||``,use:r.use||``,sections:n})}return{groups:c}}function il(e,t){let n=String(t||``).trim().toLowerCase();if(!n)return e;if(!e||!Array.isArray(e.groups))return{groups:[]};let r=[];for(let t of e.groups){let e=[];for(let r of t.sections){let i=r.swatches.filter(e=>e.name.toLowerCase().includes(n)||e.label.toLowerCase().includes(n)||t.label.toLowerCase().includes(n));i.length&&e.push({...r,swatches:i})}if(e.length){let n=e.reduce((e,t)=>e+t.swatches.length,0);r.push({...t,sections:e,count:n})}}return{groups:r}}function al(e){return`var(${e.var})`}function ol(e,t){return t===`dark`?e.dark:e.light}var sl=[{id:`typography`,label:`Typography`,tokens:[{var:`--sf-color-heading`,label:`Heading`},{var:`--sf-color-text`,label:`Text`},{var:`--sf-color-text--muted`,label:`Text · Muted`},{var:`--sf-color-text--secondary`,label:`Text · Secondary`},{var:`--sf-color-text--on-primary`,label:`On Primary`},{var:`--sf-color-text--on-secondary`,label:`On Secondary`}]},{id:`surfaces`,label:`Surfaces`,tokens:[{var:`--sf-color-bg`,label:`Background`},{var:`--sf-color-surface`,label:`Surface`},{var:`--sf-color-raised`,label:`Raised`},{var:`--sf-color-inset`,label:`Inset`},{var:`--sf-color-overlay`,label:`Overlay`},{var:`--sf-color-inverse`,label:`Inverse`}]},{id:`structure`,label:`Structure`,tokens:[{var:`--sf-color-border`,label:`Border`},{var:`--sf-color-border--subtle`,label:`Border · Subtle`},{var:`--sf-color-border--strong`,label:`Border · Strong`},{var:`--sf-color-link`,label:`Link`},{var:`--sf-color-link--hover`,label:`Link · Hover`}]},{id:`brand`,label:`Brand`,tokens:[{var:`--sf-color-primary`,label:`Primary`},{var:`--sf-color-secondary`,label:`Secondary`},{var:`--sf-color-tertiary`,label:`Tertiary`},{var:`--sf-color-action`,label:`Action`},{var:`--sf-color-neutral`,label:`Neutral`},{var:`--sf-color-base`,label:`Base`}]},{id:`feedback`,label:`Feedback`,tokens:[{var:`--sf-color-success`,label:`Success`},{var:`--sf-color-success-subtle`,label:`Success · Subtle`},{var:`--sf-color-warning`,label:`Warning`},{var:`--sf-color-warning-subtle`,label:`Warning · Subtle`},{var:`--sf-color-error`,label:`Error`},{var:`--sf-color-error-subtle`,label:`Error · Subtle`},{var:`--sf-color-info`,label:`Info`},{var:`--sf-color-danger`,label:`Danger`}]}];function cl(e,t,n){let r=t&&typeof t==`object`?t:{},i=n&&typeof n==`object`?n:{},a=[];for(let e of sl){let t=[];for(let n of e.tokens){let e=r[n.var];if(!e)continue;let a=i[n.var]||e;t.push({var:n.var,name:n.var.slice(2),label:n.label,light:e,dark:a,alpha:/overlay|subtle|ghost|muted|dim|alpha/i.test(n.var)})}t.length&&a.push({id:e.id,label:e.label,swatches:t})}return{groups:a}}var ll=J(``);function ul(e,t){Je(t,!0);let n=Na(t,`onPick`,3,void 0),r=F(()=>`${t.swatch.name}\nlight ${t.swatch.light} · dark ${t.swatch.dark}`);var i=ll();let a;U(e=>{a=oa(i,1,`slashed-cp-swatch`,null,a,{"slashed-cp-swatch--alpha":t.swatch.alpha,"slashed-cp-swatch--split":t.mode===`both`}),ca(i,`--cp-l:${t.swatch.light??``}; --cp-d:${t.swatch.dark??``}; --cp-solid:${e??``};`),$(i,`title`,K(r)),$(i,`aria-label`,t.swatch.name)},[()=>ol(t.swatch,t.mode===`dark`?`dark`:`light`)]),q(`click`,i,()=>n()?.(t.swatch)),Y(e,i),Ye()}wi([`click`]);var dl=J(``),fl=J(``),pl=J(``),ml=J(`
              `),hl=J(`

              `,1),gl=J(``),_l=J(`

              Scale 50 → 950

              `,1),vl=J(``),yl=J(`
              `),bl=J(` `,1),xl=J(`
              `),Sl=J(`
              `),Cl=J(`
              `),wl=J(``),Tl=J(`

              `),El=J(` `),Dl=J(``),Ol=J(`
            • `),kl=J(`
                `),Al=J(`
                `),jl=J(` `,1),Ml=J(`

                `),Nl=J(``),Pl=J(`

                `),Fl=J(`

                Quick Use

                Palette

                Brand

                Status

                `,1),Il=J(``),Ll=J(`

                Color System

                var()
                `,1);function Rl(e,t){Je(t,!0);let n=(e,t=d)=>{var n=Cl();Q(n,21,t,e=>e.id,(e,t)=>{let n=F(()=>oe(K(t))),r=F(()=>se(K(t))),i=F(()=>K(u)===K(t).id);var a=Sl(),o=B(a);let c;var l=B(o),d=e=>{var t=dl();U(()=>ca(t,`--sw-l: ${K(n).light??``}; --sw-d: ${K(n).dark??``}`)),Y(e,t)};Z(l,e=>{K(n)&&e(d)});var p=H(l,2),m=B(p,!0);D(p);var h=H(p,2),g=B(h,!0);D(h);var _=H(h,2);Q(_,21,()=>K(r),e=>e.var,(e,t)=>{var n=fl();U(()=>{ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`),$(n,`title`,K(t).label)}),Y(e,n)}),D(_);var v=H(_,2),y=B(v,!0);D(v),D(o);var b=H(o,2),x=e=>{let r=F(()=>ae(K(t),`alias`)),i=F(()=>ce(K(t))),a=F(()=>ae(K(t),`alpha`));var o=xl(),c=B(o),l=e=>{var r=pl(),i=B(r),a=B(i,!0);D(i),D(r),U(()=>{ca(r,`--sw-l: ${K(n).light??``}; --sw-d: ${K(n).dark??``}`),$(r,`title`,`${K(t).label??``} base — ${K(n).name??``}`),X(a,K(t).label)}),q(`click`,r,()=>C(K(n))),Y(e,r)};Z(c,e=>{K(n)&&e(l)});var u=H(c,2),d=e=>{var t=hl(),n=V(t),i=B(n);D(n);var a=H(n,2);Q(a,21,()=>K(r).swatches,e=>e.var,(e,t)=>{var n=ml(),r=B(n);ul(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i),D(n),U(()=>X(a,K(t).label)),Y(e,n)}),D(a),U(()=>X(i,`Aliases · ${K(r).swatches.length??``}`)),Y(e,t)};Z(u,e=>{K(r)?.swatches.length&&e(d)});var p=H(u,2),m=e=>{var t=_l(),n=H(V(t),2);Q(n,21,()=>K(i),e=>e.var,(e,t)=>{var n=gl();U(()=>{$(n,`title`,`${K(t).label??``} — ${K(t).name??``}`),ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(n),Y(e,t)};Z(p,e=>{K(i).length&&e(m)});var h=H(p,2),g=e=>{var n=bl(),r=V(n),i=B(r),o=B(i,!0);D(i),ze(),D(r);var s=H(r,2),c=e=>{var t=yl();Q(t,21,()=>K(a).swatches,e=>e.var,(e,t)=>{var n=vl();U(()=>{$(n,`title`,`${K(t).label??``} — ${K(t).name??``}`),ca(n,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(t),Y(e,t)},l=F(()=>K(f).has(K(t).id));Z(s,e=>{K(l)&&e(c)}),U(e=>X(o,e),[()=>K(f).has(K(t).id)?`▾`:`▸`]),q(`click`,r,()=>ie(K(t).id)),Y(e,n)};Z(h,e=>{K(a)?.swatches.length&&e(g)}),D(o),Y(e,o)};Z(b,e=>{K(i)&&e(x)}),D(a),U(()=>{c=oa(o,1,`slashed-cp__scan-row`,null,c,{"slashed-cp__scan-row--open":K(i)}),$(o,`aria-expanded`,K(i)),X(m,K(t).label),X(g,K(t).tagline),X(y,K(i)?`▾`:`▸`)}),q(`click`,o,()=>re(K(t).id)),Y(e,a)}),D(n),Y(e,n)},r=Na(t,`dockedLeft`,3,null),i=F(()=>typeof t.onPickValue==`function`),a=[{id:`both`,label:`Both`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}],o=[`Hover`,`Active`,`Subtle`,`Ghost`,`Superlight`],s=R(`both`),c=R(``),l=R(null),u=R(null),f=R(er(new Set)),p=F(()=>rl(t.source?.variables,t.source?.light,t.source?.dark)),m=F(()=>K(c).trim()),h=F(()=>il(K(p),K(m))),g=F(()=>cl(t.source?.variables,t.source?.light,t.source?.dark)),_=F(()=>K(p).groups.reduce((e,t)=>e+t.count,0)),v=F(()=>K(p).groups.filter(e=>e.type===`brand`)),y=F(()=>K(p).groups.filter(e=>e.type===`status`)),b;function x(){if(typeof document>`u`)return null;let e=document.querySelector(`iframe#bricks-builder-iframe, iframe[name="bricks-builder-iframe"], #bricks-builder-area iframe`);try{return e?.contentDocument?.documentElement??null}catch{return null}}function S(e){let t=x();if(t)try{b===void 0&&(b=t.getAttribute(`data-theme`)),e===`light`||e===`dark`?t.setAttribute(`data-theme`,e):b===null?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,b)}catch{}}function ee(){let e=x();if(!(!e||b===void 0))try{b===null?e.removeAttribute(`data-theme`):e.setAttribute(`data-theme`,b)}catch{}}function te(e){z(s,e,!0),S(e)}Pa(()=>()=>ee());async function ne(e){try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.style.cssText=`position:fixed;opacity:0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}async function C(e){let n=al(e);if(K(i)){if(t.onPickValue(n)===!1){z(l,{kind:`error`,message:`Couldn't apply ${n} — input not found`},!0);return}t.onPick?.();return}z(l,await ne(n)?{kind:`info`,message:`Copied — ${e.name}`}:{kind:`error`,message:`Couldn't copy ${n}`},!0)}function re(e){z(u,K(u)===e?null:e,!0),z(f,new Set,!0)}function ie(e){let t=new Set(K(f));t.has(e)?t.delete(e):t.add(e),z(f,t,!0)}function ae(e,t){return e.sections.find(e=>e.id===t)}function oe(e){return ae(e,`scale`)?.swatches[0]??null}function se(e){let t=ae(e,`alias`);if(!t?.swatches.length)return[];let n=o.map(e=>t.swatches.find(t=>t.label===e)).filter(Boolean);return n.length?n:t.swatches.slice(0,5)}function ce(e){return ae(e,`scale`)?.swatches.slice(1)??[]}function le(e){e.key===`Escape`&&t.onClose?.()}var ue=Ll();Ci(`keydown`,rr,le);var de=V(ue);let fe;var pe=B(de),me=H(B(pe),2);Q(me,21,()=>a,e=>e.id,(e,t)=>{var n=wl();let r;var i=B(n,!0);D(n),U(()=>{r=oa(n,1,`slashed-cp__seg-btn`,null,r,{"slashed-cp__seg-btn--on":K(s)===K(t).id}),$(n,`aria-pressed`,K(s)===K(t).id),X(i,K(t).label)}),q(`click`,n,()=>te(K(t).id)),Y(e,n)}),D(me);var he=H(me,2);D(pe);var ge=H(pe,2),_e=B(ge);ga(_e),D(ge);var ve=H(ge,2),ye=B(ve),be=e=>{var t=jl(),n=V(t),r=e=>{var t=Tl(),n=B(t);D(t),U(()=>X(n,`No tokens match "${K(m)??``}".`)),Y(e,t)};Z(n,e=>{K(h).groups.length===0&&e(r)}),Q(H(n,2),17,()=>K(h).groups,e=>e.id,(e,t)=>{var n=Ml(),r=B(n),i=B(r),a=B(i),o=H(a),c=e=>{var n=El(),r=B(n,!0);D(n),U(()=>X(r,K(t).tagline)),Y(e,n)};Z(o,e=>{K(t).tagline&&e(c)});var l=H(o,2),u=B(l,!0);D(l),D(i),D(r),Q(H(r,2),17,()=>K(t).sections,e=>e.id,(e,n)=>{var r=jl(),i=V(r),a=e=>{var t=Dl(),r=B(t,!0);D(t),U(()=>X(r,K(n).label)),Y(e,t)};Z(i,e=>{K(n).label&&e(a)});var o=H(i,2),c=e=>{var t=kl();Q(t,21,()=>K(n).swatches,e=>e.var,(e,t)=>{var n=Ol(),r=B(n);ul(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i);var o=H(i,2),c=B(o,!0);D(o),D(n),U(()=>{X(a,K(t).label),X(c,K(t).name)}),Y(e,n)}),D(t),Y(e,t)},l=e=>{var t=Al();Q(t,21,()=>K(n).swatches,e=>e.var,(e,t)=>{var n=ml(),r=B(n);ul(r,{get swatch(){return K(t)},get mode(){return K(s)},onPick:C});var i=H(r,2),a=B(i,!0);D(i),D(n),U(()=>X(a,K(t).label)),Y(e,n)}),D(t),Y(e,t)};Z(o,e=>{K(t).type===`semantic`?e(c):e(l,-1)}),Y(e,r)}),D(n),U(()=>{$(n,`data-type`,K(t).type),X(a,`${K(t).label??``} `),X(u,K(t).count)}),Y(e,n)}),Y(e,t)},xe=e=>{var t=Fl(),r=V(t);Q(H(B(r),2),17,()=>K(g).groups,e=>e.id,(e,t)=>{var n=Pl(),r=B(n),i=B(r,!0);D(r);var a=H(r,2);Q(a,21,()=>K(t).swatches,e=>e.var,(e,t)=>{var n=Nl(),r=B(n);let i;var a=H(r,2),o=B(a,!0);D(a),D(n),U(()=>{$(n,`title`,K(t).name),i=oa(r,1,`slashed-cp__qu-sw`,null,i,{"slashed-cp__qu-sw--alpha":K(t).alpha}),ca(r,`--sw-l: ${K(t).light??``}; --sw-d: ${K(t).dark??``}`),X(o,K(t).label)}),q(`click`,n,()=>C(K(t))),Y(e,n)}),D(a),D(n),U(()=>X(i,K(t).label)),Y(e,n)}),D(r);var i=H(r,2),a=H(B(i),4);n(a,()=>K(v)),n(H(a,4),()=>K(y)),D(i),Y(e,t)};Z(ye,e=>{K(m)?e(be):e(xe,-1)}),D(ve);var Se=H(ve,2),Ce=B(Se),we=e=>{Y(e,Il())};Z(Ce,e=>{K(s)===`both`&&e(we)});var Te=H(Ce,2),Ee=B(Te);ze(),D(Te),D(Se),D(de);var De=H(de,2),Oe=e=>{jc(e,{get kind(){return K(l).kind},get message(){return K(l).message},onDismiss:()=>{z(l,null)}})};Z(De,e=>{K(l)&&e(Oe)}),U(()=>{fe=oa(de,1,`slashed-cp`,null,fe,{"slashed-cp--docked":K(i)}),$(de,`data-mode`,K(s)),ca(de,K(i)&&r()!=null?`--cp-dock-left: ${r()}px`:``),$(_e,`placeholder`,`Search ${K(_)} tokens…`),X(Ee,`${K(i)?`Click to insert`:`Click to copy`} `)}),q(`click`,de,e=>e.stopPropagation()),q(`mousedown`,de,e=>e.stopPropagation()),q(`pointerdown`,de,e=>e.stopPropagation()),q(`touchstart`,de,e=>e.stopPropagation(),void 0,!0),q(`click`,he,()=>t.onClose?.()),ba(_e,()=>K(c),e=>z(c,e)),Y(e,ue),Ye()}wi([`click`,`mousedown`,`pointerdown`,`touchstart`]);var zl=J(` `,1);function Bl(e,t){let n=R(!1);var r=zl(),i=V(r);zc(i,{get open(){return K(n)},onToggle:()=>z(n,!K(n))});var a=H(i,2),o=e=>{Rl(e,{get source(){return t.source},onClose:()=>z(n,!1)})};Z(a,e=>{K(n)&&e(o)}),Y(e,r)}var Vl=`#bricks-structure`,Hl=`li[data-id]`,Ul=`slashed-rebemer-host`,Wl=400,Gl=25,Kl=(e,...t)=>console[e](`[reBEMer]`,...t),ql=new AbortController,{signal:Jl}=ql,Yl=new Map,Xl=null,Zl=null,Ql=null;function $l(){let e=document.getElementById(Ul);return e||(e=document.createElement(`div`),e.id=Ul,document.body.appendChild(e)),e}var eu=null;function tu(){eu=window.slashedBricksEditor,eu&&typeof eu==`object`&&(To(eu.showClassHints,eu.classHints,{signal:Jl}),Jo(eu.showColorSwatches,eu.colorHexMap,{signal:Jl,onOpenPanel:eu.showColorPanel?e=>uu(e):void 0}),xs(eu.variableHints||{},{signal:Jl}));let e=0,t=()=>{if(!Jl.aborted){if(Va()){nu();return}if(++e>=Gl){Kl(`warn`,`Bricks Vue app not detected after grace window — reBEMer disabled on this page.`);return}setTimeout(t,Wl)}};t()}function nu(){ou();let e=document.querySelector(Vl);if(e){ru(e);return}let t=new MutationObserver(()=>{let e=document.querySelector(Vl);e&&(t.disconnect(),ru(e))});t.observe(document.body,{childList:!0,subtree:!0}),Jl.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function ru(e){let t=null,n=new MutationObserver(()=>{t===null&&(t=setTimeout(()=>{t=null,iu(e)},50))});n.observe(e,{childList:!0,subtree:!0}),Jl.addEventListener(`abort`,()=>{n.disconnect(),t!==null&&clearTimeout(t)},{once:!0}),iu(e)}function iu(e){for(let[e,t]of Yl)if(!t.host.isConnected){try{Li(t.instance)}catch(e){Kl(`warn`,`badge unmount failed`,e)}Yl.delete(e)}let t=e.querySelectorAll(Hl);for(let e of t){let t=e.getAttribute(`data-id`);if(!t)continue;let n=Yl.get(t);n&&n.host.isConnected&&e.contains(n.host)||au(e)}}function au(e){let t=e.getAttribute(`data-id`);if(!t)return;let n=e.querySelector(`:scope > .structure-item`)||e,r=n.querySelector(`:scope > ul.actions`)||n.querySelector(`:scope > .actions`)||n.querySelector(`:scope > .structure-item-actions`),i=document.createElement(`span`);i.className=`rebemer-badge-host`,r?n.insertBefore(i,r):n.appendChild(i);let a=n.querySelector(`:scope > .title, :scope > .structure-item-title, :scope > .name, :scope .label`),o=Ni(Es,{target:i,props:{elementId:t,label:a?a.textContent.trim():``,onActivate:fu}}),s=Yl.get(t);if(s){try{Li(s.instance)}catch(e){Kl(`warn`,`badge remount cleanup failed`,e)}s.host.isConnected&&s.host.remove()}Yl.set(t,{instance:o,host:i})}function ou(){if(Zl)return;let e=eu&&eu.colorPanel;if(!eu?.showColorPanel||!e||!Array.isArray(e.variables)||e.variables.length===0)return;let t=document.createElement(`div`);$l().appendChild(t),Zl={instance:Ni(Bl,{target:t,props:{source:e}}),node:t}}function su(){if(Zl){try{Li(Zl.instance)}catch(e){Kl(`warn`,`color app unmount failed`,e)}Zl.node.remove(),Zl=null}}function cu(e,t){if(!e||!e.isConnected)return!1;try{let n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set;return n?n.call(e,t):e.value=t,e.dispatchEvent(new Event(`input`,{bubbles:!0})),!0}catch{return!1}}function lu(e){let t=[`#bricks-panel-inner`,`#bricks-panel`,`[id^="bricks-panel"]`];if(e)for(let n of t){let t=e.closest(n);if(t){let e=t.getBoundingClientRect();if(e.width>100)return Math.ceil(e.right)}}for(let e of t){let t=document.querySelector(e);if(t){let e=t.getBoundingClientRect();if(e.width>100)return Math.ceil(e.right)}}return null}function uu(e){du();let t=eu?.colorPanel;if(!t||!Array.isArray(t.variables)||t.variables.length===0)return;let n=lu(e),r=document.createElement(`div`);$l().appendChild(r),Ql={instance:Ni(Rl,{target:r,props:{source:t,dockedLeft:n,onPickValue:t=>{let n=cu(e?.querySelector(`input[type="text"]`)??e?.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`),t);if(n){let n=t.match(/^var\((--[^)]+)\)/)?.[1],r=n?eu?.colorHexMap?.[n]??null:null,i=(e?.closest(`[data-control="color"]`))?.querySelector(`:scope > .slashed-sf-color-btn`);if(i){let e=i.querySelector(`.slashed-sf-color-btn__dot`);e&&(r?(e.style.background=r,e.style.removeProperty(`box-shadow`)):e.style.removeProperty(`background`)),i.classList.toggle(`slashed-sf-color-btn--active`,!!r)}if(r){let t=e?.closest(`[data-control="color"]`);requestAnimationFrame(()=>{if(!t)return;let e=t.querySelector(`.bricks-control-preview`);e&&(Ho(e,!0),e.classList.remove(`empty`))})}}return n},onPick:du,onClose:du}}),node:r}}function du(){if(Ql){try{Li(Ql.instance)}catch(e){Kl(`warn`,`color picker panel unmount failed`,e)}Ql.node.remove(),Ql=null}}function fu(e){pu();let t=document.createElement(`div`);$l().appendChild(t),Xl={instance:Ni(Lc,{target:t,props:{rootId:e,onClose:pu}}),node:t}}function pu(){if(Xl){try{Li(Xl.instance)}catch(e){Kl(`warn`,`panel unmount failed`,e)}Xl.node.remove(),Xl=null}}window.addEventListener(`beforeunload`,()=>{ql.abort(),pu(),su(),du(),Eo(),Yo(),Ss();for(let{instance:e}of Yl.values())try{Li(e)}catch{}Yl.clear()},{once:!0}),document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,tu,{once:!0}):tu(); //# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/SLASHED-for-WP/integrations/bricks/editor-app/src/components/BemPanel.svelte b/SLASHED-for-WP/integrations/bricks/editor-app/src/components/BemPanel.svelte index 13fdcac5..9d3bc8dd 100644 --- a/SLASHED-for-WP/integrations/bricks/editor-app/src/components/BemPanel.svelte +++ b/SLASHED-for-WP/integrations/bricks/editor-app/src/components/BemPanel.svelte @@ -26,7 +26,7 @@ import { slugify } from '../lib/slugify.js'; import { validateName } from '../lib/validate.js'; import { applyToSubtree, buildPlan, computeBlockAssignment } from '../lib/apply.js'; - import { suggestElementName, isLayoutContainer, suggestContainerName, SOLE_CHILD_LABEL_OVERRIDES, getContainerMode } from '../lib/element-types.js'; + import { suggestElementName, isLayoutContainer, suggestContainerName, SOLE_CHILD_LABEL_OVERRIDES } from '../lib/element-types.js'; import { pickMigratableKeys, pickSkippedKeys } from '../lib/migrate-keys.js'; import Row from './Row.svelte'; import Toast from './Toast.svelte'; @@ -143,8 +143,7 @@ // Prefer the type map; when it has no entry, fall back to the // human label Bricks shows in the structure panel (slugified) // before resorting to the generic 'item'. Containers are left - // for Pass 2's role inference (never the type label → no - // `card__container`). + // for Pass 2, which names them after their own Bricks type. const mapped = suggestElementName(elementType, ''); if (mapped) { name = mapped; @@ -189,8 +188,6 @@ // Pass 2: context-aware refinement using parent→children relationships. // Skips user-labelled elements (suggestedFrom === 'label'). if (seeded.length > 1) { - const containerMode = getContainerMode(); - // Build parent → direct child ids map using a depth-tracking stack. const childrenOf = new Map(subtree.map(e => [e.id, []])); const stack = []; @@ -213,20 +210,14 @@ if (t) typeCount.set(t, (typeCount.get(t) ?? 0) + 1); } - // Layout-container children in document order (for positional hints). - const containerIds = childIds.filter(id => isLayoutContainer(elById.get(id)?.name ?? '')); - for (const id of childIds) { const row = rowById.get(id); const el = elById.get(id); if (!row || !el || row.suggestedFrom === 'label') continue; if (isLayoutContainer(el.name)) { - // Infer container role from its children's types. - const gcTypes = (childrenOf.get(id) ?? []) - .map(gcId => elById.get(gcId)?.name ?? '').filter(Boolean); - const pos = containerIds.indexOf(id); - row.name = suggestContainerName(gcTypes, pos, containerIds.length, containerMode, el.name); + // Name the container after its own Bricks type (container/section/…). + row.name = suggestContainerName(el.name); row.suggestedFrom = 'element-type'; } else if ((typeCount.get(el.name) ?? 0) === 1) { // Sole element of its type → apply semantic override if available. diff --git a/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js b/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js index 25adf3e9..c0a595be 100644 --- a/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js +++ b/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js @@ -120,28 +120,6 @@ export function mergedElementTypeMap() { return { ...ELEMENT_TYPE_LABEL_MAP, ...getUserElementMap() }; } -/** Valid container-naming modes (keep in sync with the PHP allow-list). */ -export const CONTAINER_MODES = Object.freeze(['type', 'role', 'generic']); - -/** - * Container-naming mode, sourced from the `rebemer_container_mode` - * plugin setting: - * - `'type'` (default) names each layout container after its Bricks - * type — `container`, `section`, `div`, `block` — which is - * predictable and matches how most people label wrappers. - * - `'role'` uses the child-aware role inference in - * `suggestContainerName` (header / content / actions / …). - * - `'generic'` names every container `'item'` and lets sibling - * auto-numbering disambiguate. - * - * @returns {'type'|'role'|'generic'} - */ -export function getContainerMode() { - if (typeof window === 'undefined') return 'type'; - const m = window.slashedBricksEditor?.rebemerContainerMode; - return CONTAINER_MODES.includes(m) ? m : 'type'; -} - /** * Element types that are layout containers and should never seed a * named element label automatically. Listed explicitly so callers can @@ -212,58 +190,19 @@ export const SOLE_CHILD_LABEL_OVERRIDES = Object.freeze({ }); /** - * Suggest a BEM name for a layout container based on the Bricks type - * strings of its direct children. + * Suggest a BEM name for a layout container. + * + * Layout containers are named after their own Bricks type — a `container` + * becomes `container`, a `section` becomes `section`, and so on — which is + * predictable and matches how most people label wrappers. Unknown or empty + * types fall back to the generic `'item'`. * - * Inspects what kind of content the container holds and returns a - * semantically appropriate name. Falls back to position-among-siblings - * when children give no clear signal. + * Pure function — no dependencies on policy, DOM, or Bricks state. * - * @param {string[]} childTypes - Bricks `element.name` values of direct children. - * @param {number} positionAmongContainerSiblings - 0-based index among layout-container siblings. - * @param {number} totalContainerSiblings - Total layout-container siblings at this level. - * @param {'type'|'role'|'generic'} [mode='role'] - `'type'` names the container - * after its own Bricks type (`containerType`); `'generic'` returns the plain - * `'item'` fallback (sibling auto-numbering then disambiguates); `'role'` - * keeps the child-aware inference below. - * @param {string} [containerType=''] - The container's own Bricks `element.name` - * (`container` / `section` / `div` / `block`). Only consulted in `'type'` mode. + * @param {string|undefined|null} containerType - The container's own Bricks + * `element.name` (`container` / `section` / `div` / `block`). * @returns {string} */ -export function suggestContainerName(childTypes, positionAmongContainerSiblings, totalContainerSiblings, mode = 'role', containerType = '') { - if (mode === 'type') return containerType || 'item'; - if (mode === 'generic') return 'item'; - - const types = new Set(childTypes.filter(Boolean)); - - const has = (...ts) => ts.some(t => types.has(t)); - - const hasButton = has('button', 'button-group'); - const hasHeading = has('heading'); - const hasText = has('text-basic', 'text'); - const hasImage = has('image'); - const hasNav = has('nav-nested', 'nav-menu'); - const hasForm = has('form'); - const hasIcon = has('icon', 'icon-box'); - const hasList = has('list'); - - if (hasForm) return 'form'; - if (hasNav) return 'nav'; - if (hasButton && !hasHeading && !hasText) return 'actions'; - if (hasImage && !hasText && !hasHeading && !hasButton) return 'media'; - if (hasHeading && !hasText && !hasButton) return 'header'; - if (hasText && !hasHeading && !hasButton) return 'body'; - if (hasHeading && hasText) return 'content'; - if (hasHeading && hasButton) return 'header'; - if (hasIcon && !hasText && !hasHeading) return 'icon-group'; - if (hasList) return 'list-wrap'; - - // Position-based fallback when children give no clear signal - if (totalContainerSiblings > 1) { - if (positionAmongContainerSiblings === 0) return 'header'; - if (positionAmongContainerSiblings === totalContainerSiblings - 1) return 'footer'; - return 'body'; - } - - return 'content'; +export function suggestContainerName(containerType) { + return (typeof containerType === 'string' && containerType) ? containerType : 'item'; } diff --git a/SLASHED-for-WP/integrations/bricks/includes/class-editor-data.php b/SLASHED-for-WP/integrations/bricks/includes/class-editor-data.php index 2a9ce68a..d8eb1f11 100644 --- a/SLASHED-for-WP/integrations/bricks/includes/class-editor-data.php +++ b/SLASHED-for-WP/integrations/bricks/includes/class-editor-data.php @@ -79,14 +79,11 @@ public function localize() { 'colorPanel' => $color_panel_data, 'variableHints' => self::get_variable_hints(), // reBEMer default-naming config: sparse type → BEM-name - // overrides merged over the built-in map editor-side, plus - // how layout containers are named ('type' | 'role' | 'generic'). + // overrides merged over the built-in map editor-side. + // Layout containers are always named after their Bricks type. 'rebemerElementMap' => isset( $plugin_settings['rebemer_element_map'] ) && is_array( $plugin_settings['rebemer_element_map'] ) ? (object) $plugin_settings['rebemer_element_map'] : (object) array(), - 'rebemerContainerMode' => isset( $plugin_settings['rebemer_container_mode'] ) - ? (string) $plugin_settings['rebemer_container_mode'] - : 'type', ) ); } diff --git a/SLASHED-for-WP/slashed.php b/SLASHED-for-WP/slashed.php index c99fbe6e..7e76f587 100644 --- a/SLASHED-for-WP/slashed.php +++ b/SLASHED-for-WP/slashed.php @@ -94,17 +94,16 @@ function slashed_inject_token_overrides() { if ( is_admin() ) { require_once SLASHED_PATH . 'includes/class-admin.php'; - require_once SLASHED_PATH . 'includes/class-hooks-page.php'; - require_once SLASHED_PATH . 'includes/class-rebemer-page.php'; + require_once SLASHED_PATH . 'includes/class-bricks-settings-page.php'; add_action( 'plugins_loaded', function () { new Slashed_Admin(); new Slashed_Token_Page(); new Slashed_Framework_Updater(); - new Slashed_Hooks_Page(); new Slashed_Manual_CSS_Page(); - new Slashed_ReBEMer_Page(); + // After Manual CSS so "Bricks settings" lands last in the menu. + new Slashed_Bricks_Settings_Page(); } ); } diff --git a/docs/rebemer.md b/docs/rebemer.md index c84abd3f..3ffc3562 100644 --- a/docs/rebemer.md +++ b/docs/rebemer.md @@ -59,28 +59,24 @@ that. type (read from its element registry via `bricks-api.getElementTypeLabel`, slugified); (4) the generic `item`. Layout containers (`section`/`container`/`div`/`block`) skip the type-label step above and are - instead named by the configured container mode (see *Configurable defaults*): - by default they take their own Bricks type (`container`, `section`, …), or — - in `role` mode — a role inferred from their children - (`header`/`body`/`content`/`actions`/…) via `suggestContainerName`. -- **Configurable defaults** — a dedicated **reBEMer** admin subpage - (`Slashed_ReBEMer_Page`, a sibling of Manual CSS under the SLASHED menu — - *not* part of the Design Settings SPA) persists a sparse element-type → - BEM-name override map (`rebemer_element_map`) and a container-naming mode - (`rebemer_container_mode`: `type` *(default)* = name each container after its - own Bricks type (`container`/`section`/`div`/`block`), `role` = child-aware - inference (`header`/`content`/…), `generic` = `item` + auto-numbering). Both - are stored in the `slashed_bricks_settings` option, sanitized against the same - BEM grammar as `validate.js` (the page reuses - `Slashed_REST_Controller::sanitize_rebemer_element_map`), and localized onto + instead named after their own Bricks type (a `container` becomes `container`, + a `section` becomes `section`, …) via `suggestContainerName`. +- **Configurable defaults** — the **Bricks settings** admin subpage + (`Slashed_Bricks_Settings_Page`, a sibling of Manual CSS under the SLASHED + menu — *not* part of the Design Settings SPA) gathers every Bricks-specific + setting in tabs (Element names, Options, Filter hooks). Its *Element names* + tab persists a sparse element-type → BEM-name override map + (`rebemer_element_map`) in the `slashed_bricks_settings` option, sanitized + against the same BEM grammar as `validate.js` (the page reuses + `Slashed_REST_Controller::sanitize_rebemer_element_map`) and localized onto `window.slashedBricksEditor` by `class-editor-data.php`; `element-types.js` - merges the overrides over the frozen built-in map at panel-open time. The page + merges the overrides over the frozen built-in map at panel-open time. The tab lists **every** element registered in Bricks — core, plugin, and custom — not just the built-in map: `Slashed_Bricks_Elements::get_all()` reads Bricks' `\Bricks\Elements::$elements` registry (cached per element-set). Layout - containers are omitted from that table since their naming comes from the - container mode. (The standalone Bricks plugin, which has no top-level SLASHED - menu, still exposes the same controls as a tab in its admin SPA.) + containers are omitted from that table since they are always named after their + own Bricks type. (The standalone Bricks plugin, which has no top-level SLASHED + menu, still exposes the element-name overrides as a tab in its admin SPA.) ## Architecture diff --git a/tests/element-types.test.js b/tests/element-types.test.js index c159d0a3..388d9da4 100644 --- a/tests/element-types.test.js +++ b/tests/element-types.test.js @@ -10,63 +10,21 @@ import { suggestContainerName, suggestElementName, mergedElementTypeMap, - getContainerMode, ELEMENT_TYPE_LABEL_MAP, SOLE_CHILD_LABEL_OVERRIDES, } from '../SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js'; -const s = (types, pos = 0, total = 1) => suggestContainerName(types, pos, total); - describe('suggestContainerName', () => { - test('form → "form"', () => assert.equal(s(['form']), 'form')); - test('nav-nested → "nav"', () => assert.equal(s(['nav-nested']), 'nav')); - test('nav-menu → "nav"', () => assert.equal(s(['nav-menu']), 'nav')); - - test('button only → "actions"', () => assert.equal(s(['button']), 'actions')); - test('button-group only → "actions"', () => assert.equal(s(['button-group']), 'actions')); - - test('image only → "media"', () => assert.equal(s(['image']), 'media')); - - test('heading only → "header"', () => assert.equal(s(['heading']), 'header')); - test('heading + button → "header"', () => assert.equal(s(['heading', 'button']), 'header')); - - test('text only → "body"', () => assert.equal(s(['text']), 'body')); - test('text-basic only → "body"', () => assert.equal(s(['text-basic']), 'body')); - - test('heading + text → "content"', () => assert.equal(s(['heading', 'text']), 'content')); - test('heading + text-basic → "content"', () => assert.equal(s(['heading', 'text-basic']), 'content')); - test('heading + text + button → "content"', () => assert.equal(s(['heading', 'text', 'button']), 'content')); - test('heading + text-basic + button → "content"', () => assert.equal(s(['heading', 'text-basic', 'button']), 'content')); - - test('icon only → "icon-group"', () => assert.equal(s(['icon']), 'icon-group')); - test('icon-box only → "icon-group"', () => assert.equal(s(['icon-box']), 'icon-group')); - - test('list → "list-wrap"', () => assert.equal(s(['list']), 'list-wrap')); - - test('empty → "content" (single sibling)', () => assert.equal(s([], 0, 1), 'content')); - - test('positional: first of multiple siblings → "header"', - () => assert.equal(s([], 0, 3), 'header')); - test('positional: last of multiple siblings → "footer"', - () => assert.equal(s([], 2, 3), 'footer')); - test('positional: middle of multiple siblings → "body"', - () => assert.equal(s([], 1, 3), 'body')); - - // Container mode gate (workstream 3). - test('generic mode → "item" regardless of children', - () => assert.equal(suggestContainerName(['heading', 'text'], 0, 1, 'generic'), 'item')); - test('role mode (explicit) still infers', - () => assert.equal(suggestContainerName(['heading', 'text'], 0, 1, 'role'), 'content')); - - // Type mode (default): name the container after its own Bricks type. - test('type mode → container type "container"', - () => assert.equal(suggestContainerName(['text', 'icon', 'button'], 0, 1, 'type', 'container'), 'container')); - test('type mode → "section"', - () => assert.equal(suggestContainerName([], 0, 1, 'type', 'section'), 'section')); - test('type mode ignores children entirely', - () => assert.equal(suggestContainerName(['heading', 'text', 'button'], 0, 3, 'type', 'div'), 'div')); - test('type mode with missing type → "item"', - () => assert.equal(suggestContainerName(['text'], 0, 1, 'type', ''), 'item')); + // Layout containers are named after their own Bricks type. + test('container → "container"', () => assert.equal(suggestContainerName('container'), 'container')); + test('section → "section"', () => assert.equal(suggestContainerName('section'), 'section')); + test('div → "div"', () => assert.equal(suggestContainerName('div'), 'div')); + test('block → "block"', () => assert.equal(suggestContainerName('block'), 'block')); + + // Unknown / empty types fall back to the generic 'item'. + test('empty string → "item"', () => assert.equal(suggestContainerName(''), 'item')); + test('undefined → "item"', () => assert.equal(suggestContainerName(undefined), 'item')); + test('null → "item"', () => assert.equal(suggestContainerName(null), 'item')); }); describe('suggestElementName', () => { @@ -109,31 +67,3 @@ describe('mergedElementTypeMap (user overrides)', () => { } }); }); - -describe('getContainerMode', () => { - test('defaults to "type" with no window', () => assert.equal(getContainerMode(), 'type')); - test('reads "generic" from localized config', () => { - globalThis.window = { slashedBricksEditor: { rebemerContainerMode: 'generic' } }; - try { - assert.equal(getContainerMode(), 'generic'); - } finally { - delete globalThis.window; - } - }); - test('reads "role" from localized config', () => { - globalThis.window = { slashedBricksEditor: { rebemerContainerMode: 'role' } }; - try { - assert.equal(getContainerMode(), 'role'); - } finally { - delete globalThis.window; - } - }); - test('unknown value falls back to "type"', () => { - globalThis.window = { slashedBricksEditor: { rebemerContainerMode: 'nonsense' } }; - try { - assert.equal(getContainerMode(), 'type'); - } finally { - delete globalThis.window; - } - }); -}); From c6e754e72509597c67a8a1aef3e535156d82db68 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 10:52:00 +0000 Subject: [PATCH 2/2] fix(bricks): address CodeRabbit review findings - token-store: whitelist plugin settings to PLUGIN_SETTING_DEFAULTS on read and write so retired keys (the removed rebemer_container_mode) are purged from upgraded sites instead of leaking through /settings and re-saves. - Bricks settings page: seed the element-name override map from stored settings and only reconcile rendered rows, so saving never drops overrides for elements whose plugin is temporarily deactivated. - element-types: gate suggestContainerName to LAYOUT_CONTAINER_TYPES (and trim input) so unknown types honor the documented 'item' fallback; add tests for the fallback + trimming. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01HtPN4CvQjMTdvPLALAW3GE --- .../includes/class-bricks-settings-page.php | 29 ++++++++++--------- SLASHED-for-WP/includes/class-token-store.php | 6 ++++ .../bricks/assets/editor-app/app.js | 2 +- .../editor-app/src/lib/element-types.js | 4 ++- tests/element-types.test.js | 8 +++-- 5 files changed, 31 insertions(+), 18 deletions(-) diff --git a/SLASHED-for-WP/includes/class-bricks-settings-page.php b/SLASHED-for-WP/includes/class-bricks-settings-page.php index 9acc6441..a2868f63 100644 --- a/SLASHED-for-WP/includes/class-bricks-settings-page.php +++ b/SLASHED-for-WP/includes/class-bricks-settings-page.php @@ -223,19 +223,22 @@ public function handle_save_names() { $posted_map = ( isset( $_POST['rebemer_map'] ) && is_array( $_POST['rebemer_map'] ) ) ? wp_unslash( $_POST['rebemer_map'] ) : array(); $elements = self::elements(); - $overrides = array(); - foreach ( $posted_map as $type => $name ) { - if ( ! is_string( $type ) || ! is_string( $name ) ) { - continue; - } - $name = strtolower( trim( $name ) ); - if ( '' === $name ) { - continue; - } - // Store sparse overrides only: a value equal to the built-in - // default is the same as leaving it blank. - $label = isset( $elements[ $type ] ) ? $elements[ $type ] : ''; - if ( self::default_for( $type, $label ) === $name ) { + // Seed from the stored map and only reconcile rows actually rendered on + // the form. Overrides for elements that aren't currently registered + // (e.g. a temporarily deactivated plugin) have no row here and are left + // untouched, so saving never silently drops them. + $overrides = isset( $settings['rebemer_element_map'] ) && is_array( $settings['rebemer_element_map'] ) + ? $settings['rebemer_element_map'] + : array(); + foreach ( $elements as $type => $label ) { + $name = ( isset( $posted_map[ $type ] ) && is_string( $posted_map[ $type ] ) ) + ? strtolower( trim( $posted_map[ $type ] ) ) + : ''; + + // Store sparse overrides only: blank, or a value equal to the + // built-in default, clears the override for that element. + if ( '' === $name || self::default_for( $type, $label ) === $name ) { + unset( $overrides[ $type ] ); continue; } $overrides[ $type ] = $name; diff --git a/SLASHED-for-WP/includes/class-token-store.php b/SLASHED-for-WP/includes/class-token-store.php index b6b6cbc0..a02f953f 100644 --- a/SLASHED-for-WP/includes/class-token-store.php +++ b/SLASHED-for-WP/includes/class-token-store.php @@ -144,6 +144,10 @@ public static function delete_settings() { public static function get_plugin_settings() { $stored = get_option( self::SETTINGS_OPTION_NAME, array() ); $stored = is_array( $stored ) ? $stored : array(); + // Drop any retired keys (e.g. the removed rebemer_container_mode) that + // upgraded sites may still carry, so they never leak back into REST + // responses or get re-written below. + $stored = array_intersect_key( $stored, self::PLUGIN_SETTING_DEFAULTS ); $merged = array_merge( self::PLUGIN_SETTING_DEFAULTS, $stored ); // css_bundle is owned by Slashed_Settings whenever the shared layer is @@ -167,6 +171,8 @@ public static function get_plugin_settings() { * @param array $settings Plugin settings map. */ public static function update_plugin_settings( array $settings ) { + // Persist only known keys so retired settings are stripped on write. + $settings = array_intersect_key( $settings, self::PLUGIN_SETTING_DEFAULTS ); if ( isset( $settings['css_bundle'] ) && class_exists( 'Slashed_Settings' ) ) { Slashed_Settings::set_css_bundle( $settings['css_bundle'] ); unset( $settings['css_bundle'] ); diff --git a/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js b/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js index d3a43b49..8d47de9c 100644 --- a/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js +++ b/SLASHED-for-WP/integrations/bricks/assets/editor-app/app.js @@ -1,5 +1,5 @@ var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}function h(e,t){if(m(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(m(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return m(t)==`symbol`?t:t+``}function _(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=1024,y=2048,b=4096,x=8192,S=16384,ee=32768,te=1<<25,ne=65536,C=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),fe=Symbol(`attributes`),pe=Symbol(`class`),me=Symbol(`style`),he=Symbol(`text`),ge=Symbol(`form reset`),_e=new class extends Error{constructor(...e){super(...e),_(this,`name`,`StaleReactionError`),_(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}},ve=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function be(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function xe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function De(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ke(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ae(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var je={},w=Symbol(`uninitialized`);function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Pe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Fe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function Ie(e){T=e}var E;function Le(e){if(e===null)throw Ne(),je;return E=e}function Re(){return Le(ur(E))}function D(e){if(T){if(ur(E)!==null)throw Ne(),je;E=e}}function ze(e=1){if(T){for(var t=e,n=E;t--;)n=ur(n);E=n}}function Be(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ur(n);e&&n.remove(),n=i}}function Ve(e){if(!e||e.nodeType!==8)throw Ne(),je;return e.data}function He(e){return e===this.v}function Ue(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function We(e){return!Ue(e,this.v)}var Ge=!1,Ke=!1,O=null;function qe(e){O=e}function Je(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:G,l:Ke&&!t?{s:null,u:null,$:[]}:null}}function Ye(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)Tr(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Xe(){return!Ke||O!==null&&O.l===null}var Ze=[];function Qe(){var e=Ze;Ze=[],f(e)}function $e(e){if(Ze.length===0&&!on){var t=Ze;queueMicrotask(()=>{t===Ze&&Qe()})}Ze.push(e)}function et(){for(;Ze.length>0;)Qe()}function tt(e){var t=G;if(t===null)return W.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;nt(e,t)}function nt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var rt=~(y|b|v);function k(e,t){e.f=e.f&rt|t}function it(e){e.f&512||e.deps===null?k(e,v):k(e,b)}function at(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,at(t.deps))}function ot(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),at(e.deps),k(e,v)}var st=!1,ct=!1;function lt(e){var t=ct;try{return ct=!1,[e(),ct]}finally{ct=t}}function ut(e){let t=0,n=Jn(0),r;return()=>{Sr()&&(K(n),kr(()=>(t===0&&(r=gi(()=>e(()=>Qn(n)))),t+=1,()=>{$e(()=>{--t,t===0&&(r?.(),r=void 0,Qn(n))})})))}}function dt(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function ft(e,t){dt(e,t),t.add(e)}function A(e,t,n){dt(e,t),t.set(e,n)}function j(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function M(e,t,n){return e.set(j(e,t),n),n}function N(e,t){return e.get(j(e,t))}var pt=ne|C;function mt(e,t,n,r){new jt(e,t,n,r)}var ht=new WeakMap,gt=new WeakMap,_t=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap,P=new WeakSet,jt=class{constructor(e,t,n,r){ft(this,P),_(this,`parent`,void 0),_(this,`is_pending`,!1),_(this,`transform_error`,void 0),A(this,ht,void 0),A(this,gt,T?E:null),A(this,_t,void 0),A(this,vt,void 0),A(this,yt,void 0),A(this,bt,null),A(this,xt,null),A(this,St,null),A(this,Ct,null),A(this,wt,0),A(this,Tt,0),A(this,Et,!1),A(this,Dt,new Set),A(this,Ot,new Set),A(this,kt,null),A(this,At,ut(()=>(M(kt,this,Jn(N(wt,this))),()=>{M(kt,this,null)}))),M(ht,this,e),M(_t,this,t),M(vt,this,e=>{var t=G;t.b=this,t.f|=128,n(e)}),this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),M(yt,this,Ar(()=>{if(T){let e=N(gt,this);Re();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));j(P,this,Nt).call(this,t)}else t?j(P,this,Pt).call(this):j(P,this,Mt).call(this)}else j(P,this,Ft).call(this)},pt)),T&&M(ht,this,E)}defer_effect(e){ot(e,N(Dt,this),N(Ot,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!N(_t,this).pending}update_pending_count(e,t){j(P,this,Rt).call(this,e,t),M(wt,this,N(wt,this)+e),!(!N(kt,this)||N(Et,this))&&(M(Et,this,!0),$e(()=>{M(Et,this,!1),N(kt,this)&&Xn(N(kt,this),N(wt,this))}))}get_effect_pending(){return N(At,this).call(this),K(N(kt,this))}error(e){if(!N(_t,this).onerror&&!N(_t,this).failed)throw e;I?.is_fork?(N(bt,this)&&I.skip_effect(N(bt,this)),N(xt,this)&&I.skip_effect(N(xt,this)),N(St,this)&&I.skip_effect(N(St,this)),I.oncommit(()=>{j(P,this,zt).call(this,e)})):j(P,this,zt).call(this,e)}};function Mt(){try{M(bt,this,jr(()=>N(vt,this).call(this,N(ht,this))))}catch(e){this.error(e)}}function Nt(e){let t=N(_t,this).failed;t&&M(St,this,jr(()=>{t(N(ht,this),()=>e,()=>()=>{})}))}function Pt(){let e=N(_t,this).pending;e&&(this.is_pending=!0,M(xt,this,jr(()=>e(N(ht,this)))),$e(()=>{var e=M(Ct,this,document.createDocumentFragment()),t=cr();e.append(t),M(bt,this,j(P,this,Lt).call(this,()=>jr(()=>N(vt,this).call(this,t)))),N(Tt,this)===0&&(N(ht,this).before(e),M(Ct,this,null),Rr(N(xt,this),()=>{M(xt,this,null)}),j(P,this,It).call(this,I))}))}function Ft(){try{if(this.is_pending=this.has_pending_snippet(),M(Tt,this,0),M(wt,this,0),M(bt,this,jr(()=>{N(vt,this).call(this,N(ht,this))})),N(Tt,this)>0){var e=M(Ct,this,document.createDocumentFragment());Hr(N(bt,this),e);let t=N(_t,this).pending;M(xt,this,jr(()=>t(N(ht,this))))}else j(P,this,It).call(this,I)}catch(e){this.error(e)}}function It(e){this.is_pending=!1,e.transfer_effects(N(Dt,this),N(Ot,this))}function Lt(e){var t=G,n=W,r=O;Yr(N(yt,this)),Jr(N(yt,this)),qe(N(yt,this).ctx);try{return Dn.ensure(),e()}catch(e){return tt(e),null}finally{Yr(t),Jr(n),qe(r)}}function Rt(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;j(P,n=this.parent,Rt).call(n,e,t)}return}M(Tt,this,N(Tt,this)+e),N(Tt,this)===0&&(j(P,this,It).call(this,t),N(xt,this)&&Rr(N(xt,this),()=>{M(xt,this,null)}),N(Ct,this)&&(N(ht,this).before(N(Ct,this)),M(Ct,this,null)))}function zt(e){N(bt,this)&&(Fr(N(bt,this)),M(bt,this,null)),N(xt,this)&&(Fr(N(xt,this)),M(xt,this,null)),N(St,this)&&(Fr(N(St,this)),M(St,this,null)),T&&(Le(N(gt,this)),ze(),Le(Be()));var t=N(_t,this).onerror;let n=N(_t,this).failed;var r=!1,i=!1;let a=()=>{if(r){Fe();return}r=!0,i&&Ae(),N(St,this)!==null&&Rr(N(St,this),()=>{M(St,this,null)}),j(P,this,Lt).call(this,()=>{j(P,this,Ft).call(this)})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){nt(e,N(yt,this)&&N(yt,this).parent)}n&&M(St,this,j(P,this,Lt).call(this,()=>{try{return jr(()=>{var t=G;t.b=this,t.f|=128,n(N(ht,this),()=>e,()=>a)})}catch(e){return nt(e,N(yt,this).parent),null}}))};$e(()=>{var t;try{t=this.transform_error(e)}catch(e){nt(e,N(yt,this)&&N(yt,this).parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>nt(e,N(yt,this)&&N(yt,this).parent)):o(t)})}function Bt(e,t,n,r){let i=Xe()?Wt:qt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=G,c=Vt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){nt(e,s)}Ht()}}var d=Ut();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Kt(e))).then(u).catch(e=>nt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Ht()}):f()}function Vt(){var e=G,t=W,n=O,r=I;return function(i=!0){Yr(e),Jr(t),qe(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ht(e=!0){Yr(null),Jr(null),qe(null),e&&I?.deactivate()}function Ut(){var e=G,t=e.b,n=I,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Wt(e){var t=2|y;return G!==null&&(G.f|=C),{ctx:O,deps:null,effects:null,equals:He,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:G,ac:null}}var Gt=Symbol(`obsolete`);function Kt(e,t,n){let r=G;r===null&&be();var i=void 0,a=Jn(w),o=!W,s=new Set;return Or(()=>{var t=G,n=p();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==_e&&n.reject(e)}).finally(Ht)}catch(e){n.reject(e),Ht()}var c=I;if(o){if(t.f&32768)var l=Ut();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Gt);else for(let e of s.values())e.reject(Gt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Gt&&(c.activate(),t?(a.f|=ce,Xn(a,t)):(a.f&8388608&&(a.f^=ce),Xn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Cr(()=>{for(let e of s)e.reject(Gt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function F(e){let t=Wt(e);return Ge||Zr(t),t}function qt(e){let t=Wt(e);return t.equals=We,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;nthis.schedule(e)){var n=N(wn,this).get(e);if(n){N(wn,this).delete(e);for(var r of n.d)k(r,y),t(r);for(r of n.m)k(r,b),t(r)}N(Tn,this).add(e)}capture(e,t,n=!1){e.v!==w&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),rn?.set(e,t)),this.is_fork||(e.v=t)}activate(){I=this}deactivate(){I=null,rn=null}flush(){try{sn=!0,I=this,j(L,this,kn).call(this)}finally{un=0,an=null,cn=null,ln=null,sn=!1,I=null,rn=null,Kn.clear()}}discard(){for(let e of N(gn,this))e(this);N(gn,this).clear();for(let e of this.async_deriveds.values())e.reject(Gt);j(L,this,Fn).call(this),N(yn,this)?.resolve()}register_created_effect(e){N(xn,this).push(e)}increment(e,t){if(M(_n,this,N(_n,this)+1),e){let e=N(vn,this).get(t)??0;N(vn,this).set(t,e+1)}}decrement(e,t){if(M(_n,this,N(_n,this)-1),e){let e=N(vn,this).get(t)??0;e===1?N(vn,this).delete(t):N(vn,this).set(t,e-1)}N(En,this)||(M(En,this,!0),$e(()=>{M(En,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)N(Sn,this).add(t);for(let e of t)N(Cn,this).add(e);e.clear(),t.clear()}oncommit(e){N(hn,this).add(e)}ondiscard(e){N(gn,this).add(e)}settled(){return(N(yn,this)??M(yn,this,p())).promise}static ensure(){if(I===null){let t=I=new e;!sn&&!on&&$e(()=>{N(fn,t)||t.flush()})}return I}apply(){if(!Ge||!this.is_fork&&N(pn,this)===null&&N(mn,this)===null){rn=null;return}rn=new Map;for(let[e,[t]]of this.current)rn.set(e,t);for(let t=en;t!==null;t=N(mn,t))if(!(t===this||t.is_fork)){var e=!1;if(t.id1e3&&(j(L,this,Fn).call(this),Ln());for(let e of N(Sn,this))N(Cn,this).delete(e),k(e,y),this.schedule(e);for(let e of N(Cn,this))k(e,b),this.schedule(e);let e=N(bn,this);M(bn,this,[]),this.apply();var t=cn=[],n=[],r=ln=[];for(let r of e)try{j(L,this,An).call(this,r,t,n)}catch(e){throw Wn(r),j(L,this,On).call(this)||this.discard(),e}if(I=null,r.length>0){var i=$t.ensure();for(let e of r)i.schedule(e)}if(cn=null,ln=null,j(L,this,On).call(this)){j(L,this,Nn).call(this,n),j(L,this,Nn).call(this,t);for(let[e,t]of N(wn,this))Un(e,t);r.length>0&&j(L,I,kn).call(I);return}let a=j(L,this,jn).call(this);if(a){j(L,this,Nn).call(this,n),j(L,this,Nn).call(this,t),j(L,a,Mn).call(a,this);return}N(Sn,this).clear(),N(Cn,this).clear();for(let e of N(hn,this))e(this);N(hn,this).clear(),nn=this,zn(n),zn(t),nn=null,N(yn,this)?.resolve();var o=I;if(N(_n,this)===0&&(N(bn,this).length===0||o!==null)&&(j(L,this,Fn).call(this),Ge&&(j(L,this,Pn).call(this),I=o)),N(bn,this).length>0)if(o!==null){let e=o;N(bn,e).push(...N(bn,this).filter(t=>!N(bn,e).includes(t)))}else o=this;o!==null&&j(L,o,kn).call(o)}function An(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||N(wn,this).has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):Ge&&i&16777224?n.push(r):si(r)&&(i&16&&N(Cn,this).add(r),fi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function jn(){for(var e=N(pn,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=N(pn,e)}return null}function Mn(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(N(Sn,e),N(Cn,e));let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(N(Cn,this).delete(i),k(i,y),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),j(L,e,Fn).call(e),I=this,j(L,this,kn).call(this)}function Nn(e){for(var t=0;t!u.current.get(e)[1]);if(!(!N(fn,u)||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of N(Tn,this))u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):j(L,u,Nn).call(u,[e])});u.activate();var a=new Set,o=new Map;for(var s of t)Bn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return n?n[0]!==t[0]||n[1]!==t[1]:!0}).map(([e])=>e);if(c.length>0)for(let e of N(xn,this))!(e.f&155648)&&Vn(e,c,o)&&(e.f&4194320?(k(e,y),u.schedule(e)):N(Sn,u).add(e));if(N(bn,u).length>0&&!N(En,u)){u.apply();for(var l of N(bn,u))j(L,u,An).call(u,l,[],[]);M(bn,u,[])}u.deactivate()}}}}function Fn(){if(this.linked){var e=N(pn,this),t=N(mn,this);e===null?en=t:M(mn,e,t),t===null?tn=e:M(pn,t,e),this.linked=!1}}function In(e){var t=on;on=!0;try{var n;for(e&&(I!==null&&!I.is_fork&&I.flush(),n=e());;){if(et(),I===null)return n;I.flush()}}finally{on=t}}function Ln(){try{Te()}catch(e){nt(e,an)}}var Rn=null;function zn(e){var t=e.length;if(t!==0){for(var n=0;n0)){Kn.clear();for(let e of Rn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Rn.has(n)&&(Rn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||fi(n)}}Rn.clear()}}Rn=null}}function Bn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Bn(i,t,n,r):e&4194320&&!(e&2048)&&Vn(i,t,r)&&(k(i,y),Hn(i))}}function Vn(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&Vn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Hn(e){I.schedule(e)}function Un(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,v);for(var n=e.first;n!==null;)Un(n,t),n=n.next}}function Wn(e){k(e,v);for(var t=e.first;t!==null;)Wn(t),t=t.next}var Gn=new Set,Kn=new Map,qn=!1;function Jn(e,t){return{f:0,v:e,reactions:null,equals:He,rv:0,wv:0}}function R(e,t){let n=Jn(e,t);return Zr(n),n}function Yn(e,t=!1,n=!0){let r=Jn(e);if(t||(r.equals=We),Ke&&n&&O!==null&&O.l!==null){var i;((i=O.l).s??(i.s=[])).push(r)}return r}function z(e,t,n=!1){return W!==null&&(!qr||W.f&131072)&&Xe()&&W.f&4325394&&(Xr===null||!Xr.has(e))&&ke(),Xn(e,n?er(t):t,ln)}function Xn(e,t,n=null){if(!e.equals(t)){Kn.set(e,Gr?t:e.v);var r=Dn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Yt(t),rn===null&&it(t)}e.wv=oi(),$n(e,y,n),Xe()&&G!==null&&G.f&1024&&!(G.f&96)&&(ei===null?ti([e]):ei.push(e)),!r.is_fork&&Gn.size>0&&!qn&&Zn()}return t}function Zn(){qn=!1;for(let e of Gn){e.f&1024&&k(e,b);let t;try{t=si(e)}catch{t=!0}t&&fi(e)}Gn.clear()}function Qn(e){z(e,e.v+1)}function $n(e,t,n){var r=e.reactions;if(r!==null)for(var i=Xe(),a=r.length,o=0;o{if(ii===d)return e();var t=W,n=ii;Jr(null),ai(d);var r=e();return Jr(t),ai(n),r};return i&&r.set(`length`,R(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&De();var i=r.get(t);return i===void 0?f(()=>{var e=R(n.value,u);return r.set(t,e),e}):z(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>R(w,u));r.set(t,e),Qn(o)}}else z(n,w),Qn(o);return!0},get(e,n,i){if(n===le)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>R(er(s?e[n]:w),u)),r.set(n,o)),o!==void 0){var c=K(o);return c===w?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=K(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==w)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==w||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>R(i?er(e[t]):w,u)),r.set(t,n)),K(n)===w)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;dR(w,u)),r.set(d+``,p)):z(p,w)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>R(void 0,u)),z(c,er(n)),r.set(t,c));else{l=c.v!==w;var m=f(()=>er(n));z(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&z(g,_+1)}Qn(o)}return!0},ownKeys(e){K(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==w});for(var[n,i]of r)i.v!==w&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Oe()}})}function tr(e){try{if(typeof e==`object`&&e&&le in e)return e[le]}catch{}return e}function nr(e,t){return Object.is(tr(e),tr(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var rr,ir,ar,or;function sr(){if(rr===void 0){rr=window,ir=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ar=a(t,`firstChild`).get,or=a(t,`nextSibling`).get,u(e)&&(e[pe]=void 0,e[fe]=null,e[me]=void 0,e.__e=void 0),u(n)&&(n[he]=void 0)}}function cr(e=``){return document.createTextNode(e)}function lr(e){return ar.call(e)}function ur(e){return or.call(e)}function B(e,t){if(!T)return lr(e);var n=lr(E);if(n===null)n=E.appendChild(cr());else if(t&&n.nodeType!==3){var r=cr();return n?.before(r),Le(r),r}return t&&mr(n),Le(n),n}function V(e,t=!1){if(!T){var n=lr(e);return n instanceof Comment&&n.data===``?ur(n):n}if(t){if(E?.nodeType!==3){var r=cr();return E?.before(r),Le(r),r}mr(E)}return E}function H(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=ur(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=cr();return r===null?i?.after(a):r.before(a),Le(a),a}mr(r)}return Le(r),r}function dr(e){e.textContent=``}function fr(){return!Ge||Rn!==null?!1:(G.f&ee)!==0}function pr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function mr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var hr=!1;function gr(){hr||(hr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ge]?.()})},{capture:!0}))}function _r(e){var t=W,n=G;Jr(null),Yr(null);try{return e()}finally{Jr(t),Yr(n)}}function vr(e,t,n,r=n){e.addEventListener(t,()=>_r(n));let i=e[ge];i?e[ge]=()=>{i(),r(!0)}:e[ge]=()=>r(!0),gr()}function yr(e){G===null&&(W===null&&we(e),Ce()),Gr&&Se(e)}function br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function xr(e,t){var n=G;n!==null&&n.f&8192&&(e|=x);var r={ctx:O,deps:null,nodes:null,f:e|y|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};I?.register_created_effect(r);var i=r;if(e&4)cn===null?Dn.ensure().schedule(r):cn.push(r);else if(t!==null){try{fi(r)}catch(e){throw Fr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&br(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??(a.effects=[])).push(i)}return r}function Sr(){return W!==null&&!qr}function Cr(e){let t=xr(8,null);return k(t,v),t.teardown=e,t}function wr(e){yr(`$effect`);var t=G.f;if(!W&&t&32&&O!==null&&!O.i){var n=O;(n.e??(n.e=[])).push(e)}else return Tr(e)}function Tr(e){return xr(4|re,e)}function Er(e){Dn.ensure();let t=xr(64|C,e);return(e={})=>new Promise(n=>{e.outro?Rr(t,()=>{Fr(t),n(void 0)}):(Fr(t),n(void 0))})}function Dr(e){return xr(4,e)}function Or(e){return xr(se|C,e)}function kr(e,t=0){return xr(8|t,e)}function U(e,t=[],n=[],r=[]){Bt(r,t,n,t=>{xr(8,()=>{e(...t.map(K))})})}function Ar(e,t=0){return xr(16|t,e)}function jr(e){return xr(32|C,e)}function Mr(e){var t=e.teardown;if(t!==null){let e=Gr,n=W;Kr(!0),Jr(null);try{t.call(null)}finally{Kr(e),Jr(n)}}}function Nr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&_r(()=>{e.abort(_e)});var r=n.next;n.f&64?n.parent=null:Fr(n,t),n=r}}function Pr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Fr(t),t=n}}function Fr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Ir(e.nodes.start,e.nodes.end),n=!0),e.f|=te,Nr(e,t&&!n),di(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Mr(e),e.f^=te,e.f|=S;var i=e.parent;i!==null&&i.first!==null&&Lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Ir(e,t){for(;e!==null;){var n=e===t?null:ur(e);e.remove(),e=n}}function Lr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Rr(e,t,n=!0){var r=[];zr(e,r,!0);var i=()=>{n&&Fr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function zr(e,t,n){if(!(e.f&8192)){e.f^=x;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;zr(i,t,o?n:!1)}i=a}}}function Br(e){Vr(e,!0)}function Vr(e,t){if(e.f&8192){e.f^=x,e.f&1024||(k(e,y),Dn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Vr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ur(n);t.append(n),n=i}}var Ur=null,Wr=!1,Gr=!1;function Kr(e){Gr=e}var W=null,qr=!1;function Jr(e){W=e}var G=null;function Yr(e){G=e}var Xr=null;function Zr(e){W!==null&&(!Ge||W.f&2)&&(Xr??(Xr=new Set)).add(e)}var Qr=null,$r=0,ei=null;function ti(e){ei=e}var ni=1,ri=0,ii=ri;function ai(e){ii=e}function oi(){return++ni}function si(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&rn===null&&k(e,v)}return!1}function ci(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ge&&Xr!==null&&Xr.has(e)))for(var i=0;i{e.ac.abort(_e)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=ee;var f=e.deps,p=I?.is_fork;if(Qr!==null){var m;if(p||di(e,$r),f!==null&&$r>0)for(f.length=$r+Qr.length,m=0;m{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),In()}function K(e){var t=(e.f&2)!=0;if(Ur?.add(e),W!==null&&!qr&&!(G!==null&&G.f&16384)&&(Xr===null||!Xr.has(e))){var r=W.deps;if(W.f&2097152)e.rvn?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?$e(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ci(e,t,n,r,i){var a={capture:r,passive:i},o=Si(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Cr(()=>{t.removeEventListener(e,o,a)})}function q(e,t,n){(t[yi]??(t[yi]={}))[e]=n}function wi(e){for(var t=0;t{throw e});throw p}}finally{e[yi]=t,delete e.currentTarget,Jr(d),Yr(f)}}}var Di=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Oi(e){return Di?.createHTML(e)??e}function ki(e){var t=pr(`template`);return t.innerHTML=Oi(e.replaceAll(``,``)),t.content}function Ai(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(``);return()=>{if(T)return Ai(E,null),E;i===void 0&&(i=ki(a?e:``+e),n||(i=lr(i)));var t=r||ir?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=lr(t),s=t.lastChild;Ai(o,s)}else Ai(t,t);return t}}function ji(e=``){if(!T){var t=cr(e+``);return Ai(t,t),t}var n=E;return n.nodeType===3?mr(n):(n.before(n=cr()),Le(n)),Ai(n,n),n}function Mi(){if(T)return Ai(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=cr();return e.append(t,n),Ai(t,n),e}function Y(e,t){if(T){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Re();return}e!==null&&e.before(t)}function X(e,t){var n,r=t==null?``:typeof t==`object`?`${t}`:t;r!==((n=e)[he]??(n[he]=e.nodeValue))&&(e[he]=r,e.nodeValue=`${r}`)}function Ni(e,t){return Fi(e,t)}var Pi=new Map;function Fi(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){sr();var l=void 0,u=Er(()=>{var s=n??t.appendChild(cr());mt(s,{pending:()=>{}},t=>{Je({});var n=O;if(o&&(n.c=o),a&&(i.$$events=a),T&&Ai(t,null),l=e(t,i)||{},T&&(G.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Ne(),je;Ye()},c);var u=new Set,d=e=>{for(var n=0;n{for(var e of u)for(let n of[t,document]){var r=Pi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ei),r.delete(e),r.size===0&&Pi.delete(n)):r.set(e,i)}xi.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Ii.set(l,u),l}var Ii=new WeakMap;function Li(e,t){let n=Ii.get(e);return n?(Ii.delete(e),n(t)):Promise.resolve()}var Ri=new WeakMap,zi=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,Hi=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Gi=class{constructor(e,t=!0){_(this,`anchor`,void 0),A(this,Ri,new Map),A(this,zi,new Map),A(this,Bi,new Map),A(this,Vi,new Set),A(this,Hi,!0),A(this,Ui,e=>{if(N(Ri,this).has(e)){var t=N(Ri,this).get(e),n=N(zi,this).get(t);if(n)Br(n),N(Vi,this).delete(t);else{var r=N(Bi,this).get(t);r&&(Br(r.effect),N(zi,this).set(t,r.effect),N(Bi,this).delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of N(Ri,this)){if(N(Ri,this).delete(t),t===e)break;let r=N(Bi,this).get(n);r&&(Fr(r.effect),N(Bi,this).delete(n))}for(let[e,r]of N(zi,this)){if(e===t||N(Vi,this).has(e))continue;let i=()=>{if(Array.from(N(Ri,this).values()).includes(e)){var t=document.createDocumentFragment();Hr(r,t),t.append(cr()),N(Bi,this).set(e,{effect:r,fragment:t})}else Fr(r);N(Vi,this).delete(e),N(zi,this).delete(e)};N(Hi,this)||!n?(N(Vi,this).add(e),Rr(r,i,!1)):i()}}}),A(this,Wi,e=>{N(Ri,this).delete(e);let t=Array.from(N(Ri,this).values());for(let[e,n]of N(Bi,this))t.includes(e)||(Fr(n.effect),N(Bi,this).delete(e))}),this.anchor=e,M(Hi,this,t)}ensure(e,t){var n=I,r=fr();if(t&&!N(zi,this).has(e)&&!N(Bi,this).has(e))if(r){var i=document.createDocumentFragment(),a=cr();i.append(a),N(Bi,this).set(e,{effect:jr(()=>t(a)),fragment:i})}else N(zi,this).set(e,jr(()=>t(this.anchor)));if(N(Ri,this).set(n,e),r){for(let[t,r]of N(zi,this))t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of N(Bi,this))t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(N(Ui,this)),n.ondiscard(N(Wi,this))}else T&&(this.anchor=E),N(Ui,this).call(this,n)}};function Z(e,t,n=!1){var r;T&&(r=E,Re());var i=new Gi(e),a=n?ne:0;function o(e,t){if(T){var n=Ve(r);if(e!==parseInt(n.substring(1))){var a=Be();Le(a),i.anchor=a,Ie(!1),i.ensure(e,t),Ie(!0);return}}i.ensure(e,t)}Ar(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ki(e,t){return t}function qi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Ji(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=i.length===0&&n!==null;if(l){var u=n,d=u.parentNode;dr(d),d.append(u),e.items.clear()}Ji(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Ji(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Zi(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,$i(d,null,c)):Br(d):Rr(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Ar(()=>{p=K(f);var e=p.length;let t=!1;T&&Ve(c)===`[!`!=(e===0)&&(c=Be(),Le(c),Ie(!1),t=!0);for(var r=new Set,u=I,v=fr(),y=0;ys(c)):(d=jr(()=>s(Yi??(Yi=cr()))),d.f|=ie)),e>r.size&&xe(``,``,``),T&&e>0&&Le(Be()),!h)if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Ie(!0),K(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function Xi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Zi(e,t,n,i,a){var o=(i&8)!=0,s=t.length,c=e.items,l=Xi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v0){var C=i&4&&s===0?n:null;if(o){for(v=0;v{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Qi(e,t,n,r,i,a,o,s){var c=o&1?o&16?Jn(n):Yn(n,!1,!1):null,l=o&2?Jn(i):null;return{v:c,i:l,e:jr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function $i(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=ur(r);if(a.before(r),r===i)return;r=o}}function ea(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var ta=[...` -\r\f\xA0\v`];function na(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ta.includes(r[o-1]))&&(s===r.length||ta.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ra(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ia(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function aa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ia)),i&&c.push(...Object.keys(i).map(ia));var l=0,u=-1;let t=e.length;for(var d=0;d{la(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Cr(()=>{t.disconnect()})}function da(e,t,n=t){var r=new WeakSet,i=!0;vr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),fa);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&fa(o)}n(a),e.__value=a,I!==null&&r.add(I)}),Dr(()=>{var a=t();if(e===document.activeElement){var o=Ge?nn:I;if(r.has(o))return}if(la(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=fa(s),n(a))}e.__value=a,i=!1}),ua(e)}function fa(e){return`__value`in e?e.__value:e.value}var pa=Symbol(`is custom element`),ma=Symbol(`is html`),ha=ve?`link`:`LINK`;function ga(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$(e,`checked`,null),e.checked=r}}};e[ge]=n,$e(n),gr()}}function $(e,t,n,r){var i=_a(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ha)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _a(e){var t;return(t=e)[fe]??(t[fe]={[pa]:e.nodeName.includes(`-`),[ma]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var va=new Map;function ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function ba(e,t,n=t){var r=new WeakSet;vr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Sa(e)?Ca(a):a,n(a),I!==null&&r.add(I),await pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||gi(t)==null&&e.value)&&(n(Sa(e)?Ca(e.value):e.value),I!==null&&r.add(I)),kr(()=>{var n=t();if(e===document.activeElement){var i=Ge?nn:I;if(r.has(i))return}Sa(e)&&n===Ca(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function xa(e,t,n=t){vr(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(T&&e.defaultChecked!==e.checked||gi(t)==null)&&n(e.checked),kr(()=>{e.checked=!!t()})}function Sa(e){var t=e.type;return t===`number`||t===`range`}function Ca(e){return e===``?null:+e}var wa,Ta=new WeakMap,Ea=new WeakMap,Da=new WeakMap,Oa=new WeakSet,ka=class{constructor(e){ft(this,Oa),A(this,Ta,new WeakMap),A(this,Ea,void 0),A(this,Da,void 0),M(Da,this,e)}observe(e,t){var n=N(Ta,this).get(e)||new Set;return n.add(t),N(Ta,this).set(e,n),j(Oa,this,Aa).call(this).observe(e,N(Da,this)),()=>{var n=N(Ta,this).get(e);n.delete(t),n.size===0&&(N(Ta,this).delete(e),N(Ea,this).unobserve(e))}}};wa=ka;function Aa(){return N(Ea,this)??M(Ea,this,new ResizeObserver(e=>{for(var t of e){wa.entries.set(t.target,t);for(var n of N(Ta,this).get(t.target)||[])n(t)}}))}_(ka,`entries`,new WeakMap);function ja(e,t){return e===t||e?.[le]===t}function Ma(e={},t,n,r){var i=O.r,a=G;return Dr(()=>{var o,s;return kr(()=>{o=s,s=r?.()||[],gi(()=>{ja(n(...s),e)||(t(e,...s),o&&ja(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ja(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Na(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=Wt(r)),K(u)):(l&&(l=!1,c=s?gi(r):r),c);let f;if(o){var p=le in e||ue in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=lt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ee(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Wt:qt)(()=>(v=!1,g()));o&&K(y);var b=G;return(function(e,t){if(arguments.length>0){let n=t?K(y):i&&o?er(e):e;return z(y,n),v=!0,c!==void 0&&(c=n),e}return Gr&&v||b.f&16384?y.v:K(y)})}function Pa(e){O===null&&ye(`onMount`),Ke&&O.l!==null?Fa(O).m.push(e):wr(()=>{let t=gi(e);if(typeof t==`function`)return t})}function Fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}var Ia=`[data-v-app]`,La=[`header`,`content`,`footer`],Ra=null,za=null;function Ba(e){let t=e instanceof Set?e:new Set(e||[]);for(let e=0;e<16;e++){let e=crypto.randomUUID().replace(/-/g,``).slice(0,8);if(!t.has(e))return e}throw Error(`rebemer: id collision exhausted`)}function Va(){if(typeof document>`u`)return!1;let e=document.querySelector(Ia)?.__vue_app__?.config?.globalProperties?.$_state;return!e||typeof e!=`object`||!Array.isArray(e.globalClasses)?(Ra=null,!1):(Ra=e,za=null,!0)}function Ha(){if(za!==null)return za;let e=typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null;if(!e)return za=!1,!1;let t=e.config?.globalProperties??{};if(typeof Ra?.$history?.pause==`function`&&typeof Ra?.$history?.resume==`function`)return za={pause:()=>Ra.$history.pause(),resume:()=>Ra.$history.resume()},za;let n=t.$_bricksData??t.bricksData;return typeof n?.history?.pause==`function`&&typeof n?.history?.resume==`function`?(za={pause:()=>n.history.pause(),resume:()=>n.history.resume()},za):(za=!1,!1)}function Ua(e){let t=Ha();if(t)try{t.pause(),e()}finally{t.resume()}else e()}function Wa(e){if(!Ra||!e)return null;for(let t of La){let n=Ra[t];if(!Array.isArray(n))continue;let r=n.find(t=>t&&t.id===e);if(r)return r}return null}function Ga(e){let t=Wa(e);if(!t)return[];let n=[{id:t.id,depth:0,label:t.label,name:t.name,settings:t.settings}];return Ka(t,1,n),n}function Ka(e,t,n){if(!(!e||!Array.isArray(e.children)))for(let r of e.children){let e=Wa(r);e&&(n.push({id:e.id,depth:t,label:e.label,name:e.name,settings:e.settings}),Ka(e,t+1,n))}}function qa(){return Ra?Ra.globalClasses:[]}function Ja(e,t){if(!Ra)throw Error(`rebemer: not ready`);let n=Ra.globalClasses,r=n.find(t=>t&&t.name===e);if(r)return r.id;let i=Ba(new Set(n.map(e=>e?.id).filter(Boolean)));return n.push({id:i,name:e,settings:t||{}}),i}function Ya(e,t){let n=Wa(e);if(!n)return;n.settings||(n.settings={});let r=Array.isArray(t)?t:[];Array.isArray(n.settings._cssGlobalClasses)?n.settings._cssGlobalClasses.splice(0,n.settings._cssGlobalClasses.length,...r):n.settings._cssGlobalClasses=[...r]}function Xa(e,t){let n=Wa(e);n&&(n.label=t)}function Za(e){if(!e||typeof e!=`string`||typeof window>`u`)return``;let t=(typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null)?.config?.globalProperties??{},n=[window.bricks?.elements,t.$_bricksData?.elements,t.bricksData?.elements,Ra?.elements];for(let t of n){if(!t)continue;let n=t instanceof Map?t.get(e):t[e],r=n?.label??n?.nicename??n?.title;if(typeof r==`string`&&r.trim())return r}return``}var Qa=`slashed-rebemer-host`,$a=`slashed-class-hint`,eo=[`#bricks-panel`,`.bricks-class-manager`,`#bricks-class-manager`,`[data-control="cssClasses"]`],to=`rebemer-class-hint-btn`,no=50;function ro(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n[0]===`.`&&(n=n.slice(1)),!n.startsWith(`sf-`)&&!n.startsWith(`is-`))||!Object.prototype.hasOwnProperty.call(t,n))return null;let r=t[n];return!r||typeof r.description!=`string`?null:{name:n,description:r.description,category:r.category}}var io={},ao=null,oo=null,so=null,co=null,lo=null;function uo(){if(ao&&ao.isConnected)return ao;let e=document.getElementById(Qa);e||(e=document.createElement(`div`),e.id=Qa,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=$a,t.className=`rebemer-class-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

                `,e.appendChild(t),ao=t,t}function fo(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function po(e){let t=e.dataset.sfClass,n=t?ro(t,io):null;if(!n)return;let r=uo();r.querySelector(`.rebemer-class-hint__name`).textContent=`.${n.name}`;let i=r.querySelector(`.rebemer-class-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category,r.querySelector(`.rebemer-class-hint__desc`).textContent=n.description,r.hidden=!1,fo(r,e),lo=e}function mo(){ao&&(ao.hidden=!0),lo=null}function ho(e){po(e.currentTarget)}function go(){mo()}function _o(e){e.preventDefault(),e.stopPropagation()}function vo(e){e.key===`Escape`&&mo()}function yo(e){let t=ro(e.textContent,io);if(t)return t;let n=e.querySelectorAll(`span, [contenteditable], .name, .label, a`);for(let e of n){let t=ro(e.textContent,io);if(t)return t}return null}function bo(e){return e.querySelector(`.actions, [class*="action"], [class*="icons"], [class*="controls"]`)||e}function xo(){let e=document.createElement(`span`);return e.className=to,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What does this class do?`),e.addEventListener(`mouseenter`,ho),e.addEventListener(`mouseleave`,go),e.addEventListener(`focus`,ho),e.addEventListener(`blur`,go),e.addEventListener(`click`,_o),e}function So(){for(let e of document.querySelectorAll(`.rebemer-class-hint-btn`)){let t=e.closest(`li`),n=t?yo(t):null;n?e.dataset.sfClass!==n.name&&(e.dataset.sfClass=n.name):(lo===e&&mo(),e.remove())}let e=document.querySelectorAll(eo.join(`,`));for(let t of e)for(let e of t.querySelectorAll(`li`)){if(e.querySelector(`.rebemer-class-hint-btn`)||e.querySelector(`li`))continue;let t=yo(e);if(!t)continue;let n=xo();n.dataset.sfClass=t.name,bo(e).appendChild(n)}}function Co(){co===null&&(co=setTimeout(()=>{co=null,So()},no))}function wo(e){let t=eo.join(`,`);for(let n of e){let e=n.target;if(e&&e.nodeType===1){if(e.classList&&e.classList.contains(to))continue;if(e.closest&&e.closest(t))return!0}for(let e of n.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(to))&&(e.matches&&e.matches(t)||e.closest&&e.closest(t)||e.querySelector&&e.querySelector(t)))return!0}return!1}function To(e,t,n={}){if(Eo(),io=t&&typeof t==`object`?t:{},!e||Object.keys(io).length===0)return;oo=new AbortController;let{signal:r}=oo;document.addEventListener(`keydown`,vo,{passive:!0,signal:r}),window.addEventListener(`scroll`,mo,{capture:!0,passive:!0,signal:r}),so=new MutationObserver(e=>{lo&&!lo.isConnected&&mo(),wo(e)&&Co()}),so.observe(document.body,{childList:!0,subtree:!0}),So(),n.signal&&(n.signal.aborted?Eo():n.signal.addEventListener(`abort`,Eo,{once:!0}))}function Eo(){co!==null&&(clearTimeout(co),co=null),so&&(so.disconnect(),so=null),oo&&(oo.abort(),oo=null);try{document.querySelectorAll(`.rebemer-class-hint-btn`).forEach(e=>e.remove())}catch{}ao&&(ao.remove(),ao=null),lo=null,io={}}var Do=`li.variable-picker-item`,Oo=`slashed-var-swatch`,ko=`slashed-sf-color-btn`,Ao=50,jo=(e,...t)=>console[e](`[slashed-swatches]`,...t);function Mo(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n.slice(0,2)!==`--`&&(n=`--`+n.replace(/^-+/,``)),n.indexOf(`--sf-color-`)!==0))return null;let r=t[n];return typeof r==`string`&&r?r:null}var No=!1,Po={},Fo=null,Io=null,Lo=null,Ro=null,zo=new WeakSet;function Bo(e){if(!Fo)return;let t=e.querySelector(`[data-control="text"].color-input`);if(!t)return;let n=e.querySelector(`:scope > .slashed-sf-color-btn`);if(!n){n=document.createElement(`div`),n.className=ko,n.setAttribute(`aria-label`,`SLASHED Colors`),n.setAttribute(`data-balloon`,`SLASHED Colors`),n.setAttribute(`data-balloon-pos`,`top`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`);let r=document.createElement(`span`);r.className=`slashed-sf-color-btn__dot`,r.setAttribute(`aria-hidden`,`true`),n.appendChild(r),n.addEventListener(`click`,n=>{n.stopPropagation();let r=e.querySelector(`[data-control="text"].color-input`);Fo&&Fo(r??t)}),n.addEventListener(`keydown`,e=>{e.key===` `?(e.preventDefault(),n.click()):e.key===`Enter`&&n.click()});let i=e.querySelector(`:scope > .bricks-control-preview`);if(i)e.insertBefore(n,i.nextSibling);else{let t=e.querySelector(`:scope > .input-wrapper`);t?e.insertBefore(n,t):e.appendChild(n)}}if(Vo(n,t),Ro){let e=t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`);e&&!zo.has(e)&&(zo.add(e),e.addEventListener(`input`,()=>Vo(n,t),{signal:Ro.signal}))}}function Vo(e,t){let n=e.querySelector(`.slashed-sf-color-btn__dot`),r=((t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`))?.value??``).match(/^var\((--[^)]+)\)/)?.[1],i=r?Po[r]??null:null;n&&(i?(n.style.background=i,n.style.removeProperty(`box-shadow`)):n.style.removeProperty(`background`)),i?e.style.setProperty(`--sf-active-color`,i):e.style.removeProperty(`--sf-active-color`),e.classList.toggle(`slashed-sf-color-btn--active`,!!i);let a=e.closest(`[data-control="color"]`);if(a){let e=a.querySelector(`:scope > .bricks-control-preview`);e&&Ho(e,!!i)}}function Ho(e,t){let n=e.querySelector(`.bricks-control-transparency-pattern`),r=e.querySelector(`.slashed-sf-preview-label`);t?(n&&n.style.setProperty(`visibility`,`hidden`),r||(r=document.createElement(`span`),r.className=`slashed-sf-preview-label`,r.setAttribute(`aria-hidden`,`true`),r.textContent=`✕`,e.appendChild(r))):(n&&n.style.removeProperty(`visibility`),r&&r.remove())}function Uo(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function Wo(e){if(e.classList.contains(`title`)||e.classList.contains(`category`)){let t=e.querySelector(`:scope > .slashed-var-swatch`);t&&t.remove();return}let t=Mo(Uo(e),Po),n=e.querySelector(`:scope > .slashed-var-swatch`);if(!t){n&&n.remove();return}n||(n=document.createElement(`span`),n.className=Oo,n.setAttribute(`aria-hidden`,`true`),e.insertBefore(n,e.firstChild)),n.dataset.color!==t&&(n.style.setProperty(`--slashed-swatch-color`,t),n.dataset.color=t)}function Go(){try{let e=document.querySelectorAll(Do);for(let t of e)Wo(t)}catch(e){jo(`warn`,`swatch pass failed`,e)}if(Fo)try{document.querySelectorAll(`[data-control="color"]`).forEach(Bo)}catch(e){jo(`warn`,`SF button inject failed`,e)}}function Ko(){Lo===null&&(Lo=setTimeout(()=>{Lo=null,Go()},Ao))}function qo(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest&&(e.closest(Do)||Fo&&e.closest(`[data-control="color"]`)))return!0;for(let e of t.addedNodes)if(e.nodeType===1&&(e.matches&&e.matches(Do)||e.querySelector&&e.querySelector(Do)||Fo&&(e.matches&&e.matches(`[data-control="color"]`)||e.querySelector&&e.querySelector(`[data-control="color"]`))))return!0}return!1}function Jo(e,t,n={}){Yo(),No=!!e,Po=t&&typeof t==`object`?t:{},Fo=typeof n.onOpenPanel==`function`?n.onOpenPanel:null,!(!(No&&Object.keys(Po).length>0)&&!Fo)&&(Ro=new AbortController,Io=new MutationObserver(e=>{qo(e)&&Ko()}),Io.observe(document.body,{childList:!0,subtree:!0}),Go(),n.signal&&(n.signal.aborted?Yo():n.signal.addEventListener(`abort`,Yo,{once:!0})))}function Yo(){Lo!==null&&(clearTimeout(Lo),Lo=null),Io&&(Io.disconnect(),Io=null),Ro&&(Ro.abort(),Ro=null);try{document.querySelectorAll(`.slashed-var-swatch`).forEach(e=>e.remove()),document.querySelectorAll(`.slashed-sf-color-btn`).forEach(e=>e.remove())}catch{}No=!1,Po={},Fo=null,zo=new WeakSet}var Xo=`li.variable-picker-item`,Zo=`slashed-var-hint-btn`,Qo=`slashed-var-hint`,$o=`slashed-rebemer-host`,es=50;function ts(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n))return null;let r=n.replace(/^-+/,``);if(!r||!Object.prototype.hasOwnProperty.call(t,r))return null;let i=t[r];return i?{name:r,category:i.category||``,description:i.description||``}:null}var ns={},rs=null,is=null,as=null,os=null,ss=null;function cs(){if(rs&&rs.isConnected)return rs;let e=document.getElementById($o);e||(e=document.createElement(`div`),e.id=$o,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=Qo,t.className=`slashed-var-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

                `,e.appendChild(t),rs=t,t}function ls(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function us(e){let t=e.dataset.sfVar,n=t?ts(t,ns):null;if(!n)return;let r=cs();r.querySelector(`.slashed-var-hint__name`).textContent=`--`+n.name;let i=r.querySelector(`.slashed-var-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category;let a=r.querySelector(`.slashed-var-hint__desc`);a&&(a.textContent=n.description||``,a.hidden=!n.description),r.hidden=!1,ls(r,e),ss=e}function ds(){rs&&(rs.hidden=!0),ss=null}function fs(e){us(e.currentTarget)}function ps(){ds()}function ms(e){e.preventDefault(),e.stopPropagation()}function hs(e){e.key===`Escape`&&ds()}function gs(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function _s(){let e=document.createElement(`span`);return e.className=Zo,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What is this variable?`),e.addEventListener(`mouseenter`,fs),e.addEventListener(`mouseleave`,ps),e.addEventListener(`focus`,fs),e.addEventListener(`blur`,ps),e.addEventListener(`click`,ms),e}function vs(){for(let e of document.querySelectorAll(`.slashed-var-hint-btn`)){let t=e.closest(`li`),n=t?ts(gs(t),ns):null;n?e.dataset.sfVar!==n.name&&(e.dataset.sfVar=n.name):(ss===e&&ds(),e.remove())}for(let e of document.querySelectorAll(Xo)){if(e.classList.contains(`title`)||e.classList.contains(`category`)||e.querySelector(`.slashed-var-hint-btn`))continue;let t=ts(gs(e),ns);if(!t)continue;let n=_s();n.dataset.sfVar=t.name,e.appendChild(n)}}function ys(){os===null&&(os=setTimeout(()=>{os=null,vs()},es))}function bs(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest){if(e.classList&&e.classList.contains(Zo))continue;if(e.closest(Xo))return!0}for(let e of t.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(Zo))&&(e.matches&&e.matches(Xo)||e.querySelector&&e.querySelector(Xo)))return!0}return!1}function xs(e,t={}){if(Ss(),ns=e&&typeof e==`object`?e:{},Object.keys(ns).length===0)return;is=new AbortController;let{signal:n}=is;document.addEventListener(`keydown`,hs,{passive:!0,signal:n}),window.addEventListener(`scroll`,ds,{capture:!0,passive:!0,signal:n}),as=new MutationObserver(e=>{ss&&!ss.isConnected&&ds(),bs(e)&&ys()}),as.observe(document.body,{childList:!0,subtree:!0}),vs(),t.signal&&(t.signal.aborted?Ss():t.signal.addEventListener(`abort`,Ss,{once:!0}))}function Ss(){os!==null&&(clearTimeout(os),os=null),as&&(as.disconnect(),as=null),is&&(is.abort(),is=null);try{document.querySelectorAll(`.slashed-var-hint-btn`).forEach(e=>e.remove())}catch{}rs&&(rs.remove(),rs=null),ss=null,ns={}}if(typeof window<`u`){var Cs,ws;((Cs=(ws=window).__svelte??(ws.__svelte={})).v??(Cs.v=new Set)).add(`5`)}var Ts=J(`reBEM`);function Es(e,t){Je(t,!0);function n(e){e.stopPropagation(),e.preventDefault(),t.onActivate?.(t.elementId)}var r=Ts();U(()=>{$(r,`title`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`),$(r,`aria-label`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`)}),q(`click`,r,n),q(`keydown`,r,e=>(e.key===`Enter`||e.key===` `)&&n(e)),Y(e,r),Ye()}wi([`click`,`keydown`]);function Ds(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Os=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,ks=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]);function As(e){return e?ks.has(e)?{ok:!1,reason:`"${e}" is a CSS keyword.`}:Os.test(e)?{ok:!0}:{ok:!1,reason:`Use lowercase letters, digits, and hyphens.`}:{ok:!1,reason:`Name is empty.`}}var js=new Set(`_padding._padding_top._padding_right._padding_bottom._padding_left._margin._margin_top._margin_right._margin_bottom._margin_left._width._widthMin._widthMax._minWidth._maxWidth._height._heightMin._heightMax._minHeight._maxHeight._aspectRatio._overflow._overflowX._overflowY._color._background._backgroundColor._backgroundImage._backgroundSize._backgroundPosition._backgroundRepeat._backgroundAttachment._backgroundBlendMode._typography._fontFamily._fontSize._fontWeight._fontStyle._lineHeight._letterSpacing._wordSpacing._textAlign._textTransform._textDecoration._textDecorationColor._textShadow._textIndent._whiteSpace._listStyleType._listStylePosition._border._borderRadius._borderColor._borderStyle._borderWidth._outline._outlineColor._outlineStyle._outlineWidth._outlineOffset._boxShadow._filter._backdropFilter._opacity._blendMode._transform._transformOrigin._transition._animation._display._flexDirection._flexWrap._flexGrow._flexShrink._flexBasis._alignItems._alignSelf._alignContent._justifyContent._justifyItems._justifySelf._gap._rowGap._columnGap._gridTemplateColumns._gridTemplateRows._gridGap._gridAutoFlow._gridAutoColumns._gridAutoRows._gridColumn._gridRow._gridArea._position._top._right._bottom._left._zIndex._objectFit._objectPosition._cursor._pointerEvents._userSelect`.split(`.`));function Ms(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)&&t.push(n);return t.sort(),t}var Ns=new Set([`_cssGlobalClasses`,`_cssClasses`,`_cssId`,`_attributes`,`_hidden`,`_hidden_lg`,`_hidden_md`,`_hidden_sm`,`_hidden_xl`,`_name`,`_label`,`_id`,`tag`,`children`,`parent`]);function Ps(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)||Ns.has(n)||n.startsWith(`_hidden_`)||t.push(n);return t.sort(),t}var Fs=new Set([`add`,`rename`,`replace`,`migrate`,`mixed`]),Is=new Set([`user`,`label`]);function Ls(e,t){let n=new Map,r=[];for(let i of e){for(;r.length&&r[r.length-1].depth>=i.depth;)r.pop();let e=i.id===t,a=!e&&i.isBlockRoot===!0;if(e||a){let e=Ds(i.name);e&&i.include!==!1&&(r.push({depth:i.depth,blockName:e}),n.set(i.id,e))}else{let e=r.length?r[r.length-1].blockName:``;e&&n.set(i.id,e)}}return n}function Rs({rootId:e,rows:t,mode:n}){if(!Fs.has(n))return{ok:!1,ops:[],error:`Invalid mode: ${n}`};let r=t.find(t=>t.id===e);if(!r)return{ok:!1,ops:[],error:`Root row missing.`};if(!Ds(r.name))return{ok:!1,ops:[],error:`Block name is empty.`};let i=[];for(let n of t)!n.isBlockRoot||!n.include||n.id===e||Ds(n.name)||i.push(n.originalLabel||n.id);if(i.length>0)return{ok:!1,ops:[],error:`Block name is empty for: ${i.join(`, `)}.`};let a=Ls(t,e),o=[];for(let n of t){if(!n.include)continue;let t=n.id===e,r=!t&&n.isBlockRoot===!0,i=a.get(n.id);if(!i)continue;let s;if(t||r)s=i;else{let e=Ds(n.name);if(!e)continue;s=`${i}__${e}`}o.push({row:n,isRoot:t||r,blockName:i,finalClass:s,modifierSlugs:[],suggestedFrom:n.suggestedFrom||`fallback`})}if(o.length===0)return{ok:!1,ops:[],error:`No rows to apply. Include at least one row.`};let s=Vs(o);if(!s.ok)return{ok:!1,ops:[],error:s.error};if(n!==`migrate`)for(let e of o)e.modifierSlugs=(Array.isArray(e.row.modifiers)?e.row.modifiers:[]).map(e=>Ds(e)).filter(Boolean);return{ok:!0,ops:o}}function zs({rootId:e,rows:t,mode:n,syncLabels:r,removeExisting:i=!1}){let a=Rs({rootId:e,rows:t,mode:n});if(!a.ok)return{ok:!1,error:a.error};let o=a.ops,s=qa();if(n===`migrate`){let e=Bs(o,s);if(!e.ok)return e}let c=new Map;for(let e of o){if(c.has(e.row.id))continue;let t=Wa(e.row.id);if(!t)continue;let i={classIds:Ws(t.settings).slice(),label:r?t.label??``:null};if(n===`migrate`&&Array.isArray(e.row.migrateKeys)){let n={};for(let r of e.row.migrateKeys)Object.prototype.hasOwnProperty.call(t.settings||{},r)&&(n[r]=JSON.parse(JSON.stringify(t.settings[r])));i.migrateKeys=n}c.set(e.row.id,i)}let l=0;try{Ua(()=>{for(let e of o){let t=Wa(e.row.id);if(!t)continue;let a=Ws(t.settings),o=e.row.op??`add`,c=n===`mixed`?[`add`,`rename`,`replace`].includes(o)?o:`add`:n,u=i&&(c===`rename`||c===`replace`),d={};if(c===`rename`&&a.length>0){let t=e.row.renameFamilyId||a[0],n=s.find(e=>e&&e.id===t);n&&n.settings&&(d=JSON.parse(JSON.stringify(n.settings)))}else c===`migrate`&&(d=Hs(t.settings,e.row.migrateKeys));if(c===`migrate`){let t=s.find(t=>t&&t.name===e.finalClass);if(t){(!t.settings||typeof t.settings!=`object`)&&(t.settings={});for(let[e,n]of Object.entries(d))Object.prototype.hasOwnProperty.call(t.settings,e)||(t.settings[e]=n)}}let f=Ja(e.finalClass,d),p;switch(c){case`add`:case`migrate`:p=a.includes(f)?a:[...a,f];break;case`rename`:{let t=e.row.renameFamilyId||(a[0]??null),n=[f],r=t?s.find(e=>e&&e.id===t):null;if(r&&!u){let i=r.name+`--`;for(let o of a){if(o===t)continue;let a=s.find(e=>e&&e.id===o);if(a)if(a.name.startsWith(i)){let t=a.name.slice(r.name.length),i=a.settings?JSON.parse(JSON.stringify(a.settings)):{};n.push(Ja(e.finalClass+t,i))}else n.push(o)}}p=n;break}case`replace`:if(e.row.renameFamilyId&&!u){let t=s.find(t=>t&&t.id===e.row.renameFamilyId);if(t){let n=t.name+`--`;p=[f,...a.filter(t=>{if(t===e.row.renameFamilyId)return!1;let r=s.find(e=>e&&e.id===t);return!r||!r.name.startsWith(n)})]}else p=[f]}else p=[f];break}for(let t of e.modifierSlugs){let n=Ja(`${e.finalClass}--${t}`,{});p.includes(n)||p.push(n)}if(Ya(e.row.id,p),c===`migrate`&&Us(t.settings,e.row.migrateKeys),r){let t=Gs(e.finalClass,e.blockName);t&&Xa(e.row.id,t)}l++}})}catch(e){for(let[e,t]of c)try{if(Ya(e,t.classIds),t.migrateKeys){let n=Wa(e);n&&n.settings&&Object.assign(n.settings,t.migrateKeys)}t.label!==null&&Xa(e,t.label)}catch{}let t=e instanceof Error?e.message:String(e);return console.warn(`[reBEMer] apply failed after`,l,`mutation(s), rolled back:`,t),{ok:!1,error:`Operation failed and was rolled back: ${t}`}}return l===0?{ok:!1,error:`No elements were modified. The subtree may have changed.`}:{ok:!0,count:l}}function Bs(e,t){for(let n of e){let e=t.find(e=>e&&e.name===n.finalClass);if(!e)continue;let r=Wa(n.row.id);if(!r)continue;let i=Hs(r.settings,n.row.migrateKeys),a=e.settings&&typeof e.settings==`object`?e.settings:{},o=[];for(let[e,t]of Object.entries(i))Object.prototype.hasOwnProperty.call(a,e)&&JSON.stringify(a[e])!==JSON.stringify(t)&&o.push(e.replace(/^_/,``));if(o.length>0){let e=o.join(`, `);return{ok:!1,error:`Migrate blocked: existing class "${n.finalClass}" has conflicting values for ${e}. Pick a different name or use Add mode.`}}}return{ok:!0}}function Vs(e){let t=new Map;for(let n of e){let e=t.get(n.finalClass)||[];e.push(n),t.set(n.finalClass,e)}for(let[e,n]of t){if(n.length===1)continue;let t=n.filter(e=>Is.has(e.suggestedFrom));if(t.length>1)return{ok:!1,error:`"${e}" is used by ${t.length} rows. Edit one to make it unique.`};let r=1;for(let t of n)Is.has(t.suggestedFrom)||(t.finalClass=`${e}-${r++}`,t.suggestedFrom=`auto-number`)}let n=new Map;for(let t of e){let e=n.get(t.finalClass);if(e)return{ok:!1,error:`"${t.finalClass}" is produced by 2 rows after auto-numbering (one ${e}, one ${t.suggestedFrom}). Pick a different name for one of them.`};n.set(t.finalClass,t.suggestedFrom)}return{ok:!0}}function Hs(e,t){if(!e||!Array.isArray(t))return{};let n={};for(let r of t)js.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function Us(e,t){if(!(!e||!Array.isArray(t)))for(let n of t)js.has(n)&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}function Ws(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}function Gs(e,t){let n=e;return n===t?Ks(t.replace(/-/g,` `)):(n.startsWith(t+`__`)&&(n=n.slice(t.length+2)),n=n.replace(/--.+$/,``),Ks(n.replace(/-/g,` `)))}function Ks(e){return e.replace(/(^|\s)([a-z])/g,(e,t,n)=>t+n.toUpperCase())}var qs=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`});function Js(){if(typeof window>`u`)return{};let e=window.slashedBricksEditor?.rebemerElementMap;return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function Ys(){return{...qs,...Js()}}var Xs=new Set([`section`,`container`,`block`,`div`]);function Zs(e,t=`item`){return!e||typeof e!=`string`||Xs.has(e)?t:Ys()[e]||t}function Qs(e){return typeof e==`string`&&Xs.has(e)}var $s=Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function ec(e){return typeof e==`string`&&e?e:`item`}var tc=J(``),nc=J(`BLOCK`),rc=J(`suggested`),ic=J(` `),ac=J(``),oc=J(`
                `),sc=J(``),cc=J(`
                `),lc=J(`
                `),uc=J(`

                No existing classes — a new class will be added instead.

                `),dc=J(``),fc=J(`
                Rename
                `),pc=J(`

                Will rename

                `),mc=J(`

                Will rename

                `),hc=J(` `,1),gc=J(`
                Replace
                `),_c=J(`

                All existing classes will be removed from this element.

                `),vc=J(`

                No existing classes — a new class will be created.

                `),yc=J(`

                Will remove the selected family and replace with the new class (empty settings). Other classes kept.

                `),bc=J(`A class named already exists. +\r\f\xA0\v`];function na(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ta.includes(r[o-1]))&&(s===r.length||ta.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ra(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ia(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function aa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ia)),i&&c.push(...Object.keys(i).map(ia));var l=0,u=-1;let t=e.length;for(var d=0;d{la(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Cr(()=>{t.disconnect()})}function da(e,t,n=t){var r=new WeakSet,i=!0;vr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),fa);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&fa(o)}n(a),e.__value=a,I!==null&&r.add(I)}),Dr(()=>{var a=t();if(e===document.activeElement){var o=Ge?nn:I;if(r.has(o))return}if(la(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=fa(s),n(a))}e.__value=a,i=!1}),ua(e)}function fa(e){return`__value`in e?e.__value:e.value}var pa=Symbol(`is custom element`),ma=Symbol(`is html`),ha=ve?`link`:`LINK`;function ga(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;$(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;$(e,`checked`,null),e.checked=r}}};e[ge]=n,$e(n),gr()}}function $(e,t,n,r){var i=_a(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ha)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _a(e){var t;return(t=e)[fe]??(t[fe]={[pa]:e.nodeName.includes(`-`),[ma]:e.namespaceURI===`http://www.w3.org/1999/xhtml`})}var va=new Map;function ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function ba(e,t,n=t){var r=new WeakSet;vr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Sa(e)?Ca(a):a,n(a),I!==null&&r.add(I),await pi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||gi(t)==null&&e.value)&&(n(Sa(e)?Ca(e.value):e.value),I!==null&&r.add(I)),kr(()=>{var n=t();if(e===document.activeElement){var i=Ge?nn:I;if(r.has(i))return}Sa(e)&&n===Ca(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function xa(e,t,n=t){vr(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(T&&e.defaultChecked!==e.checked||gi(t)==null)&&n(e.checked),kr(()=>{e.checked=!!t()})}function Sa(e){var t=e.type;return t===`number`||t===`range`}function Ca(e){return e===``?null:+e}var wa,Ta=new WeakMap,Ea=new WeakMap,Da=new WeakMap,Oa=new WeakSet,ka=class{constructor(e){ft(this,Oa),A(this,Ta,new WeakMap),A(this,Ea,void 0),A(this,Da,void 0),M(Da,this,e)}observe(e,t){var n=N(Ta,this).get(e)||new Set;return n.add(t),N(Ta,this).set(e,n),j(Oa,this,Aa).call(this).observe(e,N(Da,this)),()=>{var n=N(Ta,this).get(e);n.delete(t),n.size===0&&(N(Ta,this).delete(e),N(Ea,this).unobserve(e))}}};wa=ka;function Aa(){return N(Ea,this)??M(Ea,this,new ResizeObserver(e=>{for(var t of e){wa.entries.set(t.target,t);for(var n of N(Ta,this).get(t.target)||[])n(t)}}))}_(ka,`entries`,new WeakMap);function ja(e,t){return e===t||e?.[le]===t}function Ma(e={},t,n,r){var i=O.r,a=G;return Dr(()=>{var o,s;return kr(()=>{o=s,s=r?.()||[],gi(()=>{ja(n(...s),e)||(t(e,...s),o&&ja(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ja(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Na(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>s&&i?(u??(u=Wt(r)),K(u)):(l&&(l=!1,c=s?gi(r):r),c);let f;if(o){var p=le in e||ue in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=lt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ee(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Wt:qt)(()=>(v=!1,g()));o&&K(y);var b=G;return(function(e,t){if(arguments.length>0){let n=t?K(y):i&&o?er(e):e;return z(y,n),v=!0,c!==void 0&&(c=n),e}return Gr&&v||b.f&16384?y.v:K(y)})}function Pa(e){O===null&&ye(`onMount`),Ke&&O.l!==null?Fa(O).m.push(e):wr(()=>{let t=gi(e);if(typeof t==`function`)return t})}function Fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}var Ia=`[data-v-app]`,La=[`header`,`content`,`footer`],Ra=null,za=null;function Ba(e){let t=e instanceof Set?e:new Set(e||[]);for(let e=0;e<16;e++){let e=crypto.randomUUID().replace(/-/g,``).slice(0,8);if(!t.has(e))return e}throw Error(`rebemer: id collision exhausted`)}function Va(){if(typeof document>`u`)return!1;let e=document.querySelector(Ia)?.__vue_app__?.config?.globalProperties?.$_state;return!e||typeof e!=`object`||!Array.isArray(e.globalClasses)?(Ra=null,!1):(Ra=e,za=null,!0)}function Ha(){if(za!==null)return za;let e=typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null;if(!e)return za=!1,!1;let t=e.config?.globalProperties??{};if(typeof Ra?.$history?.pause==`function`&&typeof Ra?.$history?.resume==`function`)return za={pause:()=>Ra.$history.pause(),resume:()=>Ra.$history.resume()},za;let n=t.$_bricksData??t.bricksData;return typeof n?.history?.pause==`function`&&typeof n?.history?.resume==`function`?(za={pause:()=>n.history.pause(),resume:()=>n.history.resume()},za):(za=!1,!1)}function Ua(e){let t=Ha();if(t)try{t.pause(),e()}finally{t.resume()}else e()}function Wa(e){if(!Ra||!e)return null;for(let t of La){let n=Ra[t];if(!Array.isArray(n))continue;let r=n.find(t=>t&&t.id===e);if(r)return r}return null}function Ga(e){let t=Wa(e);if(!t)return[];let n=[{id:t.id,depth:0,label:t.label,name:t.name,settings:t.settings}];return Ka(t,1,n),n}function Ka(e,t,n){if(!(!e||!Array.isArray(e.children)))for(let r of e.children){let e=Wa(r);e&&(n.push({id:e.id,depth:t,label:e.label,name:e.name,settings:e.settings}),Ka(e,t+1,n))}}function qa(){return Ra?Ra.globalClasses:[]}function Ja(e,t){if(!Ra)throw Error(`rebemer: not ready`);let n=Ra.globalClasses,r=n.find(t=>t&&t.name===e);if(r)return r.id;let i=Ba(new Set(n.map(e=>e?.id).filter(Boolean)));return n.push({id:i,name:e,settings:t||{}}),i}function Ya(e,t){let n=Wa(e);if(!n)return;n.settings||(n.settings={});let r=Array.isArray(t)?t:[];Array.isArray(n.settings._cssGlobalClasses)?n.settings._cssGlobalClasses.splice(0,n.settings._cssGlobalClasses.length,...r):n.settings._cssGlobalClasses=[...r]}function Xa(e,t){let n=Wa(e);n&&(n.label=t)}function Za(e){if(!e||typeof e!=`string`||typeof window>`u`)return``;let t=(typeof document<`u`?document.querySelector(Ia)?.__vue_app__:null)?.config?.globalProperties??{},n=[window.bricks?.elements,t.$_bricksData?.elements,t.bricksData?.elements,Ra?.elements];for(let t of n){if(!t)continue;let n=t instanceof Map?t.get(e):t[e],r=n?.label??n?.nicename??n?.title;if(typeof r==`string`&&r.trim())return r}return``}var Qa=`slashed-rebemer-host`,$a=`slashed-class-hint`,eo=[`#bricks-panel`,`.bricks-class-manager`,`#bricks-class-manager`,`[data-control="cssClasses"]`],to=`rebemer-class-hint-btn`,no=50;function ro(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n[0]===`.`&&(n=n.slice(1)),!n.startsWith(`sf-`)&&!n.startsWith(`is-`))||!Object.prototype.hasOwnProperty.call(t,n))return null;let r=t[n];return!r||typeof r.description!=`string`?null:{name:n,description:r.description,category:r.category}}var io={},ao=null,oo=null,so=null,co=null,lo=null;function uo(){if(ao&&ao.isConnected)return ao;let e=document.getElementById(Qa);e||(e=document.createElement(`div`),e.id=Qa,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=$a,t.className=`rebemer-class-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

                `,e.appendChild(t),ao=t,t}function fo(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function po(e){let t=e.dataset.sfClass,n=t?ro(t,io):null;if(!n)return;let r=uo();r.querySelector(`.rebemer-class-hint__name`).textContent=`.${n.name}`;let i=r.querySelector(`.rebemer-class-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category,r.querySelector(`.rebemer-class-hint__desc`).textContent=n.description,r.hidden=!1,fo(r,e),lo=e}function mo(){ao&&(ao.hidden=!0),lo=null}function ho(e){po(e.currentTarget)}function go(){mo()}function _o(e){e.preventDefault(),e.stopPropagation()}function vo(e){e.key===`Escape`&&mo()}function yo(e){let t=ro(e.textContent,io);if(t)return t;let n=e.querySelectorAll(`span, [contenteditable], .name, .label, a`);for(let e of n){let t=ro(e.textContent,io);if(t)return t}return null}function bo(e){return e.querySelector(`.actions, [class*="action"], [class*="icons"], [class*="controls"]`)||e}function xo(){let e=document.createElement(`span`);return e.className=to,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What does this class do?`),e.addEventListener(`mouseenter`,ho),e.addEventListener(`mouseleave`,go),e.addEventListener(`focus`,ho),e.addEventListener(`blur`,go),e.addEventListener(`click`,_o),e}function So(){for(let e of document.querySelectorAll(`.rebemer-class-hint-btn`)){let t=e.closest(`li`),n=t?yo(t):null;n?e.dataset.sfClass!==n.name&&(e.dataset.sfClass=n.name):(lo===e&&mo(),e.remove())}let e=document.querySelectorAll(eo.join(`,`));for(let t of e)for(let e of t.querySelectorAll(`li`)){if(e.querySelector(`.rebemer-class-hint-btn`)||e.querySelector(`li`))continue;let t=yo(e);if(!t)continue;let n=xo();n.dataset.sfClass=t.name,bo(e).appendChild(n)}}function Co(){co===null&&(co=setTimeout(()=>{co=null,So()},no))}function wo(e){let t=eo.join(`,`);for(let n of e){let e=n.target;if(e&&e.nodeType===1){if(e.classList&&e.classList.contains(to))continue;if(e.closest&&e.closest(t))return!0}for(let e of n.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(to))&&(e.matches&&e.matches(t)||e.closest&&e.closest(t)||e.querySelector&&e.querySelector(t)))return!0}return!1}function To(e,t,n={}){if(Eo(),io=t&&typeof t==`object`?t:{},!e||Object.keys(io).length===0)return;oo=new AbortController;let{signal:r}=oo;document.addEventListener(`keydown`,vo,{passive:!0,signal:r}),window.addEventListener(`scroll`,mo,{capture:!0,passive:!0,signal:r}),so=new MutationObserver(e=>{lo&&!lo.isConnected&&mo(),wo(e)&&Co()}),so.observe(document.body,{childList:!0,subtree:!0}),So(),n.signal&&(n.signal.aborted?Eo():n.signal.addEventListener(`abort`,Eo,{once:!0}))}function Eo(){co!==null&&(clearTimeout(co),co=null),so&&(so.disconnect(),so=null),oo&&(oo.abort(),oo=null);try{document.querySelectorAll(`.rebemer-class-hint-btn`).forEach(e=>e.remove())}catch{}ao&&(ao.remove(),ao=null),lo=null,io={}}var Do=`li.variable-picker-item`,Oo=`slashed-var-swatch`,ko=`slashed-sf-color-btn`,Ao=50,jo=(e,...t)=>console[e](`[slashed-swatches]`,...t);function Mo(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n)||(n.slice(0,2)!==`--`&&(n=`--`+n.replace(/^-+/,``)),n.indexOf(`--sf-color-`)!==0))return null;let r=t[n];return typeof r==`string`&&r?r:null}var No=!1,Po={},Fo=null,Io=null,Lo=null,Ro=null,zo=new WeakSet;function Bo(e){if(!Fo)return;let t=e.querySelector(`[data-control="text"].color-input`);if(!t)return;let n=e.querySelector(`:scope > .slashed-sf-color-btn`);if(!n){n=document.createElement(`div`),n.className=ko,n.setAttribute(`aria-label`,`SLASHED Colors`),n.setAttribute(`data-balloon`,`SLASHED Colors`),n.setAttribute(`data-balloon-pos`,`top`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`);let r=document.createElement(`span`);r.className=`slashed-sf-color-btn__dot`,r.setAttribute(`aria-hidden`,`true`),n.appendChild(r),n.addEventListener(`click`,n=>{n.stopPropagation();let r=e.querySelector(`[data-control="text"].color-input`);Fo&&Fo(r??t)}),n.addEventListener(`keydown`,e=>{e.key===` `?(e.preventDefault(),n.click()):e.key===`Enter`&&n.click()});let i=e.querySelector(`:scope > .bricks-control-preview`);if(i)e.insertBefore(n,i.nextSibling);else{let t=e.querySelector(`:scope > .input-wrapper`);t?e.insertBefore(n,t):e.appendChild(n)}}if(Vo(n,t),Ro){let e=t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`);e&&!zo.has(e)&&(zo.add(e),e.addEventListener(`input`,()=>Vo(n,t),{signal:Ro.signal}))}}function Vo(e,t){let n=e.querySelector(`.slashed-sf-color-btn__dot`),r=((t.querySelector(`input[type="text"]`)??t.querySelector(`input:not([type="hidden"],[type="submit"],[type="button"],[type="checkbox"],[type="radio"],[type="file"])`))?.value??``).match(/^var\((--[^)]+)\)/)?.[1],i=r?Po[r]??null:null;n&&(i?(n.style.background=i,n.style.removeProperty(`box-shadow`)):n.style.removeProperty(`background`)),i?e.style.setProperty(`--sf-active-color`,i):e.style.removeProperty(`--sf-active-color`),e.classList.toggle(`slashed-sf-color-btn--active`,!!i);let a=e.closest(`[data-control="color"]`);if(a){let e=a.querySelector(`:scope > .bricks-control-preview`);e&&Ho(e,!!i)}}function Ho(e,t){let n=e.querySelector(`.bricks-control-transparency-pattern`),r=e.querySelector(`.slashed-sf-preview-label`);t?(n&&n.style.setProperty(`visibility`,`hidden`),r||(r=document.createElement(`span`),r.className=`slashed-sf-preview-label`,r.setAttribute(`aria-hidden`,`true`),r.textContent=`✕`,e.appendChild(r))):(n&&n.style.removeProperty(`visibility`),r&&r.remove())}function Uo(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function Wo(e){if(e.classList.contains(`title`)||e.classList.contains(`category`)){let t=e.querySelector(`:scope > .slashed-var-swatch`);t&&t.remove();return}let t=Mo(Uo(e),Po),n=e.querySelector(`:scope > .slashed-var-swatch`);if(!t){n&&n.remove();return}n||(n=document.createElement(`span`),n.className=Oo,n.setAttribute(`aria-hidden`,`true`),e.insertBefore(n,e.firstChild)),n.dataset.color!==t&&(n.style.setProperty(`--slashed-swatch-color`,t),n.dataset.color=t)}function Go(){try{let e=document.querySelectorAll(Do);for(let t of e)Wo(t)}catch(e){jo(`warn`,`swatch pass failed`,e)}if(Fo)try{document.querySelectorAll(`[data-control="color"]`).forEach(Bo)}catch(e){jo(`warn`,`SF button inject failed`,e)}}function Ko(){Lo===null&&(Lo=setTimeout(()=>{Lo=null,Go()},Ao))}function qo(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest&&(e.closest(Do)||Fo&&e.closest(`[data-control="color"]`)))return!0;for(let e of t.addedNodes)if(e.nodeType===1&&(e.matches&&e.matches(Do)||e.querySelector&&e.querySelector(Do)||Fo&&(e.matches&&e.matches(`[data-control="color"]`)||e.querySelector&&e.querySelector(`[data-control="color"]`))))return!0}return!1}function Jo(e,t,n={}){Yo(),No=!!e,Po=t&&typeof t==`object`?t:{},Fo=typeof n.onOpenPanel==`function`?n.onOpenPanel:null,!(!(No&&Object.keys(Po).length>0)&&!Fo)&&(Ro=new AbortController,Io=new MutationObserver(e=>{qo(e)&&Ko()}),Io.observe(document.body,{childList:!0,subtree:!0}),Go(),n.signal&&(n.signal.aborted?Yo():n.signal.addEventListener(`abort`,Yo,{once:!0})))}function Yo(){Lo!==null&&(clearTimeout(Lo),Lo=null),Io&&(Io.disconnect(),Io=null),Ro&&(Ro.abort(),Ro=null);try{document.querySelectorAll(`.slashed-var-swatch`).forEach(e=>e.remove()),document.querySelectorAll(`.slashed-sf-color-btn`).forEach(e=>e.remove())}catch{}No=!1,Po={},Fo=null,zo=new WeakSet}var Xo=`li.variable-picker-item`,Zo=`slashed-var-hint-btn`,Qo=`slashed-var-hint`,$o=`slashed-rebemer-host`,es=50;function ts(e,t){if(!e||!t)return null;let n=String(e).trim();if(!n||/\s/.test(n))return null;let r=n.replace(/^-+/,``);if(!r||!Object.prototype.hasOwnProperty.call(t,r))return null;let i=t[r];return i?{name:r,category:i.category||``,description:i.description||``}:null}var ns={},rs=null,is=null,as=null,os=null,ss=null;function cs(){if(rs&&rs.isConnected)return rs;let e=document.getElementById($o);e||(e=document.createElement(`div`),e.id=$o,document.body.appendChild(e));let t=document.createElement(`div`);return t.id=Qo,t.className=`slashed-var-hint`,t.setAttribute(`role`,`tooltip`),t.hidden=!0,t.innerHTML=`

                `,e.appendChild(t),rs=t,t}function ls(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=n.bottom+8;s+i>o&&n.top-8-i>=0&&(s=n.top-8-i);let c=n.left+n.width/2-r/2;c+r>a-4&&(c=Math.max(4,a-4-r)),c<4&&(c=4),e.style.top=`${Math.round(s)}px`,e.style.left=`${Math.round(c)}px`}function us(e){let t=e.dataset.sfVar,n=t?ts(t,ns):null;if(!n)return;let r=cs();r.querySelector(`.slashed-var-hint__name`).textContent=`--`+n.name;let i=r.querySelector(`.slashed-var-hint__cat`);i.textContent=n.category||``,i.hidden=!n.category;let a=r.querySelector(`.slashed-var-hint__desc`);a&&(a.textContent=n.description||``,a.hidden=!n.description),r.hidden=!1,ls(r,e),ss=e}function ds(){rs&&(rs.hidden=!0),ss=null}function fs(e){us(e.currentTarget)}function ps(){ds()}function ms(e){e.preventDefault(),e.stopPropagation()}function hs(e){e.key===`Escape`&&ds()}function gs(e){let t=e.querySelector(`:scope > span[title]`)||e.querySelector(`:scope > span`);if(t){let e=t.getAttribute(`title`);return e&&e.trim()?e.trim():(t.textContent||``).trim()}return(e.textContent||``).trim()}function _s(){let e=document.createElement(`span`);return e.className=Zo,e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`What is this variable?`),e.addEventListener(`mouseenter`,fs),e.addEventListener(`mouseleave`,ps),e.addEventListener(`focus`,fs),e.addEventListener(`blur`,ps),e.addEventListener(`click`,ms),e}function vs(){for(let e of document.querySelectorAll(`.slashed-var-hint-btn`)){let t=e.closest(`li`),n=t?ts(gs(t),ns):null;n?e.dataset.sfVar!==n.name&&(e.dataset.sfVar=n.name):(ss===e&&ds(),e.remove())}for(let e of document.querySelectorAll(Xo)){if(e.classList.contains(`title`)||e.classList.contains(`category`)||e.querySelector(`.slashed-var-hint-btn`))continue;let t=ts(gs(e),ns);if(!t)continue;let n=_s();n.dataset.sfVar=t.name,e.appendChild(n)}}function ys(){os===null&&(os=setTimeout(()=>{os=null,vs()},es))}function bs(e){for(let t of e){let e=t.target;if(e&&e.nodeType===1&&e.closest){if(e.classList&&e.classList.contains(Zo))continue;if(e.closest(Xo))return!0}for(let e of t.addedNodes)if(e.nodeType===1&&!(e.classList&&e.classList.contains(Zo))&&(e.matches&&e.matches(Xo)||e.querySelector&&e.querySelector(Xo)))return!0}return!1}function xs(e,t={}){if(Ss(),ns=e&&typeof e==`object`?e:{},Object.keys(ns).length===0)return;is=new AbortController;let{signal:n}=is;document.addEventListener(`keydown`,hs,{passive:!0,signal:n}),window.addEventListener(`scroll`,ds,{capture:!0,passive:!0,signal:n}),as=new MutationObserver(e=>{ss&&!ss.isConnected&&ds(),bs(e)&&ys()}),as.observe(document.body,{childList:!0,subtree:!0}),vs(),t.signal&&(t.signal.aborted?Ss():t.signal.addEventListener(`abort`,Ss,{once:!0}))}function Ss(){os!==null&&(clearTimeout(os),os=null),as&&(as.disconnect(),as=null),is&&(is.abort(),is=null);try{document.querySelectorAll(`.slashed-var-hint-btn`).forEach(e=>e.remove())}catch{}rs&&(rs.remove(),rs=null),ss=null,ns={}}if(typeof window<`u`){var Cs,ws;((Cs=(ws=window).__svelte??(ws.__svelte={})).v??(Cs.v=new Set)).add(`5`)}var Ts=J(`reBEM`);function Es(e,t){Je(t,!0);function n(e){e.stopPropagation(),e.preventDefault(),t.onActivate?.(t.elementId)}var r=Ts();U(()=>{$(r,`title`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`),$(r,`aria-label`,t.label?`Open reBEMer for ${t.label}`:`Open reBEMer`)}),q(`click`,r,n),q(`keydown`,r,e=>(e.key===`Enter`||e.key===` `)&&n(e)),Y(e,r),Ye()}wi([`click`,`keydown`]);function Ds(e){return e?String(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x00-\x7f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/-+/g,`-`).replace(/^-+|-+$/g,``):``}var Os=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,ks=new Set([`auto`,`inherit`,`initial`,`unset`,`revert`,`revert-layer`,`none`]);function As(e){return e?ks.has(e)?{ok:!1,reason:`"${e}" is a CSS keyword.`}:Os.test(e)?{ok:!0}:{ok:!1,reason:`Use lowercase letters, digits, and hyphens.`}:{ok:!1,reason:`Name is empty.`}}var js=new Set(`_padding._padding_top._padding_right._padding_bottom._padding_left._margin._margin_top._margin_right._margin_bottom._margin_left._width._widthMin._widthMax._minWidth._maxWidth._height._heightMin._heightMax._minHeight._maxHeight._aspectRatio._overflow._overflowX._overflowY._color._background._backgroundColor._backgroundImage._backgroundSize._backgroundPosition._backgroundRepeat._backgroundAttachment._backgroundBlendMode._typography._fontFamily._fontSize._fontWeight._fontStyle._lineHeight._letterSpacing._wordSpacing._textAlign._textTransform._textDecoration._textDecorationColor._textShadow._textIndent._whiteSpace._listStyleType._listStylePosition._border._borderRadius._borderColor._borderStyle._borderWidth._outline._outlineColor._outlineStyle._outlineWidth._outlineOffset._boxShadow._filter._backdropFilter._opacity._blendMode._transform._transformOrigin._transition._animation._display._flexDirection._flexWrap._flexGrow._flexShrink._flexBasis._alignItems._alignSelf._alignContent._justifyContent._justifyItems._justifySelf._gap._rowGap._columnGap._gridTemplateColumns._gridTemplateRows._gridGap._gridAutoFlow._gridAutoColumns._gridAutoRows._gridColumn._gridRow._gridArea._position._top._right._bottom._left._zIndex._objectFit._objectPosition._cursor._pointerEvents._userSelect`.split(`.`));function Ms(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)&&t.push(n);return t.sort(),t}var Ns=new Set([`_cssGlobalClasses`,`_cssClasses`,`_cssId`,`_attributes`,`_hidden`,`_hidden_lg`,`_hidden_md`,`_hidden_sm`,`_hidden_xl`,`_name`,`_label`,`_id`,`tag`,`children`,`parent`]);function Ps(e){if(!e||typeof e!=`object`)return[];let t=[];for(let n of Object.keys(e))js.has(n)||Ns.has(n)||n.startsWith(`_hidden_`)||t.push(n);return t.sort(),t}var Fs=new Set([`add`,`rename`,`replace`,`migrate`,`mixed`]),Is=new Set([`user`,`label`]);function Ls(e,t){let n=new Map,r=[];for(let i of e){for(;r.length&&r[r.length-1].depth>=i.depth;)r.pop();let e=i.id===t,a=!e&&i.isBlockRoot===!0;if(e||a){let e=Ds(i.name);e&&i.include!==!1&&(r.push({depth:i.depth,blockName:e}),n.set(i.id,e))}else{let e=r.length?r[r.length-1].blockName:``;e&&n.set(i.id,e)}}return n}function Rs({rootId:e,rows:t,mode:n}){if(!Fs.has(n))return{ok:!1,ops:[],error:`Invalid mode: ${n}`};let r=t.find(t=>t.id===e);if(!r)return{ok:!1,ops:[],error:`Root row missing.`};if(!Ds(r.name))return{ok:!1,ops:[],error:`Block name is empty.`};let i=[];for(let n of t)!n.isBlockRoot||!n.include||n.id===e||Ds(n.name)||i.push(n.originalLabel||n.id);if(i.length>0)return{ok:!1,ops:[],error:`Block name is empty for: ${i.join(`, `)}.`};let a=Ls(t,e),o=[];for(let n of t){if(!n.include)continue;let t=n.id===e,r=!t&&n.isBlockRoot===!0,i=a.get(n.id);if(!i)continue;let s;if(t||r)s=i;else{let e=Ds(n.name);if(!e)continue;s=`${i}__${e}`}o.push({row:n,isRoot:t||r,blockName:i,finalClass:s,modifierSlugs:[],suggestedFrom:n.suggestedFrom||`fallback`})}if(o.length===0)return{ok:!1,ops:[],error:`No rows to apply. Include at least one row.`};let s=Vs(o);if(!s.ok)return{ok:!1,ops:[],error:s.error};if(n!==`migrate`)for(let e of o)e.modifierSlugs=(Array.isArray(e.row.modifiers)?e.row.modifiers:[]).map(e=>Ds(e)).filter(Boolean);return{ok:!0,ops:o}}function zs({rootId:e,rows:t,mode:n,syncLabels:r,removeExisting:i=!1}){let a=Rs({rootId:e,rows:t,mode:n});if(!a.ok)return{ok:!1,error:a.error};let o=a.ops,s=qa();if(n===`migrate`){let e=Bs(o,s);if(!e.ok)return e}let c=new Map;for(let e of o){if(c.has(e.row.id))continue;let t=Wa(e.row.id);if(!t)continue;let i={classIds:Ws(t.settings).slice(),label:r?t.label??``:null};if(n===`migrate`&&Array.isArray(e.row.migrateKeys)){let n={};for(let r of e.row.migrateKeys)Object.prototype.hasOwnProperty.call(t.settings||{},r)&&(n[r]=JSON.parse(JSON.stringify(t.settings[r])));i.migrateKeys=n}c.set(e.row.id,i)}let l=0;try{Ua(()=>{for(let e of o){let t=Wa(e.row.id);if(!t)continue;let a=Ws(t.settings),o=e.row.op??`add`,c=n===`mixed`?[`add`,`rename`,`replace`].includes(o)?o:`add`:n,u=i&&(c===`rename`||c===`replace`),d={};if(c===`rename`&&a.length>0){let t=e.row.renameFamilyId||a[0],n=s.find(e=>e&&e.id===t);n&&n.settings&&(d=JSON.parse(JSON.stringify(n.settings)))}else c===`migrate`&&(d=Hs(t.settings,e.row.migrateKeys));if(c===`migrate`){let t=s.find(t=>t&&t.name===e.finalClass);if(t){(!t.settings||typeof t.settings!=`object`)&&(t.settings={});for(let[e,n]of Object.entries(d))Object.prototype.hasOwnProperty.call(t.settings,e)||(t.settings[e]=n)}}let f=Ja(e.finalClass,d),p;switch(c){case`add`:case`migrate`:p=a.includes(f)?a:[...a,f];break;case`rename`:{let t=e.row.renameFamilyId||(a[0]??null),n=[f],r=t?s.find(e=>e&&e.id===t):null;if(r&&!u){let i=r.name+`--`;for(let o of a){if(o===t)continue;let a=s.find(e=>e&&e.id===o);if(a)if(a.name.startsWith(i)){let t=a.name.slice(r.name.length),i=a.settings?JSON.parse(JSON.stringify(a.settings)):{};n.push(Ja(e.finalClass+t,i))}else n.push(o)}}p=n;break}case`replace`:if(e.row.renameFamilyId&&!u){let t=s.find(t=>t&&t.id===e.row.renameFamilyId);if(t){let n=t.name+`--`;p=[f,...a.filter(t=>{if(t===e.row.renameFamilyId)return!1;let r=s.find(e=>e&&e.id===t);return!r||!r.name.startsWith(n)})]}else p=[f]}else p=[f];break}for(let t of e.modifierSlugs){let n=Ja(`${e.finalClass}--${t}`,{});p.includes(n)||p.push(n)}if(Ya(e.row.id,p),c===`migrate`&&Us(t.settings,e.row.migrateKeys),r){let t=Gs(e.finalClass,e.blockName);t&&Xa(e.row.id,t)}l++}})}catch(e){for(let[e,t]of c)try{if(Ya(e,t.classIds),t.migrateKeys){let n=Wa(e);n&&n.settings&&Object.assign(n.settings,t.migrateKeys)}t.label!==null&&Xa(e,t.label)}catch{}let t=e instanceof Error?e.message:String(e);return console.warn(`[reBEMer] apply failed after`,l,`mutation(s), rolled back:`,t),{ok:!1,error:`Operation failed and was rolled back: ${t}`}}return l===0?{ok:!1,error:`No elements were modified. The subtree may have changed.`}:{ok:!0,count:l}}function Bs(e,t){for(let n of e){let e=t.find(e=>e&&e.name===n.finalClass);if(!e)continue;let r=Wa(n.row.id);if(!r)continue;let i=Hs(r.settings,n.row.migrateKeys),a=e.settings&&typeof e.settings==`object`?e.settings:{},o=[];for(let[e,t]of Object.entries(i))Object.prototype.hasOwnProperty.call(a,e)&&JSON.stringify(a[e])!==JSON.stringify(t)&&o.push(e.replace(/^_/,``));if(o.length>0){let e=o.join(`, `);return{ok:!1,error:`Migrate blocked: existing class "${n.finalClass}" has conflicting values for ${e}. Pick a different name or use Add mode.`}}}return{ok:!0}}function Vs(e){let t=new Map;for(let n of e){let e=t.get(n.finalClass)||[];e.push(n),t.set(n.finalClass,e)}for(let[e,n]of t){if(n.length===1)continue;let t=n.filter(e=>Is.has(e.suggestedFrom));if(t.length>1)return{ok:!1,error:`"${e}" is used by ${t.length} rows. Edit one to make it unique.`};let r=1;for(let t of n)Is.has(t.suggestedFrom)||(t.finalClass=`${e}-${r++}`,t.suggestedFrom=`auto-number`)}let n=new Map;for(let t of e){let e=n.get(t.finalClass);if(e)return{ok:!1,error:`"${t.finalClass}" is produced by 2 rows after auto-numbering (one ${e}, one ${t.suggestedFrom}). Pick a different name for one of them.`};n.set(t.finalClass,t.suggestedFrom)}return{ok:!0}}function Hs(e,t){if(!e||!Array.isArray(t))return{};let n={};for(let r of t)js.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function Us(e,t){if(!(!e||!Array.isArray(t)))for(let n of t)js.has(n)&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}function Ws(e){let t=e?._cssGlobalClasses;return t?(Array.isArray(t)?t:Object.values(t)).filter(e=>typeof e==`string`&&e.length>0):[]}function Gs(e,t){let n=e;return n===t?Ks(t.replace(/-/g,` `)):(n.startsWith(t+`__`)&&(n=n.slice(t.length+2)),n=n.replace(/--.+$/,``),Ks(n.replace(/-/g,` `)))}function Ks(e){return e.replace(/(^|\s)([a-z])/g,(e,t,n)=>t+n.toUpperCase())}var qs=Object.freeze({heading:`heading`,"text-basic":`text`,text:`text`,"text-link":`link`,code:`code`,"post-title":`title`,"post-content":`content`,"post-excerpt":`excerpt`,"post-meta":`meta`,image:`image`,icon:`icon`,"icon-box":`icon`,video:`video`,audio:`audio`,svg:`svg`,logo:`logo`,shape:`shape`,divider:`divider`,separator:`separator`,button:`button`,"button-group":`buttons`,"nav-nested":`nav`,"nav-menu":`nav`,list:`list`,search:`search`,"social-icons":`social`,accordion:`accordion`,"accordion-nested":`accordion`,tabs:`tabs`,"tabs-nested":`tabs`,slider:`slider`,"slider-nested":`slider`,carousel:`carousel`,countdown:`countdown`,counter:`counter`,"progress-bar":`progress`,alert:`alert`,testimonials:`testimonials`,pricing:`pricing`,team:`team`,map:`map`,"google-maps":`map`,breadcrumbs:`breadcrumbs`,pagination:`pagination`,form:`form`,posts:`posts`,"related-posts":`posts`,template:`item`});function Js(){if(typeof window>`u`)return{};let e=window.slashedBricksEditor?.rebemerElementMap;return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function Ys(){return{...qs,...Js()}}var Xs=new Set([`section`,`container`,`block`,`div`]);function Zs(e,t=`item`){return!e||typeof e!=`string`||Xs.has(e)?t:Ys()[e]||t}function Qs(e){return typeof e==`string`&&Xs.has(e)}var $s=Object.freeze({heading:`title`,"text-basic":`description`,text:`description`,button:`action`,"button-group":`actions`,"text-link":`link`,logo:`logo`,image:`image`,icon:`icon`,"icon-box":`icon`,svg:`icon`,divider:`divider`});function ec(e){if(typeof e!=`string`)return`item`;let t=e.trim();return Xs.has(t)?t:`item`}var tc=J(``),nc=J(`BLOCK`),rc=J(`suggested`),ic=J(` `),ac=J(``),oc=J(`
                `),sc=J(``),cc=J(`
                `),lc=J(`
                `),uc=J(`

                No existing classes — a new class will be added instead.

                `),dc=J(``),fc=J(`
                Rename
                `),pc=J(`

                Will rename

                `),mc=J(`

                Will rename

                `),hc=J(` `,1),gc=J(`
                Replace
                `),_c=J(`

                All existing classes will be removed from this element.

                `),vc=J(`

                No existing classes — a new class will be created.

                `),yc=J(`

                Will remove the selected family and replace with the new class (empty settings). Other classes kept.

                `),bc=J(`A class named already exists. On Apply, missing style keys will be merged into it. Conflicting values block the migration — pick a different name or use Add.`,1),xc=J(`A class named already exists globally. Apply will attach the existing class instead of diff --git a/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js b/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js index c0a595be..62b5da9f 100644 --- a/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js +++ b/SLASHED-for-WP/integrations/bricks/editor-app/src/lib/element-types.js @@ -204,5 +204,7 @@ export const SOLE_CHILD_LABEL_OVERRIDES = Object.freeze({ * @returns {string} */ export function suggestContainerName(containerType) { - return (typeof containerType === 'string' && containerType) ? containerType : 'item'; + if (typeof containerType !== 'string') return 'item'; + const normalized = containerType.trim(); + return LAYOUT_CONTAINER_TYPES.has(normalized) ? normalized : 'item'; } diff --git a/tests/element-types.test.js b/tests/element-types.test.js index 388d9da4..50f749ae 100644 --- a/tests/element-types.test.js +++ b/tests/element-types.test.js @@ -22,9 +22,11 @@ describe('suggestContainerName', () => { test('block → "block"', () => assert.equal(suggestContainerName('block'), 'block')); // Unknown / empty types fall back to the generic 'item'. - test('empty string → "item"', () => assert.equal(suggestContainerName(''), 'item')); - test('undefined → "item"', () => assert.equal(suggestContainerName(undefined), 'item')); - test('null → "item"', () => assert.equal(suggestContainerName(null), 'item')); + test('empty string → "item"', () => assert.equal(suggestContainerName(''), 'item')); + test('undefined → "item"', () => assert.equal(suggestContainerName(undefined), 'item')); + test('null → "item"', () => assert.equal(suggestContainerName(null), 'item')); + test('non-container type → "item"', () => assert.equal(suggestContainerName('heading'), 'item')); + test('input is trimmed', () => assert.equal(suggestContainerName(' section '), 'section')); }); describe('suggestElementName', () => {