diff --git a/config/sync/maillog.settings.yml b/config/sync/maillog.settings.yml new file mode 100644 index 0000000..752fc8f --- /dev/null +++ b/config/sync/maillog.settings.yml @@ -0,0 +1,6 @@ +_core: + default_config_hash: UA1LGT2916TE3VyHCdi_cD-GPCb6ilm9KluygCKnqOI +langcode: fr +send: false +log: true +verbose: true diff --git a/web/sites/default/settings.local.php.bak-trusted b/web/sites/default/settings.local.php.bak-trusted new file mode 100644 index 0000000..e7d3a6f --- /dev/null +++ b/web/sites/default/settings.local.php.bak-trusted @@ -0,0 +1,159 @@ + 'database_name', + * 'username' => 'sql_username', + * 'password' => 'sql_password', + * 'host' => 'localhost', + * 'port' => '3306', + * 'driver' => 'mysql', + * 'prefix' => '', + * 'collation' => 'utf8mb4_general_ci', + * ]; + * @endcode + */ +$databases = []; + +/** + * Customizing database settings. + * + * Many of the values of the $databases array can be customized for your + * particular database system. Refer to the sample in the section above as a + * starting point. + * + * The "driver" property indicates what Drupal database driver the + * connection should use. This is usually the same as the name of the + * database type, such as mysql or sqlite, but not always. The other + * properties will vary depending on the driver. For SQLite, you must + * specify a database file name in a directory that is writable by the + * webserver. For most other drivers, you must specify a + * username, password, host, and database name. + * + * Drupal core implements drivers for mysql, pgsql, and sqlite. Other drivers + * can be provided by contributed or custom modules. To use a contributed or + * custom driver, the "namespace" property must be set to the namespace of the + * driver. The code in this namespace must be autoloadable prior to connecting + * to the database, and therefore, prior to when module root namespaces are + * added to the autoloader. To add the driver's namespace to the autoloader, + * set the "autoload" property to the PSR-4 base directory of the driver's + * namespace. This is optional for projects managed with Composer if the + * driver's namespace is in Composer's autoloader. + * + * For each database, you may optionally specify multiple "target" databases. + * A target database allows Drupal to try to send certain queries to a + * different database if it can but fall back to the default connection if not. + * That is useful for primary/replica replication, as Drupal may try to connect + * to a replica server when appropriate and if one is not available will simply + * fall back to the single primary server (The terms primary/replica are + * traditionally referred to as master/slave in database server documentation). + * + * The general format for the $databases array is as follows: + * @code + * $databases['default']['default'] = $info_array; + * $databases['default']['replica'][] = $info_array; + * $databases['default']['replica'][] = $info_array; + * $databases['extra']['default'] = $info_array; + * @endcode + * + * In the above example, $info_array is an array of settings described above. + * The first line sets a "default" database that has one primary database + * (the second level default). The second and third lines create an array + * of potential replica databases. Drupal will select one at random for a given + * request as needed. The fourth line creates a new database with a name of + * "extra". + * + * For MySQL, MariaDB or equivalent databases the 'isolation_level' option can + * be set. The recommended transaction isolation level for Drupal sites is + * 'READ COMMITTED'. The 'REPEATABLE READ' option is supported but can result + * in deadlocks, the other two options are 'READ UNCOMMITTED' and 'SERIALIZABLE'. + * They are available but not supported; use them at your own risk. For more + * info: + * https://dev.mysql.com/doc/refman/5.7/en/innodb-transaction-isolation-levels.html + * + * On your settings.php, change the isolation level: + * @code + * $databases['default']['default']['init_commands'] = [ + * 'isolation_level' => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED', + * ]; + * @endcode + * + * You can optionally set a prefix for all database table names by using the + * 'prefix' setting. If a prefix is specified, the table name will be prepended + * with its value. Be sure to use valid database characters only, usually + * alphanumeric and underscore. If no prefix is desired, do not set the 'prefix' + * key or set its value to an empty string ''. + * + * For example, to have all database table prefixed with 'main_', set: + * @code + * 'prefix' => 'main_', + * @endcode + * + * Advanced users can add or override initial commands to execute when + * connecting to the database server, as well as PDO connection settings. For + * example, to enable MySQL SELECT queries to exceed the max_join_size system + * variable, and to reduce the database connection timeout to 5 seconds: + * @code + * $databases['default']['default'] = [ + * 'init_commands' => [ + * 'big_selects' => 'SET SQL_BIG_SELECTS=1', + * ], + * 'pdo' => [ + * PDO::ATTR_TIMEOUT => 5, + * ], + * ]; + * @endcode + * + * WARNING: The above defaults are designed for database portability. Changing + * them may cause unexpected behavior, including potential data loss. See + * https://www.drupal.org/docs/8/api/database-api/database-configuration for + * more information on these defaults and the potential issues. + * + * More details can be found in the constructor methods for each driver: + * - \Drupal\mysql\Driver\Database\mysql\Connection::__construct() + * - \Drupal\pgsql\Driver\Database\pgsql\Connection::__construct() + * - \Drupal\sqlite\Driver\Database\sqlite\Connection::__construct() + * + * Sample Database configuration format for PostgreSQL (pgsql): + * @code + * $databases['default']['default'] = [ + * 'driver' => 'pgsql', + * 'database' => 'database_name', + * 'username' => 'sql_username', + * 'password' => 'sql_password', + * 'host' => 'localhost', + * 'prefix' => '', + * ]; + * @endcode + * + * Sample Database configuration format for SQLite (sqlite): + * @code + * $databases['default']['default'] = [ + * 'driver' => 'sqlite', + * 'database' => '/path/to/database_filename', + * ]; + * @endcode + * + * Sample Database configuration format for a driver in a contributed module: + * @code + * $databases['default']['default'] = [ + * 'driver' => 'my_driver', + * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', + * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', + * 'database' => 'database_name', + * 'username' => 'sql_username', + * 'password' => 'sql_password', + * 'host' => 'localhost', + * 'prefix' => '', + * ]; + * @endcode + * + * Sample Database configuration format for a driver that is extending another + * database driver. + * @code + * $databases['default']['default'] = [ + * 'driver' => 'my_driver', + * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', + * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', + * 'database' => 'database_name', + * 'username' => 'sql_username', + * 'password' => 'sql_password', + * 'host' => 'localhost', + * 'prefix' => '', + * 'dependencies' => [ + * 'parent_module' => [ + * 'namespace' => 'Drupal\parent_module', + * 'autoload' => 'core/modules/parent_module/src/', + * ], + * ], + * ]; + * @endcode + */ + +/** + * Location of the site configuration files. + * + * The $settings['config_sync_directory'] specifies the location of file system + * directory used for syncing configuration data. On install, the directory is + * created. This is used for configuration imports. + * + * The default location for this directory is inside a randomly-named + * directory in the public files path. The setting below allows you to set + * its location. + */ +# $settings['config_sync_directory'] = '/directory/outside/webroot'; + +/** + * Settings: + * + * $settings contains environment-specific configuration, such as the files + * directory and reverse proxy address, and temporary configuration, such as + * security overrides. + * + * @see \Drupal\Core\Site\Settings::get() + */ + +/** + * Salt for one-time login links, cancel links, form tokens, etc. + * + * This variable will be set to a random value by the installer. All one-time + * login links will be invalidated if the value is changed. Note that if your + * site is deployed on a cluster of web servers, you must ensure that this + * variable has the same value on each server. + * + * For enhanced security, you may set this variable to the contents of a file + * outside your document root, and vary the value across environments (like + * production and development); you should also ensure that this file is not + * stored with backups of your database. + * + * Example: + * @code + * $settings['hash_salt'] = file_get_contents('/home/example/salt.txt'); + * @endcode + */ +$settings['hash_salt'] = file_get_contents($app_root . '/' . $site_path . '/salt.txt'); + +/** + * Deployment identifier. + * + * Drupal's dependency injection container will be automatically invalidated and + * rebuilt when the Drupal core version changes. When updating contributed or + * custom code that changes the container, changing this identifier will also + * allow the container to be invalidated as soon as code is deployed. + */ +# $settings['deployment_identifier'] = \Drupal::VERSION; + +/** + * Access control for update.php script. + * + * If you are updating your Drupal installation using the update.php script but + * are not logged in using either an account with the "Administer software + * updates" permission or the site maintenance account (the account that was + * created during installation), you will need to modify the access check + * statement below. Change the FALSE to a TRUE to disable the access check. + * After finishing the upgrade, be sure to open this file again and change the + * TRUE back to a FALSE! + */ +$settings['update_free_access'] = FALSE; + +/** + * Fallback to HTTP for Update Manager and for fetching security advisories. + * + * If your site fails to connect to updates.drupal.org over HTTPS (either when + * fetching data on available updates, or when fetching the feed of critical + * security announcements), you may uncomment this setting and set it to TRUE to + * allow an insecure fallback to HTTP. Note that doing so will open your site up + * to a potential man-in-the-middle attack. You should instead attempt to + * resolve the issues before enabling this option. + * @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl + * @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack + * @see \Drupal\update\UpdateFetcher + * @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher + */ +# $settings['update_fetch_with_http_fallback'] = TRUE; + +/** + * External access proxy settings: + * + * If your site must access the Internet via a web proxy then you can enter the + * proxy settings here. Set the full URL of the proxy, including the port, in + * variables: + * - $settings['http_client_config']['proxy']['http']: The proxy URL for HTTP + * requests. + * - $settings['http_client_config']['proxy']['https']: The proxy URL for HTTPS + * requests. + * You can pass in the user name and password for basic authentication in the + * URLs in these settings. + * + * You can also define an array of host names that can be accessed directly, + * bypassing the proxy, in $settings['http_client_config']['proxy']['no']. + */ +# $settings['http_client_config']['proxy']['http'] = 'http://proxy_user:proxy_pass@example.com:8080'; +# $settings['http_client_config']['proxy']['https'] = 'http://proxy_user:proxy_pass@example.com:8080'; +# $settings['http_client_config']['proxy']['no'] = ['127.0.0.1', 'localhost']; + +/** + * Reverse Proxy Configuration: + * + * Reverse proxy servers are often used to enhance the performance + * of heavily visited sites and may also provide other site caching, + * security, or encryption benefits. In an environment where Drupal + * is behind a reverse proxy, the real IP address of the client should + * be determined such that the correct client IP address is available + * to Drupal's logging and access management systems. In the most simple + * scenario, the proxy server will add an X-Forwarded-For header to the request + * that contains the client IP address. However, HTTP headers are vulnerable to + * spoofing, where a malicious client could bypass restrictions by setting the + * X-Forwarded-For header directly. Therefore, Drupal's proxy configuration + * requires the IP addresses of all remote proxies to be specified in + * $settings['reverse_proxy_addresses'] to work correctly. + * + * Enable this setting to get Drupal to determine the client IP from the + * X-Forwarded-For header. If you are unsure about this setting, do not have a + * reverse proxy, or Drupal operates in a shared hosting environment, this + * setting should remain commented out. + * + * In order for this setting to be used you must specify every possible + * reverse proxy IP address in $settings['reverse_proxy_addresses']. + * If a complete list of reverse proxies is not available in your + * environment (for example, if you use a CDN) you may set the + * $_SERVER['REMOTE_ADDR'] variable directly in settings.php. + * Be aware, however, that it is likely that this would allow IP + * address spoofing unless more advanced precautions are taken. + */ +# $settings['reverse_proxy'] = TRUE; + +/** + * Reverse proxy addresses. + * + * Specify every reverse proxy IP address in your environment, as an array of + * IPv4/IPv6 addresses or subnets in CIDR notation. This setting is required if + * $settings['reverse_proxy'] is TRUE. + */ +# $settings['reverse_proxy_addresses'] = ['a.b.c.d', 'e.f.g.h/24', ...]; + +/** + * Reverse proxy trusted headers. + * + * Sets which headers to trust from your reverse proxy. + * + * Common values are: + * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR + * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST + * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT + * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO + * - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED + * + * Note the default value of + * @code + * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED + * @endcode + * is not secure by default. The value should be set to only the specific + * headers the reverse proxy uses. For example: + * @code + * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO + * @endcode + * This would trust the following headers: + * - X_FORWARDED_FOR + * - X_FORWARDED_HOST + * - X_FORWARDED_PROTO + * - X_FORWARDED_PORT + * + * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR + * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST + * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT + * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO + * @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED + * @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies + */ +# $settings['reverse_proxy_trusted_headers'] = \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED; + + +/** + * Page caching: + * + * By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page + * views. This tells a HTTP proxy that it may return a page from its local + * cache without contacting the web server, if the user sends the same Cookie + * header as the user who originally requested the cached page. Without "Vary: + * Cookie", authenticated users would also be served the anonymous page from + * the cache. If the site has mostly anonymous users except a few known + * editors/administrators, the Vary header can be omitted. This allows for + * better caching in HTTP proxies (including reverse proxies), i.e. even if + * clients send different cookies, they still get content served from the cache. + * However, authenticated users should access the site directly (i.e. not use an + * HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid + * getting cached pages from the proxy. + */ +# $settings['omit_vary_cookie'] = TRUE; + + +/** + * Cache TTL for client error (4xx) responses. + * + * Items cached per-URL tend to result in a large number of cache items, and + * this can be problematic on 404 pages which by their nature are unbounded. A + * fixed TTL can be set for these items, defaulting to one hour, so that cache + * backends which do not support LRU can purge older entries. To disable caching + * of client error responses set the value to 0. Currently applies only to + * page_cache module. + */ +# $settings['cache_ttl_4xx'] = 3600; + +/** + * Expiration of cached forms. + * + * Drupal's Form API stores details of forms in a cache and these entries are + * kept for at least 6 hours by default. Expired entries are cleared by cron. + * + * @see \Drupal\Core\Form\FormCache::setCache() + */ +# $settings['form_cache_expiration'] = 21600; + +/** + * Class Loader. + * + * If the APCu extension is detected, the classloader will be optimized to use + * it. Set to FALSE to disable this. + * + * @see https://getcomposer.org/doc/articles/autoloader-optimization.md + */ +# $settings['class_loader_auto_detect'] = FALSE; + +/** + * Authorized file system operations: + * + * The Update Manager module included with Drupal provides a mechanism for + * site administrators to securely install missing updates for the site + * directly through the web user interface. On securely-configured servers, + * the Update manager will require the administrator to provide SSH or FTP + * credentials before allowing the installation to proceed; this allows the + * site to update the new files as the user who owns all the Drupal files, + * instead of as the user the webserver is running as. On servers where the + * webserver user is itself the owner of the Drupal files, the administrator + * will not be prompted for SSH or FTP credentials (note that these server + * setups are common on shared hosting, but are inherently insecure). + * + * Some sites might wish to disable the above functionality, and only update + * the code directly via SSH or FTP themselves. This setting completely + * disables all functionality related to these authorized file operations. + * + * @see https://www.drupal.org/node/244924 + * + * Remove the leading hash signs to disable. + */ +# $settings['allow_authorize_operations'] = FALSE; + +/** + * Default mode for directories and files written by Drupal. + * + * Value should be in PHP Octal Notation, with leading zero. + */ +# $settings['file_chmod_directory'] = 0775; +# $settings['file_chmod_file'] = 0664; + +/** + * Optimized assets path: + * + * A local file system path where optimized assets will be stored. This directory + * must exist and be writable by Drupal. This directory must be relative to + * the Drupal installation directory and be accessible over the web. + */ +# $settings['file_assets_path'] = 'sites/default/files'; + +/** + * Public file base URL: + * + * An alternative base URL to be used for serving public files. This must + * include any leading directory path. + * + * A different value from the domain used by Drupal to be used for accessing + * public files. This can be used for a simple CDN integration, or to improve + * security by serving user-uploaded files from a different domain or subdomain + * pointing to the same server. Do not include a trailing slash. + */ +# $settings['file_public_base_url'] = 'http://downloads.example.com/files'; + +/** + * Public file path: + * + * A local file system path where public files will be stored. This directory + * must exist and be writable by Drupal. This directory must be relative to + * the Drupal installation directory and be accessible over the web. + */ +# $settings['file_public_path'] = 'sites/default/files'; + +/** + * Additional public file schemes: + * + * Public schemes are URI schemes that allow download access to all users for + * all files within that scheme. + * + * The "public" scheme is always public, and the "private" scheme is always + * private, but other schemes, such as "https", "s3", "example", or others, + * can be either public or private depending on the site. By default, they're + * private, and access to individual files is controlled via + * hook_file_download(). + * + * Typically, if a scheme should be public, a module makes it public by + * implementing hook_file_download(), and granting access to all users for all + * files. This could be either the same module that provides the stream wrapper + * for the scheme, or a different module that decides to make the scheme + * public. However, in cases where a site needs to make a scheme public, but + * is unable to add code in a module to do so, the scheme may be added to this + * variable, the result of which is that system_file_download() grants public + * access to all files within that scheme. + */ +# $settings['file_additional_public_schemes'] = ['example']; + +/** + * File schemes whose paths should not be normalized: + * + * Normally, Drupal normalizes '/./' and '/../' segments in file URIs in order + * to prevent unintended file access. For example, 'private://css/../image.png' + * is normalized to 'private://image.png' before checking access to the file. + * + * On Windows, Drupal also replaces '\' with '/' in URIs for the local + * filesystem. + * + * If file URIs with one or more scheme should not be normalized like this, then + * list the schemes here. For example, if 'porcelain://china/./plate.png' should + * not be normalized to 'porcelain://china/plate.png', then add 'porcelain' to + * this array. In this case, make sure that the module providing the 'porcelain' + * scheme does not allow unintended file access when using '/../' to move up the + * directory tree. + */ +# $settings['file_sa_core_2023_005_schemes'] = ['porcelain']; + +/** + * Configuration for phpinfo() admin status report. + * + * Drupal's admin UI includes a report at admin/reports/status/php which shows + * the output of phpinfo(). The full output can contain sensitive information + * so by default Drupal removes some sections. + * + * This behavior can be configured by setting this variable to a different + * value corresponding to the flags parameter of phpinfo(). + * + * If you need to expose more information in the report - for example to debug a + * problem - consider doing so temporarily. + * + * @see https://www.php.net/manual/function.phpinfo.php + */ +# $settings['sa_core_2023_004_phpinfo_flags'] = ~ (INFO_VARIABLES | INFO_ENVIRONMENT); + +/** + * Private file path: + * + * A local file system path where private files will be stored. This directory + * must be absolute, outside of the Drupal installation directory and not + * accessible over the web. + * + * Note: Caches need to be cleared when this value is changed to make the + * private:// stream wrapper available to the system. + * + * See https://www.drupal.org/documentation/modules/file for more information + * about securing private files. + */ +# $settings['file_private_path'] = ''; + +/** + * Temporary file path: + * + * A local file system path where temporary files will be stored. This directory + * must be absolute, outside of the Drupal installation directory and not + * accessible over the web. + * + * If this is not set, the default for the operating system will be used. + * + * @see \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory() + */ +# $settings['file_temp_path'] = '/tmp'; + +/** + * Session write interval: + * + * Set the minimum interval between each session write to database. + * For performance reasons it defaults to 180. + */ +# $settings['session_write_interval'] = 180; + +/** + * String overrides: + * + * To override specific strings on your site with or without enabling the Locale + * module, add an entry to this list. This functionality allows you to change + * a small number of your site's default English language interface strings. + * + * Remove the leading hash signs to enable. + * + * The "en" part of the variable name, is dynamic and can be any langcode of + * any added language. (eg locale_custom_strings_de for german). + */ +# $settings['locale_custom_strings_en'][''] = [ +# 'Home' => 'Front page', +# '@count min' => '@count minutes', +# ]; + +/** + * A custom theme for the offline page: + * + * This applies when the site is explicitly set to maintenance mode through the + * administration page or when the database is inactive due to an error. + * The template file should also be copied into the theme. It is located inside + * 'core/modules/system/templates/maintenance-page.html.twig'. + * + * Note: This setting does not apply to installation and update pages. + */ +# $settings['maintenance_theme'] = 'claro'; + +/** + * PHP settings: + * + * To see what PHP settings are possible, including whether they can be set at + * runtime (by using ini_set()), read the PHP documentation: + * http://php.net/manual/ini.list.php + * See \Drupal\Core\DrupalKernel::bootEnvironment() for required runtime + * settings and the .htaccess file for non-runtime settings. + * Settings defined there should not be duplicated here so as to avoid conflict + * issues. + */ + +/** + * If you encounter a situation where users post a large amount of text, and + * the result is stripped out upon viewing but can still be edited, Drupal's + * output filter may not have sufficient memory to process it. If you + * experience this issue, you may wish to uncomment the following two lines + * and increase the limits of these variables. For more information, see + * http://php.net/manual/pcre.configuration.php. + */ +# ini_set('pcre.backtrack_limit', 200000); +# ini_set('pcre.recursion_limit', 200000); + +/** + * Configuration overrides. + * + * To globally override specific configuration values for this site, + * set them here. You usually don't need to use this feature. This is + * useful in a configuration file for a vhost or directory, rather than + * the default settings.php. + * + * Note that any values you provide in these variable overrides will not be + * viewable from the Drupal administration interface. The administration + * interface displays the values stored in configuration so that you can stage + * changes to other environments that don't have the overrides. + * + * There are particular configuration values that are risky to override. For + * example, overriding the list of installed modules in 'core.extension' is not + * supported as module install or uninstall has not occurred. Other examples + * include field storage configuration, because it has effects on database + * structure, and 'core.menu.static_menu_link_overrides' since this is cached in + * a way that is not config override aware. Also, note that changing + * configuration values in settings.php will not fire any of the configuration + * change events. + */ +# $config['system.site']['name'] = 'My Drupal site'; +# $config['user.settings']['anonymous'] = 'Visitor'; + +/** + * Load services definition file. + */ +$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml'; + +/** + * Override the default service container class. + * + * This is useful for example to trace the service container for performance + * tracking purposes, for testing a service container with an error condition or + * to test a service container that throws an exception. + */ +# $settings['container_base_class'] = '\Drupal\Core\DependencyInjection\Container'; + +/** + * Override the default yaml parser class. + * + * Provide a fully qualified class name here if you would like to provide an + * alternate implementation YAML parser. The class must implement the + * \Drupal\Component\Serialization\SerializationInterface interface. + * + * This setting is deprecated in Drupal 10.3 and removed in Drupal 11. + */ +# $settings['yaml_parser_class'] = NULL; + +/** + * Trusted host configuration. + * + * Drupal core can use the Symfony trusted host mechanism to prevent HTTP Host + * header spoofing. + * + * To enable the trusted host mechanism, you enable your allowable hosts + * in $settings['trusted_host_patterns']. This should be an array of regular + * expression patterns, without delimiters, representing the hosts you would + * like to allow. + * + * For example: + * @code + * $settings['trusted_host_patterns'] = [ + * '^www\.example\.com$', + * ]; + * @endcode + * will allow the site to only run from www.example.com. + * + * If you are running multisite, or if you are running your site from + * different domain names (eg, you don't redirect http://www.example.com to + * http://example.com), you should specify all of the host patterns that are + * allowed by your site. + * + * For example: + * @code + * $settings['trusted_host_patterns'] = [ + * '^example\.com$', + * '^.+\.example\.com$', + * '^example\.org$', + * '^.+\.example\.org$', + * ]; + * @endcode + * will allow the site to run off of all variants of example.com and + * example.org, with all subdomains included. + * + * @see https://www.drupal.org/docs/installing-drupal/trusted-host-settings + */ +$settings['trusted_host_patterns'] = [ + '^.+\.localhost$', # traefik-local-hosts + 'dev.leshed.fr']; + +/** + * The default list of directories that will be ignored by Drupal's file API. + * + * By default ignore node_modules and bower_components folders to avoid issues + * with common frontend tools and recursive scanning of directories looking for + * extensions. + * + * @see \Drupal\Core\File\FileSystemInterface::scanDirectory() + * @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory() + */ +$settings['file_scan_ignore_directories'] = [ + 'node_modules', + 'bower_components', +]; + +/** + * The default number of entities to update in a batch process. + * + * This is used by update and post-update functions that need to go through and + * change all the entities on a site, so it is useful to increase this number + * if your hosting configuration (i.e. RAM allocation, CPU speed) allows for a + * larger number of entities to be processed in a single batch run. + */ +$settings['entity_update_batch_size'] = 50; + +/** + * Entity update backup. + * + * This is used to inform the entity storage handler that the backup tables as + * well as the original entity type and field storage definitions should be + * retained after a successful entity update process. + */ +$settings['entity_update_backup'] = TRUE; + +/** + * State caching. + * + * State caching uses the cache collector pattern to cache all requested keys + * from the state API in a single cache entry, which can greatly reduce the + * amount of database queries. However, some sites may use state with a + * lot of dynamic keys which could result in a very large cache. + */ +$settings['state_cache'] = TRUE; + +/** + * Node migration type. + * + * This is used to force the migration system to use the classic node migrations + * instead of the default complete node migrations. The migration system will + * use the classic node migration only if there are existing migrate_map tables + * for the classic node migrations and they contain data. These tables may not + * exist if you are developing custom migrations and do not want to use the + * complete node migrations. Set this to TRUE to force the use of the classic + * node migrations. + */ +$settings['migrate_node_migrate_type_classic'] = FALSE; + +/** + * The default settings for migration sources. + * + * These settings are used as the default settings on the Credential form at + * /upgrade/credentials. + * + * - migrate_source_version - The version of the source database. This can be + * '6' or '7'. Defaults to '7'. + * - migrate_source_connection - The key in the $databases array for the source + * site. + * - migrate_file_public_path - The location of the source Drupal 6 or Drupal 7 + * public files. This can be a local file directory containing the source + * Drupal 6 or Drupal 7 site (e.g /var/www/docroot), or the site address + * (e.g http://example.com). + * - migrate_file_private_path - The location of the source Drupal 7 private + * files. This can be a local file directory containing the source Drupal 7 + * site (e.g /var/www/docroot), or empty to use the same value as Public + * files directory. + * + * Sample configuration for a drupal 6 source site with the source files in a + * local directory. + * + * @code + * $settings['migrate_source_version'] = '6'; + * $settings['migrate_source_connection'] = 'migrate'; + * $settings['migrate_file_public_path'] = '/var/www/drupal6'; + * @endcode + * + * Sample configuration for a drupal 7 source site with public source files on + * the source site and the private files in a local directory. + * + * @code + * $settings['migrate_source_version'] = '7'; + * $settings['migrate_source_connection'] = 'migrate'; + * $settings['migrate_file_public_path'] = 'https://drupal7.com'; + * $settings['migrate_file_private_path'] = '/var/www/drupal7'; + * @endcode + */ +# $settings['migrate_source_connection'] = ''; +# $settings['migrate_source_version'] = ''; +# $settings['migrate_file_public_path'] = ''; +# $settings['migrate_file_private_path'] = ''; + +/** + * Load local development override configuration, if available. + * + * Create a settings.local.php file to override variables on secondary (staging, + * development, etc.) installations of this site. + * + * Typical uses of settings.local.php include: + * - Disabling caching. + * - Disabling JavaScript/CSS compression. + * - Rerouting outgoing emails. + * + * Keep this code block at the end of this file to take full effect. + */ +# +# if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { +# include $app_root . '/' . $site_path . '/settings.local.php'; +# } +$databases['default']['default'] = array ( + 'database' => 'leshed', + 'username' => 'root', + 'password' => 'leshed', + 'prefix' => '', + 'host' => 'mysql', + 'port' => '3306', + 'isolation_level' => 'READ COMMITTED', + 'driver' => 'mysql', + 'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql', + 'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/', +); +// $settings['config_sync_directory'] = 'sites/default/files/config_cBgjtEgUxz0rrHcHaVWwSUrKtcqtXoSeOIDM1dJuExSskCSlTizt34I8NPseFx7bk7eEcKEWYA/sync'; + +$settings['config_sync_directory'] = '../config/sync'; + + +$settings['redis.connection']['interface'] = 'PhpRedis'; +$settings['redis.connection']['host'] = 'redis'; +#$conf['redis_cache_socket'] = '/var/run/redis/redis.sock'; +$settings['cache']['default'] = 'cache.backend.redis'; +$settings['redis.connection']['base'] = '1'; +$settings['cache_prefix'] = 'd10'; + + +/** + * Load local development override configuration, if available. + * + * Create a settings.local.php file to override variables on secondary (staging, + * development, etc.) installations of this site. + * + * Typical uses of settings.local.php include: + * - Disabling caching. + * - Disabling JavaScript/CSS compression. + * - Rerouting outgoing emails. + * + * Keep this code block at the end of this file to take full effect. + */ +# +if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { + include $app_root . '/' . $site_path . '/settings.local.php'; +} + diff --git a/web/themes/custom/leshed/assets/dist/main.js b/web/themes/custom/leshed/assets/dist/main.js index 61b0a4e..f888b1f 100644 --- a/web/themes/custom/leshed/assets/dist/main.js +++ b/web/themes/custom/leshed/assets/dist/main.js @@ -1,4 +1,4 @@ -var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! +var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);(function(){try{var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="bbcb9b46-522a-40c8-ad0c-a976530c2700",o._sentryDebugIdIdentifier="sentry-dbid-bbcb9b46-522a-40c8-ad0c-a976530c2700")}catch{}})();function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! * GSAP 3.15.0 * https://gsap.com * diff --git a/web/themes/custom/leshed/assets/dist/sentry.js b/web/themes/custom/leshed/assets/dist/sentry.js new file mode 100644 index 0000000..b6da18b --- /dev/null +++ b/web/themes/custom/leshed/assets/dist/sentry.js @@ -0,0 +1,15 @@ +(function(){try{var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="95dc776a-e9cd-4f71-80df-824f468190eb",t._sentryDebugIdIdentifier="sentry-dbid-95dc776a-e9cd-4f71-80df-824f468190eb")}catch{}})();const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,Ot="11.20.0";function st(){return pt(_),_}function pt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"11.20.0",e[Ot]=e["11.20.0"]||{}}function Dt(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Ot]=r["11.20.0"]||{};return s[t]||(s[t]=e())}const Ln=["debug","info","warn","error","log","assert","trace"],Fr="Sentry Logger ",Rt={};function B(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(Rt);r.forEach(s=>{const o=Rt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function jr(){Ee().enabled=!0}function Ur(){Ee().enabled=!1}function Pn(){return Ee().enabled}function Br(...t){Se("log",...t)}function Hr(...t){Se("warn",...t)}function Wr(...t){Se("error",...t)}function Se(t,...e){h&&Pn()&&B(()=>{_.console[t](`${Fr}[${t}]:`,...e)})}function Ee(){return h?Dt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:jr,disable:Ur,isEnabled:Pn,log:Br,warn:Hr,error:Wr},$n=50,Q="?",Pe=/\(error: (.*)\)/,$e=/captureMessage|captureException/;function Mn(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` +`);for(let a=r;a1024&&(c=c.slice(0,1024));const u=Pe.test(c)?c.replace(Pe,"$1"):c;if(!u.includes("Error: ")){for(const f of e){const l=f(u);if(l){o.push(l);break}}if(o.length>=$n+s)break}}return qr(o.slice(s))}}function Gr(t){return Array.isArray(t)?Mn(...t):t}function qr(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(bt(e).function||"")&&e.pop(),e.reverse(),$e.test(bt(e).function||"")&&(e.pop(),$e.test(bt(e).function||"")&&e.pop()),e.slice(0,$n).map(n=>({...n,filename:n.filename||bt(e).filename,function:n.function||"?"}))}function bt(t){return t[t.length-1]||{}}const jt="";function j(t){try{return!t||typeof t!="function"?jt:t.name||jt}catch{return jt}}function Me(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ct={},Fe={};function q(t,e){return ct[t]=ct[t]||[],ct[t].push(e),()=>{const n=ct[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}}function z(t,e){if(!Fe[t]){Fe[t]=!0;try{e()}catch(n){h&&p.error(`Error while instrumenting ${t}`,n)}}}function N(t,e){const n=t&&ct[t];if(n)for(const r of n)try{r(e)}catch(s){h&&p.error(`Error while triggering instrumentation handler. +Type: ${t} +Name: ${j(r)} +Error:`,s)}}let Ut=null;function zr(t){const e="error";q(e,t),z(e,Yr)}function Yr(){Ut=_.onerror,_.onerror=function(t,e,n,r,s){return N("error",{column:r,error:s,line:n,msg:t,url:e}),Ut?Ut.apply(this,arguments):!1},_.onerror.__SENTRY_INSTRUMENTED__=!0}let Bt=null;function Kr(t){const e="unhandledrejection";q(e,t),z(e,Vr)}function Vr(){Bt=_.onunhandledrejection,_.onunhandledrejection=function(t){return N("unhandledrejection",t),Bt?Bt.apply(this,arguments):!0},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Fn=Object.prototype.toString;function D(t){switch(Fn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ve(t,Error)}}function ot(t,e){return Fn.call(t)===`[object ${e}]`}function jn(t){return ot(t,"ErrorEvent")}function je(t){return ot(t,"DOMError")}function Xr(t){return ot(t,"DOMException")}function $(t){return ot(t,"String")}function be(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function it(t){return t===null||be(t)||typeof t!="object"&&typeof t!="function"}function ht(t){return ot(t,"Object")}function At(t){return typeof t=="object"&&t!==null}function xt(t){return typeof Event<"u"&&ve(t,Event)}function Jr(t){return ot(t,"RegExp")}function mt(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function ve(t,e){try{return t instanceof e}catch{return!1}}function Un(t){return typeof Request<"u"&&ve(t,Request)}function k(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Bn(s,r);try{t[e]=s}catch{h&&p.log(`Failed to replace method "${String(e)}" in object`,t)}}function U(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&p.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function Bn(t,e){try{t.prototype=e.prototype=e.prototype||{},U(t,"__sentry_original__",e)}catch{}}function Ie(t){return t.__sentry_original__}function Hn(t){if(D(t))return{message:t.message,name:t.name,stack:t.stack,...Ue(t)};if(xt(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...Ue(t)}}return t}function Ue(t){return At(t)?Object.fromEntries(Object.entries(t)):{}}function Qr(t){const e=Object.keys(Hn(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let V;function lt(t){if(V!==void 0)return V?V(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=_;return e in n&&typeof n[e]=="function"?(V=n[e],V(t)):(V=null,t())}function Te(){return lt(()=>Math.random())}function Y(){return lt(()=>Date.now())}const Zr=Symbol.for("sentry.skipNormalization"),ts=Symbol.for("sentry.overrideNormalizationDepth");function es(t){return!!t[Zr]}function ns(t){const e=t[ts];return typeof e=="number"?e:void 0}let Vt;function rs(t){Vt=t}function P(t,e=100,n=1/0){try{return Xt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${Wn(r)})`}}}function Wn(t){try{return String(t)}catch{return"unknown error"}}function Gn(t,e=3,n=102400){const r=P(t,e);return is(r)>n?Gn(t,e-1,n):r}function Xt(t,e,n=1/0,r=1/0,s=as()){const[o,i]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=we(t,e);if(!a.startsWith("[object "))return a;if(es(e))return e;const c=ns(e),u=c!==void 0?c:n;if(u===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{return Xt("",f.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const m=Hn(e);for(const y in m){if(!Object.prototype.hasOwnProperty.call(m,y))continue;if(d>=r){l[y]="[MaxProperties ~]";break}const O=m[y];l[y]=Xt(y,O,u-1,r,s),d++}return i(e),l}function we(t,e){try{if(Vt){const n=Vt(e);if(n)return n}return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${j(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${ss(e)}]`}catch(n){return`**non-serializable** (${Wn(n)})`}}function ss(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function os(t){return~-encodeURI(t).split(/%..|./).length}function is(t){return os(JSON.stringify(t))}function as(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function cs(t,e="[unserializable]"){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return typeof e=="function"?e(t):e}}function Jt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function us(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;rt.randomUUID()).replace(/-/g,"")}catch{}return Ht||(Ht="10000000100040008000100000000000"),Ht.replace(/[018]/g,e=>(e^(ls()&15)>>e/4).toString(16))}function qn(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function W(t){const{message:e,event_id:n}=t;if(e)return e;const r=qn(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Qt(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")}function J(t,e){const n=qn(t);n&&zn(n,e)}function ds(t,e){var s;const n=(s=t.exception)==null?void 0:s.values,r=(n==null?void 0:n.find(o=>{var i;return((i=o.mechanism)==null?void 0:i.exception_id)===0}))??(n==null?void 0:n[0]);r&&zn(r,e)}function zn(t,e){const n={type:"generic",handled:!0},r=t.mechanism;t.mechanism={...n,...r,...e},e&&"data"in e&&(t.mechanism.data={...r==null?void 0:r.data,...e.data})}function Be(t){if(ps(t))return!0;try{U(t,"__sentry_captured__",!0)}catch{}return!1}function ps(t){try{return t.__sentry_captured__}catch{}}const Yn=1e3,hs=1e3,ms=100;function gt(){return Y()/Yn}let X=[];function _s(){const{performance:t}=_;if(!(t!=null&&t.now)||!t.timeOrigin)return t!=null&&t.now&&(X=[{from:0,origin:Y()-lt(()=>t.now())}]),gt;let e=t.timeOrigin;X=[{from:0,origin:e}];let n=!0,r=0;return()=>lt(()=>{const s=t.now(),o=Date.now();return Math.abs(e+s-o)>hs&&(e=o-s,n?X=[{from:0,origin:e}]:(X.push({from:r,origin:e}),X.length>ms&&X.splice(1,1))),n=!1,r=s,(e+s)/Yn})}let He;function A(){return(He??(He=_s()))()}function gs(t){const e=A(),n={sid:R(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ss(n)};return t&&Z(n,t),n}function Z(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||A(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:R()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ys(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Z(t,n)}function Ss(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function yt(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=yt(r[s],e[s],n-1));return r}function Es(){return R()}function Kn(){return R().substring(16)}const bs=100;var tt=class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},U(this,"refs",{}),this._propagationContext={traceId:Es(),sampleRand:Te()}}clone(){const e=new Zt;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,e.refs={...this.refs},e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Z(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:f,conversationId:l}=(n instanceof Zt?n.getScopeData():ht(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),l&&(this._conversationId=l),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:bs;if(r<=0)return this;const s={timestamp:gt(),...e,message:e.message?Jt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=yt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||R();if(!this._client)return h&&p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=(r==null?void 0:r.event_id)||R();if(!this._client)return h&&p.warn("No client configured on scope - will not capture message!"),s;const o=(r==null?void 0:r.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=e.event_id||(n==null?void 0:n.event_id)||R();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(h&&p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function vs(){return Dt("defaultCurrentScope",()=>new tt)}function Is(){return Dt("defaultIsolationScope",()=>new tt)}const We="__SENTRY_SUPPRESS_TRACING__",Ge=t=>t instanceof Promise&&!t[Vn],Vn=Symbol("chained PromiseLike"),Ts=(t,e,n)=>{const r=t.then(s=>(e(s),s),s=>{throw n(s),s});return Ge(r)&&Ge(t)?r:ws(t,r)},ws=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...o)=>s.apply(t,o),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[Vn]:!0}),e};var ks=class{constructor(t,e){let n;t?n=t:n=new tt;let r;e?r=e:r=new tt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return mt(n)?Ts(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function et(){const t=st(),e=pt(t);return e.stack=e.stack||new ks(vs(),Is())}function Xn(t){return et().withScope(t)}function Os(t,e){const n=et();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function qe(t){return et().withScope(()=>t(et().getIsolationScope()))}function Rs(){return{suppressTracing:Cs,withIsolationScope:qe,withScope:Xn,withSetScope:Os,withSetIsolationScope:(t,e)=>qe(e),getCurrentScope:()=>et().getScope(),getIsolationScope:()=>et().getIsolationScope()}}function Cs(t){return Xn(e=>{e.setSDKProcessingMetadata({[We]:!0});const n=t();return e.setSDKProcessingMetadata({[We]:void 0}),n})}function Lt(t){const e=pt(t);return e.acs?e.acs:Rs()}function Ns(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function Ds(t,e){const{value:n,unit:r}=Ns(t)?t:{value:t,unit:void 0},s=As(n),o=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...o};if(!e||e==="skip-undefined"&&n===void 0)return;let i="";try{i=JSON.stringify(n)??""}catch{}return{value:i,type:"string",...o}}function ze(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const o=Ds(s,e);o&&(n[r]=o)}return n}function As(t){if(Array.isArray(t))return{value:t,type:"array"};const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Jn(){var t,e;return(e=(t=pt(st())).externalPropagationContextProvider)==null?void 0:e.call(t)}function x(){const t=st();return Lt(t).getCurrentScope()}function K(){const t=st();return Lt(t).getIsolationScope()}function xs(){return Dt("globalScope",()=>new tt)}function Ls(...t){const e=st(),n=Lt(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function b(){return x().getClient()}function Qn(t){const e=Jn();if(e)return{trace_id:e.traceId,span_id:e.spanId};const{traceId:n,parentSpanId:r,propagationSpanId:s}=t.getPropagationContext(),o={trace_id:n,span_id:s||Kn()};return r&&(o.parent_span_id=r),o}const Ps=["ok","deadline_exceeded","unauthenticated","permission_denied","not_found","resource_exhausted","invalid_argument","unimplemented","unavailable","internal_error","unknown_error","cancelled","already_exists","failed_precondition","aborted","out_of_range","data_loss"],$s="culture.calendar",Ms="culture.locale",Fs="culture.timezone",js="gen_ai.conversation.id",Us="http.request.header",Zn="sentry.exclusive_time",Bs="sentry.is_localhost",tr="sentry.op",Hs="sentry.origin",er="sentry.profile_id",Ws="sentry.segment.name.source",Gs="url.full",qs="user_agent.original";function zs(t){return t!=="ok"&&Ps.includes(t)}function nr(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const Ys="_sentryScope",Ks="_sentryIsolationScope";function te(t){const e=t;return{scope:e[Ys],isolationScope:nr(e[Ks])}}function Vs(t){const e=Xs(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,o])=>{if(s.startsWith("sentry-")){const i=s.slice(7);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Xs(t){if(!(!t||!$(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Ye(n);return Object.entries(r).forEach(([s,o])=>{e[s]=o}),e},{}):Ye(t)}function Ye(t){return t.split(",").map(e=>{const n=e.indexOf("=");return n===-1?[]:[e.slice(0,n),e.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}const Js=/^o(\d+)\./,Qs=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Zs(t){return t==="http"||t==="https"}function Pt(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function to(t){const e=Qs.exec(t);if(!e){B(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return rr({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function rr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eo(t){if(!h)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(p.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Zs(r)?e&&isNaN(parseInt(e,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function no(t){var e;return(e=t.match(Js))==null?void 0:e[1]}function ro(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=no(n)),r}function ke(t){const e=typeof t=="string"?to(t):rr(t);if(!(!e||!eo(e)))return e}function so(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const oo="span";function io(t){return nr(t.refs[oo])}function ao(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:$t(t).parent_span_id,o=te(t).scope;return{parent_span_id:s,span_id:r?(o==null?void 0:o.getPropagationContext().propagationSpanId)||Kn():e,trace_id:n}}function co(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:e,trace_id:n,sampled:r===1,attributes:o,...s}))}function Ke(t){return typeof t=="number"?Ve(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ve(t.getTime()):A()}function Ve(t){return t>9999999999?t/1e3:t}function $t(t){if(po(t))return t.getStaticSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(lo(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:uo(t),start_timestamp:Ke(s),timestamp:Ke(i)||void 0,status:mo(a),op:r[tr],origin:r[Hs],links:co(c)}}return{span_id:e,trace_id:n,start_timestamp:0,status:"ok",data:{}}}function uo(t){var e;return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(e=t.parentSpanContext)==null?void 0:e.spanId:void 0}function fo(t){var e;return{...t,end_timestamp:t.end_timestamp??t.start_timestamp,attributes:ze(t.attributes),links:(e=t.links)==null?void 0:e.map(n=>({...n,attributes:ze(n.attributes)}))}}function lo(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function po(t){return typeof t.getSpanJSON=="function"}function ho(t){const{traceFlags:e}=t.spanContext();return e===1}function mo(t){return!t||t.code===0||t.code===1?"ok":t.message&&zs(t.message)?t.message:"internal_error"}const _o="_sentryRootSpan",sr=go;function go(t){return t[_o]||t}function yo(t){const e=st(),n=Lt(e);return n.getActiveSpan?n.getActiveSpan(t):io(t||x())}function Xe(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=b())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Je(t){p.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Qe(t,e){if(!(e!=null&&e.length))return!1;for(const n of e){if(bo(n)){if(t.description&&ft(t.description,n))return h&&Je(t),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const s=n.name?t.description&&ft(t.description,n.name):!0,o=n.op?t.op&&ft(t.op,n.op):!0,i=n.attributes?Object.entries(n.attributes).every(([a,c])=>{var u;return So((u=t.attributes)==null?void 0:u[a],c)}):!0;if(s&&o&&i)return h&&Je(t),!0}return!1}function So(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?ft(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t===e}function Eo(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function bo(t){return typeof t=="string"||t instanceof RegExp}const Ze=[];function vo(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function Io(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const s=n(e);r=Array.isArray(s)?s:[s]}else r=e;return vo(r)}function To(t,e){const n={};return e.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&or(t,r,n)}),n}function tn(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function or(t,e,n){if(n[e.name]){h&&p.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!Ze.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),Ze.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,o)=>r(s,o,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((o,i)=>r(o,i,t),{id:e.name});t.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=e[r];typeof s=="function"&&t.on(r,o=>s.call(e,o,t))}),h&&p.log(`Integration installed: ${e.name}`)}function C(t,e){return(...n)=>{const r=ht(n[0])?{...n[0]}:n[0],s=t(...n);return s._options=r,s._libraryOptions=e==null?void 0:e.libraryOptions,s}}const wo="production",ko=Symbol.for("sentry.nonRecordingSpan");function Oo(t){return!!t&&t[ko]===!0}const Ro="_frozenDsc";function ir(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||"production",release:n.release,public_key:r,trace_id:t,org_id:ro(e)};return e.emit("createDsc",s),s}function ar(t,e){if(Jn())return;const n=e.getPropagationContext();return n.dsc||ir(n.traceId,t)}function Co(t){var S;const e=b();if(!e)return{};const n=sr(t),r=$t(n),s=r.data,o=n.spanContext().traceState,i=(o==null?void 0:o.get("sentry.sample_rate"))??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(v){return(typeof i=="number"||typeof i=="string")&&(v.sample_rate=`${i}`),v}const c=n[Ro];if(c)return a(c);const u=Oo(n),f=u&&n.dropReason==="ignored";if(u&&(!Xe(e.getOptions())||f)){const v=te(n).scope,w=v&&ar(e,v);if(w){const I={...w};return f&&(I.sampled="false"),a(I)}}const l=o==null?void 0:o.get("sentry.dsc"),d=l&&Vs(l);if(d)return a(d);const m=ir(t.spanContext().traceId,e),y=s[Ws],O=r.description;if(y!=="url"&&O&&(m.transaction=O),Xe()){const v=(S=te(n).scope)==null?void 0:S.getPropagationContext(),w=ho(n);m.sampled=String(w),m.sample_rand=(o==null?void 0:o.get("sentry.sample_rand"))??(v==null?void 0:v.sampleRand.toString()),i==null&&typeof(v==null?void 0:v.sampled)=="boolean"&&(m.sample_rate=w?"1":"0")}return a(m),e.emit("createDsc",m,n),m}function No(t,e){const{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:s}=e;Do(t,e),Po(t,n),Ao(t,r),xo(t,s)}function en(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:m,transactionName:y}=e;at(t,"extra",n),at(t,"tags",r),at(t,"attributes",s),at(t,"user",o),at(t,"contexts",i),t.sdkProcessingMetadata=yt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),y&&(t.transactionName=y),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...m}}function at(t,e,n){t[e]=yt(t[e],n,1)}function cr(t,e){const n=xs().getScopeData();return t&&en(n,t.getScopeData()),e&&en(n,e.getScopeData()),n}function Do(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&t.type!=="transaction"&&(t.transaction=a)}function Ao(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function xo(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Lo(t,e){t.contexts={trace:ao(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Co(e),...t.sdkProcessingMetadata};const n=sr(e),r=$t(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Po(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function dt(t,e,n){let r;try{r=e()}catch(s){return nn(t,s,n)}return mt(r)?r.then(void 0,s=>nn(t,s,n)):r}function nn(t,e,n){return h&&p.error(t,e),n(e)}function ur(t){return!!t&&typeof t=="function"&&"_static"in t&&!!t._static}function rn(t,e){return dt(h?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":"",()=>e(t),()=>t)||t}function $o(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links};return fo(e)}function fr(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([r,s])=>{s!=null&&!(r in n)&&(n[r]=s)})}function Mo(t){return t.getOptions().traceLifecycle==="stream"}function Fo(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}function Mt(t,e=[]){return[t,e]}function sn(t,e){const[n,r]=t;return[n,[...r,e]]}function ee(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function jo(t,e){return ee(t,(n,r)=>e.includes(r))}function ne(t){const e=pt(_);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Uo(t){const[e,n]=t;let r=JSON.stringify(e);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[ne(r),o]:r.push(typeof o=="string"?ne(o):o)}for(const o of n){const[i,a]=o;if(s(` +${JSON.stringify(i)} +`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(P(a))}s(c)}}return typeof r=="string"?r:Bo(r)}function Bo(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function Ho(t){const e=typeof t.data=="string"?ne(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const lr={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",metric:"trace_metric"};function Wo(t){return t in lr}function on(t){return Wo(t)?lr[t]:t}function dr(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Go(t,e,n,r){var o;const s=(o=t.sdkProcessingMetadata)==null?void 0:o.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(Y()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Pt(r)},...s&&{trace:s}}}function re(t){return t==="replay_event"?"replay":t||"error"}function qo(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function zo(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function Yo(){return!qo()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function pr(){return typeof window<"u"&&(!Yo()||Ko())}function Ko(){var t;return((t=_.process)==null?void 0:t.type)==="renderer"}function Vo(t,e){const n=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:t.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,ingest_settings:pr()?{infer_ip:n,infer_user_agent:n}:void 0,items:t}]}const Xo=new WeakMap;function Jo(t){return it(t)?void 0:t}function Qo(t,e,n){var i;const r=Jo(e.originalException),s=r&&Xo.get(r);if(!s)return;const o=(i=t.contexts)==null?void 0:i.trace;((o==null?void 0:o.trace_id)??(n&&Qn(n).trace_id))===s.trace_id&&(t.contexts={...t.contexts,trace:{...o,...s}})}function Zo(t,e){var r,s,o,i;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((r=t.sdk)==null?void 0:r.integrations)||[],...e.integrations||[]],packages:[...((s=t.sdk)==null?void 0:s.packages)||[],...e.packages||[]],settings:(o=t.sdk)!=null&&o.settings||e.settings?{...(i=t.sdk)==null?void 0:i.settings,...e.settings}:void 0},t}function ti(t,e,n,r){const s=dr(n),o={sent_at:new Date(Y()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Pt(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Mt(o,[i])}function ei(t,e,n,r){const s=dr(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Zo(t,n==null?void 0:n.sdk);const i=Go(t,s,r,e);return delete t.sdkProcessingMetadata,Mt(i,[[{type:o},t]])}const hr="[Filtered]",ni=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function ri(t,e){return e.some(n=>t.includes(n))}function mr(t,e,n){if(e===!1)return!0;const r=t.toLowerCase();if(ri(r,ni))return!0;if(e===!0)return!1;const s=("deny"in e?e.deny:e.allow).some(o=>r.includes(o.toLowerCase()));return"deny"in e?s:!s}function se(t,e,n){if(e===!1)return{};const r={};for(const[s,o]of Object.entries(t))r[s]=mr(s,e)?hr:o;return r}const Wt=0,an=1,cn=2;function St(t){return new _r(e=>{e(t)})}function Oe(t){return new _r((e,n)=>{n(t)})}var _r=class oe{constructor(e){this._state=Wt,this._handlers=[],this._runExecutor(e)}then(e,n){return new oe((r,s)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new oe((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,e&&e()},i=>{o=!0,s=i,e&&e()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Wt)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===an&&n[1](this._value),this._state===cn&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(o,i)=>{if(this._state===Wt){if(mt(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(an,o)},s=o=>{n(cn,o)};try{e(r,s)}catch(o){s(o)}}};function si(t,e,n,r=0,s){try{const o=ie(e,n,t,r,s);return mt(o)?o:St(o)}catch(o){return Oe(o)}}function ie(t,e,n,r,s){const o=n[r];if(!t||!o)return t;const i=`Event processor "${o.id||"?"}"`;let a=!1;const c=dt(h?`${i} threw an error, dropping event:`:"",()=>o({...t},e),()=>(a=!0,null));return h&&c===null&&p.log(`${i} dropped event`),mt(c)?c.then(u=>u?ie(u,e,n,r+1,s):(s==null||s(a?"callback_error":"event_processor"),null)):c?ie(c,e,n,r+1,s):(s==null||s(a?"callback_error":"event_processor"),null)}let L,un,fn,M;function oi(t){const e=_._sentryDebugIds,n=_._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(M&&r.length===un&&s.length===fn)return M;un=r.length,fn=s.length,M={},L||(L={});const o=(i,a)=>{var c;for(const u of i){const f=a[u],l=L==null?void 0:L[u];if(l&&M&&f)M[l[0]]=f,L&&(L[u]=[l[0],f]);else if(f){const d=t(u);for(let m=d.length-1;m>=0;m--){const y=(c=d[m])==null?void 0:c.filename;if(y&&M&&L){M[y]=f,L[u]=[y,f];break}}}}};return e&&o(r,e),n&&o(s,n),M}function ae(t){var e;return((e=t.data)==null?void 0:e.__sentry__)===!0}function gr(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function ii(t,e,n,r,s,o){var w;const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||R(),timestamp:e.timestamp||gt()},u=n.integrations||t.integrations.map(I=>I.name);ai(c,t),fi(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&ci(c,t.stackParser);const f=di(r,n.captureContext);n.mechanism&&ds(c,n.mechanism);const l=s?s.getEventProcessors():[],d=cr(o,f),m=[...n.attachments||[],...d.attachments];m.length&&(n.attachments=m),No(c,d);const y=yo(f);y&&Lo(c,y),Qo(c,n,f);const O=[...l,...d.eventProcessors],S=e.type==="transaction",v=((w=e.spans)==null?void 0:w.length)||0;return(ae(n)?St(c):si(O,c,n,0,I=>{s&&(s.recordDroppedEvent(I,re(e.type)),S&&s.recordDroppedEvent(I,"span",1+v))})).then(I=>{var xe;if(!I)return null;if(S&&s){const Le=v-(((xe=I.spans)==null?void 0:xe.length)||0);Le>0&&s.recordDroppedEvent("event_processor","span",Le)}return ui(I),typeof i=="number"&&i>0?li(I,i,a):I})}function ai(t,e){var a,c;const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||"production",!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i!=null&&i.url&&o&&(i.url=Jt(i.url,o)),o&&((c=(a=t.exception)==null?void 0:a.values)==null||c.forEach(u=>{u.value&&(u.value=Jt(u.value,o))}))}function ci(t,e){var r,s;const n=oi(e);(s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(o=>{var i,a;(a=(i=o.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function ui(t){var r,s;const e={};if((s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(o=>{var i,a;(a=(i=o.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?e[c.abs_path]=c.debug_id:c.filename&&(e[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([o,i])=>{n.push({type:"sourcemap",code_file:o,debug_id:i})})}function fi(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function li(t,e,n){var s,o;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:P(i.data,e,n)}}))},...t.user&&{user:P(t.user,e,n)},...t.contexts&&{contexts:P(t.contexts,e,n)},...t.extra&&{extra:P(t.extra,e,n)}};return(s=t.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=P(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>({...i,...i.data&&{data:P(i.data,e,n)}}))),(o=t.contexts)!=null&&o.flags&&r.contexts&&(r.contexts.flags=P(t.contexts.flags,3,n)),r}function di(t,e){if(!e)return t;const n=t?t.clone():new tt;return n.update(e),n}function pi(t,e){return x().captureException(t,void 0)}function yr(t,e){return x().captureEvent(t,e)}function ln(t){var i,a;const e=K(),{user:n}=cr(e,x());let r=(i=_.navigator)==null?void 0:i.userAgent;if(r){const c=((a=b())==null?void 0:a.getDataCollectionOptions().httpHeaders.request)??!0;r=se({"User-Agent":r},c)["User-Agent"]}const s=gs({user:n,userAgent:r,...t}),o=e.getSession();return(o==null?void 0:o.status)==="ok"&&Z(o,{status:"exited"}),Sr(),e.setSession(s),s}function Sr(){const t=K(),e=x().getSession()||t.getSession();e&&ys(e),Er(),t.setSession()}function Er(){const t=K(),e=b(),n=t.getSession();n&&e&&e.captureSession(n)}function Gt(t=!1){if(t){Sr();return}Er()}function hi(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function mi(t){return`${hi(t)}${t.projectId}/envelope/`}function _i(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function gi(t,e,n){return e||`${mi(t)}?${_i(t,n)}`}function yi(t,e){var s,o,i;if(t.type!=="transaction"||!((s=t.spans)!=null&&s.length)||!((o=t.sdkProcessingMetadata)!=null&&o.hasGenAiSpans)||Mo(e))return;const n=[],r=[];for(const a of t.spans)(i=a.op)!=null&&i.startsWith("gen_ai.")?n.push($o(a)):r.push(a);if(n.length!==0)return t.spans=r,Vo(n,e)}const Re=Symbol.for("SentryBufferFullError");function Ce(t=100){const e=new Set;function n(){return e.sizer(a),()=>r(a)),a}function o(i){if(!e.size)return St(!0);const a=Promise.allSettled(Array.from(e)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>Fo(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:s,drain:o}}const Si=6e4;function Ei(t,e=Y()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Si:r-e}function bi(t,e){return t[e]||t.all||0}function vi(t,e,n=Y()){return bi(t,e)>n}function Ii(t,e,n=Y()){const r={...t};return Ti(e,n,(s,o)=>{r[s]=Math.max(r[s]||0,o)}),r}function Ti({statusCode:t,headers:e},n,r){const s=e==null?void 0:e["x-sentry-rate-limits"],o=e==null?void 0:e["retry-after"];if(s)for(const i of s.trim().split(",")){const[a,c,,,u]=i.split(":",5),f=parseInt(a,10),l=(isNaN(f)?60:f)*1e3;if(!c)r("all",n+l);else for(const d of c.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&r(d,n+l):r(d,n+l)}else o?r("all",n+Ei(o,n)):t===429&&r("all",n+6e4)}function wi(t,e,n=Ce(t.bufferSize||64)){let r={};const s=a=>n.drain(a);function o(a,[c,u],f){var d;const l=on(f);f==="transaction"&&t.recordDroppedEvent(a,"span",(((d=u.spans)==null?void 0:d.length)??0)+1),t.recordDroppedEvent(a,l,typeof c.item_count=="number"?c.item_count:1)}function i(a){const c=[];if(ee(a,(d,m)=>{vi(r,on(m))?o("ratelimit_backoff",d,m):c.push(d)}),c.length===0)return Promise.resolve({});const u=Mt(a[0],c),f=d=>{if(jo(u,["client_report"])){h&&p.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}ee(u,(m,y)=>{o(d,m,y)})},l=()=>e({body:Uo(u)}).then(d=>d.statusCode===413?(h&&p.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(h&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&p.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Ii(r,d),d),d=>{throw f("network_error"),h&&p.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Re)return h&&p.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function ki(t,e,n){const r=[{type:"client_report"},{timestamp:gt(),discarded_events:t}];return Mt(e?{dsn:e}:{},[r])}function Oi(t){var u;const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a,links:c}=((u=t.contexts)==null?void 0:u.trace)??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s??"ok",timestamp:t.timestamp,trace_id:e??"",origin:o,links:c,profile_id:i==null?void 0:i[er],exclusive_time:i==null?void 0:i[Zn],measurements:t.measurements,is_segment:!0}}function Ri(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,links:t.links,data:{...t.data,...t.profile_id&&{[er]:t.profile_id},...t.exclusive_time&&{[Zn]:t.exclusive_time}}}},measurements:t.measurements}}function Ci(t){var e;t.traceLifecycle!=="stream"||!(t.beforeSendTransaction||(e=t.ignoreTransactions)!=null&&e.length)||B(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}const T={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function Ni(t){return typeof t=="boolean"||"allow"in t||"deny"in t}function Di(t){return t===void 0?{...T.httpHeaders}:Ni(t)?{request:t,response:t}:{request:t.request??T.httpHeaders.request,response:t.response??T.httpHeaders.response}}function Ai(t){var n,r,s,o,i,a;const e=t.dataCollection??{};return{userInfo:e.userInfo??T.userInfo,cookies:e.cookies??T.cookies,httpHeaders:Di(e.httpHeaders),httpBodies:e.httpBodies??T.httpBodies,urlQueryParams:e.urlQueryParams??T.urlQueryParams,graphQL:{document:((n=e.graphQL)==null?void 0:n.document)??T.graphQL.document,variables:((r=e.graphQL)==null?void 0:r.variables)??T.graphQL.variables},genAI:{inputs:((s=e.genAI)==null?void 0:s.inputs)??T.genAI.inputs,outputs:((o=e.genAI)==null?void 0:o.outputs)??T.genAI.outputs},mcp:{inputs:((i=e.mcp)==null?void 0:i.inputs)??T.mcp.inputs,outputs:((a=e.mcp)==null?void 0:a.outputs)??T.mcp.outputs},databaseQueryData:e.databaseQueryData??T.databaseQueryData,queues:e.queues??T.queues,stackFrameVariables:e.stackFrameVariables??T.stackFrameVariables,frameContextLines:e.frameContextLines??T.frameContextLines}}const dn="Not capturing exception because it's already been captured.",pn="Discarded session because of missing or non-string release",br=Symbol.for("SentryInternalError"),vr=Symbol.for("SentryDoNotSendEventError"),Ir=Symbol.for("SentryClosedClient");function xi(t){return Ir in t}function hn(t){return{message:t,[br]:!0}}function ce(t){return{message:t,[vr]:!0}}function mn(t){return ce(`Discarding event because it's not included in the random sample (sampling rate = ${t})`)}function _n(t){return At(t)&&br in t}function gn(t){return At(t)&&vr in t}var Li=class{constructor(t){var r;this._options={attachStacktrace:!0,...t,traceLifecycle:t.traceLifecycle==="static"?"static":"stream"},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ce(((r=t.transportOptions)==null?void 0:r.bufferSize)??64),this._dataCollection=Ai(t),this._unhandledSessionStatus="crashed",this._attachStacktraceIsDefault=t.attachStacktrace===void 0,t.dsn?this._dsn=ke(t.dsn):h&&p.warn("No DSN provided, client will not send events.");const{beforeSendSpan:e,traceLifecycle:n}=this._options;if(h&&e&&ur(e)!==(n==="static")&&B(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n==="static"?"wrap it with":"remove"} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){const s=gi(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}}captureException(t,e,n){const r=R();if(Be(t))return h&&p.log(dn),r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(o=>this._captureEvent(o,s,n)).then(o=>o),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:R(),...n},o=be(t)?t:String(t),i=it(t),a=i?this.eventFromMessage(o,e,s).then(c=>(c.exception&&this._attachStacktraceIsDefault&&(c.sdkProcessingMetadata={...c.sdkProcessingMetadata,hasDefaultSyntheticStacktrace:!0}),c)):this.eventFromException(t,s);return this._process(()=>a.then(c=>this._captureEvent(c,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=R();if(e!=null&&e.originalException&&Be(e.originalException))return h&&p.log(dn),r;const s={event_id:r,...e},o=t.sdkProcessingMetadata||{},i=o.capturedSpanScope,a=o.capturedSpanIsolationScope,c=re(t.type);return this._process(()=>this._captureEvent(t,s,i||n,a),c),s.event_id}captureSession(t){this.sendSession(t),Z(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(this.emit("flush"),!e)return!0;const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){Object.defineProperty(this,Ir,{value:!0});const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&(this._setupIntegrations(),Ci(this._options))}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),or(this,t,this._integrations),e||tn(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);const n=yi(t,this);let r=ei(t,this._dsn,this._options._metadata,this._options.tunnel);if(!ae(e))for(const s of e.attachments||[])r=sn(r,Ho(s));n&&(r=sn(r,n)),this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:e,environment:n=wo}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!e){h&&p.warn(pn);return}s.release=s.release||e,s.environment=s.environment||n,t.attrs=s}else{if(!t.release&&!e){h&&p.warn(pn);return}t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=ti(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;h&&p.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...s)=>e(...s);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(r=>r(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{const e=await this._transport.send(t);return this.emit("afterEnvelope",t),e}catch(e){return h&&p.error("Error while sending envelope:",e),{}}return h&&p.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=To(this,t),tn(this,t)}_updateSessionFromEvent(t,e){var i,a;let n=e.level==="fatal",r=!1;const s=(i=e.exception)==null?void 0:i.values;if(s){r=!0,n=!1;for(const c of s)if(((a=c.mechanism)==null?void 0:a.handled)===!1){n=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&n)&&(Z(t,{...n&&{status:this._unhandledSessionStatus},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||esetTimeout(n,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=this.getIntegrationNames();return!e.integrations&&o.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),ii(s,t,e,n,this,r).then(i=>{var a;return i===null||(this.emit("postprocessEvent",i,e),i.contexts={trace:{...(a=i.contexts)==null?void 0:a.trace,...Qn(n)},...i.contexts},i.sdkProcessingMetadata={dynamicSamplingContext:ar(this,n),...i.sdkProcessingMetadata}),i})}_captureEvent(t,e={},n=x(),r=K()){return h&&ue(t)&&p.log(`Captured error event \`${gr(t)[0]||""}\``),this._processEvent(t,e,n,r).then(s=>s.event_id,s=>{h&&(gn(s)?p.log(s.message):_n(s)?p.warn(s.message):p.warn(s))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Tr(t),a=ue(t),c=`before send for type \`${t.type||"error"}\``;let u="before_send",f=0;const l=typeof o>"u"?void 0:so(o),d=a&&typeof l=="number"&&Te()>l,m=re(t.type);let y=0;const O=n.getSession()||r.getSession();return d&&(O==null?void 0:O.status)!=="ok"?(this.recordDroppedEvent("sample_rate","error"),Oe(mn(o))):this._prepareEvent(t,e,n,r).then(S=>{var v;if(S===null)throw ce("An event processor returned `null`, will not send event.");return y=((v=S.spans)==null?void 0:v.length)||0,ae(e)?S:Pi(s,S,e,w=>{u=w},w=>{f=w})}).then(S=>{var w;if(f&&this.recordDroppedEvent("ignored","span",f),!ht(S)||S===null)throw this.recordDroppedEvent(u,m),i&&this.recordDroppedEvent(u,"span",1+y-f),S!==null?hn(`${c} must return \`null\` or a valid event.`):ce(`${u==="ignored"?"Transaction matched `ignoreSpans`":`${c} ${u==="callback_error"?"threw an error":"returned `null`"}`}, will not send event.`);if(a&&O&&this._updateSessionFromEvent(O,S),d)throw this.recordDroppedEvent("sample_rate","error"),mn(o);if(i){const I=y-f-(((w=S.spans)==null?void 0:w.length)||0);I>0&&this.recordDroppedEvent("before_send","span",I)}const v=S.transaction_info;if(i&&v&&S.transaction!==t.transaction){const I="custom";S.transaction_info={...v,source:I}}return this.sendEvent(S,e),S}).then(null,S=>{throw gn(S)||_n(S)?S:(this.captureException(S,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:S}),hn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${S}`))})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Re&&this.recordDroppedEvent("queue_overflow",e),n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{const[r,s]=e.split(":");return{reason:r,category:s,quantity:n}})}_flushOutcomes(){h&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){h&&p.log("No outcomes to send");return}if(!this._dsn){h&&p.log("No dsn provided, will not send outcomes");return}h&&p.log("Sending outcomes:",t);const e=ki(t,this._options.tunnel&&Pt(this._dsn));this.sendEnvelope(e)}};function Pi(t,e,n,r,s){const{beforeSend:o,ignoreSpans:i,beforeSendTransaction:a}=t,c=ur(t.beforeSendSpan)&&t.beforeSendSpan;let u=e;if(ue(u)&&o){const f=u;return dt(h?"The `beforeSend` callback threw an error, dropping the event:":"",()=>o(f,n),()=>(r("callback_error"),null))}if(Tr(u)){if(c||i){const f=Oi(u);if(i!=null&&i.length&&Qe({description:f.description,op:f.op,attributes:f.data},i))return r("ignored"),null;if(c){const l=rn(f,c);u=yt(e,Ri(l))}if(u.spans){const l=[],d=u.spans;for(const m of d){if(i!=null&&i.length&&Qe({description:m.description,op:m.op,attributes:m.data},i)){Eo(d,m);continue}c?l.push(rn(m,c)):l.push(m)}s(d.length-l.length),u.spans=l}}if(a)return dt(h?"The `beforeSendTransaction` callback threw an error, dropping the event:":"",()=>a(u,n),()=>(r("callback_error"),null))}return u}function ue(t){return t.type===void 0}function Tr(t){return t.type==="transaction"}function $i(t,e){e.debug===!0&&(h?p.enable():B(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Mi(),x().update(e.initialScope);const n=new t(e);return Fi(n),n.init(),n}function Mi(){const t=b();t&&!xi(t)&&B(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function Fi(t){x().setClient(t)}function wr(t,e){const n=t.indexOf("="),r=n===-1?t:t.slice(0,n),s=new URLSearchParams(`${r}=`).keys().next().value;return s!==void 0&&mr(s,e)?`${r}=${hr}`:t}function ji(t,e){if(!(!t||e===!1))return t.split("&").map(n=>wr(n,e)).join("&")}function Ui(t,e){if(!t||e===!1)return;const n=t.indexOf("?");return`${n===-1?"":t.slice(0,n+1)}${(n===-1?t:t.slice(n+1)).split("&").map(r=>r.includes("=")?wr(r,e):r).join("&")}`}function Bi(t,e){const n=t.indexOf("#"),r=n===-1?t:t.slice(0,n),s=n===-1?void 0:t.slice(n+1),o=r.indexOf("?");let i=r;if(o!==-1){const c=ji(r.slice(o+1),e);i=`${r.slice(0,o)}${c?`?${c}`:""}`}const a=s===void 0?void 0:Ui(s,e);return a?`${i}#${a}`:i}function Hi(t){var e;return((e=t??b())==null?void 0:e.getDataCollectionOptions().urlQueryParams)??!0}function nt(t,e){return t===void 0?void 0:Bi(t,Hi(e))}const Wi="thismessage:/";function Gi(t){return"isRelative"in t}function qi(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=e??(n?Wi:void 0);try{if("canParse"in URL&&!URL.canParse(t,r))return;const s=new URL(t,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function qt(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function zi(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&o!==-1){const a=t.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}function Yi(t){let e=2166136261;for(let n=0;n>>0).toString(36)}function Ki(t){var n;const e=t?ke(t):(n=b())==null?void 0:n.getDsn();return e?`/${Yi(Pt(e))}`:void 0}function Vi(t){const e=(t!=null&&t.startsWith("./")?t.slice(1):t??"").replace(/\/$/,"");return!e||e.startsWith("/")?e:`/${e}`}function Xi(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Ji(t){return Array.from(new Set(t))}function Qi(t){var r;if((r=t._metadata)!=null&&r.optionsSetByUser)return t;const{integrations:e}=t,n={...t._metadata,optionsSetByUser:Object.keys(t).filter(s=>s!=="_metadata").sort()};return Array.isArray(e)&&(n.integrationsSetByUser=Ji(e.map(s=>s.name))),{...t,_metadata:n,...typeof e=="function"&&{integrations:s=>{const o=new Set(s),i=e(s),a=Array.isArray(i)?i:[i],c=new Set,u=new Set;for(const l of a)c.add(l.name),!o.has(l)&&!l.isDefaultInstance&&u.add(l.name);const f=new Set;for(const l of o)c.has(l.name)||f.add(l.name);return n.integrationsSetByUser=Array.from(u),f.size&&(n.removedDefaultIntegrations=Array.from(f).sort()),a}}}}function Zi(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:Ot})),s.version=Ot)}const ta="sentry-release",ea=100;function G(t,e){const n=b(),r=K();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=ea}=n.getOptions();if(o<=0)return;const i={timestamp:gt(),...t},a=s?dt(h?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":"",()=>B(()=>s(i,e)),()=>null):i;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}const na="FunctionToString",yn=new WeakMap,ra=()=>({name:na,setupOnce(){const t=Function.prototype.toString,e=Function.prototype.call.bind(t),n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);try{Function.prototype.toString=function(){let r;try{yn.has(b())&&n(this,"__sentry_original__")&&(r=Ie(this))}catch{}return e(r??this)}}catch{}},setup(t){yn.set(t,!0)}}),sa=C(ra),oa=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],ia="EventFilters",aa=C((t={})=>{let e;return{name:ia,setup(n){e=Sn(t,n.getOptions())},processEvent(n,r,s){return e||(e=Sn(t,s.getOptions())),ca(n,e)?null:n}}});function Sn(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:oa],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ca(t,e){if(t.type){if(t.type==="transaction"&&fa(t,e.ignoreTransactions))return h&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${W(t)}`),!0}else{if(ua(t,e.ignoreErrors))return h&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${W(t)}`),!0;if(ha(t))return h&&p.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${W(t)}`),!0;if(la(t,e.denyUrls))return h&&p.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${W(t)}. +Url: ${Ct(t)}`),!0;if(!da(t,e.allowUrls))return h&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${W(t)}. +Url: ${Ct(t)}`),!0}return!1}function ua(t,e){return e!=null&&e.length?gr(t).some(n=>_t(n,e)):!1}function fa(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?_t(n,e):!1}function la(t,e){if(!(e!=null&&e.length))return!1;const n=Ct(t);return n?_t(n,e):!1}function da(t,e){if(!(e!=null&&e.length))return!0;const n=Ct(t);return n?_t(n,e):!0}function pa(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Ct(t){var e,n,r;try{const s=(r=(n=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(o=>{var i,a,c;return((i=o.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return s?pa(s):null}catch{return h&&p.error(`Cannot extract url for event ${W(t)}`),null}}function ha(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function ma(t,e,n,r,s,o){var a;if(!((a=s.exception)!=null&&a.values)||!o||!D(o.originalException))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Tt(t,e,r,o.originalException,n,s.exception.values,i,0))}function Tt(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(D(r[s])){zt(i,a,r);const u=t(e,r[s]),f=c.length;Yt(u,s,f,a),c=Tt(t,e,n,r[s],s,[u,...c],u,f)}return kr(r)&&r.errors.forEach((u,f)=>{if(c.length{const f=r[u];if(c.length{for(const e of t)Nt.delete(e)}}const bn=new Set;function ba(){"console"in _&&Ln.forEach(function(t){bn.has(t)||!(t in _.console)||(bn.add(t),k(_.console,t,function(e){return Rt[t]=e,function(...n){const r=n[0],s=Rt[t],o=Nt.size&&typeof r=="string"&&_t(r,Nt);o||N("console",{args:n,level:t}),(!o||h&&p.isEnabled())&&(s==null||s.apply(_.console,n))}}))})}function va(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Ia="Dedupe",Ta=()=>{let t;return{name:Ia,processEvent(e){if(e.type)return e;try{if(ka(e,t))return h&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},wa=C(Ta);function ka(t,e){return e?!!(Oa(t,e)||Ra(t,e)):!1}function Oa(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rr(t,e)||!Or(t,e))}function Ra(t,e){const n=vn(e),r=vn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rr(t,e)||!Or(t,e))}function Or(t,e){const n=Me(t),r=Me(e);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let s=0;s{const e=new Set(t.levels||Ln);return{name:Ca,setup(n){const r=Sa(({args:s,level:o})=>{b()!==n||!e.has(o)||Da(o,s)});if(n.registerCleanup(r),t.filter){const s=Ea(t.filter);n.registerCleanup(s)}}}});function Da(t,e){const n={category:"console",data:{arguments:e,logger:"console"},level:va(t),message:In(e)};if(t==="assert")if(e[0]===!1){const r=e.slice(1);n.message=r.length>0?`Assertion failed: ${In(r)}`:"Assertion failed",n.data.arguments=r}else return;G(n,{input:e,level:t})}function In(t){return"util"in _&&typeof _.util.format=="function"?_.util.format(...t):us(t," ")}const Aa="ConversationId",xa=()=>({name:Aa,setup(t){t.on("spanStart",e=>{const n=x().getScopeData(),r=K().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=$t(e);if(!(o!=null&&o.startsWith("gen_ai."))&&!i["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;e.setAttribute(js,s)}})}}),La=C(xa),fe=_;function Pa(){if(!("fetch"in fe))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function le(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function $a(){var n;if(typeof EdgeRuntime=="string")return!0;if(!Pa())return!1;if(le(fe.fetch))return!0;let t=!1;const e=fe.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=le(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){h&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ma(t){const e="fetch",n=q(e,t);return z(e,()=>Fa()),n}function Fa(t){pr()&&!$a()||k(_,"fetch",function(e){return new Proxy(e,{apply(n,r,s){const o=new Error,{method:i,url:a}=ja(s),c={args:s,fetchData:{method:i,url:a},startTimestamp:A()*1e3,virtualError:o,headers:Ua(s)};return N("fetch",{...c}),Reflect.apply(n,_,s).then(async u=>(N("fetch",{...c,endTimestamp:A()*1e3,response:u}),u),u=>{var l,d;N("fetch",{...c,endTimestamp:A()*1e3,error:u}),D(u)&&u.stack===void 0&&(u.stack=o.stack,U(u,"framesToPop",1));const f=((l=b())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&D(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(c.fetchData.url,(d=_.location)==null?void 0:d.href).host;m&&(f==="always"?u.message=`${u.message} (${m})`:U(u,"__sentry_fetch_url_host__",m))}catch{}throw u})}})})}function wt(t,e){return At(t)&&!!t[e]}function Tn(t){return typeof t=="string"?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}function ja(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Tn(n),method:wt(r,"method")?String(r.method).toUpperCase():Un(n)&&wt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Tn(e),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}function Ua(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Un(e))return new Headers(e.headers)}catch{}}function Cr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const de=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E=_,Ba=80,H={};try{typeof Node<"u"&&(H.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(H.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,H.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,H.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,H.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(H.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function F(t,e,n){const r=H[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return typeof s=="function"?s.call(t,n):s}function Nr(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=3;let u;const f=Array.isArray(e)?e:e.keyAttrs,l=Array.isArray(e)?void 0:e.maskAttributeFn,d=!Array.isArray(e)&&e.maxStringLength||Ba;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=F(n,"parentNode");return s.reverse().join(a)}catch{return""}}function Ha(t,e,n){const r=[],s=F(t,"tagName");if(!s)return"";if(typeof HTMLElement<"u"&&t instanceof HTMLElement){const i=F(t,"dataset");if(i){if(i.sentryComponent)return n?n("data-sentry-component",i.sentryComponent,t):i.sentryComponent;if(i.sentryElement)return n?n("data-sentry-element",i.sentryElement,t):i.sentryElement}}r.push(s.toLowerCase());const o=e!=null&&e.length?e.filter(i=>F(t,"getAttribute",i)).map(i=>[i,F(t,"getAttribute",i)]):null;if(o!=null&&o.length)o.forEach(([i,a])=>{r.push(`[${i}="${n&&a?n(i,a,t):a}"]`)});else{const i=F(t,"id");i&&r.push(`#${n?n("id",i,t):i}`);const a=F(t,"className");if(a&&$(a)){const c=(n?n("class",a,t):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const i of["aria-label","type","name","title","alt"]){const a=F(t,"getAttribute",i);a&&r.push(`[${i}="${n?n(i,a,t):a}"]`)}return r.join("")}function Wa(t,e,n){E.document&&E.addEventListener(t,e,n)}function Ga(t,e,n){E.document&&E.removeEventListener(t,e,n)}const qa=t=>{var n;const e=E.requestIdleCallback||E.setTimeout;if(((n=E.document)==null?void 0:n.visibilityState)==="hidden")t();else{let r=!1;const s=()=>{r||(t(),r=!0)};Wa("visibilitychange",s,{once:!0,capture:!0}),e(()=>{s(),Ga("visibilitychange",s,{capture:!0})})}};function za(t,e=5){if(!_.HTMLElement)return null;let n=t;for(let r=0;r{var s,o;const r=(s=E[n])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(k(r,"addEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=kn(u);if(!l.handler){const y=On(t);l.handler=y,l.capture=d,i.call(this,a,y,l.capture)}const m=l[d?"captureListeners":"bubbleListeners"];m.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(m.add(c),l.listenerCount++))}catch{}return i.call(this,a,c,u)}}),k(r,"removeEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[kn(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(i.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function Qa(t){if(t.type!==pe)return!1;try{if(!t.target||t.target._sentryId!==he)return!1}catch{}return!0}function Za(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function On(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=tc(n);if(Za(n.type,r))return;U(n,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",R());const s=n.type==="keypress"?"input":n.type;Qa(n)||(t({event:n,name:s,global:e}),pe=n.type,he=r?r._sentryId:void 0),clearTimeout(wn),wn=E.setTimeout(()=>{he=void 0,pe=void 0},Va)}}function tc(t){try{return t.target}catch{return null}}let vt;function ec(){return"history"in E&&!!E.history}function Ar(t){const e="history";q(e,t),z(e,nc)}function nc(){if(E.addEventListener("popstate",()=>{const e=E.location.href,n=vt;vt=e,n!==e&&N("history",{from:n,to:e})}),!ec())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=vt,o=rc(String(r));if(vt=o,s===o)return e.apply(this,n);N("history",{from:s,to:o})}return e.apply(this,n)}}k(E.history,"pushState",t),k(E.history,"replaceState",t)}function rc(t){try{return new URL(t,E.location.origin).toString()}catch{return t}}const kt={};function sc(t){const e=kt[t];if(e)return e;let n=E[t];if(le(n))return kt[t]=n.bind(E);const r=E.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){de&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(kt[t]=n.bind(E))}function oc(t){kt[t]=void 0}const ut="__sentry_xhr_v3__";function ic(t){const e="xhr";q(e,t),z(e,ac)}function ac(){if(!E.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let s=new Error;const o=A()*1e3,i=$(r[0])?r[0].toUpperCase():void 0,a=cc(r[1]);if(!i||a===void 0)return e.apply(n,r);n[ut]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[ut];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:A()*1e3,startTimestamp:o,xhr:n,virtualError:s};N("xhr",f),s=void 0,n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,m]=l,y=f[ut];return y&&$(d)&&$(m)&&(y.request_headers[d.toLowerCase()]=m),u.apply(f,l)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[ut];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:A()*1e3,xhr:n};return N("xhr",o),e.apply(n,r)}})}function cc(t){if($(t))return t;try{return t.toString()}catch{}}function uc(t){if(typeof Element>"u")return!1;try{return t instanceof Element}catch{return!1}}const g=_;let me=0;const Rn=[];function xr(t){if(me>0)return!0;const e=t?Rn.findIndex(n=>fc(n,t)):-1;return e===-1?!1:(Rn.splice(e,1),!0)}function fc(t,e){return t.msg===e.msg&&t.url===e.url&&t.line===e.line&&t.column===e.column}function lc(){me++,setTimeout(()=>{me--})}function rt(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const s=t.__sentry_wrapped__;return typeof s=="function"?s:t}if(Ie(t))return t}catch{return t}const r=function(...s){_._sentryWrappedDepth=(_._sentryWrappedDepth||0)+1;try{const o=s.map(i=>rt(i,e));return t.apply(this,o)}catch(o){throw lc(),Ls(i=>{i.addEventProcessor(a=>(e.mechanism&&(Qt(a,void 0),J(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),pi(o)}),o}finally{_._sentryWrappedDepth=(_._sentryWrappedDepth||0)-1}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}Bn(r,t),U(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Cn(t){const e=Ne(),{referrer:n}=g.document||{},{userAgent:r}=g.navigator||{};return{url:e,headers:{...n&&{Referer:nt(n,t)},...r&&{"User-Agent":r}}}}function De(t,e){const n=Ft(t,e),r={type:_c(e),value:gc(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dc(t,e,n,r){var c;const s=(c=b())==null?void 0:c.getOptions().normalizeDepth,o=vc(e),i={__serialized__:Gn(e,s)};if(o)return{exception:{values:[De(t,o)]},extra:i};const a={exception:{values:[{type:xt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ec(e,{isUnhandledRejection:r})}]},extra:i};if(n){const u=Ft(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Kt(t,e){return{exception:{values:[De(t,e)]}}}function Ft(t,e){const n=e.stacktrace||e.stack||"",r=hc(e),s=mc(e);try{return t(n,r,s)}catch{}return[]}const pc=/Minified React error #\d+;/i;function hc(t){return t&&pc.test(t.message)?1:0}function mc(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Lr(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function _c(t){const e=t==null?void 0:t.name;return!e&&Lr(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function gc(t){const e=t==null?void 0:t.message;return Lr(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?En(e.error):En(t):"No error message"}function yc(t,e,n,r){const s=Ae(t,e,(n==null?void 0:n.syntheticException)||void 0,r);return J(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),St(s)}function Sc(t,e,n="info",r,s){const o=_e(t,e,(r==null?void 0:r.syntheticException)||void 0,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),St(o)}function Ae(t,e,n,r,s){var a,c;let o;if(jn(e)&&e.error)return Kt(t,e.error);if(je(e)||Xr(e)){const u=e;if("stack"in e){o=Kt(t,e);const f=(c=(a=o.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=Ft(t,n);l.length&&(f.stacktrace={frames:l},J(o,{synthetic:!0}))}}else{const f=u.name||(je(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;o=_e(t,l,n,r),Qt(o,l)}return o}if(D(e))return Kt(t,e);if(ht(e)||xt(e))return o=dc(t,e,n,s),J(o,{synthetic:!0}),o;const i=String(e);return o=_e(t,i,n,r),Qt(o,i),J(o,{synthetic:!0}),o}function _e(t,e,n,r){const s={};if(r&&n){const o=Ft(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),J(s,{synthetic:!0})}if(be(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Ec(t,{isUnhandledRejection:e}){const n=Qr(t),r=e?"promise rejection":"exception";return jn(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:xt(t)?`Event \`${bc(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bc(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function vc(t){return Object.values(t).find(D)}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Pr(t){const{tunnel:e,dsn:n,transportOptions:r}=t;if(!e)return{tunnel:e,transportOptions:r};if(typeof e=="string")return{tunnel:e,transportOptions:Ic(e)?Nn(r):r};const s=e===!0?{}:e,o=n&&ke(n),i=s.path??(o&&Ki(o));if(!i)return{tunnel:void 0,transportOptions:r};const a=`${Vi(s.basePath)}${i}${s.trailingSlash?"/":""}`;return Et&&p.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Nn(r)}}function Nn(t){return{...t,headers:{"Content-Type":"application/x-sentry-envelope",...t==null?void 0:t.headers}}}function Ic(t){var n,r;const e=qi(t,(n=g.location)==null?void 0:n.href);return e?Gi(e)||e.origin===((r=g.location)==null?void 0:r.origin):!1}var Tc=class extends Li{constructor(t){var a;const e=wc({...t,...Pr(t)}),n=g.SENTRY_SDK_SOURCE||zo();Zi(e,"browser",["browser"],n),super(e),e.routeProvider&&Ya(e.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=e._metadata)!=null&&a.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options,o=()=>{A()},i=[[g.document,"visibilitychange",()=>{o(),g.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[g.document,"freeze",o],[g.document,"resume",o],[g,"pagehide",o],[g,"pageshow",o]];i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",Xi)}eventFromException(t,e){return yc(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Sc(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function wc(t){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t,release:t.release??kc()}}function kc(){var t;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Oc()??((t=g.SENTRY_RELEASE)==null?void 0:t.id)}function Oc(){var t,e,n;return((n=(e=(t=g.document)==null?void 0:t.querySelector)==null?void 0:e.call(t,`meta[name="${ta}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Rc=40;function Cc(t,e=sc("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw oc("fetch"),c}finally{n-=i,r--}}return wi(t,s,Ce(t.bufferSize||Rc))}const Nc=30,Dc=50;function ge(t,e,n,r){const s={filename:t,function:e===""?Q:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ac=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pc=/at (.+?) ?\(data:(.+?),/,$c=t=>{var s;const e=t.match(Pc);if(e)return{filename:``,function:e[1]};const n=Ac.exec(t);if(n){const[,o,i,a]=n;return ge(o,Q,+i,+a)}const r=xc.exec(t);if(r){if(((s=r[2])==null?void 0:s.indexOf("eval"))===0){const a=Lc.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=$r(r[1]||Q,r[2]);return ge(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mc=[Nc,$c],Fc=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Uc=t=>{const e=Fc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=jc.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||Q;return[r,n]=$r(r,n),ge(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Bc=[Dc,Uc],Hc=[Mc,Bc],Wc=Mn(...Hc),$r=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Q,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},It=1024,Gc="Breadcrumbs",qc=(t={})=>{const e={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Gc,setup(n){e.dom&&Xa(Kc(n,e.dom)),e.xhr&&ic(Vc(n)),e.fetch&&Ma(Xc(n)),e.history&&Ar(Jc(n)),e.sentry&&n.on("beforeSendEvent",Yc(n))}}},zc=C(qc);function Yc(t){return function(n){b()===t&&G({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:W(n)},{event:n})}}function Kc(t,e){return function(r){if(b()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>It&&(Et&&p.warn(`\`dom.maxStringLength\` cannot exceed ${It}, but a value of ${a} was configured. Sentry will use ${It} instead.`),a=It),typeof i=="string"&&(i=[i]);try{const u=r.event,f=Qc(u)?u.target:u;s=Nr(f,{keyAttrs:i,maxStringLength:a}),o=za(f)}catch{s=""}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),G(c,{event:r.event,name:r.name,global:r.global})}}function Vc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ut];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:ye(a,t),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d={category:"xhr",data:f,type:"http",level:Cr(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),G(d,l)}}function Xc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:{...n.fetchData,url:ye(n.fetchData.url,t)},level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),G(i,o)}else{const o=n.response,i={...n.fetchData,url:ye(n.fetchData.url,t),status_code:o==null?void 0:o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:Cr(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),G(c,a)}}}function Jc(t){return function(n){if(b()!==t)return;let r=n.from,s=n.to;const o=qt(g.location.href);let i=r?qt(r):void 0;const a=qt(s);i!=null&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),G({category:"navigation",data:{from:nt(r),to:nt(s)}})}}function ye(t,e){var r;const n=t===""?(r=g.location)==null?void 0:r.href:void 0;return nt(n?n.split("#")[0]??"":t,e)}function Qc(t){return!!t&&!!t.target}const Zc="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),tu="BrowserApiErrors",eu=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:tu,setupOnce(){e.setTimeout&&k(g,"setTimeout",Dn),e.setInterval&&k(g,"setInterval",Dn),e.requestAnimationFrame&&k(g,"requestAnimationFrame",ru),e.XMLHttpRequest&&"XMLHttpRequest"in g&&k(XMLHttpRequest.prototype,"send",su);const n=e.eventTarget;n&&(Array.isArray(n)?n:Zc).forEach(r=>ou(r,e))}}},nu=C(eu);function Dn(t){return function(...e){const n=e[0];return e[0]=rt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${j(t)}`}}),t.apply(this,e)}}function ru(t){return function(e){return t.apply(this,[rt(e,{mechanism:{data:{handler:j(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function su(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&k(n,r,function(s){const o={mechanism:{data:{handler:j(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},i=Ie(s);return i&&(o.mechanism.data.handler=j(i)),rt(s,o)})}),t.apply(this,e)}}function ou(t,e){var r,s;const n=(r=g[t])==null?void 0:r.prototype;(s=n==null?void 0:n.hasOwnProperty)!=null&&s.call(n,"addEventListener")&&(k(n,"addEventListener",function(o){return function(i,a,c){try{iu(a)&&(a.handleEvent=rt(a.handleEvent,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&au(this,i,a),o.apply(this,[i,rt(a,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),k(n,"removeEventListener",function(o){return function(i,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&o.call(this,i,u,c)}}catch{}return o.call(this,i,a,c)}}))}function iu(t){return typeof t.handleEvent=="function"}function au(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const cu=C((t={})=>{const e=t.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof g.document>"u"){Et&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ln({ignoreDuration:!0});let n=!1;qa(()=>{n||(Gt(),n=!0)});const r=K();let s=r.getUser();r.addScopeListener(o=>{const i=o.getUser();((s==null?void 0:s.id)!==(i==null?void 0:i.id)||(s==null?void 0:s.ip_address)!==(i==null?void 0:i.ip_address))&&(s=i,n&&Gt())}),e==="route"&&Ar(({from:o,to:i})=>{o!==i&&(ln({ignoreDuration:!0}),Gt(),n=!0)})}}}),uu="CultureContext",fu=()=>({name:uu,preprocessEvent(t){var n;const e=An();e&&(t.contexts={...t.contexts,culture:{...e,...(n=t.contexts)==null?void 0:n.culture}})},processSegmentSpan(t){const e=An();e&&fr(t,{[Ms]:e.locale,[Fs]:e.timezone,[$s]:e.calendar})}}),lu=C(fu);function An(){try{const t=g.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const du="GlobalHandlers",pu=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:du,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(mu(n),xn("onerror")),e.onunhandledrejection&&(_u(n),xn("onunhandledrejection"))}}},hu=C(pu);function mu(t){zr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr(e))return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Su(Ae(n,c||s,void 0,r,!1),o,i,a);u.level="error",yr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _u(t){Kr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr())return;const s=gu(e),o=it(s)?yu(s):Ae(n,s,void 0,r,!0);o.level="error",yr(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function gu(t){if(it(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function yu(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Su(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Eu(e)??Ne(),function:Q,in_app:!0}),t}function xn(t){Et&&p.log(`Global Handler attached: ${t}`)}function Mr(){var t;return((t=b())==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Eu(t){if(!(!$(t)||t.length===0))return t.startsWith("data:")?`<${zi(t,!1)}>`:t}const bu=C(()=>({name:"HttpContext",preprocessEvent(t,e,n){var c;if(!g.navigator&&!g.location&&!g.document)return;const{url:r,headers:s}=Cn(n),o=n.getDataCollectionOptions().httpHeaders.request,i=Object.entries(((c=t.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in s)),a={...se(s,o),...Object.fromEntries(i)};t.request={url:nt(r,n),...t.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(t,e){var a;if(!g.navigator&&!g.location&&!g.document)return;const n=Cn(e),r=se(n.headers,e.getDataCollectionOptions().httpHeaders.request),s=r.Referer,{hostname:o,protocol:i}=g.location||{};fr(t,{[qs]:r["User-Agent"],[Bs]:i==="file:"||o==="localhost"||o==="127.0.0.1"||o==="[::1]"||!!(o!=null&&o.endsWith(".localhost")),...t.is_segment&&{[Gs]:((a=t.attributes)==null?void 0:a[tr])!=="http.client"?nt(n.url):void 0,[`${Us}.referer`]:s?[s]:void 0}})}})),vu="cause",Iu=5,Tu="LinkedErrors",wu=(t={})=>{const e=t.limit||Iu,n=t.key||vu;return{name:Tu,preprocessEvent(r,s,o){const i=o.getOptions();ma(De,i.stackParser,n,e,r,s)}}},ku=C(wu),Ou=/^HTML(\w*)Element$/;function Ru(t){if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uc(t)){const e=Cu(t);if(Ou.test(e))return`[HTMLElement: ${Nr(t)}]`}}function Cu(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function Nu(){return Du()?(Et&&B(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Du(){var n,r;if(typeof g.window>"u")return!1;const t=g;if(t.nw||!((r=(n=t.chrome||t.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const e=Ne();return!(g===g.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}function Au(t){return[aa(),sa(),La(),nu(),zc(),Na(),hu(),ku(),wa(),bu(),lu(),cu()]}function xu(t={}){const e=Qi(t),n=!e.skipBrowserExtensionCheck&&Nu();let r=e.defaultIntegrations==null?Au():e.defaultIntegrations;const s=Io({integrations:e.integrations,defaultIntegrations:r}),o={...e,...Pr(e),enabled:n?!1:e.enabled,stackParser:Gr(e.stackParser||Wc),integrations:s,transport:e.transport||Cc};return rs(Ru),$i(Tc,o)}xu({dsn:"https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3",environment:"production",release:"3b288c2578a660059a2ce03dce5502547cef4f45",sendDefaultPii:!1}); diff --git a/web/themes/custom/leshed/assets/dist/titles.js b/web/themes/custom/leshed/assets/dist/titles.js index f09e33f..a46e7d6 100644 --- a/web/themes/custom/leshed/assets/dist/titles.js +++ b/web/themes/custom/leshed/assets/dist/titles.js @@ -1 +1 @@ -var B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var ot={exports:{}};(function(l,m){(function(r,d){l.exports=d()})(B,function(){var r=document,d=r.createTextNode.bind(r);function f(t,e,n){t.style.setProperty(e,n)}function w(t,e){return t.appendChild(e)}function p(t,e,n,u){var c=r.createElement("span");return e&&(c.className=e),n&&(!u&&c.setAttribute("data-"+e,n),c.textContent=n),t&&w(t,c)||c}function S(t,e){return t.getAttribute("data-"+e)}function E(t,e){return!t||t.length==0?[]:t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(e||r).querySelectorAll(t))}function A(t){for(var e=[];t--;)e[t]=[];return e}function _(t,e){t&&t.some(e)}function U(t){return function(e){return t[e]}}function K(t,e,n){var u="--"+e,c=u+"-index";_(n,function(g,v){Array.isArray(g)?_(g,function(T){f(T,c,v)}):f(g,c,v)}),f(t,u+"-total",n.length)}var D={};function W(t,e,n){var u=n.indexOf(t);if(u==-1){n.unshift(t);var c=D[t];if(!c)throw new Error("plugin not loaded: "+t);_(c.depends,function(v){W(v,t,n)})}else{var g=n.indexOf(e);n.splice(u,1),n.splice(g,0,t)}return n}function H(t,e,n,u){return{by:t,depends:e,key:n,split:u}}function Q(t){return W(t,0,[]).map(U(D))}function L(t){D[t.by]=t}function k(t,e,n,u,c){t.normalize();var g=[],v=document.createDocumentFragment();u&&g.push(t.previousSibling);var T=[];return E(t.childNodes).some(function(b){if(b.tagName&&!b.hasChildNodes()){T.push(b);return}if(b.childNodes&&b.childNodes.length){T.push(b),g.push.apply(g,k(b,e,n,u,c));return}var x=b.wholeText||"",q=x.trim();if(q.length){x[0]===" "&&T.push(d(" "));var ut=n===""&&typeof Intl.Segmenter=="function";_(ut?Array.from(new Intl.Segmenter().segment(q)).map(function(et){return et.segment}):q.split(n),function(et,ct){ct&&c&&T.push(p(v,"whitespace"," ",c));var nt=p(v,e,et);g.push(nt),T.push(nt)}),x[x.length-1]===" "&&T.push(d(" "))}}),_(T,function(b){w(v,b)}),t.innerHTML="",w(t,v),g}var P=0;function Z(t,e){for(var n in e)t[n]=e[n];return t}var F="words",V=H(F,P,"word",function(t){return k(t,"word",/\s+/,0,1)}),Y="chars",O=H(Y,[F],"char",function(t,e,n){var u=[];return _(n[F],function(c,g){u.push.apply(u,k(c,"char","",e.whitespace&&g))}),u});function G(t){t=t||{};var e=t.key;return E(t.target||"[data-splitting]").map(function(n){var u=n["🍌"];if(!t.force&&u)return u;u=n["🍌"]={el:n};var c=t.by||S(n,"splitting");(!c||c=="true")&&(c=Y);var g=Q(c),v=Z({},t);return _(g,function(T){if(T.split){var b=T.by,x=(e?"-"+e:"")+T.key,q=T.split(n,v,u);x&&K(n,x,q),u[b]=q,n.classList.add(b)}}),n.classList.add("splitting"),u})}function I(t){t=t||{};var e=t.target=p();return e.innerHTML=t.content,G(t),e.outerHTML}G.html=I,G.add=L;function j(t,e,n){var u=E(e.matching||t.children,t),c={};return _(u,function(g){var v=Math.round(g[n]);(c[v]||(c[v]=[])).push(g)}),Object.keys(c).map(Number).sort($).map(U(c))}function $(t,e){return t-e}var tt=H("lines",[F],"line",function(t,e,n){return j(t,{matching:n[F]},"offsetTop")}),o=H("items",P,"item",function(t,e){return E(e.matching||t.children,t)}),s=H("rows",P,"row",function(t,e){return j(t,e,"offsetTop")}),i=H("cols",P,"col",function(t,e){return j(t,e,"offsetLeft")}),a=H("grid",["rows","cols"]),h="layout",y=H(h,P,P,function(t,e){var n=e.rows=+(e.rows||S(t,"rows")||1),u=e.columns=+(e.columns||S(t,"columns")||1);if(e.image=e.image||S(t,"image")||t.currentSrc||t.src,e.image){var c=E("img",t)[0];e.image=c&&(c.currentSrc||c.src)}e.image&&f(t,"background-image","url("+e.image+")");for(var g=n*u,v=[],T=p(P,"cell-grid");g--;){var b=p(T,"cell");p(b,"cell-inner"),v.push(b)}return w(t,T),v}),N=H("cellRows",[h],"row",function(t,e,n){var u=e.rows,c=A(u);return _(n[h],function(g,v,T){c[Math.floor(v/(T.length/u))].push(g)}),c}),M=H("cellColumns",[h],"col",function(t,e,n){var u=e.columns,c=A(u);return _(n[h],function(g,v){c[v%u].push(g)}),c}),C=H("cells",["cellRows","cellColumns"],"cell",function(t,e,n){return n[h]});return L(V),L(O),L(tt),L(o),L(s),L(i),L(a),L(y),L(N),L(M),L(C),G})})(ot);var ht=ot.exports;const mt=ft(ht);var at={exports:{}};(function(l){(function(m,r){l.exports?l.exports=r():m.createHyphenator=r()})(B,function(){function m(o){var s="",i="",a=0,h=o();return function(y){for(;a"&&(s(),o=!1):i[0]==="<"&&(!r(i[1])||i[1]==="/")&&(o=!0),o}}function f(o){var s=!1;return function(i,a){return s?!r(a[0])&&r(a[1])&&(i(),s=!1):!r(a[0])&&a[1]===o&&(s=!0),s}}function w(o,s){return function(){var i="",a="";function h(){i+=a,a=""}function y(N){return i="",a="",N}return function(N,M){a+=N;var C=o.reduce(function(t,e){return t||e(h,[N,M])},!1);if(!C&&(r(N)&&!r(M)&&h(),!r(N)&&r(M))){if(a.length>=s)return y([i,a]);h()}if(M==="")return(a.length1)for(var h=0,y=1;y-1;)h.push(a);return s[i.toLocaleLowerCase().replace(/\-/g,"")]=h,s},{})}function A(o){var s=0;function i(){return o[s++]}return i}function _(o){var s=0,i=o;function a(){if(i=o.slice(s++),!(i.length<3))return i}function h(){return s===2}return[a,h]}function U(o,y,i,a){for(var h=new Array(o.length+1),y=("."+y+".").split(""),N,M,C,t,e,n,u=-1,c,g,v,T,b=h.length;b--;)h[b]=0;for(c=_(y),g=c[0],v=c[1];N=g();)for(u++,v()&&u--,C=a,T=A(N);(M=T())&&(t=C[M])!==void 0;){switch(C={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":C=t[0],e=t[1];break;case"[object Object]":C=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=i[e];for(var x=0;x>0,e=I(s,Z,H),n=I(s,P,W,G),u=N+t;if(y[u]={},o[2]&&(y[u]=j(o[2],N),h=o[2]),n&&n.length&&(y[u]=O(y[u],$(n,N)),h=O(h,E(n))),a[u]=O({},y[u]),i&&!("Promise"in Y))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(c,g){g=g||{};var v=I(g,F,N),T=I(g,V,t)>>0,b=I(g,P,W,G),x=v+T;return!y[x]&&o[2]&&(y[x]=j(o[2],v),a[x]=O(a[x],y[x])),b&&b.length&&(y[x]=O(y[x],$(b,v)),h=O(h,E(b)),a[x]=O(a[x],y[x])),K(c,M,C,a[x],h,v,e,T,i)}}return tt})})(at);var dt=at.exports,z=dt,gt=function(l){return{hyphenate:z(l,{async:!0}),hyphenateHTML:z(l,{async:!0,html:!0}),hyphenateHTMLSync:z(l,{html:!0}),hyphenateSync:z(l),patterns:l}},lt={exports:{}};(function(l){(function(m,r){l.exports?l.exports=r:m.hyphenationPatternsFr=r})(B,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(lt);var pt=lt.exports,vt=gt(pt);const yt=".variable-title",R={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3,wghtStep:25};function X(l,m){return Math.floor(Math.random()*(m-l))+l}const wt=1.5,Tt=8;function bt(){const l=Array.from(document.querySelectorAll(yt)),m=window.innerHeight*wt,r=[],d=[];for(const f of l){const w=f.getBoundingClientRect();(w.bottom>=0&&w.top<=m?r:d).push(f)}r.forEach(st),J(r),xt(d,()=>{document.dispatchEvent(new CustomEvent("leshed:titles-ready"))}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>{J(l.filter(f=>f.classList.contains("is-ready")))})}function st(l){const m=mt({target:l,by:"chars"});for(const r of m[0].words){const d=Array.from(r.getElementsByClassName("char"));St(d),Nt(d),Ct(d)}l.classList.add("is-ready")}function xt(l,m){if(!l.length){m();return}const r=window.requestIdleCallback?f=>window.requestIdleCallback(f,{timeout:1e3}):f=>setTimeout(f,16),d=()=>{const f=performance.now()+Tt,w=[];for(;l.length&&performance.now()0&&r.setAttribute("data-overflow-lines",Math.ceil(S/f))}(!d.complete||!d.naturalWidth)&&!rt.has(d)&&(rt.add(d),d.addEventListener("load",()=>J([r]),{once:!0}))}}}function Et({min:l,max:m}){const r=R.wghtStep;return l+r*X(0,Math.floor((m-l)/r)+1)}function it(l,m,r=new Set){const d=new Set;for(let f=0;f{let E,A;return r.has(S)?(E=R.wghtBold,A=R.italicOnBold):d.has(S)?(E=R.wghtMedium,A=R.italicOnMedium):(E=R.wghtThin,A=R.italicOnThin),{char:p,wght:Et(E),ital:Math.random()p.ital)){const p=[...r,...d],S=p.length?p[X(0,p.length)]:X(0,m);f[S].ital=!0}let w=0;for(const p of f)p.ital?(w+=1,w>2&&(p.ital=!1,w=0)):w=0;for(const{char:p,wght:S,ital:E}of f)p.style.fontVariationSettings=`'wght' ${S}`,p.style.fontStyle=E?"italic":"normal",p.classList.toggle("italic",E),p.classList.toggle("normal",!E)}function Nt(l){if(l.length<5)return;const m="­",r=l.map(w=>w.textContent).join(""),d=vt.hyphenateSync(r);if(!d.includes(m))return;let f=0;for(const w of d)if(w===m){const p=l[f];f>0&&p&&p.parentNode&&p.parentNode.insertBefore(document.createTextNode(m),p)}else f++}function Ct(l){for(let m=0;m"&&(s(),a=!1):o[0]==="<"&&(!r(o[1])||o[1]==="/")&&(a=!0),a}}function h(a){var s=!1;return function(o,l){return s?!r(l[0])&&r(l[1])&&(o(),s=!1):!r(l[0])&&l[1]===a&&(s=!0),s}}function w(a,s){return function(){var o="",l="";function m(){o+=l,l=""}function y(N){return o="",l="",N}return function(N,H){l+=N;var C=a.reduce(function(t,e){return t||e(m,[N,H])},!1);if(!C&&(r(N)&&!r(H)&&m(),!r(N)&&r(H))){if(l.length>=s)return y([o,l]);m()}if(H==="")return(l.length1)for(var m=0,y=1;y-1;)m.push(l);return s[o.toLocaleLowerCase().replace(/\-/g,"")]=m,s},{})}function M(a){var s=0;function o(){return a[s++]}return o}function A(a){var s=0,o=a;function l(){if(o=a.slice(s++),!(o.length<3))return o}function m(){return s===2}return[l,m]}function U(a,y,o,l){for(var m=new Array(a.length+1),y=("."+y+".").split(""),N,H,C,t,e,n,u=-1,c,g,v,b,T=m.length;T--;)m[T]=0;for(c=A(y),g=c[0],v=c[1];N=g();)for(u++,v()&&u--,C=l,b=M(N);(H=b())&&(t=C[H])!==void 0;){switch(C={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":C=t[0],e=t[1];break;case"[object Object]":C=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=o[e];for(var x=0;x>0,e=P(s,Z,_),n=P(s,I,W,F),u=N+t;if(y[u]={},a[2]&&(y[u]=G(a[2],N),m=a[2]),n&&n.length&&(y[u]=O(y[u],$(n,N)),m=O(m,E(n))),l[u]=O({},y[u]),o&&!("Promise"in Y))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(c,g){g=g||{};var v=P(g,D,N),b=P(g,V,t)>>0,T=P(g,I,W,F),x=v+b;return!y[x]&&a[2]&&(y[x]=G(a[2],v),l[x]=O(l[x],y[x])),T&&T.length&&(y[x]=O(y[x],$(T,v)),m=O(m,E(T)),l[x]=O(l[x],y[x])),K(c,H,C,l[x],m,v,e,b,o)}}return tt})})(at);var dt=at.exports,z=dt,gt=function(i){return{hyphenate:z(i,{async:!0}),hyphenateHTML:z(i,{async:!0,html:!0}),hyphenateHTMLSync:z(i,{html:!0}),hyphenateSync:z(i),patterns:i}},lt={exports:{}};(function(i){(function(f,r){i.exports?i.exports=r:f.hyphenationPatternsFr=r})(B,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(lt);var pt=lt.exports,vt=gt(pt);const yt=".variable-title",R={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3,wghtStep:25};function X(i,f){return Math.floor(Math.random()*(f-i))+i}const wt=1.5,bt=8;function Tt(){const i=Array.from(document.querySelectorAll(yt)),f=window.innerHeight*wt,r=[],d=[];for(const h of i){const w=h.getBoundingClientRect();(w.bottom>=0&&w.top<=f?r:d).push(h)}r.forEach(st),J(r),xt(d,()=>{document.dispatchEvent(new CustomEvent("leshed:titles-ready"))}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>{J(i.filter(h=>h.classList.contains("is-ready")))})}function st(i){const f=mt({target:i,by:"chars"});for(const r of f[0].words){const d=Array.from(r.getElementsByClassName("char"));St(d),Nt(d),Ct(d)}i.classList.add("is-ready")}function xt(i,f){if(!i.length){f();return}const r=window.requestIdleCallback?h=>window.requestIdleCallback(h,{timeout:1e3}):h=>setTimeout(h,16),d=()=>{const h=performance.now()+bt,w=[];for(;i.length&&performance.now()0&&r.setAttribute("data-overflow-lines",Math.ceil(S/h))}(!d.complete||!d.naturalWidth)&&!rt.has(d)&&(rt.add(d),d.addEventListener("load",()=>J([r]),{once:!0}))}}}function Et({min:i,max:f}){const r=R.wghtStep;return i+r*X(0,Math.floor((f-i)/r)+1)}function it(i,f,r=new Set){const d=new Set;for(let h=0;h{let E,M;return r.has(S)?(E=R.wghtBold,M=R.italicOnBold):d.has(S)?(E=R.wghtMedium,M=R.italicOnMedium):(E=R.wghtThin,M=R.italicOnThin),{char:p,wght:Et(E),ital:Math.random()p.ital)){const p=[...r,...d],S=p.length?p[X(0,p.length)]:X(0,f);h[S].ital=!0}let w=0;for(const p of h)p.ital?(w+=1,w>2&&(p.ital=!1,w=0)):w=0;for(const{char:p,wght:S,ital:E}of h)p.style.fontVariationSettings=`'wght' ${S}`,p.style.fontStyle=E?"italic":"normal",p.classList.toggle("italic",E),p.classList.toggle("normal",!E)}function Nt(i){if(i.length<5)return;const f="­",r=i.map(w=>w.textContent).join(""),d=vt.hyphenateSync(r);if(!d.includes(f))return;let h=0;for(const w of d)if(w===f){const p=i[h];h>0&&p&&p.parentNode&&p.parentNode.insertBefore(document.createTextNode(f),p)}else h++}function Ct(i){for(let f=0;f avant main.js (librairie +// leshed/sentry) : les erreurs précoces sont capturées dès le premier script. +// La DSN est la clé PUBLIQUE du projet Glitchtip « leshed » (org figli) : +// embarquée dans le JS par design, elle n'est pas un secret. +import * as Sentry from '@sentry/browser'; + +Sentry.init({ + dsn: 'https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3', + environment: import.meta.env.MODE, + // Injectée au build par vite.config.js (SHA git du sous-module src) : sert à + // rattacher chaque erreur à la release dont les sourcemaps ont été uploadées. + release: import.meta.env.VITE_SENTRY_RELEASE, + sendDefaultPii: false, +}); diff --git a/web/themes/custom/leshed/leshed.libraries.yml b/web/themes/custom/leshed/leshed.libraries.yml index fe024e0..5602a9b 100644 --- a/web/themes/custom/leshed/leshed.libraries.yml +++ b/web/themes/custom/leshed/leshed.libraries.yml @@ -38,6 +38,24 @@ titles_hmr: attributes: type: module +# Glitchtip (Sentry front) : init au plus tôt, dans le head, avant main.js +# (voir assets/js/sentry.js). +sentry: + header: true + js: + assets/dist/sentry.js: + attributes: + type: module + defer: true + +sentry_hmr: + header: true + js: + https://localhost:5173/assets/js/sentry.js: + type: external + attributes: + type: module + vitehmr: js: https://localhost:5173/@vite/client: diff --git a/web/themes/custom/leshed/leshed.theme b/web/themes/custom/leshed/leshed.theme index 4bdd519..1f4b24c 100644 --- a/web/themes/custom/leshed/leshed.theme +++ b/web/themes/custom/leshed/leshed.theme @@ -11,6 +11,7 @@ function leshed_page_attachments_alter(&$page) { // $page['#attached']['library'][] = 'http://localhost:5173/@vite/client'; // $attachments['#attached']['html_head'][] = [['src' => 'http://localhost:5173/assets/js/main.js', 'type' => 'module'],'vite-main']; // $page['#attached']['library'][] = 'http://localhost:5173/assets/js/main.js'; + $page['#attached']['library'][] = 'leshed/sentry_hmr'; $page['#attached']['library'][] = 'leshed/vitehmr'; $page['#attached']['library'][] = 'leshed/titles_hmr'; // CSS compilée en render-blocking : sans elle, la page se peint @@ -20,6 +21,7 @@ function leshed_page_attachments_alter(&$page) { // dessus sur les égalités. $page['#attached']['library'][] = 'leshed/base_css'; }else{ + $page['#attached']['library'][] = 'leshed/sentry'; $page['#attached']['library'][] = 'leshed/global'; $page['#attached']['library'][] = 'leshed/titles'; diff --git a/web/themes/custom/leshed/package-lock.json b/web/themes/custom/leshed/package-lock.json index eb179a1..32c19e5 100644 --- a/web/themes/custom/leshed/package-lock.json +++ b/web/themes/custom/leshed/package-lock.json @@ -8,6 +8,7 @@ "name": "leshed", "version": "0.0.0", "dependencies": { + "@sentry/browser": "^11.20.0", "axios": "^1.7.2", "fslightbox": "^3.7.5", "gsap": "^3.14.1", @@ -17,6 +18,7 @@ "vue": "^3.4.29" }, "devDependencies": { + "@sentry/vite-plugin": "^11.20.0", "@vitejs/plugin-vue": "^5.0.5", "concurrently": "^10.0.5", "sass": "^1.77.8", @@ -460,12 +462,376 @@ "node": ">=12" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.5", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "license": "MIT" }, + "node_modules/@oxc-parser/binding-android-arm-eabi": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.152.0.tgz", + "integrity": "sha512-393VtirINkae4XHBTkq/yQxhOwEr4V+r0et37P2fp+sYZSdYgZTRDPo5Um8vBh0QjMZ+RmaMy4PP0qwr4cTMwA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-android-arm64": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.152.0.tgz", + "integrity": "sha512-iYFcExATJNZ0rZj0o02THbD1Nc9jAW0nVgIQPee6ejbSASpbZXlIMw8jxtpzaG14JQTWwGSZ6U5dEtRJXE6V3Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-darwin-arm64": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.152.0.tgz", + "integrity": "sha512-fnU+DfUzi5/rFy0LzmipYRz06PAUUkOS8kCJQ3Eg6oqlunC1XZXoffFqxmdL51RmcbYtUG3P8DVG1U5fckoa2A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-darwin-x64": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.152.0.tgz", + "integrity": "sha512-Y3U2okryWTs7hDld6UhjJwLNf8/do+x4g4C+1U5SiGwrTLwbO83WJYJA8+l9iFSilWBgnfpd/+U76tfeNxUHzA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-freebsd-x64": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.152.0.tgz", + "integrity": "sha512-XkhkRrrPffEw+ZLv/d/5pEni0buxinm/E/N6fLbJCunD1DBbeCTtVP23ESV+4CWCWdSz397asks1ViGslpmWiQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm-gnueabihf": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.152.0.tgz", + "integrity": "sha512-MLzsRRbdfmdzo6JEhbC1yKU9ItfvM8tEf18HM32jCiNYZEz6J3bRBRl3cTkKR0vBdrk9ZVlcARXtwHccs+epDA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm-musleabihf": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.152.0.tgz", + "integrity": "sha512-HHerTEJz7Iy10Ji6BGsk4gqG6PU0UzFuBu91jIEOX89FnrI5ECWSEr7BLpkYQhp7U0QFtMnBhNfQKI0hYZK78w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-gnu": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.152.0.tgz", + "integrity": "sha512-9Bb8GyzZ2uSLzRDZ27usaKokr07mxiBe2dDF5b6bd2janmaJTT1gL51UfP7AU30yFiXrJvcRyFKREAgKwZYs0w==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-musl": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.152.0.tgz", + "integrity": "sha512-om7iDMUroI74A/lfRRWY9/Ev3VWrVsrUZ4tyvyh8raBey/sdcfyAD7tYWc+iykAiotnmftyKTpUKFr1QnaBrAQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-ppc64-gnu": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.152.0.tgz", + "integrity": "sha512-Lf1OL2lMTqwDMFC6jnRb30B+WYHKV0XT+bPHcFM6xHtNVwxpobiTzUIvKH6a0LWpvfwyru8Yu6zCGHqqFHH+gg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-riscv64-gnu": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.152.0.tgz", + "integrity": "sha512-BYWSMQK+YJ9ZILStPcmmiSVq8KEG9Qdq/c4BHPC3rUEq/fEDCVjUIwdj5ZzjgZ9P9is9PKu0tcAXzq1ZXg4urQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-riscv64-musl": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.152.0.tgz", + "integrity": "sha512-d2LqHNNNqdH185sRK5dPKWZu201JrNu9/CRFuVEuT+ht7n/QaVblEMWT9MALQPrDWYvhG10P+NSKJFquDWZ09w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-s390x-gnu": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.152.0.tgz", + "integrity": "sha512-8gBeHt5rA/8+pKhHl+zLggfa3L/V/L2at96p7ty6pBE7id6lFO19nFUc15u2PcjC4OYeYK465MKy1fhhbpFIGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-gnu": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.152.0.tgz", + "integrity": "sha512-ltgrSF6L+yPTVsIdaAyqKq3zTqzj/1VlNbxWZuxAe8flR3sWdyNsKvdXukoO8/ucJbLickhmieRBge+o/e8Ugw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-musl": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.152.0.tgz", + "integrity": "sha512-LcMp6BvrBnewSfdkLHoSqidhoAq4syKOTBV5TYHWd+2VnGkfD/nPRRVIzTBt/Lkbt7pfOFDGtkiTntFS0p6sQQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-openharmony-arm64": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.152.0.tgz", + "integrity": "sha512-jbhoMCslVxzRCRNQ8TSHxjYdSKRvk8O6ciLVDkahJvmyHDzBqba/bMQHM6ULKj/rgHNNbSzlIiakdx8SEfkJzA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-arm64-msvc": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.152.0.tgz", + "integrity": "sha512-JZYVlhv36mr/nertnRB7vchJECOBb1Lz6lltalILsB+o9M/is+H6BEDRLQKdqA4JKs6NjJszo46+iM5sfwj6jQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-ia32-msvc": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.152.0.tgz", + "integrity": "sha512-1X9oganvVsunRH0lH10UU05N+H9atpX6WsOybByUjwnfcd3h/0tYwvuv16XuHglrIUOnxV2TodbLVEwwafd64g==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-parser/binding-win32-x64-msvc": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.152.0.tgz", + "integrity": "sha512-sw0M80/dn9rcpu+Rqqph/C+MjvDDce6MlXmFjsNQtPEymha0eJy3ml6+foSUTqFfpDIDyHZZ4eoJ43IoMe8bJw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.152.0.tgz", + "integrity": "sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, "node_modules/@parcel/watcher": { "version": "2.5.6", "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz", @@ -1183,6 +1549,139 @@ "win32" ] }, + "node_modules/@sentry/browser": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-11.20.0.tgz", + "integrity": "sha512-+1cHZo3HhUKNnCM3f8Tz+rzRPBe9Yb+fMeAUE53PAg3rea6H0H32kUPz4VXibbVyu85w83uny/x4wRl3mcmSxw==", + "license": "MIT", + "dependencies": { + "@sentry/browser-utils": "11.20.0", + "@sentry/conventions": "^0.36.0", + "@sentry/core": "11.20.0", + "@sentry/feedback": "11.20.0", + "@sentry/replay": "11.20.0", + "@sentry/replay-canvas": "11.20.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/browser-utils": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/browser-utils/-/browser-utils-11.20.0.tgz", + "integrity": "sha512-ALt8CFcORiVF+HnYq5lD6an++DMaCpzIe0PzwbnIbRqLw83JdQOJP1LetYNlXPsGArHxa/QY5CVHqT/24PP7EA==", + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.36.0", + "@sentry/core": "11.20.0", + "web-vitals": "^6.2.3" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/bundler-plugins": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/bundler-plugins/-/bundler-plugins-11.20.0.tgz", + "integrity": "sha512-bJZ9ngEx9QTst8OlpxMDRLgkLZnUc45/qZ8OwaYfeOL1E2uCtrN6oWKVoUM7307Gm54KYeRoQ1HlZhDxAyi3SQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/core": "11.20.0", + "dotenv": "^17.4.2", + "glob": "^14.0.3", + "magic-string": "~0.30.8 || ^1.0.0", + "oxc-parser": "^0.152.0", + "sentry": "^0.50.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + }, + "peerDependencies": { + "rollup": ">=3.2.0", + "webpack": ">=5.1.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/@sentry/conventions": { + "version": "0.36.0", + "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.36.0.tgz", + "integrity": "sha512-FedIjtJSiTZa3VARAds2ok7Q9Xt2LjrZJ1SeaxMvGhRgMw4V+eOaECGa/JbJWe30tw6yehE1W7T4HmgK5XJRTQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@sentry/core": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-11.20.0.tgz", + "integrity": "sha512-ay0RpDFVsFzaRBeX8mGDygWkaNVoQbepz+pYu7t3aBP/E6+wFsQnP56bQjAonlHfPR/5zvgYCKUphLznnFiY+Q==", + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.36.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/feedback": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/feedback/-/feedback-11.20.0.tgz", + "integrity": "sha512-EyMxgWWGI8Q4FdXbiY0cpdxlNMmjMX5UXMFJzGT/EvwRyC4dzyd2fugkVeuOcUGFM4PSIMcw21sMadHj8a3RMQ==", + "license": "MIT", + "dependencies": { + "@sentry/core": "11.20.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/replay": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-11.20.0.tgz", + "integrity": "sha512-jvIFcLrU/ZBnaFz13xoKBJUtBjVrjWhfND5uBKWejTPEqcnVWt0KvjpoPfqNQtHjCH5jnChqiXawplDXAwp/HQ==", + "license": "MIT", + "dependencies": { + "@sentry/browser-utils": "11.20.0", + "@sentry/core": "11.20.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/replay-canvas": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/replay-canvas/-/replay-canvas-11.20.0.tgz", + "integrity": "sha512-iViVT8oogsPcLf8npmyaqQgsE+xFTHC8YXdosZXUTJWgfcJqTe90x9r6K9bR0Ye3H2I9pHUi8HDorL1dEL4SMA==", + "license": "MIT", + "dependencies": { + "@sentry/core": "11.20.0", + "@sentry/replay": "11.20.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/vite-plugin": { + "version": "11.20.0", + "resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-11.20.0.tgz", + "integrity": "sha512-y85kqz/7pC1nz6idlVbz13WacmKeIANPT+ZZgdTcyIkkisiURccN78G6jVqEuj+TR99zlz1SySbZ8phGzRLC8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sentry/bundler-plugins": "11.20.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, "node_modules/@types/estree": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", @@ -1360,6 +1859,29 @@ "proxy-from-env": "^2.1.0" } }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/brace-expansion": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.2.tgz", + "integrity": "sha512-ELhY3JEerIBbhgW+rh0/8glkZAaMqn1x3BAvp3yTULSEGozMK/5PT6WTdBgsdvJqwwmv7MAQNOydfYbvK1Vgfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -1497,6 +2019,19 @@ "node": ">=8" } }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -1756,6 +2291,24 @@ "node": ">= 0.4" } }, + "node_modules/glob": { + "version": "14.0.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-14.0.7.tgz", + "integrity": "sha512-ob8P0VbyEjcLG2ycNYmzYhZj65kkcN5b7tt5moGhTq3rkXtuU8MB+i0GIzPtLnSHVF2DkK4M+nQRojDvsOGVJw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^11.0.5", + "minipass": "^7.1.3", + "path-scurry": "^3.0.0" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -1895,6 +2448,16 @@ } } }, + "node_modules/lru-cache": { + "version": "11.5.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.4.tgz", + "integrity": "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -1934,6 +2497,33 @@ "node": ">= 0.6" } }, + "node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -1966,6 +2556,60 @@ "license": "MIT", "optional": true }, + "node_modules/oxc-parser": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.152.0.tgz", + "integrity": "sha512-ZztsZgaCWmPeKYMdoTT5e0oV/oxD1NeLWNR3kAtr/G707cUPYaaozRlVDHLCGnszHJRszN9mJwmPNpqgwloC0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "^0.152.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + }, + "optionalDependencies": { + "@oxc-parser/binding-android-arm-eabi": "0.152.0", + "@oxc-parser/binding-android-arm64": "0.152.0", + "@oxc-parser/binding-darwin-arm64": "0.152.0", + "@oxc-parser/binding-darwin-x64": "0.152.0", + "@oxc-parser/binding-freebsd-x64": "0.152.0", + "@oxc-parser/binding-linux-arm-gnueabihf": "0.152.0", + "@oxc-parser/binding-linux-arm-musleabihf": "0.152.0", + "@oxc-parser/binding-linux-arm64-gnu": "0.152.0", + "@oxc-parser/binding-linux-arm64-musl": "0.152.0", + "@oxc-parser/binding-linux-ppc64-gnu": "0.152.0", + "@oxc-parser/binding-linux-riscv64-gnu": "0.152.0", + "@oxc-parser/binding-linux-riscv64-musl": "0.152.0", + "@oxc-parser/binding-linux-s390x-gnu": "0.152.0", + "@oxc-parser/binding-linux-x64-gnu": "0.152.0", + "@oxc-parser/binding-linux-x64-musl": "0.152.0", + "@oxc-parser/binding-openharmony-arm64": "0.152.0", + "@oxc-parser/binding-win32-arm64-msvc": "0.152.0", + "@oxc-parser/binding-win32-ia32-msvc": "0.152.0", + "@oxc-parser/binding-win32-x64-msvc": "0.152.0" + } + }, + "node_modules/path-scurry": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.3.tgz", + "integrity": "sha512-Ie3c3F+7WJOUCr0r8V8uEunY5Sj4PGFDoBZvFw7JmHJs/+H5GZK+GsIM8tHMcZy7c27Zj+U1NOcVzqlC7tBJpg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -2113,6 +2757,19 @@ "@parcel/watcher": "^2.4.1" } }, + "node_modules/sentry": { + "version": "0.50.0", + "resolved": "https://registry.npmjs.org/sentry/-/sentry-0.50.0.tgz", + "integrity": "sha512-2BCdoK4xO3mN4c0QTXaMtJBJ9rjL5v1VawaV7Wd605hVWVrpZTipLbjGHEFavS8IliI0W68TGi8CuScbHALPjA==", + "dev": true, + "license": "FSL-1.1-Apache-2.0", + "bin": { + "sentry": "dist/bin.cjs" + }, + "engines": { + "node": ">=20.0" + } + }, "node_modules/shell-quote": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.9.0.tgz", @@ -2286,6 +2943,12 @@ } } }, + "node_modules/web-vitals": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-6.2.3.tgz", + "integrity": "sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==", + "license": "Apache-2.0" + }, "node_modules/wrap-ansi": { "version": "9.0.2", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", diff --git a/web/themes/custom/leshed/package.json b/web/themes/custom/leshed/package.json index 3edc217..eb44286 100644 --- a/web/themes/custom/leshed/package.json +++ b/web/themes/custom/leshed/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@sentry/browser": "^11.20.0", "axios": "^1.7.2", "fslightbox": "^3.7.5", "gsap": "^3.14.1", @@ -19,6 +20,7 @@ "vue": "^3.4.29" }, "devDependencies": { + "@sentry/vite-plugin": "^11.20.0", "@vitejs/plugin-vue": "^5.0.5", "concurrently": "^10.0.5", "sass": "^1.77.8", diff --git a/web/themes/custom/leshed/vite.config.js b/web/themes/custom/leshed/vite.config.js index 8f86ec4..97f7ce6 100644 --- a/web/themes/custom/leshed/vite.config.js +++ b/web/themes/custom/leshed/vite.config.js @@ -1,7 +1,9 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import { sentryVitePlugin } from '@sentry/vite-plugin' import { fileURLToPath, URL } from 'node:url' import { readFileSync } from 'node:fs' +import { execSync } from 'node:child_process' // Certificat mkcert wildcard du reverse-proxy (SAN: localhost, 127.0.0.1, // *.localhost, ... trusté par la CA locale) : permet de servir le dev server @@ -10,8 +12,48 @@ const TLS_CERT = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wi const TLS_KEY = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost-key.pem', import.meta.url)) // https://vitejs.dev/config/ +// Upload des sourcemaps vers Glitchtip à la fin du build (prod uniquement — +// inactif sur le dev server). Le token n'est JAMAIS écrit en dur dans ce +// fichier : il est lu depuis l'env (GLITCHTIP_TOKEN) ; sans token, le plugin +// est désactivé et le build reste possible partout (CI comprise). +// Les debug IDs injectés dans les bundles sont lus automatiquement par le +// SDK browser (v8+) : pas besoin de configurer de release côté client. +// Release = SHA git du sous-module src (le build tourne à la racine du thème, +// dans ce repo git) : chaque commit buildé crée une release Glitchtip à laquelle +// les sourcemaps sont attachées, et le SDK client envoie la même valeur. +const gitSha = (() => { + try { + return execSync('git rev-parse HEAD').toString().trim() + } catch { + return 'unknown' + } +})() + +const glitchtipSourcemaps = + process.env.GLITCHTIP_TOKEN && process.env.APP_ENV !== 'development' + ? sentryVitePlugin({ + url: 'https://glitchtip.figli.io/', + org: 'figli', + project: 'leshed', + authToken: process.env.GLITCHTIP_TOKEN, + release: { name: gitSha, inject: false }, + sourcemaps: { + assets: 'assets/dist/**', + ignore: ['node_modules/**'], + // .map supprimés de assets/dist après l'upload : ils embarquent le + // code source (sourcesContent) et ne doivent pas être servis + // publiquement par Drupal. + delete: true, + }, + }) + : null + export default defineConfig({ - plugins: [vue()], + plugins: [vue(), ...(glitchtipSourcemaps ? [glitchtipSourcemaps] : [])], + define: { + // Release exposée au bundle (lu dans assets/js/sentry.js). + 'import.meta.env.VITE_SENTRY_RELEASE': JSON.stringify(gitSha), + }, esbuild: { // Marque console.log comme "pure" : esbuild le retire du build minifié // (console.warn/error sont conservés). Sans effet en dev server. @@ -69,11 +111,18 @@ export default defineConfig({ }, build: { outDir: 'assets/dist', + // Sourcemaps pour Glitchtip (@sentry/vite-plugin les upload au build puis + // les supprime de dist) : mode "hidden" = .map générés SANS le commentaire + // sourceMappingURL, donc jamais servis au navigateur (le code source + // embarqué dans sourcesContent ne fuite pas publiquement). + sourcemap: 'hidden', rollupOptions: { // titles.js est chargé à part dans le (librairie leshed/titles). input: { main: 'assets/js/main.js', titles: 'assets/js/titles.js', + // Chargé à part dans le avant main.js (librairie leshed/sentry). + sentry: 'assets/js/sentry.js', }, output: { entryFileNames: '[name].js',