diff --git a/.github/workflows/changelog-summary-prod.yml b/.github/workflows/changelog-summary-prod.yml index 8ebf8fe12d..18974ae7cc 100644 --- a/.github/workflows/changelog-summary-prod.yml +++ b/.github/workflows/changelog-summary-prod.yml @@ -25,7 +25,7 @@ jobs: egress-policy: audit - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Retrieve tags run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* @@ -50,7 +50,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: softprops/action-gh-release@v2.0.3 + - uses: softprops/action-gh-release@v2.0.4 with: generate_release_notes: true tag_name: ${{ steps.id-generator.outputs.id }} @@ -61,7 +61,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Setup PHP uses: shivammathur/setup-php@2.30.0 diff --git a/.github/workflows/changelog-summary-staging.yml b/.github/workflows/changelog-summary-staging.yml index 4accdb44cd..d29bb96e1a 100644 --- a/.github/workflows/changelog-summary-staging.yml +++ b/.github/workflows/changelog-summary-staging.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Setup PHP uses: shivammathur/setup-php@2.30.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f7758061c..12c354950e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: MYSQL_DATABASE: wordpress_test steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: recursive diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 00f73164d9..a12e4e54c4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,7 +29,7 @@ jobs: - javascript steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/core-tests.yml b/.github/workflows/core-tests.yml index f056b4ad33..34463d8672 100644 --- a/.github/workflows/core-tests.yml +++ b/.github/workflows/core-tests.yml @@ -42,14 +42,14 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> "${GITHUB_ENV}" - name: Checkout WordPress - uses: actions/checkout@v4.1.1 # v4.0.0 + uses: actions/checkout@v4.1.2 # v4.0.0 with: repository: wordpress/wordpress-develop path: wordpress ref: ${{ steps.version.outputs.latest }} - name: Check out source code - uses: actions/checkout@v4.1.1 # v4.0.0 + uses: actions/checkout@v4.1.2 # v4.0.0 with: submodules: recursive path: wordpress/src/wp-content/mu-plugins diff --git a/.github/workflows/coverage-develop.yml b/.github/workflows/coverage-develop.yml index f2f79d475c..2ee40114db 100644 --- a/.github/workflows/coverage-develop.yml +++ b/.github/workflows/coverage-develop.yml @@ -36,7 +36,7 @@ jobs: MYSQL_DATABASE: wordpress_test steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: recursive diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index aad008b3d5..6e41cc974f 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -20,7 +20,7 @@ jobs: github.com:443 - name: Check out the source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Review dependencies uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c4ca01305b..b4cd47d037 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,19 +22,19 @@ jobs: contents: write steps: - name: Check out the source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: recursive path: ${{ env.SOURCE_REPO_PATH }} - name: Check out Automattic/vip-go-mu-plugins-ext - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: repository: Automattic/vip-go-mu-plugins-ext path: ${{ env.EXT_REPO_PATH }} - name: Check out Automattic/vip-go-mu-plugins-built - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: repository: Automattic/vip-go-mu-plugins-built path: ${{ env.TARGET_REPO_PATH }} diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b5ef897959..ba6f038d95 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -68,7 +68,7 @@ jobs: wordpress.org:443 - name: Check out repository code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: true @@ -131,7 +131,7 @@ jobs: egress-policy: audit - name: Check out repository code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Setup Node uses: actions/setup-node@v4.0.2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b9946bb0ad..a268344509 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Set up PHP uses: shivammathur/setup-php@2.30.0 @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 - name: Setup Node uses: actions/setup-node@v4.0.2 diff --git a/.github/workflows/parsely.yml b/.github/workflows/parsely.yml index 123e020066..c0f109add8 100644 --- a/.github/workflows/parsely.yml +++ b/.github/workflows/parsely.yml @@ -50,7 +50,7 @@ jobs: MYSQL_DATABASE: wordpress_test steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: recursive diff --git a/.github/workflows/search-dev-tools.yml b/.github/workflows/search-dev-tools.yml index b4f89e7011..3f2f8f83c7 100644 --- a/.github/workflows/search-dev-tools.yml +++ b/.github/workflows/search-dev-tools.yml @@ -22,7 +22,7 @@ jobs: contents: write steps: - name: Check out source code - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: token: ${{ secrets.WPCOM_VIP_BOT_TOKEN }} diff --git a/.github/workflows/search-e2e.yml b/.github/workflows/search-e2e.yml index dc47e05de7..6aaba4f444 100644 --- a/.github/workflows/search-e2e.yml +++ b/.github/workflows/search-e2e.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.2 with: submodules: recursive diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 0a9b8e95c6..a7d0305684 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -358,9 +358,9 @@ } }, "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.24.0.tgz", - "integrity": "sha512-MXW3pQCu9gUiVGzqkGqsgiINDVYXoAnrY8FYF/rmb+OfufNF0zHMpHPN4ulRrinxYT8Vk/aZJxYqOKsDECjKAw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.24.1.tgz", + "integrity": "sha512-05RJdO/cCrtVWuAaSn1tS3bH8jbsJa/Y1uD186u6J4C/1mnHFxseeuWpsqr9anvo7TUulev7tm7GDwRV+VuhDw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.24.0" @@ -692,9 +692,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz", - "integrity": "sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==", + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" diff --git a/akismet/.htaccess b/akismet/.htaccess index b331c6a9e4..ca895f24f6 100644 --- a/akismet/.htaccess +++ b/akismet/.htaccess @@ -23,7 +23,7 @@ # Akismet images - + Allow from all diff --git a/akismet/_inc/akismet-admin.css b/akismet/_inc/akismet-admin.css index 44d4b0860b..27d2f89b1b 100644 --- a/akismet/_inc/akismet-admin.css +++ b/akismet/_inc/akismet-admin.css @@ -174,9 +174,27 @@ } .akismet-card-actions { + display: flex; + justify-content: flex-end; padding: 1em; } +.akismet-card-actions__secondary-action { + align-self: center; + margin-right: auto; +} + +.akismet-card-actions__secondary-action a[target="_blank"]::after { + background: url('img/icon-external.svg') no-repeat; + background-size: contain; + content: ""; + display: inline-block; + height: 16px; + margin-left: 5px; + vertical-align: middle; + width: 16px; +} + .akismet-settings__row label { padding-bottom: 1em; } diff --git a/akismet/_inc/akismet-frontend.js b/akismet/_inc/akismet-frontend.js index d39b64289e..40ebfe600a 100644 --- a/akismet/_inc/akismet-frontend.js +++ b/akismet/_inc/akismet-frontend.js @@ -80,52 +80,68 @@ var input_fields = { // When did the user begin entering any input? - 'ak_bib': input_begin, + 'bib': input_begin, // When was the form submitted? - 'ak_bfs': Date.now(), + 'bfs': Date.now(), // How many keypresses did they make? - 'ak_bkpc': keypresses.length, + 'bkpc': keypresses.length, // How quickly did they press a sample of keys, and how long between them? - 'ak_bkp': ak_bkp, + 'bkp': ak_bkp, // How quickly did they click the mouse, and how long between clicks? - 'ak_bmc': ak_bmc, + 'bmc': ak_bmc, // How many mouseclicks did they make? - 'ak_bmcc': mouseclicks.length, + 'bmcc': mouseclicks.length, // When did they press modifier keys (like Shift or Capslock)? - 'ak_bmk': modifierKeys.join( ';' ), + 'bmk': modifierKeys.join( ';' ), // When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back - 'ak_bck': correctionKeys.join( ';' ), + 'bck': correctionKeys.join( ';' ), // How many times did they move the mouse? - 'ak_bmmc': mousemoves.length, + 'bmmc': mousemoves.length, // How many times did they move around using a touchscreen? - 'ak_btmc': touchmoveCount, + 'btmc': touchmoveCount, // How many times did they scroll? - 'ak_bsc': scrollCount, + 'bsc': scrollCount, // How quickly did they perform touch events, and how long between them? - 'ak_bte': ak_bte, + 'bte': ak_bte, // How many touch events were there? - 'ak_btec' : touchEvents.length, + 'btec' : touchEvents.length, // How quickly did they move the mouse, and how long between moves? - 'ak_bmm' : ak_bmm + 'bmm' : ak_bmm }; + var akismet_field_prefix = 'ak_'; + + if ( this.getElementsByClassName ) { + // Check to see if we've used an alternate field name prefix. We store this as an attribute of the container around some of the Akismet fields. + var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' ); + + for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) { + var container = possible_akismet_containers.item( containerIndex ); + + if ( container.getAttribute( 'data-prefix' ) ) { + akismet_field_prefix = container.getAttribute( 'data-prefix' ); + break; + } + } + } + for ( var field_name in input_fields ) { var field = document.createElement( 'input' ); field.setAttribute( 'type', 'hidden' ); - field.setAttribute( 'name', field_name ); + field.setAttribute( 'name', akismet_field_prefix + field_name ); field.setAttribute( 'value', input_fields[ field_name ] ); this.appendChild( field ); } diff --git a/akismet/_inc/img/icon-external.svg b/akismet/_inc/img/icon-external.svg new file mode 100644 index 0000000000..b7efe4584f --- /dev/null +++ b/akismet/_inc/img/icon-external.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/akismet/_inc/rtl/akismet-admin-rtl.css b/akismet/_inc/rtl/akismet-admin-rtl.css index 1369a54d52..1960f9389a 100644 --- a/akismet/_inc/rtl/akismet-admin-rtl.css +++ b/akismet/_inc/rtl/akismet-admin-rtl.css @@ -1,4 +1,4 @@ -/* This file was automatically generated on Aug 25 2023 04:22:56 */ +/* This file was automatically generated on Nov 20 2023 03:10:42 */ #akismet-plugin-container { background-color: var(--akismet-color-light-grey); @@ -176,9 +176,27 @@ } .akismet-card-actions { + display: flex; + justify-content: flex-end; padding: 1em; } +.akismet-card-actions__secondary-action { + align-self: center; + margin-left: auto; +} + +.akismet-card-actions__secondary-action a[target="_blank"]::after { + background: url('../img/icon-external.svg') no-repeat; + background-size: contain; + content: ""; + display: inline-block; + height: 16px; + margin-right: 5px; + vertical-align: middle; + width: 16px; +} + .akismet-settings__row label { padding-bottom: 1em; } diff --git a/akismet/akismet.php b/akismet/akismet.php index 72c0507ac8..9ec3315ac9 100644 --- a/akismet/akismet.php +++ b/akismet/akismet.php @@ -6,7 +6,7 @@ Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. -Version: 5.3 +Version: 5.3.1 Requires at least: 5.8 Requires PHP: 5.6.20 Author: Automattic - Anti-spam Team @@ -39,7 +39,7 @@ exit; } -define( 'AKISMET_VERSION', '5.3' ); +define( 'AKISMET_VERSION', '5.3.1' ); define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' ); define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'AKISMET_DELETE_LIMIT', 10000 ); diff --git a/akismet/class.akismet-admin.php b/akismet/class.akismet-admin.php index 8646764ad9..b30813a475 100644 --- a/akismet/class.akismet-admin.php +++ b/akismet/class.akismet-admin.php @@ -135,20 +135,20 @@ public static function load_resources() { 'plugins.php', ) ) ) ) { $akismet_css_path = is_rtl() ? '_inc/rtl/akismet-rtl.css' : '_inc/akismet.css'; - wp_register_style( 'akismet', plugin_dir_url( __FILE__ ) . $akismet_css_path, array(), filemtime( dirname( __FILE__ ) . '/' . $akismet_css_path ) ); + wp_register_style( 'akismet', plugin_dir_url( __FILE__ ) . $akismet_css_path, array(), self::get_asset_file_version( $akismet_css_path ) ); wp_enqueue_style( 'akismet' ); - wp_register_style( 'akismet-font-inter', plugin_dir_url( __FILE__ ) . '_inc/fonts/inter.css', array(), filemtime( dirname( __FILE__ ) . '/_inc/fonts/inter.css' ) ); + wp_register_style( 'akismet-font-inter', plugin_dir_url( __FILE__ ) . '_inc/fonts/inter.css', array(), self::get_asset_file_version( '_inc/fonts/inter.css' ) ); wp_enqueue_style( 'akismet-font-inter' ); $akismet_admin_css_path = is_rtl() ? '_inc/rtl/akismet-admin-rtl.css' : '_inc/akismet-admin.css'; - wp_register_style( 'akismet-admin', plugin_dir_url( __FILE__ ) . $akismet_admin_css_path, array(), filemtime( dirname( __FILE__ ) . '/' . $akismet_admin_css_path ) ); + wp_register_style( 'akismet-admin', plugin_dir_url( __FILE__ ) . $akismet_admin_css_path, array(), self::get_asset_file_version( $akismet_admin_css_path ) ); wp_enqueue_style( 'akismet-admin' ); - wp_register_script( 'akismet.js', plugin_dir_url( __FILE__ ) . '_inc/akismet.js', array( 'jquery' ), AKISMET_VERSION ); + wp_register_script( 'akismet.js', plugin_dir_url( __FILE__ ) . '_inc/akismet.js', array( 'jquery' ), self::get_asset_file_version( '_inc/akismet.js' ) ); wp_enqueue_script( 'akismet.js' ); - wp_register_script( 'akismet-admin.js', plugin_dir_url( __FILE__ ) . '_inc/akismet-admin.js', array(), filemtime( dirname( __FILE__ ) . '/_inc/akismet-admin.js' ) ); + wp_register_script( 'akismet-admin.js', plugin_dir_url( __FILE__ ) . '_inc/akismet-admin.js', array(), self::get_asset_file_version( '/_inc/akismet-admin.js' ) ); wp_enqueue_script( 'akismet-admin.js' ); $inline_js = array( @@ -555,7 +555,7 @@ public static function comment_row_action( $a, $comment ) { } // add a History item to the hover links, just after Edit - if ( $akismet_result ) { + if ( $akismet_result && is_array( $a ) ) { $b = array(); foreach ( $a as $k => $item ) { $b[ $k ] = $item; @@ -852,7 +852,14 @@ public static function get_page_url( $page = 'config' ) { public static function get_akismet_user( $api_key ) { $akismet_user = false; - $subscription_verification = Akismet::http_post( Akismet::build_query( array( 'key' => $api_key, 'blog' => get_option( 'home' ) ) ), 'get-subscription' ); + $request_args = array( + 'key' => $api_key, + 'blog' => get_option( 'home' ), + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'get-subscription' ); + + $subscription_verification = Akismet::http_post( Akismet::build_query( $request_args ), 'get-subscription' ); if ( ! empty( $subscription_verification[1] ) ) { if ( 'invalid' !== $subscription_verification[1] ) { @@ -867,7 +874,15 @@ public static function get_stats( $api_key ) { $stat_totals = array(); foreach( array( '6-months', 'all' ) as $interval ) { - $response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' ); + $request_args = array( + 'blog' => get_option( 'home' ), + 'key' => $api_key, + 'from' => $interval, + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'get-stats' ); + + $response = Akismet::http_post( Akismet::build_query( $request_args ), 'get-stats' ); if ( ! empty( $response[1] ) ) { $stat_totals[$interval] = json_decode( $response[1] ); @@ -878,11 +893,18 @@ public static function get_stats( $api_key ) { } public static function verify_wpcom_key( $api_key, $user_id, $extra = array() ) { - $akismet_account = Akismet::http_post( Akismet::build_query( array_merge( array( - 'user_id' => $user_id, - 'api_key' => $api_key, - 'get_account_type' => 'true' - ), $extra ) ), 'verify-wpcom-key' ); + $request_args = array_merge( + array( + 'user_id' => $user_id, + 'api_key' => $api_key, + 'get_account_type' => 'true', + ), + $extra + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'verify-wpcom-key' ); + + $akismet_account = Akismet::http_post( Akismet::build_query( $request_args ), 'verify-wpcom-key' ); if ( ! empty( $akismet_account[1] ) ) $akismet_account = json_decode( $akismet_account[1] ); @@ -1332,4 +1354,24 @@ public static function erase_personal_data( $email_address, $page = 1 ) { public static function get_notice_kses_allowed_elements() { return self::$allowed; } + + /** + * Return a version to append to the URL of an asset file (e.g. CSS and images). + * + * @param string $relative_path Relative path to asset file + * @return string + */ + public static function get_asset_file_version( $relative_path ) { + + $full_path = AKISMET__PLUGIN_DIR . $relative_path; + + // If the AKISMET_VERSION contains a lower-case letter, it's a development version (e.g. 5.3.1a2). + // Use the file modified time in development. + if ( preg_match( '/[a-z]/', AKISMET_VERSION ) && file_exists( $full_path ) ) { + return filemtime( $full_path ); + } + + // Otherwise, use the AKISMET_VERSION. + return AKISMET_VERSION; + } } diff --git a/akismet/class.akismet-cli.php b/akismet/class.akismet-cli.php index 9cbe7a9246..f0ea21795e 100644 --- a/akismet/class.akismet-cli.php +++ b/akismet/class.akismet-cli.php @@ -146,15 +146,16 @@ public function stats( $args, $assoc_args ) { break; } - $response = Akismet::http_post( - Akismet::build_query( array( - 'blog' => get_option( 'home' ), - 'key' => $api_key, - 'from' => $interval, - ) ), - 'get-stats' + $request_args = array( + 'blog' => get_option( 'home' ), + 'key' => $api_key, + 'from' => $interval, ); + $request_args = apply_filters( 'akismet_request_args', $request_args, 'get-stats' ); + + $response = Akismet::http_post( Akismet::build_query( $request_args ), 'get-stats' ); + if ( empty( $response[1] ) ) { WP_CLI::error( __( 'Currently unable to fetch stats. Please try again.', 'akismet' ) ); } diff --git a/akismet/class.akismet-rest-api.php b/akismet/class.akismet-rest-api.php index bf71998bd6..ef09f70769 100644 --- a/akismet/class.akismet-rest-api.php +++ b/akismet/class.akismet-rest-api.php @@ -264,7 +264,15 @@ public static function get_stats( $request ) { $stat_totals = array(); - $response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' ); + $request_args = array( + 'blog' => get_option( 'home' ), + 'key' => $api_key, + 'from' => $interval, + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'get-stats' ); + + $response = Akismet::http_post( Akismet::build_query( $request_args ), 'get-stats' ); if ( ! empty( $response[1] ) ) { $stat_totals[$interval] = json_decode( $response[1] ); @@ -318,16 +326,15 @@ public static function delete_alert( $request ) { } private static function key_is_valid( $key ) { - $response = Akismet::http_post( - Akismet::build_query( - array( - 'key' => $key, - 'blog' => get_option( 'home' ) - ) - ), - 'verify-key' + $request_args = array( + 'key' => $key, + 'blog' => get_option( 'home' ), ); + $request_args = apply_filters( 'akismet_request_args', $request_args, 'verify-key' ); + + $response = Akismet::http_post( Akismet::build_query( $request_args ), 'verify-key' ); + if ( $response[1] == 'valid' ) { return true; } diff --git a/akismet/class.akismet.php b/akismet/class.akismet.php index 33459426f1..951142e530 100644 --- a/akismet/class.akismet.php +++ b/akismet/class.akismet.php @@ -108,7 +108,11 @@ public static function get_access_token() { static $access_token = null; if ( is_null( $access_token ) ) { - $response = self::http_post( self::build_query( array( 'api_key' => self::get_api_key() ) ), 'token' ); + $request_args = array( 'api_key' => self::get_api_key() ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'token' ); + + $response = self::http_post( self::build_query( $request_args ), 'token' ); $access_token = $response[1]; } @@ -117,7 +121,14 @@ public static function get_access_token() { } public static function check_key_status( $key, $ip = null ) { - return self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'verify-key', $ip ); + $request_args = array( + 'key' => $key, + 'blog' => get_option( 'home' ), + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'verify-key' ); + + return self::http_post( self::build_query( $request_args ), 'verify-key', $ip ); } public static function verify_key( $key, $ip = null ) { @@ -135,7 +146,14 @@ public static function verify_key( $key, $ip = null ) { } public static function deactivate_key( $key ) { - $response = self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'deactivate' ); + $request_args = array( + 'key' => $key, + 'blog' => get_option( 'home' ), + ); + + $request_args = apply_filters( 'akismet_request_args', $request_args, 'deactivate' ); + + $response = self::http_post( self::build_query( $request_args ), 'deactivate' ); if ( $response[1] != 'deactivated' ) return 'failed'; @@ -283,7 +301,17 @@ public static function auto_check_comment( $commentdata, $context = 'default' ) } } - $response = self::http_post( Akismet::build_query( $comment ), 'comment-check' ); + /** + * Filter the data that is used to generate the request body for the API call. + * + * @since 5.3.1 + * + * @param array $comment An array of request data. + * @param string $endpoint The API endpoint being requested. + */ + $comment = apply_filters( 'akismet_request_args', $comment, 'comment-check' ); + + $response = self::http_post( self::build_query( $comment ), 'comment-check' ); do_action( 'akismet_comment_check_response', $response ); @@ -301,6 +329,10 @@ public static function auto_check_comment( $commentdata, $context = 'default' ) if ( isset( $response[0]['x-akismet-pro-tip'] ) ) $commentdata['akismet_pro_tip'] = $response[0]['x-akismet-pro-tip']; + if ( isset( $response[0]['x-akismet-guid'] ) ) { + $commentdata['akismet_guid'] = $response[0]['x-akismet-guid']; + } + if ( isset( $response[0]['x-akismet-error'] ) ) { // An error occurred that we anticipated (like a suspended key) and want the user to act on. // Send to moderation. @@ -442,6 +474,10 @@ public static function auto_check_update_meta( $id, $comment ) { if ( isset( self::$last_comment['akismet_pro_tip'] ) ) { update_comment_meta( $comment->comment_ID, 'akismet_pro_tip', self::$last_comment['akismet_pro_tip'] ); } + + if ( isset( self::$last_comment['akismet_guid'] ) ) { + update_comment_meta( $comment->comment_ID, 'akismet_guid', self::$last_comment['akismet_guid'] ); + } } } } @@ -711,7 +747,9 @@ public static function check_db_comment( $id, $recheck_reason = 'recheck_queue' if ( self::is_test_mode() ) $c['is_test'] = 'true'; - $response = self::http_post( Akismet::build_query( $c ), 'comment-check' ); + $c = apply_filters( 'akismet_request_args', $c, 'comment-check' ); + + $response = self::http_post( self::build_query( $c ), 'comment-check' ); if ( ! empty( $response[1] ) ) { return $response[1]; @@ -873,7 +911,9 @@ public static function submit_spam_comment( $comment_id ) { $comment->comment_post_modified_gmt = $post->post_modified_gmt; } - $response = Akismet::http_post( Akismet::build_query( $comment ), 'submit-spam' ); + $comment = apply_filters( 'akismet_request_args', $comment, 'submit-spam' ); + + $response = self::http_post( self::build_query( $comment ), 'submit-spam' ); update_comment_meta( $comment_id, 'akismet_user_result', 'true' ); @@ -931,7 +971,9 @@ public static function submit_nonspam_comment( $comment_id ) { $comment->comment_post_modified_gmt = $post->post_modified_gmt; } - $response = self::http_post( Akismet::build_query( $comment ), 'submit-ham' ); + $comment = apply_filters( 'akismet_request_args', $comment, 'submit-ham' ); + + $response = self::http_post( self::build_query( $comment ), 'submit-ham' ); update_comment_meta( $comment_id, 'akismet_user_result', 'false' ); @@ -1420,7 +1462,7 @@ public static function get_akismet_form_fields() { $prefix = '_wpcf7_ak_'; } - $fields .= '

'; + $fields .= '

'; $fields .= ''; if ( ! function_exists( 'amp_is_request' ) || ! amp_is_request() ) { diff --git a/akismet/readme.txt b/akismet/readme.txt index 8323dcf35e..2221acf71f 100644 --- a/akismet/readme.txt +++ b/akismet/readme.txt @@ -3,7 +3,7 @@ Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eo Tags: comments, spam, antispam, anti-spam, contact form, anti spam, comment moderation, comment spam, contact form spam, spam comments Requires at least: 5.8 Tested up to: 6.4 -Stable tag: 5.3 +Stable tag: 5.3.1 License: GPLv2 or later The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for WordPress and WooCommerce. @@ -32,6 +32,15 @@ Upload the Akismet plugin to your blog, activate it, and then enter your Akismet == Changelog == += 5.3.1 = +*Release Date - 17 January 2024* + +* Make the plugin more resilient when asset files are missing (as seen in WordPress Playground). +* Add a link to the 'Account overview' page on akismet.com. +* Fix a minor error that occurs when another plugin removes all comment actions from the dashboard. +* Add the akismet_request_args filter to allow request args in Akismet API requests to be filtered. +* Fix a bug that causes some contact forms to include unnecessary data in the comment_content parameter. + = 5.3 = *Release Date - 14 September 2023* diff --git a/akismet/views/config.php b/akismet/views/config.php index a121c50788..77e59142b9 100644 --- a/akismet/views/config.php +++ b/akismet/views/config.php @@ -2,7 +2,11 @@ //phpcs:disable VariableAnalysis // There are "undefined" variables here because they're defined in the code that includes this file as a template. - +$kses_allow_link_href = array( + 'a' => array( + 'href' => true, + ), +); ?>

@@ -37,7 +41,7 @@
- +
  • @@ -78,13 +82,13 @@

    - +

    - +
    @@ -92,27 +96,30 @@
    - +
    - - + +

    - + - + - + @@ -120,7 +127,7 @@
    - +

    @@ -143,7 +150,7 @@
    - +

    @@ -155,7 +162,7 @@
    - +
    %s', + esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ), + esc_html__( 'spam folder', 'akismet' ) + ); + + // The _n() needs to be on one line so the i18n tooling can extract the translator comment. + /* translators: %1$s: spam folder link, %2$d: delete interval in days */ + $delete_message = _n( 'Spam in the %1$s older than %2$d day is deleted automatically.', 'Spam in the %1$s older than %2$d days is deleted automatically.', $delete_interval, 'akismet' ); + printf( - _n( - 'Spam in the spam folder older than 1 day is deleted automatically.', - 'Spam in the spam folder older than %2$d days is deleted automatically.', - $delete_interval, - 'akismet' - ), - admin_url( 'edit-comments.php?comment_status=spam' ), - $delete_interval + wp_kses( $delete_message, $kses_allow_link_href ), + wp_kses( $spam_folder_link, $kses_allow_link_href ), + esc_html( $delete_interval ) ); ?>
    - +

    @@ -210,35 +222,34 @@
    - +
    - +
    -
    +
    - + - +
    -
    @@ -248,7 +259,7 @@

    - +

    @@ -265,13 +276,13 @@ status ) : + if ( 'cancelled' === $akismet_user->status ) : esc_html_e( 'Cancelled', 'akismet' ); - elseif ( 'suspended' == $akismet_user->status ) : + elseif ( 'suspended' === $akismet_user->status ) : esc_html_e( 'Suspended', 'akismet' ); - elseif ( 'missing' == $akismet_user->status ) : + elseif ( 'missing' === $akismet_user->status ) : esc_html_e( 'Missing', 'akismet' ); - elseif ( 'no-sub' == $akismet_user->status ) : + elseif ( 'no-sub' === $akismet_user->status ) : esc_html_e( 'No subscription found', 'akismet' ); else : esc_html_e( 'Active', 'akismet' ); @@ -290,14 +301,26 @@
    + status === 'active' ) : ?> +
    + +
    +
    - ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?> + ( $akismet_user->account_type === 'free-api-key' && $akismet_user->status === 'active' ? __( 'Upgrade', 'akismet' ) : __( 'Change', 'akismet' ) ), + 'redirect' => 'upgrade', + ) + ); + ?>
    -
    - +
diff --git a/akismet/views/notice.php b/akismet/views/notice.php index f7068e73c3..8bacc54526 100644 --- a/akismet/views/notice.php +++ b/akismet/views/notice.php @@ -178,7 +178,7 @@ } ?>
-

+

=18" }, "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" } }, "node_modules/@csstools/color-helpers": { @@ -2079,9 +2079,9 @@ } }, "node_modules/@csstools/css-calc": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-1.1.7.tgz", - "integrity": "sha512-+7bUzB5I4cI97tKmBJA8ilTl/YRo6VAOdlrnd/4x2NyK60nvYurGKa5TZpE1zcgIrTC97iJRE0/V65feyFytuw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-1.2.0.tgz", + "integrity": "sha512-iQqIW5vDPqQdLx07/atCuNKDprhIWjB0b8XRhUyXZWBZYUG+9mNyFwyu30rypX84WLevVo25NYW2ipxR8WyseQ==", "dev": true, "funding": [ { @@ -2097,14 +2097,14 @@ "node": "^14 || ^16 || >=18" }, "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" } }, "node_modules/@csstools/css-color-parser": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-1.5.2.tgz", - "integrity": "sha512-5GEkuuUxD5dael3xoWjyf7gAPAi4pwm8X8JW/nUMhxntGY4Wo4Lp7vKlex4V5ZgTfAoov14rZFsZyOantdTatg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-1.6.2.tgz", + "integrity": "sha512-mlt0PomBlDXMGcbPAqCG36Fw35LZTtaSgCQCHEs4k8QTv1cUKe0rJDlFSJMHtqrgQiLC7LAAS9+s9kKQp2ou/Q==", "dev": true, "funding": [ { @@ -2118,20 +2118,20 @@ ], "dependencies": { "@csstools/color-helpers": "^4.0.0", - "@csstools/css-calc": "^1.1.7" + "@csstools/css-calc": "^1.2.0" }, "engines": { "node": "^14 || ^16 || >=18" }, "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" } }, "node_modules/@csstools/css-parser-algorithms": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.6.0.tgz", - "integrity": "sha512-YfEHq0eRH98ffb5/EsrrDspVWAuph6gDggAE74ZtjecsmyyWpW768hOyiONa8zwWGbIWYfa2Xp4tRTrpQQ00CQ==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.6.1.tgz", + "integrity": "sha512-ubEkAaTfVZa+WwGhs5jbo5Xfqpeaybr/RvWzvFxRs4jfq16wH8l8Ty/QEEpINxll4xhuGfdMbipRyz5QZh9+FA==", "dev": true, "funding": [ { @@ -2147,13 +2147,13 @@ "node": "^14 || ^16 || >=18" }, "peerDependencies": { - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-tokenizer": "^2.2.4" } }, "node_modules/@csstools/css-tokenizer": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.2.3.tgz", - "integrity": "sha512-pp//EvZ9dUmGuGtG1p+n17gTHEOqu9jO+FiCUjNN3BDmyhdA2Jq9QsVeR7K8/2QCK17HSsioPlTW9ZkzoWb3Lg==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.2.4.tgz", + "integrity": "sha512-PuWRAewQLbDhGeTvFuq2oClaSCKPIBmHyIobCV39JHRYN0byDcUWJl5baPeNUcqrjtdMNqFooE0FGl31I3JOqw==", "dev": true, "funding": [ { @@ -2170,9 +2170,9 @@ } }, "node_modules/@csstools/media-query-list-parser": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.8.tgz", - "integrity": "sha512-DiD3vG5ciNzeuTEoh74S+JMjQDs50R3zlxHnBnfd04YYfA/kh2KiBCGhzqLxlJcNq+7yNQ3stuZZYLX6wK/U2g==", + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.9.tgz", + "integrity": "sha512-qqGuFfbn4rUmyOB0u8CVISIp5FfJ5GAR3mBrZ9/TKndHakdnm6pY0L/fbLcpPnrzwCyyTEZl1nUcXAYHEWneTA==", "dev": true, "funding": [ { @@ -2188,8 +2188,8 @@ "node": "^14 || ^16 || >=18" }, "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" } }, "node_modules/@csstools/postcss-cascade-layers": { @@ -2219,9 +2219,9 @@ } }, "node_modules/@csstools/postcss-color-function": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-3.0.10.tgz", - "integrity": "sha512-jxiXmSl4ZYX8KewFjL5ef6of9uW73VkaHeDb2tqb5q4ZDPYxjusNX1KJ8UXY8+7ydqS5QBo42tVMrSMGy+rDmw==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-3.0.12.tgz", + "integrity": "sha512-amPGGDI4Xmgu7VN2ciKQe0pP/j5raaETT50nzbnkydp9FMw7imKxSUnXdVQU4NmRgpLKIc5Q7jox0MFhMBImIg==", "dev": true, "funding": [ { @@ -2234,10 +2234,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2248,9 +2248,9 @@ } }, "node_modules/@csstools/postcss-color-mix-function": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/@csstools/postcss-color-mix-function/-/postcss-color-mix-function-2.0.10.tgz", - "integrity": "sha512-zeD856+FDCUjB077pPS+Z9OnTQnqpiJrao3TW+sasCb/gJ3vZCX7sRSRFsRUo0/MntTtJu9hkKv9eMkFmfjydA==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@csstools/postcss-color-mix-function/-/postcss-color-mix-function-2.0.12.tgz", + "integrity": "sha512-qpAEGwVVqHSa88i3gLb43IMpT4/LyZEE8HzZylQKKXFVJ7XykXaORTmXySxyH6H+flT+NyCnutKG2fegCVyCug==", "dev": true, "funding": [ { @@ -2263,10 +2263,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2277,9 +2277,9 @@ } }, "node_modules/@csstools/postcss-exponential-functions": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@csstools/postcss-exponential-functions/-/postcss-exponential-functions-1.0.4.tgz", - "integrity": "sha512-frMf0CFVnZoGEKAHlxLy3s4g/tpjyFn5+A+h895UJNm9Uc+ewGT7+EeK7Kh9IHH4pD4FkaGW1vOQtER00PLurQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@csstools/postcss-exponential-functions/-/postcss-exponential-functions-1.0.5.tgz", + "integrity": "sha512-7S7I7KgwHWQYzJJAoIjRtUf7DQs1dxipeg1A6ikZr0PYapNJX7UHz0evlpE67SQqYj1xBs70gpG7xUv3uLp4PA==", "dev": true, "funding": [ { @@ -2292,9 +2292,9 @@ } ], "dependencies": { - "@csstools/css-calc": "^1.1.7", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-calc": "^1.2.0", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" }, "engines": { "node": "^14 || ^16 || >=18" @@ -2330,9 +2330,9 @@ } }, "node_modules/@csstools/postcss-gamut-mapping": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@csstools/postcss-gamut-mapping/-/postcss-gamut-mapping-1.0.3.tgz", - "integrity": "sha512-P0+ude1KyCy9LXOe2pHJmpcXK4q/OQbr2Sn2wQSssMw0rALGmny2MfHiCqEu8n6mf2cN6lWDZdzY8enBk8WHXQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@csstools/postcss-gamut-mapping/-/postcss-gamut-mapping-1.0.5.tgz", + "integrity": "sha512-AJ74/4nHXgghLWY4/ydEhu3mzwN8c56EjIGrJsoEhKaNuGBAOtUfE5qbkc9XQQ0G2FMhHggqE+9eRrApeK7ebQ==", "dev": true, "funding": [ { @@ -2345,9 +2345,9 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" }, "engines": { "node": "^14 || ^16 || >=18" @@ -2357,9 +2357,9 @@ } }, "node_modules/@csstools/postcss-gradients-interpolation-method": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/@csstools/postcss-gradients-interpolation-method/-/postcss-gradients-interpolation-method-4.0.11.tgz", - "integrity": "sha512-LFom5jCVUfzF+iuiOZvhvX7RRN8vc+tKpcKo9s4keEBAU2mPwV5/Fgz5iylEfXP/DZbEdq2C0At20urMi/lupw==", + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/@csstools/postcss-gradients-interpolation-method/-/postcss-gradients-interpolation-method-4.0.13.tgz", + "integrity": "sha512-dBbyxs9g+mrIzmEH+UtrqJUmvcJB/60j0ijhBcVJMHCgl/rKjj8ey6r/pJOI0EhkVsckOu3Prc9AGzH88C+1pQ==", "dev": true, "funding": [ { @@ -2372,10 +2372,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2386,9 +2386,9 @@ } }, "node_modules/@csstools/postcss-hwb-function": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-3.0.9.tgz", - "integrity": "sha512-S3/Z+mGHWIKAex7DLsHFDiku5lBEK34avT2My6sGPNCXB38TZjrKI0rd7JdN9oulem5sn+CU7oONyIftui24oQ==", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-3.0.11.tgz", + "integrity": "sha512-c36FtMFptwGn5CmsfdONA40IlWG2lHeoC/TDyED/7lwiTht5okxe6iLAa9t2LjBBo5AHQSHfeMvOASdXk/SHog==", "dev": true, "funding": [ { @@ -2401,10 +2401,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2415,9 +2415,9 @@ } }, "node_modules/@csstools/postcss-ic-unit": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-3.0.4.tgz", - "integrity": "sha512-OB6ojl33/TQHhjVx1NI+n3EnYbdUM6Q/mSUv3WFATdcz7IrH/CmBaZt7P1R6j1Xdp58thIa6jm4Je7saGs+2AA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-3.0.5.tgz", + "integrity": "sha512-9CriM/zvKXa/lDARlxs/MgeyKE6ZmmX4V77VLD7VUxKLVSt0Go3NCy/gRMbwGzxbrk3iaHFXnFbc2lNw+/7jcg==", "dev": true, "funding": [ { @@ -2430,7 +2430,7 @@ } ], "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0", "postcss-value-parser": "^4.2.0" }, @@ -2490,9 +2490,9 @@ } }, "node_modules/@csstools/postcss-light-dark-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-light-dark-function/-/postcss-light-dark-function-1.0.0.tgz", - "integrity": "sha512-KHo633V16DGo6tmpr1ARAwO73CPBNmDI3PfSQYe7ZBMiv60WEizbcEroK75fHjxKYJ4tj9uCCzp5sYG4cEUqqw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-light-dark-function/-/postcss-light-dark-function-1.0.1.tgz", + "integrity": "sha512-CJOcp+m7Njbu91HtYMMoYuZznsvNSpJtLiR/7BO8/bHTXYPiuAZfxunh7wXLkMbHd5dRBgAVAQZ+H4iFqrvWZw==", "dev": true, "funding": [ { @@ -2505,9 +2505,9 @@ } ], "dependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2609,9 +2609,9 @@ } }, "node_modules/@csstools/postcss-logical-viewport-units": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@csstools/postcss-logical-viewport-units/-/postcss-logical-viewport-units-2.0.6.tgz", - "integrity": "sha512-6hV0ngZh8J7HqNY3kyt+z5ABN/XE18qvrU7ne4YSkKfltrWDnQgGiW/Q+h7bdQz8/W5juAefcdCCAJUIBE7erg==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@csstools/postcss-logical-viewport-units/-/postcss-logical-viewport-units-2.0.7.tgz", + "integrity": "sha512-L4G3zsp/bnU0+WXUyysihCUH14LkfMgUJsS9vKz3vCYbVobOTqQRoNXnEPpyNp8WYyolLqAWbGGJhVu8J6u2OQ==", "dev": true, "funding": [ { @@ -2624,7 +2624,7 @@ } ], "dependencies": { - "@csstools/css-tokenizer": "^2.2.3", + "@csstools/css-tokenizer": "^2.2.4", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2635,9 +2635,9 @@ } }, "node_modules/@csstools/postcss-media-minmax": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@csstools/postcss-media-minmax/-/postcss-media-minmax-1.1.3.tgz", - "integrity": "sha512-W9AFRQSLvT+Dxtp20AewzGTUxzkJ21XSKzqRALwQdAv0uJGXkR76qgdhkoX0L/tcV4gXtgDfVtGYL/x2Nz/M5Q==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@csstools/postcss-media-minmax/-/postcss-media-minmax-1.1.4.tgz", + "integrity": "sha512-xl/PIO3TUbXO1ZA4SA6HCw+Q9UGe2cgeRKx3lHCzoNig2D4bT5vfVCOrwhxjUb09oHihc9eI3I0iIfVPiXaN1A==", "dev": true, "funding": [ { @@ -2650,10 +2650,10 @@ } ], "dependencies": { - "@csstools/css-calc": "^1.1.7", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/media-query-list-parser": "^2.1.8" + "@csstools/css-calc": "^1.2.0", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/media-query-list-parser": "^2.1.9" }, "engines": { "node": "^14 || ^16 || >=18" @@ -2663,9 +2663,9 @@ } }, "node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@csstools/postcss-media-queries-aspect-ratio-number-values/-/postcss-media-queries-aspect-ratio-number-values-2.0.6.tgz", - "integrity": "sha512-awc2qenSDvx6r+w6G9xxENp+LsbvHC8mMMV23KYmk4pR3YL8JxeKPDSiDhmqd93FQ9nNNDc/CaCQEcvP+GV4rw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@csstools/postcss-media-queries-aspect-ratio-number-values/-/postcss-media-queries-aspect-ratio-number-values-2.0.7.tgz", + "integrity": "sha512-HBDAQw1K0NilcHGMUHv8jzf2mpOtcWTVKtuY3AeZ5TS1uyWWNVi5/yuA/tREPLU9WifNdqHQ+rfbsV/8zTIkTg==", "dev": true, "funding": [ { @@ -2678,9 +2678,9 @@ } ], "dependencies": { - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/media-query-list-parser": "^2.1.8" + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/media-query-list-parser": "^2.1.9" }, "engines": { "node": "^14 || ^16 || >=18" @@ -2741,9 +2741,9 @@ } }, "node_modules/@csstools/postcss-oklab-function": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-3.0.10.tgz", - "integrity": "sha512-s9trs1c+gUMtaTtwrrIpdVQkUbRuwi6bQ9rBHaqwt4kd3kEnEYfP85uLY1inFx6Rt8OM2XVg3PSYbfnFSAO51A==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-3.0.12.tgz", + "integrity": "sha512-RNitTHamFvUUh8x+MJuPd2tCekYexUrylGKfUoor5D2GGcgzY1WB6Bl3pIj9t8bAq5h/lcacKaB2wmvUOTfGgQ==", "dev": true, "funding": [ { @@ -2756,10 +2756,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2770,9 +2770,9 @@ } }, "node_modules/@csstools/postcss-progressive-custom-properties": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-3.1.0.tgz", - "integrity": "sha512-Mfb1T1BHa6pktLI+poMEHI7Q+VYvAsdwJZPFsSkIB2ZUsawCiPxXLw06BKSVPITxFlaY/FEUzfpyOTfX9YCE2w==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-3.1.1.tgz", + "integrity": "sha512-cx/bZgj+MK8SpRZNTu2zGeVFMCQfhsaeuDhukAhfA53yykvIXaTIwLi5shW9hfkvPrkqBeFoiRAzq/qogxeHTA==", "dev": true, "funding": [ { @@ -2795,9 +2795,9 @@ } }, "node_modules/@csstools/postcss-relative-color-syntax": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/@csstools/postcss-relative-color-syntax/-/postcss-relative-color-syntax-2.0.10.tgz", - "integrity": "sha512-IkTIk9Eq2VegSN4lgsljGY8boyfX3l3Pw58e+R9oyPe/Ye7r3NwuiQ3w0nkXoQ+RC+d240V6n7eZme2mEPqQvg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@csstools/postcss-relative-color-syntax/-/postcss-relative-color-syntax-2.0.12.tgz", + "integrity": "sha512-VreDGDgE634niwCytLtkoE5kRxfva7bnMzSoyok7Eh9VPYFOm8CK/oJXt9y3df71Bxc9PG4KC8RA3CxTknudnw==", "dev": true, "funding": [ { @@ -2810,10 +2810,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -2849,9 +2849,9 @@ } }, "node_modules/@csstools/postcss-stepped-value-functions": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-3.0.5.tgz", - "integrity": "sha512-B8K8RaTrYVZLxbNzVUvFO3SlCDJDaUTAO7KRth05fa7f01ufPvb6ztdBuxSoRwOtmNp8iROxPJHOemWo2kBBtA==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-3.0.6.tgz", + "integrity": "sha512-rnyp8tWRuBXERTHVdB5hjUlif5dQgPcyN+BX55wUnYpZ3LN9QPfK2Z3/HUZymwyou8Gg6vhd6X2W+g1pLq1jYg==", "dev": true, "funding": [ { @@ -2864,9 +2864,9 @@ } ], "dependencies": { - "@csstools/css-calc": "^1.1.7", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-calc": "^1.2.0", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" }, "engines": { "node": "^14 || ^16 || >=18" @@ -2902,9 +2902,9 @@ } }, "node_modules/@csstools/postcss-trigonometric-functions": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-3.0.5.tgz", - "integrity": "sha512-RhBfQ0TsBudyPuoo8pXKdfQuUiQxMU/Sc5GyV57bWk93JbUHXq6b4CdPx+B/tHUeFKvocVJn/e2jbu96rh0d3Q==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-3.0.6.tgz", + "integrity": "sha512-i5Zd0bMJooZAn+ZcDmPij2WCkcOJJJ6opzK+QeDjxbMrYmoGQl0CY8FDHdeQyBF1Nly+Q0Fq3S7QfdNLKBBaCg==", "dev": true, "funding": [ { @@ -2917,9 +2917,9 @@ } ], "dependencies": { - "@csstools/css-calc": "^1.1.7", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3" + "@csstools/css-calc": "^1.2.0", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4" }, "engines": { "node": "^14 || ^16 || >=18" @@ -11412,9 +11412,9 @@ "peer": true }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true, "funding": [ { @@ -18118,9 +18118,9 @@ } }, "node_modules/postcss-color-functional-notation": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-6.0.5.tgz", - "integrity": "sha512-aTFsIy89ftjyclwUHRwvz1IxucLzVrzmmcXmtbPWT9GdyYeaJEKeAwbaZzOZn7AQlXg4xfwgkYhKsofC4aLIwg==", + "version": "6.0.7", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-6.0.7.tgz", + "integrity": "sha512-VwzaVfu1kEYDK2yM8ixeKA/QbgQ8k0uxpRevLH9Wam+R3C1sg68vnRB7m2AMhYfjqb5khp4p0EQk5aO90ASAkw==", "dev": true, "funding": [ { @@ -18133,10 +18133,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -18233,9 +18233,9 @@ } }, "node_modules/postcss-custom-media": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-10.0.3.tgz", - "integrity": "sha512-wfJ9nKpLn/Qy7LASKu0Rj9Iq2uMzlRt27P4FAE1889IKRMdYUgy8SqvdXfAOs7LJLQX9Fjm0mZ+TSFphD/mKwA==", + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-10.0.4.tgz", + "integrity": "sha512-Ubs7O3wj2prghaKRa68VHBvuy3KnTQ0zbGwqDYY1mntxJD0QL2AeiAy+AMfl3HBedTCVr2IcFNktwty9YpSskA==", "dev": true, "funding": [ { @@ -18248,10 +18248,10 @@ } ], "dependencies": { - "@csstools/cascade-layer-name-parser": "^1.0.8", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/media-query-list-parser": "^2.1.8" + "@csstools/cascade-layer-name-parser": "^1.0.9", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/media-query-list-parser": "^2.1.9" }, "engines": { "node": "^14 || ^16 || >=18" @@ -18261,9 +18261,9 @@ } }, "node_modules/postcss-custom-properties": { - "version": "13.3.5", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-13.3.5.tgz", - "integrity": "sha512-xHg8DTCMfN2nrqs2CQTF+0m5jgnzKL5zrW5Y05KF6xBRO0uDPxiplBm/xcr1o49SLbyJXkMuaRJKhRzkrquKnQ==", + "version": "13.3.6", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-13.3.6.tgz", + "integrity": "sha512-vVVIwQbJiIz+PBLMIWA6XMi53Zg66/f474KolA7x0Das6EwkATc/9ZvM6zZx2gs7ZhcgVHjmWBbHkK9FlCgLeA==", "dev": true, "funding": [ { @@ -18276,9 +18276,9 @@ } ], "dependencies": { - "@csstools/cascade-layer-name-parser": "^1.0.8", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", + "@csstools/cascade-layer-name-parser": "^1.0.9", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", "@csstools/utilities": "^1.0.0", "postcss-value-parser": "^4.2.0" }, @@ -18290,9 +18290,9 @@ } }, "node_modules/postcss-custom-selectors": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-7.1.7.tgz", - "integrity": "sha512-N19MpExaR+hYTXU59VO02xE42zLoAUYSVcupwkKlWWLteOb+sWCWHw5FhV7u7gVLTzaGULy7nZP3DNTHgOZAPA==", + "version": "7.1.8", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-7.1.8.tgz", + "integrity": "sha512-fqDkGSEsO7+oQaqdRdR8nwwqH+N2uk6LE/2g4myVJJYz/Ly418lHKEleKTdV/GzjBjFcG4n0dbfuH/Pd2BE8YA==", "dev": true, "funding": [ { @@ -18305,9 +18305,9 @@ } ], "dependencies": { - "@csstools/cascade-layer-name-parser": "^1.0.8", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", + "@csstools/cascade-layer-name-parser": "^1.0.9", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", "postcss-selector-parser": "^6.0.13" }, "engines": { @@ -18391,9 +18391,9 @@ } }, "node_modules/postcss-double-position-gradients": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-5.0.4.tgz", - "integrity": "sha512-xOH2QhazCPeYR+ziYaDcGlpo7Bpw8PVoggOFfU/xPkmBRUQH8MR2eWoPY1CZM93CB0WKs2mxq3ORo83QGIooLw==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-5.0.5.tgz", + "integrity": "sha512-26Tx4BfoxMNO9C89Nk56bfGv4jAwdDVgrQOyHZOP/6/D+xuOBf306KzTjHC2oBzaIIVtX+famOWHv4raxMjJMQ==", "dev": true, "funding": [ { @@ -18406,7 +18406,7 @@ } ], "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0", "postcss-value-parser": "^4.2.0" }, @@ -18573,9 +18573,9 @@ } }, "node_modules/postcss-lab-function": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-6.0.10.tgz", - "integrity": "sha512-Csvw/CwwuwTojK2O3Ad0SvYKrfnAKy+uvT+1Fjk6igR+n8gHuJHIwdj1A2s46EZZojg3RkibdMBuv1vMvR6Sng==", + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-6.0.12.tgz", + "integrity": "sha512-flHW2jdRCRe8ClhMgrylR1BCiyyqLLvp1qKfO5wuAclUihldfRsoDIFQWFVW7rJbruil9/LCoHNUvY9JwTlLPw==", "dev": true, "funding": [ { @@ -18588,10 +18588,10 @@ } ], "dependencies": { - "@csstools/css-color-parser": "^1.5.2", - "@csstools/css-parser-algorithms": "^2.6.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", + "@csstools/css-color-parser": "^1.6.2", + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", "@csstools/utilities": "^1.0.0" }, "engines": { @@ -19124,9 +19124,9 @@ } }, "node_modules/postcss-preset-env": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-9.5.0.tgz", - "integrity": "sha512-ZTrTWCSqKVYSABB1GerMBb6F8Uto5YWIq1nqi+TKOHPzrXMcyJNuJTc0v2lp5WjG4Sfvwdo7HF/7/3j7HskRog==", + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-9.5.2.tgz", + "integrity": "sha512-/KIAHELdg5BxsKA/Vc6Nok/66EM7lps8NulKcQWX2S52HdzxAqh+6HcuAFj7trRSW587vlOA4zCjlRFgR+W6Ag==", "dev": true, "funding": [ { @@ -19140,33 +19140,33 @@ ], "dependencies": { "@csstools/postcss-cascade-layers": "^4.0.3", - "@csstools/postcss-color-function": "^3.0.10", - "@csstools/postcss-color-mix-function": "^2.0.10", - "@csstools/postcss-exponential-functions": "^1.0.4", + "@csstools/postcss-color-function": "^3.0.12", + "@csstools/postcss-color-mix-function": "^2.0.12", + "@csstools/postcss-exponential-functions": "^1.0.5", "@csstools/postcss-font-format-keywords": "^3.0.2", - "@csstools/postcss-gamut-mapping": "^1.0.3", - "@csstools/postcss-gradients-interpolation-method": "^4.0.11", - "@csstools/postcss-hwb-function": "^3.0.9", - "@csstools/postcss-ic-unit": "^3.0.4", + "@csstools/postcss-gamut-mapping": "^1.0.5", + "@csstools/postcss-gradients-interpolation-method": "^4.0.13", + "@csstools/postcss-hwb-function": "^3.0.11", + "@csstools/postcss-ic-unit": "^3.0.5", "@csstools/postcss-initial": "^1.0.1", "@csstools/postcss-is-pseudo-class": "^4.0.5", - "@csstools/postcss-light-dark-function": "^1.0.0", + "@csstools/postcss-light-dark-function": "^1.0.1", "@csstools/postcss-logical-float-and-clear": "^2.0.1", "@csstools/postcss-logical-overflow": "^1.0.1", "@csstools/postcss-logical-overscroll-behavior": "^1.0.1", "@csstools/postcss-logical-resize": "^2.0.1", - "@csstools/postcss-logical-viewport-units": "^2.0.6", - "@csstools/postcss-media-minmax": "^1.1.3", - "@csstools/postcss-media-queries-aspect-ratio-number-values": "^2.0.6", + "@csstools/postcss-logical-viewport-units": "^2.0.7", + "@csstools/postcss-media-minmax": "^1.1.4", + "@csstools/postcss-media-queries-aspect-ratio-number-values": "^2.0.7", "@csstools/postcss-nested-calc": "^3.0.2", "@csstools/postcss-normalize-display-values": "^3.0.2", - "@csstools/postcss-oklab-function": "^3.0.10", - "@csstools/postcss-progressive-custom-properties": "^3.1.0", - "@csstools/postcss-relative-color-syntax": "^2.0.10", + "@csstools/postcss-oklab-function": "^3.0.12", + "@csstools/postcss-progressive-custom-properties": "^3.1.1", + "@csstools/postcss-relative-color-syntax": "^2.0.12", "@csstools/postcss-scope-pseudo-class": "^3.0.1", - "@csstools/postcss-stepped-value-functions": "^3.0.5", + "@csstools/postcss-stepped-value-functions": "^3.0.6", "@csstools/postcss-text-decoration-shorthand": "^3.0.4", - "@csstools/postcss-trigonometric-functions": "^3.0.5", + "@csstools/postcss-trigonometric-functions": "^3.0.6", "@csstools/postcss-unset-value": "^3.0.1", "autoprefixer": "^10.4.18", "browserslist": "^4.22.3", @@ -19176,20 +19176,20 @@ "cssdb": "^7.11.1", "postcss-attribute-case-insensitive": "^6.0.3", "postcss-clamp": "^4.1.0", - "postcss-color-functional-notation": "^6.0.5", + "postcss-color-functional-notation": "^6.0.7", "postcss-color-hex-alpha": "^9.0.4", "postcss-color-rebeccapurple": "^9.0.3", - "postcss-custom-media": "^10.0.3", - "postcss-custom-properties": "^13.3.5", - "postcss-custom-selectors": "^7.1.7", + "postcss-custom-media": "^10.0.4", + "postcss-custom-properties": "^13.3.6", + "postcss-custom-selectors": "^7.1.8", "postcss-dir-pseudo-class": "^8.0.1", - "postcss-double-position-gradients": "^5.0.4", + "postcss-double-position-gradients": "^5.0.5", "postcss-focus-visible": "^9.0.1", "postcss-focus-within": "^8.0.1", "postcss-font-variant": "^5.0.0", "postcss-gap-properties": "^5.0.1", "postcss-image-set-function": "^6.0.3", - "postcss-lab-function": "^6.0.10", + "postcss-lab-function": "^6.0.12", "postcss-logical": "^7.0.1", "postcss-nesting": "^12.1.0", "postcss-opacity-percentage": "^2.0.0", diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index c5c1e7a158..b59c5501ea 100644 --- a/search/search-dev-tools/build/bundle.js +++ b/search/search-dev-tools/build/bundle.js @@ -1 +1 @@ -(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=y()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?m(i):b(i,{container:r}):void 0},k=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e);var n,r,o,s=u(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return m(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(p()),S=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,L.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function l(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=M,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,L.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,L.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,L.XX)((0,L.n)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,L.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,L.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,L.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function k(e){return L.n.bind(null,e)}function S(e){return!!e&&e.$$typeof===U}function x(e){return S(e)&&e.type===L.FK}function C(e){return S(e)?L.Ob.apply(null,arguments):e}function E(e){return!!e.__k&&((0,L.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function N(e){e()}function P(e){return e}function A(){return[!1,N]}function $(e,t){var n=t(),r=(0,T.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,T.Nf)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,T.vJ)((function(){return j(o)&&i({h:o}),e((function(){j(o)&&i({h:o})}))}),[e]),n}function j(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>D,Component:()=>L.uA,Fragment:()=>L.FK,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>L.q6,createElement:()=>L.n,createFactory:()=>k,createPortal:()=>v,createRef:()=>L._3,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>N,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>T.hb,useContext:()=>T.NT,useDebugValue:()=>T.MN,useDeferredValue:()=>P,useEffect:()=>T.vJ,useErrorBoundary:()=>T.Md,useId:()=>T.Bi,useImperativeHandle:()=>T.Yn,useInsertionEffect:()=>ie,useLayoutEffect:()=>T.Nf,useMemo:()=>T.Kr,useReducer:()=>T.WO,useRef:()=>T.li,useState:()=>T.J0,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var L=n(172),T=n(994);(i.prototype=new L.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=L.fF.__b;L.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,q=function(e,t){return null==e?null:(0,L.v2)((0,L.v2)(e).map(t))},D={map:q,forEach:q,count:function(e){return e?(0,L.v2)(e).length:0},only:function(e){var t=(0,L.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L.v2},R=L.fF.__e;L.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);R(e,t,n,r)};var F=L.fF.unmount;L.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),F&&F(e)},(c.prototype=new L.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,L.n)(L.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,L.n)(L.FK,null,t.__a?null:e.children),o]};var H=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?T.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return a(e,l,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++M:o,__i:-1,__u:0};return null==o&&null!=I.vnode&&I.vnode(i),i}function l(){return{current:null}}function u(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tn?(C(r,t,o),o.length=r.length=0,t=void 0,q.sort(F)):t&&I.__c&&I.__c(t,W));t&&C(r,t,o),d.__r=0}function h(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,h,m=r&&r.__k||W,g=t.length;for(n.__d=u,v(n,t,m),u=n.__d,f=0;f0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=g(o,n,l,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?T.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function L(e,t){var n={__c:t="__cC"+H++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,p(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>u,Ob:()=>j,Qv:()=>$,XX:()=>A,_3:()=>l,fF:()=>I,h:()=>i,n:()=>i,q6:()=>L,uA:()=>s,v2:()=>m});var T,I,M,q,D,R,F,H,U={},W=[],z=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;T=W.slice,I={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},M=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),p(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),p(this))},s.prototype.render=u,q=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,F=function(e,t){return e.__v.__b-t.__v.__b},d.__r=0,H=0},994:(e,t,n)=>{"use strict";function r(e,t){A.__h&&A.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:P}),n.__[e]}function o(e){return O=1,i(w,e)}function i(e,t,n){var o=r(k++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=S,!S.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};S.u=!0;var a=S.shouldComponentUpdate,l=S.componentWillUpdate;S.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}l&&l.call(this,e,t,n)},S.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(k++,3);!A.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!A.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=6,l((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(k++,7);return b(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=8,c((function(){return e}),t)}function _(e){var t=S.context[e.__c],n=r(k++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(S)),t.props.value):e.__}function p(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function d(e){var t=r(k++,10),n=o();return t.__=e,S.componentDidCatch||(S.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(k++,11);if(!e.__){for(var t=S.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=N.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),q&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);q&&(t=requestAnimationFrame(n))}function m(e){var t=S,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),S=t}function g(e){var t=S;e.__c=e.__(),S=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>p,Md:()=>d,NT:()=>_,Nf:()=>l,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>u,vJ:()=>a});var k,S,x,C,E=n(172),O=0,N=[],P=[],A=E.fF,$=A.__b,j=A.__r,L=A.diffed,T=A.__c,I=A.unmount,M=A.__;A.__b=function(e){S=null,$&&$(e)},A.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},A.__r=function(e){j&&j(e),k=0;var t=(S=e.__c).__H;t&&(x===S?(t.__h=[],S.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=P,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},A.diffed=function(e){L&&L(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==N.push(t)&&C===A.requestAnimationFrame||((C=A.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==P&&(e.__=e.__V),e.i=void 0,e.__V=P}))),x=S=null},A.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],A.__e(n,e.__v)}})),T&&T(e,t)},A.unmount=function(e){I&&I(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&A.__e(t,n.__v))};var q="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,l,u,s,c){for(var _ in l)if(l.hasOwnProperty(_)&&l[_]){var p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=c.reach);S+=k.value.length,k=k.next){var x=k.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,N=C.index+C[0].length,P=S;for(P+=k.value.length;O>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Pc.reach&&(c.reach=T);var I=k.prev;if(j&&(I=i(o,I,j),S+=j.length),a(o,I,E),k=i(o,I,new t(_,v?f.tokenize($,v):$,g,$)),L&&i(o,k,L),E>1){var M={cause:_+","+d,reach:T};r(e,o,l,k.prev,S,M),c&&M.reach>c.reach&&(c.reach=M.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var p=document.readyState;"loading"===p||"interactive"===p&&_&&_.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,l=r.code.match(n),u=new Array((l?l.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,N=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},N,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),P),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),P)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
"}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},l=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(u,r,o,i,l,"next",e)}function l(e){a(u,r,o,i,l,"throw",e)}var u=e.apply(t,n);i(void 0)}))},l.apply(this,arguments)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(b()("other",_-2,!0)):"";return(0,m.h)("div",{className:x()(n(n(n({},C.info_block,!0),C.info_block_collapsible,a.collapsible||!1),C.info_block_collapsed,u))},(0,m.h)("h5",{className:C.info_label,onClick:c},t),a.collapsible?(0,m.h)(O,null,(0,m.h)("div",{className:x()(n({},C.info_block_inner,!0))},f?o.map((function(e){return(0,m.h)("span",{key:e,className:C.info_block_item},e)})):(0,m.h)("span",null,o)),(0,m.h)("span",{className:C.info_block_teaser,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(p):"Click to show")):(0,m.h)("span",null,f?o.join(", "):o))};const A=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,m.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,m.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,m.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var $=e(576),j=e.n($),L=e(983),T=(e(837),e(514),e(69)),I=e.n(T);const M="query_wrap__uIeve",q="query_result__k_RWY",D="query_actions__ImK9_",R="query_handle__e0c8G",F="query_collapsed__PGXWS",H="grid_container__esEnb",U="query_src_header__wWAup",W="query_res_header__DMOpO",z="query_src__MoJsW",V="query_res__FZmqB",K="query_src_extra__aZwxj",B="container_editor___Y1qC",J="container_editor_line_number__FU7Ow",G="collapsible_list__PJS0Z",X="collapsible_list_details__u5Pq3",Z="visible__M2eJW";var Y=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,k.J0)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,m.h)("div",{className:x()(s(s({},G,!0),Z,a))},(0,m.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,m.h)("ol",{className:"".concat(X," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))},Q=e(172).FK,ee=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,u=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=d((0,k.J0)(f),2),v=h[0],y=h[1],g="#query-response-copy-handle",w=(0,k.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return l.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);y((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){p(l,r,o,i,a,"next",e)}function a(e){p(l,r,o,i,a,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,k.vJ)((function(){var e=new(j())(g);return e.on("success",(function(e){document.querySelector(g).innerHTML="COPIED!",setTimeout((function(){document.querySelector(g).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.vJ)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var S;return(0,m.h)("div",{className:x()(M,v.collapsed?F:null)},(0,m.h)("div",{className:R,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},b()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:H},(0,m.h)("div",{className:U},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:K},(0,m.h)(Y,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Y,{title:"Trace",list:u}))),(0,m.h)("div",{className:W},"Response"),(0,m.h)("div",{className:"".concat(z," query-src-box")},(0,m.h)("div",{className:D},v.editing||v.result!==c?(0,m.h)(Q,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(I(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,L.highlight)(e,L.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:B,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(V," query-result-box")},(0,m.h)("div",{className:q},(0,m.h)("div",{className:D},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},te=function(){var e=(0,k.NT)(E).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ee,_({key:t},e))})))};const ne="vip_search_dev_tools__WdCFa",re="ab_btn__Grxiu";var oe=function(e){var t=(0,k.NT)(E).queries;return(0,m.h)("button",e,"Search: ",b()("query",t.length,!0))};const ie=function(){var e,t=v((0,k.J0)(!1),2),n=t[0],r=t[1],o=(0,k.hb)((function(){return r(!1)}),[]),i=(0,k.hb)((function(){return r(!n)}),[n]);return(0,m.h)(E.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:re,onClick:i}),(0,w.createPortal)((0,m.h)(A,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:ne},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)(N,null),(0,m.h)(te,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.XX)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ No newline at end of file +(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=y()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?m(i):b(i,{container:r}):void 0},k=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e);var n,r,o,s=u(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return m(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(p()),S=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,L.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function l(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=M,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,L.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,L.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,L.XX)((0,L.n)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,L.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,L.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,L.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function k(e){return L.n.bind(null,e)}function S(e){return!!e&&e.$$typeof===U}function x(e){return S(e)&&e.type===L.FK}function C(e){return S(e)?L.Ob.apply(null,arguments):e}function E(e){return!!e.__k&&((0,L.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function N(e){e()}function P(e){return e}function A(){return[!1,N]}function $(e,t){var n=t(),r=(0,T.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,T.Nf)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,T.vJ)((function(){return j(o)&&i({h:o}),e((function(){j(o)&&i({h:o})}))}),[e]),n}function j(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>D,Component:()=>L.uA,Fragment:()=>L.FK,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>L.q6,createElement:()=>L.n,createFactory:()=>k,createPortal:()=>v,createRef:()=>L._3,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>N,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>T.hb,useContext:()=>T.NT,useDebugValue:()=>T.MN,useDeferredValue:()=>P,useEffect:()=>T.vJ,useErrorBoundary:()=>T.Md,useId:()=>T.Bi,useImperativeHandle:()=>T.Yn,useInsertionEffect:()=>ie,useLayoutEffect:()=>T.Nf,useMemo:()=>T.Kr,useReducer:()=>T.WO,useRef:()=>T.li,useState:()=>T.J0,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var L=n(172),T=n(994);(i.prototype=new L.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=L.fF.__b;L.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,q=function(e,t){return null==e?null:(0,L.v2)((0,L.v2)(e).map(t))},D={map:q,forEach:q,count:function(e){return e?(0,L.v2)(e).length:0},only:function(e){var t=(0,L.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L.v2},R=L.fF.__e;L.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);R(e,t,n,r)};var F=L.fF.unmount;L.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),F&&F(e)},(c.prototype=new L.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,L.n)(L.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,L.n)(L.FK,null,t.__a?null:e.children),o]};var H=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?L.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return a(e,l,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++I:o,__i:-1,__u:0};return null==o&&null!=T.vnode&&T.vnode(i),i}function l(){return{current:null}}function u(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tt&&M.sort(R));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||U,g=t.length;for(n.__d=u,h(n,t,m),u=n.__d,f=0;f0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=m(o,n,l,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?L.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+F++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>u,Ob:()=>$,Qv:()=>A,XX:()=>P,_3:()=>l,fF:()=>T,h:()=>i,n:()=>i,q6:()=>j,uA:()=>s,v2:()=>y});var L,T,I,M,q,D,R,F,H={},U=[],W=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,z=Array.isArray;L=U.slice,T={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},I=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},s.prototype.render=u,M=[],D="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,F=0},994:(e,t,n)=>{"use strict";function r(e,t){A.__h&&A.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:P}),n.__[e]}function o(e){return O=1,i(w,e)}function i(e,t,n){var o=r(k++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=S,!S.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};S.u=!0;var a=S.shouldComponentUpdate,l=S.componentWillUpdate;S.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}l&&l.call(this,e,t,n)},S.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(k++,3);!A.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!A.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=6,l((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(k++,7);return b(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=8,c((function(){return e}),t)}function _(e){var t=S.context[e.__c],n=r(k++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(S)),t.props.value):e.__}function p(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function d(e){var t=r(k++,10),n=o();return t.__=e,S.componentDidCatch||(S.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(k++,11);if(!e.__){for(var t=S.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=N.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),q&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);q&&(t=requestAnimationFrame(n))}function m(e){var t=S,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),S=t}function g(e){var t=S;e.__c=e.__(),S=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>p,Md:()=>d,NT:()=>_,Nf:()=>l,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>u,vJ:()=>a});var k,S,x,C,E=n(172),O=0,N=[],P=[],A=E.fF,$=A.__b,j=A.__r,L=A.diffed,T=A.__c,I=A.unmount,M=A.__;A.__b=function(e){S=null,$&&$(e)},A.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},A.__r=function(e){j&&j(e),k=0;var t=(S=e.__c).__H;t&&(x===S?(t.__h=[],S.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=P,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},A.diffed=function(e){L&&L(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==N.push(t)&&C===A.requestAnimationFrame||((C=A.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==P&&(e.__=e.__V),e.i=void 0,e.__V=P}))),x=S=null},A.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],A.__e(n,e.__v)}})),T&&T(e,t)},A.unmount=function(e){I&&I(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&A.__e(t,n.__v))};var q="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,l,u,s,c){for(var _ in l)if(l.hasOwnProperty(_)&&l[_]){var p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=c.reach);S+=k.value.length,k=k.next){var x=k.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,N=C.index+C[0].length,P=S;for(P+=k.value.length;O>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Pc.reach&&(c.reach=T);var I=k.prev;if(j&&(I=i(o,I,j),S+=j.length),a(o,I,E),k=i(o,I,new t(_,v?f.tokenize($,v):$,g,$)),L&&i(o,k,L),E>1){var M={cause:_+","+d,reach:T};r(e,o,l,k.prev,S,M),c&&M.reach>c.reach&&(c.reach=M.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var p=document.readyState;"loading"===p||"interactive"===p&&_&&_.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,l=r.code.match(n),u=new Array((l?l.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,N=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},N,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),P),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),P)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
"}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},l=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(u,r,o,i,l,"next",e)}function l(e){a(u,r,o,i,l,"throw",e)}var u=e.apply(t,n);i(void 0)}))},l.apply(this,arguments)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(b()("other",_-2,!0)):"";return(0,m.h)("div",{className:x()(n(n(n({},C.info_block,!0),C.info_block_collapsible,a.collapsible||!1),C.info_block_collapsed,u))},(0,m.h)("h5",{className:C.info_label,onClick:c},t),a.collapsible?(0,m.h)(O,null,(0,m.h)("div",{className:x()(n({},C.info_block_inner,!0))},f?o.map((function(e){return(0,m.h)("span",{key:e,className:C.info_block_item},e)})):(0,m.h)("span",null,o)),(0,m.h)("span",{className:C.info_block_teaser,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(p):"Click to show")):(0,m.h)("span",null,f?o.join(", "):o))};const A=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,m.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,m.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,m.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var $=e(576),j=e.n($),L=e(983),T=(e(837),e(514),e(69)),I=e.n(T);const M="query_wrap__uIeve",q="query_result__k_RWY",D="query_actions__ImK9_",R="query_handle__e0c8G",F="query_collapsed__PGXWS",H="grid_container__esEnb",U="query_src_header__wWAup",W="query_res_header__DMOpO",z="query_src__MoJsW",V="query_res__FZmqB",K="query_src_extra__aZwxj",B="container_editor___Y1qC",J="container_editor_line_number__FU7Ow",G="collapsible_list__PJS0Z",X="collapsible_list_details__u5Pq3",Z="visible__M2eJW";var Y=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,k.J0)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,m.h)("div",{className:x()(s(s({},G,!0),Z,a))},(0,m.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,m.h)("ol",{className:"".concat(X," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))},Q=e(172).FK,ee=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,u=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=d((0,k.J0)(f),2),v=h[0],y=h[1],g="#query-response-copy-handle",w=(0,k.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return l.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);y((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){p(l,r,o,i,a,"next",e)}function a(e){p(l,r,o,i,a,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,k.vJ)((function(){var e=new(j())(g);return e.on("success",(function(e){document.querySelector(g).innerHTML="COPIED!",setTimeout((function(){document.querySelector(g).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.vJ)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var S;return(0,m.h)("div",{className:x()(M,v.collapsed?F:null)},(0,m.h)("div",{className:R,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},b()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:H},(0,m.h)("div",{className:U},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:K},(0,m.h)(Y,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Y,{title:"Trace",list:u}))),(0,m.h)("div",{className:W},"Response"),(0,m.h)("div",{className:"".concat(z," query-src-box")},(0,m.h)("div",{className:D},v.editing||v.result!==c?(0,m.h)(Q,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(I(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,L.highlight)(e,L.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:B,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(V," query-result-box")},(0,m.h)("div",{className:q},(0,m.h)("div",{className:D},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},te=function(){var e=(0,k.NT)(E).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ee,_({key:t},e))})))};const ne="vip_search_dev_tools__WdCFa",re="ab_btn__Grxiu";var oe=function(e){var t=(0,k.NT)(E).queries;return(0,m.h)("button",e,"Search: ",b()("query",t.length,!0))};const ie=function(){var e,t=v((0,k.J0)(!1),2),n=t[0],r=t[1],o=(0,k.hb)((function(){return r(!1)}),[]),i=(0,k.hb)((function(){return r(!n)}),[n]);return(0,m.h)(E.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:re,onClick:i}),(0,w.createPortal)((0,m.h)(A,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:ne},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)(N,null),(0,m.h)(te,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.XX)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ No newline at end of file diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index d6fc181001..5bf28b88e2 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -224,17 +224,17 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", - "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.1.tgz", + "integrity": "sha512-1yJa9dX9g//V6fDebXoEfEsxkZHk3Hcbm+zLhyu6qVgYFLvmTALTeV+jNU9e5RnYtioBrGEOdoI2joMSNQ/+aA==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.23.0", "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-replace-supers": "^7.24.1", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", "semver": "^6.3.1" @@ -395,13 +395,13 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz", + "integrity": "sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-member-expression-to-functions": "^7.23.0", "@babel/helper-optimise-call-expression": "^7.22.5" }, "engines": { @@ -934,13 +934,13 @@ } }, "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", - "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.1.tgz", + "integrity": "sha512-OMLCXi0NqvJfORTaPQBwqLXHhb93wkBKZ4aNwMl6WtehO7ar+cmp+89iPEQPqxAnxsOKTaMcs3POz3rKayJ72g==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-class-features-plugin": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -6698,9 +6698,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true, "funding": [ { @@ -9907,9 +9907,9 @@ "dev": true }, "node_modules/preact": { - "version": "10.19.6", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.19.6.tgz", - "integrity": "sha512-gympg+T2Z1fG1unB8NH29yHJwnEaCH37Z32diPDku316OTnRPeMbiRV9kTrfZpocXjdfnWuFUl/Mj4BHaf6gnw==", + "version": "10.19.7", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.19.7.tgz", + "integrity": "sha512-IJOW6cQN1fwfC17HfNOqUtAGyB8wAYshuC+jG1JiL/1+sC4yVyuA3IcF0N9vdodMJjW/lbuEF5qFsJqGNcbHbw==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -10542,9 +10542,9 @@ "dev": true }, "node_modules/sass": { - "version": "1.71.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz", - "integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==", + "version": "1.72.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.72.0.tgz", + "integrity": "sha512-Gpczt3WA56Ly0Mn8Sl21Vj94s1axi9hDIzDFn9Ph9x3C3p4nNyvsqJoQyVXKou6cBlfFWEgRW4rT8Tb4i3XnVA==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -12126,9 +12126,9 @@ } }, "node_modules/webpack-dev-server": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.0.2.tgz", - "integrity": "sha512-IVj3qsQhiLJR82zVg3QdPtngMD05CYP/Am+9NG5QSl+XwUR/UPtFwllRBKrMwM9ttzFsC6Zj3DMgniPyn/Z0hQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.0.3.tgz", + "integrity": "sha512-4aj4I8FJLsFbd4Vt6YBXC8CWrOOwviEI9DdVTu9hrgIBGWs4oKOVfDnaRc+vgf1JUSir1psph1ChPFDkTGHR2Q==", "dev": true, "dependencies": { "@types/bonjour": "^3.5.13", diff --git a/tests/files/test-vip-filesystem.php b/tests/files/test-vip-filesystem.php index fe0250b45f..c23692bd69 100644 --- a/tests/files/test-vip-filesystem.php +++ b/tests/files/test-vip-filesystem.php @@ -29,8 +29,8 @@ class VIP_Filesystem_Test extends WP_UnitTestCase { public static function configure_constant_mocker(): void { Constant_Mocker::clear(); - define( 'LOCAL_UPLOADS', '/wp/uploads' ); - define( 'WP_CONTENT_DIR', '/wp/wordpress/wp-content' ); + define( 'LOCAL_UPLOADS', '/tmp/uploads' ); + define( 'WP_CONTENT_DIR', '/tmp/wordpress/wp-content' ); } public function setUp(): void { @@ -386,4 +386,23 @@ public function data_get_transport_for_path(): iterable { [ constant( 'WP_CONTENT_DIR' ) . '/languages/test.txt', 'direct' ], ]; } + + public function test_wp_font_dir() { + // Only available in WP 6.5 and newer: + if ( ! function_exists( '\wp_get_font_dir' ) ) { + $this->markTestSkipped( 'test_wp_font_dir does not need to run for WP < 6.5.' ); + return; + } + + $font_dir = \wp_get_font_dir(); + + $this->assertEquals( $font_dir, [ + 'path' => 'vip://wp-content/uploads/fonts', + 'basedir' => 'vip://wp-content/uploads/fonts', + 'url' => 'http://example.org/wp-content/uploads/fonts', + 'baseurl' => 'http://example.org/wp-content/uploads/fonts', + 'subdir' => '', + 'error' => false, + ] ); + } } diff --git a/vip-jetpack/vip-jetpack.php b/vip-jetpack/vip-jetpack.php index 9ec206ab1a..bf02ce0d24 100644 --- a/vip-jetpack/vip-jetpack.php +++ b/vip-jetpack/vip-jetpack.php @@ -437,6 +437,30 @@ function vip_filter_jetpack_offline_mode_on_site_launch( $offline_mode ) { add_filter( 'jetpack_offline_mode', 'vip_filter_jetpack_offline_mode_on_site_launch', PHP_INT_MAX, 1 ); +/** + * Prevent admin/support users from spawning (useless, autoloaded) NULL value post_by_email_address* options. + * Addresses https://github.com/Automattic/jetpack/issues/35636 + */ +function vip_prevent_jetpack_post_by_email_database_noise() { + // Prevent saving an unnecessary NULL option to the database. + add_filter( 'pre_update_option_post_by_email_address' . get_current_user_id(), function ( $value, $old_value ) { + if ( 'NULL' === $value ) { + return $old_value; + } + + return $value; + }, 10, 2 ); + + // Prevent unnecessary API calls for finding the remote email address when the module is disabled. + if ( method_exists( 'Jetpack', 'is_module_active' ) && ! Jetpack::is_module_active( 'post-by-email' ) ) { + add_filter( 'pre_option_post_by_email_address' . get_current_user_id(), function () { + return 'NULL'; + } ); + } +} + +add_action( 'admin_init', 'vip_prevent_jetpack_post_by_email_database_noise' ); + /* * Workaround: prevent the "Invite user to WordPress.com" checkbox on "Add New User" page * from blocking new user registration on Jetpack 13.2. diff --git a/vip-support/class-vip-support-cli.php b/vip-support/class-vip-support-cli.php index f4d0cc4be1..4ecccb3e24 100644 --- a/vip-support/class-vip-support-cli.php +++ b/vip-support/class-vip-support-cli.php @@ -8,8 +8,7 @@ use WP_CLI_Command; /** - * Implements a WP CLI command that converts guid users to meta users - * Class command + * Implements a WP CLI command that converts guid users to meta users. * * @package a8c\vip_support */ diff --git a/wp-parsely b/wp-parsely index d85cb3a104..3e4cfe6c42 160000 --- a/wp-parsely +++ b/wp-parsely @@ -1 +1 @@ -Subproject commit d85cb3a104526d966d86acc6233cfed28c6dacdf +Subproject commit 3e4cfe6c42b5f1e8cd080ab042fc48077155b11b