Plugin Directory

Changeset 3705113


Ignore:
Timestamp:
09/21/2026 08:05:18 AM (4 weeks ago)
Author:
retainful
Message:

v1.0.10 release

Location:
retainful/trunk
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • retainful/trunk/App/Controllers/ActionSchedulerCleanup.php

    r3510867 r3705113  
    55use RTFL\App\Helpers\Guard;
    66use RTFL\App\Helpers\Platform;
     7use RTFL\App\Helpers\Plugins;
    78
    89defined( 'ABSPATH' ) || exit;
    … …  
    1516
    1617    public static function cleanupActionScheduler() {
     18                if ( wp_doing_ajax() || wp_doing_cron() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {
     19                        return;
     20                }
    1721                $isCleanUpScheduleAdded = (bool)Platform::getTransient( 'retainful_action_scheduler_cleanup_added' );
    1822        if( $isCleanUpScheduleAdded ) {
    … …  
    2327                }
    2428               
    25                 if( ! Guard::isWCGuard() ){
     29                if( ! Plugins::isActive('woocommerce/woocommerce.php') ){
    2630                        return;
    2731                }
  • retainful/trunk/App/Controllers/Admin/Common.php

    r3655829 r3705113  
    185185                        RTFL_PLUGIN_PREFIX . 'clear_cache',
    186186                        RTFL_PLUGIN_PREFIX . 'popup_js_loading_method',
    187                         RTFL_PLUGIN_PREFIX . 'enable_coupon_cleanup',
    188                         RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period',
    189                         RTFL_PLUGIN_PREFIX . 'coupon_cleanup_unit',
    190187                ];
    191188
    … …  
    223220                        RTFL_PLUGIN_PREFIX . 'popup_js_loading_method',
    224221                ], [ 'cdn', 'local' ] )->message( '{field} contains invalid value' );
    225 
    226                 // Coupon cleanup age and unit are only validated while the feature is
    227                 // switched on. The admin UI hides both controls when the toggle is off,
    228                 // so rejecting a save because of a field the user cannot see leaves them
    229                 // with "Settings not saved!" and nothing to act on. The values are
    230                 // re-validated the moment the toggle goes back on, and until then they
    231                 // are never read: getCutoff() returns 0 for a bad age, which hides the
    232                 // button rather than acting on a wrong number.
    233                 if ( '1' === (string) ( $post_data[ RTFL_PLUGIN_PREFIX . 'enable_coupon_cleanup' ] ?? '0' ) ) {
    234                         $validator->rule( 'in', [
    235                                 RTFL_PLUGIN_PREFIX . 'coupon_cleanup_unit',
    236                         ], Settings::getCouponCleanupUnits() )->message( '{field} contains invalid value' );
    237 
    238                         // Whole number, at least 1. No upper bound by design — a store may
    239                         // legitimately keep coupons for years.
    240                         // 'required' matters: Valitron skips integer/min on an empty value,
    241                         // so without it a cleared field saves as '' -> cutoff 0 -> the
    242                         // button silently disappears while the toggle still reads "on".
    243                         $validator->rule( 'required', RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period' )
    244                                   ->message( '{field} is required' );
    245                         $validator->rule( 'integer', RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period' )
    246                                   ->message( '{field} must be a whole number' );
    247                         $validator->rule( 'min', RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period', 1 )
    248                                   ->message( '{field} must be at least 1' );
    249                 }
    250222
    251223                // Validate order status fields (comma-separated strings)
    … …  
    283255                        RTFL_PLUGIN_PREFIX . 'enable_debug_log',
    284256                        RTFL_PLUGIN_PREFIX . 'clear_cache',
    285                         RTFL_PLUGIN_PREFIX . 'enable_coupon_cleanup',
    286257                ], [ '1', '0' ] )->message( '{field} contains invalid value' );
    287258
  • retainful/trunk/App/Controllers/Admin/Label.php

    r3655829 r3705113  
    201201                                'popup_js_toggle_cdn'                            => __( 'CDN', 'retainful' ),
    202202                                'popup_js_toggle_local'                          => __( 'Local', 'retainful' ),
    203                                 'enable_coupon_cleanup'                          => __( 'Delete old Retainful coupons', 'retainful' ),
    204                                 'enable_coupon_cleanup_description'              => __( 'Adds a button to the Coupons screen that permanently deletes expired coupons Retainful created. Coupons you created yourself are never touched. Deleted coupons disappear from WooCommerce coupon reports, so leave this off unless the coupon table has grown too large.', 'retainful' ),
    205                                 'coupon_cleanup_age'                             => __( 'Delete coupons that expired more than', 'retainful' ),
    206                                 'coupon_cleanup_age_description'                 => __( 'Anything that expired inside this window is kept. For example, 60 days keeps every coupon that expired in the last 60 days.', 'retainful' ),
    207                                 'coupon_cleanup_period_placeholder'              => __( '60', 'retainful' ),
    208                                 'coupon_cleanup_unit_options'                    => [
    209                                         [
    210                                                 'label' => __( 'Days ago', 'retainful' ),
    211                                                 'value' => 'day',
    212                                         ],
    213                                         [
    214                                                 'label' => __( 'Months ago', 'retainful' ),
    215                                                 'value' => 'month',
    216                                         ],
    217                                         [
    218                                                 'label' => __( 'Years ago', 'retainful' ),
    219                                                 'value' => 'year',
    220                                         ],
    221                                 ],
    222203                                'ip_addresses_label'                             => __( 'IP Addresses (comma separated)', 'retainful' ),
    223204                                'ip_addresses_placeholder'                       => __( '192.168.1.1, 10.0.0.1', 'retainful' ),
  • retainful/trunk/App/Controllers/CouponCleanup.php

    r3655829 r3705113  
    3939
    4040        /**
     41         * AJAX action the popup calls to re-price the count/date as the user
     42         * changes the period or unit.
     43         *
     44         * Why this needs a request at all: the count depends on a WHERE clause
     45         * evaluated against every Retainful-marked coupon's expiry/usage meta in
     46         * the database. Making that live without a request would mean shipping
     47         * every marked coupon's timestamps to the browser on every load of the
     48         * Coupons screen so JS could filter them locally — for the large coupon
     49         * tables this feature exists to clean up, that payload is worse than the
     50         * one small request this endpoint costs. So the request stays server-side,
     51         * and its cost is kept negligible instead:
     52         *  - only wired up while this destructive-action dialog is open, never on
     53         *    page load, and the button that opens it only renders when there is
     54         *    at least one candidate to begin with;
     55         *  - debounced client-side, so typing a number fires one request, not one
     56         *    per keystroke;
     57         *  - answered by countCandidatesCached(), the same 5-minute-cached count
     58         *    the button label itself uses — no new query shape, no new load.
     59         */
     60        const AJAX_PREVIEW_ACTION = 'rtfl_coupon_cleanup_preview';
     61
     62        /**
     63         * Age used before the user has chosen one in the popup — to decide whether
     64         * the button is worth showing at all, and as the fallback if a batch is
     65         * ever re-queued by hand with no frozen args. Not a stored setting: the
     66         * age itself is chosen at click time in the popup.
     67         */
     68        const DEFAULT_PERIOD = 60;
     69        const DEFAULT_UNIT   = 'day';
     70
     71        /**
    4172         * Short-lived claim held across the "is a pass running?" check and the
    4273         * scheduling that follows it. Two submits arriving together would otherwise
    … …  
    74105                add_action( 'admin_footer', [ self::class, 'renderCleanupDialog' ] );
    75106                add_action( 'admin_post_' . self::ADMIN_ACTION, [ self::class, 'handleCleanupRequest' ] );
     107                add_action( 'wp_ajax_' . self::AJAX_PREVIEW_ACTION, [ self::class, 'ajaxPreview' ] );
    76108        }
    77109
    … …  
    179211                self::setCursor( 0 );
    180212                self::setStatus( $status );
     213
     214                // The pass may have just changed the marked-coupon set completely, and
     215                // the Coupons screen's default cutoff almost certainly landed in a
     216                // different cache bucket than whatever the pass itself ran with —
     217                // forgetCountCache() during the pass only clears its own bucket.
     218                // Rather than track every bucket a cutoff could ever fall into, drop
     219                // every cached count once, here, so the next page load always shows
     220                // what is actually in the database instead of a number left over
     221                // from before the pass ran.
     222                self::flushCountCache();
    181223
    182224                Settings::logMessage(
    … …  
    193235        }
    194236
     237        /**
     238         * Drop every cached candidate count, regardless of which cutoff/modes
     239         * bucket it was computed for. Called once, when a pass finishes — not
     240         * per batch — since that is the one point where the set is guaranteed to
     241         * have settled and every previously cached number could now be wrong.
     242         *
     243         * @return void
     244         */
     245        private static function flushCountCache() {
     246                global $wpdb;
     247
     248                // No per-row API exists for a wildcard transient delete, and tracking
     249                // every bucket a cutoff could ever land in just to forget it later
     250                // would be more code than this rare, one-per-pass cleanup is worth.
     251                // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Bulk transient cleanup; no per-row API exists for a wildcard delete.
     252                $wpdb->query(
     253                        $wpdb->prepare(
     254                                "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
     255                                $wpdb->esc_like( '_transient_rtfl_ccc_' ) . '%',
     256                                $wpdb->esc_like( '_transient_timeout_rtfl_ccc_' ) . '%'
     257                        )
     258                );
     259        }
     260
    195261
    196262        /* ---------------------------------------------------------------------
    … …  
    200266        /**
    201267         * Button on the Coupons list screen, rendered after the Filter button.
    202          * Renders nothing at all when the feature is off — no button, no notice,
    203          * no placeholder.
     268         * Renders nothing when there is nothing to clean up or a pass is already
     269         * running — no button, no notice, no placeholder.
    204270         *
    205271         * Renders only a button here. edit.php wraps the list table in
    … …  
    222288                }
    223289
    224                 if ( ! self::isEnabled() ) {
    225                         return;
    226                 }
     290
    227291
    228292                $cutoff = self::getCutoff();
    … …  
    243307                }
    244308
     309                // Gate on whether anything could ever match some age the merchant
     310                // might pick in the popup, not on the hardcoded default cutoff and not
     311                // on merely having a Retainful coupon at all. "Right now" is the
     312                // widest possible cutoff — expired-or-used at any point in the past —
     313                // so a coupon that has not expired *yet* correctly hides the button,
     314                // while one that is only a day past its default-cutoff window does not.
    245315                $modes = self::getModes();
    246                 $count = $modes ? self::countCandidatesCached( $cutoff, $modes ) : 0;
    247 
    248                 // Nothing to do — say so rather than offering a pass that deletes nothing.
    249                 if ( $count < 1 ) {
     316                $now   = (int) current_time( 'timestamp', true );
     317                if ( ! $modes || self::countCandidatesCached( $now, $modes ) < 1 ) {
    250318                        printf(
    251319                                '<span class="button disabled" aria-disabled="true">%s</span>',
    … …  
    269337                echo '</div>';
    270338
     339                // Count for the default age the dialog opens with — may legitimately
     340                // be 0 if nothing is old enough yet at 60 days; the popup lets the
     341                // merchant shorten the age, and the live preview re-prices this.
     342                $count = self::countCandidatesCached( $cutoff, $modes );
     343
    271344                // The dialog itself is printed in the footer, outside the list table's
    272345                // <form>, so nothing in it can be swept into a filter submit.
    … …  
    274347                        'count'  => $count,
    275348                        'cutoff' => $cutoff,
     349                        'period' => self::getPeriod(),
     350                        'unit'   => self::getUnit(),
    276351                ];
    277352        }
    … …  
    301376                $count  = (int) self::$pending_dialog['count'];
    302377                $cutoff = (int) self::$pending_dialog['cutoff'];
    303                 $date   = wp_date( get_option( 'date_format', 'Y-m-d' ), $cutoff );
     378                $period = (int) self::$pending_dialog['period'];
     379                $unit   = (string) self::$pending_dialog['unit'];
     380                $body   = self::buildDialogBody( $count, $cutoff );
    304381
    305382                /* translators: the word a user types to confirm a destructive action. Keep it short; it is matched exactly, including case. */
    306383                $word = _x( 'DELETE', 'type-to-confirm keyword', 'retainful' );
    307384
    308                 $body = sprintf(
     385                $fallback = $body . ' ' . __( 'This cannot be undone. Continue?', 'retainful' );
     386                ?>
     387                <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" id="rtfl-cleanup-form">
     388                        <input type="hidden" name="action" value="<?php echo esc_attr( self::ADMIN_ACTION ); ?>">
     389                        <?php wp_nonce_field( self::ADMIN_ACTION ); ?>
     390                        <?php /*
     391                         * The age actually submitted lives in these two hidden fields, kept
     392                         * as plain, unambiguous children of this <form> — nothing here
     393                         * depends on how a browser associates a <dialog>'s descendants with
     394                         * a form. The visible controls below are just the UI; the "Delete
     395                         * coupons" click copies their value into these right before submit.
     396                         */ ?>
     397                        <input type="hidden" name="rtfl_cleanup_period" id="rtfl-cleanup-period" value="<?php echo esc_attr( $period ); ?>">
     398                        <input type="hidden" name="rtfl_cleanup_unit" id="rtfl-cleanup-unit" value="<?php echo esc_attr( $unit ); ?>">
     399                        <dialog id="rtfl-cleanup-dialog" aria-labelledby="rtfl-cleanup-title"
     400                                style="max-width:26rem;border:1px solid #c3c4c7;border-radius:4px;padding:20px;">
     401                                <h2 id="rtfl-cleanup-title" style="margin-top:0;">
     402                                        <?php esc_html_e( 'Delete expired Retainful coupons', 'retainful' ); ?>
     403                                </h2>
     404                                <p>
     405                                        <label for="rtfl-cleanup-period-input">
     406                                                <?php esc_html_e( 'Delete coupons that expired more than', 'retainful' ); ?>
     407                                        </label><br>
     408                                        <input type="number" min="1" step="1" id="rtfl-cleanup-period-input"
     409                                               value="<?php echo esc_attr( $period ); ?>" style="width:6rem;">
     410                                        <select id="rtfl-cleanup-unit-input">
     411                                                <?php foreach ( self::getUnitLabels() as $value => $label ) : ?>
     412                                                        <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $unit, $value ); ?>>
     413                                                                <?php echo esc_html( $label ); ?>
     414                                                        </option>
     415                                                <?php endforeach; ?>
     416                                        </select>
     417                                </p>
     418                                <p id="rtfl-cleanup-body"><?php echo esc_html( $body ); ?></p>
     419                                <p><?php esc_html_e( 'Coupons you created yourself are not affected. This cannot be undone.', 'retainful' ); ?></p>
     420                                <p>
     421                                        <label for="rtfl-cleanup-confirm">
     422                                                <?php
     423                                                printf(
     424                                                        /* translators: %s: the word the user must type, e.g. "delete" */
     425                                                        esc_html__( 'Type %s to continue.', 'retainful' ),
     426                                                        '<code>' . esc_html( $word ) . '</code>'
     427                                                );
     428                                                ?>
     429                                        </label>
     430                                </p>
     431                                <input type="text" id="rtfl-cleanup-confirm" class="regular-text" autocomplete="off"
     432                                       spellcheck="false" style="width:100%;">
     433                                <p style="margin-bottom:0;text-align:right;">
     434                                        <button type="button" class="button" id="rtfl-cleanup-cancel">
     435                                                <?php esc_html_e( 'Cancel', 'retainful' ); ?>
     436                                        </button>
     437                                        <button type="button" class="button button-primary" id="rtfl-cleanup-go" disabled>
     438                                                <?php esc_html_e( 'Delete coupons', 'retainful' ); ?>
     439                                        </button>
     440                                </p>
     441                        </dialog>
     442                </form>
     443                <script>
     444                        ( function () {
     445                                var link = document.getElementById( 'rtfl-cleanup-open' );
     446                                if ( ! link ) { return; }
     447
     448                                var form         = document.getElementById( 'rtfl-cleanup-form' );
     449                                var dialog       = document.getElementById( 'rtfl-cleanup-dialog' );
     450                                // The visible age controls the merchant edits.
     451                                var periodInput  = document.getElementById( 'rtfl-cleanup-period-input' );
     452                                var unitSelect   = document.getElementById( 'rtfl-cleanup-unit-input' );
     453                                // The hidden fields actually posted by the form. Synced from the
     454                                // two controls above right before submit.
     455                                var periodField  = document.getElementById( 'rtfl-cleanup-period' );
     456                                var unitField    = document.getElementById( 'rtfl-cleanup-unit' );
     457                                var bodyEl       = document.getElementById( 'rtfl-cleanup-body' );
     458                                var fallback     = <?php echo wp_json_encode( $fallback ); ?>;
     459                                var defaultPeriod = <?php echo (int) $period; ?>;
     460                                var defaultUnit   = <?php echo wp_json_encode( $unit ); ?>;
     461                                var defaultBody   = <?php echo wp_json_encode( $body ); ?>;
     462                                var defaultCount  = <?php echo (int) $count; ?>;
     463                                var ajaxUrl       = <?php echo wp_json_encode( admin_url( 'admin-ajax.php' ) ); ?>;
     464                                var previewAction = <?php echo wp_json_encode( self::AJAX_PREVIEW_ACTION ); ?>;
     465                                var invalidBody   = <?php echo wp_json_encode( __( 'Enter a whole number of 1 or more.', 'retainful' ) ); ?>;
     466
     467                                if ( ! form ) { return; }
     468
     469                                // No <dialog> support: fall back to a plain confirm, using the
     470                                // default age. Without JS at all the button does nothing, which
     471                                // is the safe direction for a destructive action.
     472                                if ( ! dialog || typeof dialog.showModal !== 'function' ) {
     473                                        link.addEventListener( 'click', function () {
     474                                                if ( window.confirm( fallback ) ) { form.submit(); }
     475                                        } );
     476                                        return;
     477                                }
     478
     479                                var input = document.getElementById( 'rtfl-cleanup-confirm' );
     480                                var go    = document.getElementById( 'rtfl-cleanup-go' );
     481                                var word  = <?php echo wp_json_encode( $word ); ?>;
     482                                var currentCount   = defaultCount;
     483                                var previewTimer   = null;
     484
     485                                function matches() {
     486                                        return input.value.trim() === word;
     487                                }
     488
     489                                function updateGoState() {
     490                                        go.disabled = ! ( matches() && currentCount > 0 );
     491                                }
     492
     493                                // Re-prices the confirmation copy against whatever age the user
     494                                // just typed, so the count and cutoff date shown always match
     495                                // what a submit right now would actually delete. One request per
     496                                // pause in typing (see the setTimeout below), answered by the same
     497                                // cached count the button label itself uses.
     498                                function refreshPreview() {
     499                                        var period = parseInt( periodInput.value, 10 );
     500                                        var unit   = unitSelect.value;
     501
     502                                        if ( ! period || period < 1 ) {
     503                                                currentCount = 0;
     504                                                bodyEl.textContent = invalidBody;
     505                                                updateGoState();
     506                                                return;
     507                                        }
     508
     509                                        var nonceField = form.querySelector( '[name="_wpnonce"]' );
     510                                        var body       = 'action=' + encodeURIComponent( previewAction )
     511                                                + '&nonce=' + encodeURIComponent( nonceField ? nonceField.value : '' )
     512                                                + '&period=' + encodeURIComponent( period )
     513                                                + '&unit=' + encodeURIComponent( unit );
     514
     515                                        fetch( ajaxUrl, {
     516                                                method: 'POST',
     517                                                credentials: 'same-origin',
     518                                                headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
     519                                                body: body
     520                                        } )
     521                                                .then( function ( r ) { return r.json(); } )
     522                                                .then( function ( res ) {
     523                                                        if ( ! res || ! res.success ) { currentCount = 0; updateGoState(); return; }
     524                                                        bodyEl.textContent = res.data.body;
     525                                                        currentCount = res.data.count;
     526                                                        updateGoState();
     527                                                } )
     528                                                .catch( function () { currentCount = 0; updateGoState(); } );
     529                                }
     530
     531                                function schedulePreview() {
     532                                        clearTimeout( previewTimer );
     533                                        previewTimer = setTimeout( refreshPreview, 400 );
     534                                }
     535
     536                                // 0 (or blank, or negative) deletes nothing — snap back to the
     537                                // floor once the merchant leaves the field, rather than letting
     538                                // it sit on a value that can never match anything.
     539                                function clampPeriod() {
     540                                        var period = parseInt( periodInput.value, 10 );
     541                                        if ( ! period || period < 1 ) {
     542                                                periodInput.value = 1;
     543                                                refreshPreview();
     544                                        }
     545                                }
     546
     547                                periodInput.addEventListener( 'input', schedulePreview );
     548                                periodInput.addEventListener( 'blur', clampPeriod );
     549                                unitSelect.addEventListener( 'change', refreshPreview );
     550
     551                                link.addEventListener( 'click', function () {
     552                                        input.value = '';
     553                                        periodInput.value = defaultPeriod;
     554                                        unitSelect.value = defaultUnit;
     555                                        bodyEl.textContent = defaultBody;
     556                                        currentCount = defaultCount;
     557                                        updateGoState();
     558                                        dialog.showModal();
     559                                        input.focus();
     560                                } );
     561
     562                                input.addEventListener( 'input', updateGoState );
     563
     564                                input.addEventListener( 'keydown', function ( e ) {
     565                                        if ( 'Enter' === e.key && matches() && currentCount > 0 ) {
     566                                                e.preventDefault();
     567                                                go.click();
     568                                        }
     569                                } );
     570
     571                                document.getElementById( 'rtfl-cleanup-cancel' ).addEventListener( 'click', function () {
     572                                        dialog.close();
     573                                } );
     574
     575                                go.addEventListener( 'click', function () {
     576                                        // Double-clicking submitted the form twice and queued two
     577                                        // passes. Latch on the first click.
     578                                        if ( go.disabled || ! matches() || currentCount < 1 ) { return; }
     579
     580                                        // The one moment that matters: whatever age is on screen
     581                                        // right now becomes what actually gets submitted.
     582                                        periodField.value = periodInput.value;
     583                                        unitField.value   = unitSelect.value;
     584
     585                                        go.disabled = true;
     586                                        input.disabled = true;
     587                                        periodInput.disabled = true;
     588                                        unitSelect.disabled = true;
     589                                        form.submit();
     590                                } );
     591                        }() );
     592                </script>
     593                <?php
     594        }
     595
     596        /**
     597         * Labels for the age unit picked in the popup, keyed by the
     598         * strtotime()-safe values from Settings::getCouponCleanupUnits().
     599         *
     600         * @return array
     601         */
     602        private static function getUnitLabels() {
     603                return [
     604                        'day'   => __( 'Days ago', 'retainful' ),
     605                        'month' => __( 'Months ago', 'retainful' ),
     606                        'year'  => __( 'Years ago', 'retainful' ),
     607                ];
     608        }
     609
     610        /**
     611         * Confirmation copy for a given count/cutoff. Shared by the initial
     612         * render and the AJAX preview so both compute it identically.
     613         *
     614         * @param int $count
     615         * @param int $cutoff
     616         *
     617         * @return string
     618         */
     619        private static function buildDialogBody( $count, $cutoff ) {
     620                $date = wp_date( get_option( 'date_format', 'Y-m-d' ), $cutoff );
     621
     622                return sprintf(
    309623                        /* translators: 1: number of coupons, 2: formatted cutoff date */
    310624                        _n(
    … …  
    317631                        $date
    318632                );
    319 
    320                 $fallback = $body . ' ' . __( 'This cannot be undone. Continue?', 'retainful' );
    321                 ?>
    322                 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" id="rtfl-cleanup-form">
    323                         <input type="hidden" name="action" value="<?php echo esc_attr( self::ADMIN_ACTION ); ?>">
    324                         <?php wp_nonce_field( self::ADMIN_ACTION ); ?>
    325                 </form>
    326                 <dialog id="rtfl-cleanup-dialog" aria-labelledby="rtfl-cleanup-title"
    327                         style="max-width:26rem;border:1px solid #c3c4c7;border-radius:4px;padding:20px;">
    328                         <h2 id="rtfl-cleanup-title" style="margin-top:0;">
    329                                 <?php esc_html_e( 'Delete expired Retainful coupons', 'retainful' ); ?>
    330                         </h2>
    331                         <p><?php echo esc_html( $body ); ?></p>
    332                         <p><?php esc_html_e( 'Coupons you created yourself are not affected. This cannot be undone.', 'retainful' ); ?></p>
    333                         <p>
    334                                 <label for="rtfl-cleanup-confirm">
    335                                         <?php
    336                                         printf(
    337                                                 /* translators: %s: the word the user must type, e.g. "delete" */
    338                                                 esc_html__( 'Type %s to continue.', 'retainful' ),
    339                                                 '<code>' . esc_html( $word ) . '</code>'
    340                                         );
    341                                         ?>
    342                                 </label>
    343                         </p>
    344                         <input type="text" id="rtfl-cleanup-confirm" class="regular-text" autocomplete="off"
    345                                spellcheck="false" style="width:100%;">
    346                         <p style="margin-bottom:0;text-align:right;">
    347                                 <button type="button" class="button" id="rtfl-cleanup-cancel">
    348                                         <?php esc_html_e( 'Cancel', 'retainful' ); ?>
    349                                 </button>
    350                                 <button type="button" class="button button-primary" id="rtfl-cleanup-go" disabled>
    351                                         <?php esc_html_e( 'Delete coupons', 'retainful' ); ?>
    352                                 </button>
    353                         </p>
    354                 </dialog>
    355                 <script>
    356                         ( function () {
    357                                 var link = document.getElementById( 'rtfl-cleanup-open' );
    358                                 if ( ! link ) { return; }
    359 
    360                                 var form     = document.getElementById( 'rtfl-cleanup-form' );
    361                                 var dialog   = document.getElementById( 'rtfl-cleanup-dialog' );
    362                                 var fallback = <?php echo wp_json_encode( $fallback ); ?>;
    363 
    364                                 if ( ! form ) { return; }
    365 
    366                                 // No <dialog> support: fall back to a plain confirm. Without JS
    367                                 // at all the button simply does nothing, which is the safe
    368                                 // direction for a destructive action.
    369                                 if ( ! dialog || typeof dialog.showModal !== 'function' ) {
    370                                         link.addEventListener( 'click', function () {
    371                                                 if ( window.confirm( fallback ) ) { form.submit(); }
    372                                         } );
    373                                         return;
    374                                 }
    375 
    376                                 var input = document.getElementById( 'rtfl-cleanup-confirm' );
    377                                 var go    = document.getElementById( 'rtfl-cleanup-go' );
    378                                 var word  = <?php echo wp_json_encode( $word ); ?>;
    379 
    380                                 function matches() {
    381                                         return input.value.trim() === word;
    382                                 }
    383 
    384                                 link.addEventListener( 'click', function () {
    385                                         input.value = '';
    386                                         go.disabled = true;
    387                                         dialog.showModal();
    388                                         input.focus();
    389                                 } );
    390 
    391                                 input.addEventListener( 'input', function () {
    392                                         go.disabled = ! matches();
    393                                 } );
    394 
    395                                 input.addEventListener( 'keydown', function ( e ) {
    396                                         if ( 'Enter' === e.key && matches() ) {
    397                                                 e.preventDefault();
    398                                                 go.click();
    399                                         }
    400                                 } );
    401 
    402                                 document.getElementById( 'rtfl-cleanup-cancel' ).addEventListener( 'click', function () {
    403                                         dialog.close();
    404                                 } );
    405 
    406                                 go.addEventListener( 'click', function () {
    407                                         // Double-clicking submitted the form twice and queued two
    408                                         // passes. Latch on the first click.
    409                                         if ( go.disabled || ! matches() ) { return; }
    410                                         go.disabled = true;
    411                                         input.disabled = true;
    412                                         form.submit();
    413                                 } );
    414                         }() );
    415                 </script>
    416                 <?php
     633        }
     634
     635        /**
     636         * AJAX: re-price the confirmation copy (count + cutoff date) for a
     637         * period+unit typed into the popup. wp_ajax_ only — logged-out visitors
     638         * never reach this page, let alone this dialog.
     639         *
     640         * @return void
     641         */
     642        public static function ajaxPreview() {
     643                check_ajax_referer( self::ADMIN_ACTION, 'nonce' );
     644
     645                if ( ! current_user_can( 'manage_woocommerce' ) ) {
     646                        wp_send_json_error( [], 403 );
     647                }
     648
     649                $period = (int) Input::get( 'period', self::DEFAULT_PERIOD, 'post', 'int' );
     650                $unit   = (string) Input::get( 'unit', self::DEFAULT_UNIT, 'post', 'text' );
     651                $unit   = in_array( $unit, Settings::getCouponCleanupUnits(), true ) ? $unit : self::DEFAULT_UNIT;
     652
     653                $cutoff = self::getCutoff( $period, $unit );
     654
     655                if ( $cutoff <= 0 ) {
     656                        wp_send_json_success( [
     657                                'count' => 0,
     658                                'body'  => __( 'Enter a whole number of 1 or more.', 'retainful' ),
     659                        ] );
     660                }
     661
     662                $modes = self::getModes();
     663                $count = $modes ? self::countCandidatesCached( $cutoff, $modes ) : 0;
     664
     665                wp_send_json_success( [
     666                        'count' => $count,
     667                        'body'  => self::buildDialogBody( $count, $cutoff ),
     668                ] );
    417669        }
    418670
    … …  
    430682                }
    431683
    432                 if ( ! self::isEnabled() ) {
    433                         self::redirectBack( 'disabled' );
    434                 }
     684
    435685
    436686                if ( ! function_exists( 'as_schedule_single_action' ) ) {
    … …  
    452702                }
    453703
     704                // The age is chosen at click time in the popup, not stored ahead of
     705                // time — read whatever the confirm form actually posted.
     706                $period = (int) Input::get( 'rtfl_cleanup_period', self::DEFAULT_PERIOD, 'post', 'int' );
     707                $unit   = (string) Input::get( 'rtfl_cleanup_unit', self::DEFAULT_UNIT, 'post', 'text' );
     708                $unit   = in_array( $unit, Settings::getCouponCleanupUnits(), true ) ? $unit : self::DEFAULT_UNIT;
     709
    454710                // Freeze both values for the whole pass. Batches never recompute them,
    455711                // so a run that crosses midnight cannot widen its own cutoff.
    456                 $cutoff = self::getCutoff();
     712                $cutoff = self::getCutoff( $period, $unit );
    457713                $modes  = self::getModes();
    458714
    … …  
    562818                $errors = [
    563819                        'disabled'     => __( 'Coupon cleanup is turned off in Retainful settings.', 'retainful' ),
    564                         'invalid'      => __( 'Coupon cleanup settings are incomplete. Check the age and unit.', 'retainful' ),
     820                        'invalid'      => __( 'Enter a valid number and unit before deleting.', 'retainful' ),
    565821                        'no_scheduler' => __( 'Action Scheduler is unavailable, so the cleanup cannot be queued.', 'retainful' ),
    566822                ];
    … …  
    676932         */
    677933        public static function runBatch( $args = [] ) {
    678                 if ( ! self::isEnabled() ) {
    679                         self::finishPass( 'setting turned off' );
    680 
    681                         return;
    682                 }
     934
    683935
    684936                $args   = is_array( $args ) ? $args : [];
    … …  
    689941
    690942                // An action re-queued by hand from the Action Scheduler admin arrives
    691                 // with no args. Recover from settings rather than deleting nothing, but
    692                 // say so — the pass is no longer using the cutoff the owner confirmed.
     943                // with no args. Recover using the default age rather than deleting
     944                // nothing, but say so — the pass is no longer using the age the owner
     945                // confirmed in the popup.
    693946                if ( $cutoff <= 0 || empty( $modes ) ) {
    694947                        $cutoff = self::getCutoff();
    695948                        $modes  = self::getModes();
    696949                        Settings::logMessage(
    697                                 'Batch fired without frozen args; recomputed cutoff from settings.',
     950                                'Batch fired without frozen args; recomputed cutoff from the default age.',
    698951                                'coupon_cleanup'
    699952                        );
    … …  
    9311184         * ------------------------------------------------------------------ */
    9321185
    933         /**
    934          * @return bool
    935          */
    936         public static function isEnabled() {
    937                 return '1' === (string) Settings::getAdminSetting( RTFL_PLUGIN_PREFIX . 'enable_coupon_cleanup' );
    938         }
    939 
    940         /**
     1186
     1187
     1188        /**
     1189         * Age used before the user has chosen one in the popup.
     1190         *
    9411191         * @return int
    9421192         */
    9431193        public static function getPeriod() {
    944                 return (int) Settings::getAdminSetting( RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period' );
    945         }
    946 
    947         /**
    948          * Falls back to the default rather than trusting a stored value, so a
    949          * hand-edited option cannot inject anything into strtotime().
     1194                return self::DEFAULT_PERIOD;
     1195        }
     1196
     1197        /**
     1198         * Unit used before the user has chosen one in the popup.
    9501199         *
    9511200         * @return string
    9521201         */
    9531202        public static function getUnit() {
    954                 $unit = (string) Settings::getAdminSetting( RTFL_PLUGIN_PREFIX . 'coupon_cleanup_unit' );
    955 
    956                 // Fall back to the narrowest unit, not the widest: guessing 'month' on a
    957                 // garbage value would silently widen a "60 days" setting to 60 months.
    958                 return in_array( $unit, Settings::getCouponCleanupUnits(), true ) ? $unit : 'day';
     1203                return self::DEFAULT_UNIT;
    9591204        }
    9601205
    … …  
    9651210         * recompute it, or a long run would widen its own cutoff as the clock moves.
    9661211         *
    967          * @return int Unix timestamp, or 0 when the settings cannot produce one.
    968          */
    969         public static function getCutoff() {
    970                 $period = self::getPeriod();
     1212         * @param int|null    $period Runtime age from the popup. Falls back to the
     1213         *                            default when omitted or less than 1.
     1214         * @param string|null $unit   Runtime unit from the popup. Falls back to the
     1215         *                            default unless it is one of the whitelisted
     1216         *                            values — a hand-edited request cannot inject
     1217         *                            anything into strtotime().
     1218         *
     1219         * @return int Unix timestamp, or 0 when no usable age is available.
     1220         */
     1221        public static function getCutoff( $period = null, $unit = null ) {
     1222                $period = null !== $period ? (int) $period : self::getPeriod();
    9711223                if ( $period < 1 ) {
    9721224                        return 0;
    9731225                }
    9741226
    975                 $cutoff = strtotime( '-' . $period . ' ' . self::getUnit(), (int) current_time( 'timestamp', true ) );
     1227                $unit = ( null !== $unit && in_array( $unit, Settings::getCouponCleanupUnits(), true ) )
     1228                        ? $unit
     1229                        : self::getUnit();
     1230
     1231                $cutoff = strtotime( '-' . $period . ' ' . $unit, (int) current_time( 'timestamp', true ) );
    9761232
    9771233                return $cutoff ? (int) $cutoff : 0;
    … …  
    12001456                sort( $modes );
    12011457
    1202                 return 'rtfl_ccc_' . md5( (int) $cutoff . '|' . implode( ',', $modes ) );
     1458                // $cutoff is "now minus the age", computed to the second, so it is a
     1459                // different number on almost every request. Keying the cache on the
     1460                // raw value would mint a brand-new transient on every page load
     1461                // instead of ever being reused — rounded to a 5-minute bucket,
     1462                // requests within the same window share one entry the way the cache
     1463                // is meant to be used.
     1464                $bucket = (int) floor( (int) $cutoff / 300 ) * 300;
     1465
     1466                return 'rtfl_ccc_' . md5( $bucket . '|' . implode( ',', $modes ) );
    12031467        }
    12041468
    … …  
    12681532                echo '<p>';
    12691533                printf(
    1270                         /* translators: 1: enabled/disabled, 2: period, 3: unit */
    1271                         esc_html__( 'Setting: %1$s · delete coupons that expired more than %2$d %3$s ago', 'retainful' ),
    1272                         self::isEnabled() ? esc_html__( 'enabled', 'retainful' ) : esc_html__( 'disabled', 'retainful' ),
     1534                        /* translators: 1: period, 2: unit */
     1535                        esc_html__( 'delete coupons that expired more than %1$d %2$s ago', 'retainful' ),
    12731536                        (int) self::getPeriod(),
    12741537                        esc_html( self::getUnit() )
    … …  
    12771540
    12781541                if ( $cutoff <= 0 ) {
    1279                         echo esc_html__( 'No usable cutoff — check the period setting.', 'retainful' ) . '</p></div>';
     1542                        echo esc_html__( 'No usable cutoff.', 'retainful' ) . '</p></div>';
    12801543
    12811544                        return;
  • retainful/trunk/App/Controllers/Orders.php

    r3617993 r3705113  
    6060                if ( ! empty( $matching_statuses ) && ! empty( $order_id ) ) {
    6161                        foreach ( $matching_statuses as $retainful_status ) {
     62
     63                                if ( ! apply_filters( 'rtfl_should_trigger_order_status_webhook', true, $retainful_status, $order_id, $old_status, $new_status, $order ) ) {
     64                                        continue;
     65                                }
     66
    6267                                $action_args = [
    6368                                        'args' => [
  • retainful/trunk/App/Controllers/RestApi.php

    r3655829 r3705113  
    10231023
    10241024        public static function addCustomDataToProductsRestApi( $response, $product, $request ) {
    1025                 if ( ! $product instanceof \WC_Product || ! Auth::isEligibleForRetainfulData( $request ) ) {
     1025                if ( ! $product instanceof \WC_Product || ! $request instanceof \WP_REST_Request || ! Auth::isEligibleForRetainfulData( $request ) ) {
    10261026                        return $response;
    10271027                }
  • retainful/trunk/App/Controllers/Webhook.php

    r3655829 r3705113  
    916916                                        Customer::setCustomerEmail( $email );
    917917                                }
    918                                
     918                        }
     919
     920                        // Sync billing/shipping address fields (country, state, etc.)
     921                        // into WC()->customer, the session object every
     922                        // Customer::getCartCountry()/getCartState() read relies on.
     923                        // Runs on every tracking request (not nested inside the
     924                        // empty($email) block above) — WC()->checkout->get_value()
     925                        // resolves $email from $_POST on every request after the
     926                        // first one, which would otherwise skip this entirely, and
     927                        // address changes, from the second sync onward.
     928                        if ( $ajax_action === 'rnoc_track_user_data' ) {
     929                                $address_synced = false;
     930
     931                                // If no real shipping text was posted (Block Checkout, or
     932                                // Classic with "ship to a different address" unchecked),
     933                                // overwrite shipping with the current billing value —
     934                                // mirrors wc_ship_to_billing_address_only(), which the
     935                                // Store API has no equivalent for. Must actively
     936                                // overwrite, not just fall back when empty: <select>
     937                                // fields (country, state) never read as empty even when
     938                                // unused, so a stale value would otherwise stick.
     939                                $shipping_text_posted = Input::get( 'shipping_first_name', '' ) !== '' || Input::get( 'shipping_address_1', '' ) !== '';
     940
     941                                foreach ( Customer::getAddressFields() as $field ) {
     942                                        $billing_value = Input::get( 'billing_' . $field, '' );
     943                                        if ( $billing_value !== '' && Customer::setCustomerData( 'billing_' . $field, $billing_value ) ) {
     944                                                $address_synced = true;
     945                                        }
     946
     947                                        $shipping_value = $shipping_text_posted
     948                                                ? Input::get( 'shipping_' . $field, '' )
     949                                                : Customer::getCustomerData( 'billing_' . $field );
     950                                        if ( $shipping_value !== '' && Customer::setCustomerData( 'shipping_' . $field, $shipping_value ) ) {
     951                                                $address_synced = true;
     952                                        }
     953                                }
     954                                if ( $address_synced && Util::isMethodExists( WC()->customer, 'save' ) ) {
     955                                        WC()->customer->save();
     956                                }
     957
    919958                        }
    920959
  • retainful/trunk/App/Helpers/Customer.php

    r3617993 r3705113  
    224224
    225225                return $default;
     226        }
     227
     228        /**
     229         * Set customer data on the live WC_Customer session, mirroring
     230         * getCustomerData(). Used to push tracked checkout fields (billing/
     231         * shipping country, state, etc.) back into WooCommerce's own session
     232         * object, which every getCartCountry()/getCartState()-style reader
     233         * relies on.
     234         *
     235         * Falls back to generic customer meta when $key has no native
     236         * WC_Customer setter, so fields added via the
     237         * rtfl_get_checkout_mapping_fields filter work even without a matching
     238         * set_{$key}() method on WC_Customer.
     239         *
     240         * @param string $key Customer key (e.g. 'billing_country').
     241         * @param mixed $value Value to set.
     242         *
     243         * @return bool True if the value was set.
     244         */
     245        public static function setCustomerData( $key, $value ) {
     246                if ( empty( $key ) || $value === '' || $value === null || ! function_exists( 'WC' ) || ! isset( WC()->customer ) ) {
     247                        return false;
     248                }
     249                $method = 'set_' . $key;
     250                if ( Util::isMethodExists( WC()->customer, $method ) ) {
     251                        WC()->customer->$method( sanitize_text_field( $value ) );
     252
     253                        return true;
     254                }
     255
     256                WC()->customer->update_meta_data( $key, sanitize_text_field( $value ) );
     257
     258                return true;
    226259        }
    227260
    … …  
    331364                        'city'          => self::getCartCity( 'shipping' ),
    332365                        'name'          => self::getCartFirstName( 'shipping' ) . ' ' . self::getCartLastName( 'shipping' ),
    333                         'phone'         => null, // TODO: Need to ask, why we need to send null value
    334                         'company'       => null,// TODO: Need to ask, why we need to send null value
     366                        'phone'         => self::getCartPhone( 'shipping' ),
     367                        'company'       => self::getCartCompany( 'shipping' ),
    335368                        'country'       => self::getCartCountry( 'shipping' ),
    336369                        'address1'      => self::getCartAddressOne( 'shipping' ),
  • retainful/trunk/App/Helpers/Settings.php

    r3655829 r3705113  
    4646                        RTFL_PLUGIN_PREFIX . 'order_refunded_statuses'        => 'refunded',
    4747                        RTFL_PLUGIN_PREFIX . 'order_cancelled_statuses'       => 'cancelled,expired',
    48                         RTFL_PLUGIN_PREFIX . 'enable_coupon_cleanup'          => '0',
    49                         RTFL_PLUGIN_PREFIX . 'coupon_cleanup_period'          => '60',
    50                         RTFL_PLUGIN_PREFIX . 'coupon_cleanup_unit'            => 'day',
    5148                ];
    5249        }
    5350
    5451        /**
    55          * Units accepted by the coupon cleanup age setting.
     52         * Units accepted by the coupon cleanup age, chosen at runtime in the
     53         * cleanup popup rather than stored as a setting.
    5654         *
    5755         * Each value is a valid strtotime() unit, so the cutoff is built as
  • retainful/trunk/assets/admin/dist/main.bundle.js

    r3655829 r3705113  
    11/*! For license information please see main.bundle.js.LICENSE.txt */
    2 (()=>{"use strict";var e,t,n,r,a={9407(e,t,n){n.d(t,{A:()=>s});var r=n(6540);const a=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:s,iconNode:u,...c},d)=>(0,r.createElement)("svg",{ref:d,...l,width:t,height:t,stroke:e,strokeWidth:a?24*Number(n)/Number(t):n,className:o("lucide",i),...c},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(s)?s:[s]])),s=(e,t)=>{const n=(0,r.forwardRef)(({className:n,...l},s)=>{return(0,r.createElement)(i,{ref:s,iconNode:t,className:o(`lucide-${u=a(e),u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l});var u});return n.displayName=a(e),n}},8723(e,t,n){n.d(t,{A:()=>r});const r=(0,n(9407).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1247(e,t,n){var r=n(9982),a=n(6540),o=n(961);function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(s(e)!==e)throw Error(l(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var R=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function z(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case x:return"Suspense";case E:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case k:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}var L=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},D=[],F=-1;function U(e){return{current:e}}function I(e){0>F||(e.current=D[F],D[F]=null,F--)}function $(e,t){F++,D[F]=e.current,e.current=t}var B,H,W=U(null),q=U(null),V=U(null),Q=U(null);function K(e,t){switch($(V,t),$(q,e),$(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=bd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(W),$(W,e)}function Y(){I(W),I(q),I(V)}function G(e){null!==e.memoizedState&&$(Q,e);var t=W.current,n=bd(t,e.type);t!==n&&($(q,e),$(W,n))}function X(e){q.current===e&&(I(W),I(q)),Q.current===e&&(I(Q),df._currentValue=M)}function J(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",H=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),l=o[0],i=o[1];if(l&&i){var s=l.split("\n"),u=i.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==u[a]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=a);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,le=r.unstable_shouldYield,ie=r.unstable_requestPaint,se=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,me=r.unstable_IdlePriority,he=r.log,ge=r.unstable_setDisableYieldValue,ye=null,be=null;function ve(e){if("function"==typeof he&&ge(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ye,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2,xe=256,Ee=262144,Ce=4194304;function _e(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var i=134217727&r;return 0!==i?0!==(r=i&~o)?a=_e(r):0!==(l&=i)?a=_e(l):n||0!==(n=i&~e)&&(a=_e(n)):0!==(i=r&~o)?a=_e(i):0!==l?a=_e(l):n||0!==(n=r&~e)&&(a=_e(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Re(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pe(){var e=Ce;return!(62914560&(Ce<<=1))&&(Ce=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function je(e,t){var n=t&-t;return 0!==((n=42&n?1:Me(n))&(e.suspendedLanes|t))?0:n}function Me(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function De(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Fe(){var e=j.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function Ue(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var Ie=Math.random().toString(36).slice(2),$e="__reactFiber$"+Ie,Be="__reactProps$"+Ie,He="__reactContainer$"+Ie,We="__reactEvents$"+Ie,qe="__reactListeners$"+Ie,Ve="__reactHandles$"+Ie,Qe="__reactResources$"+Ie,Ke="__reactMarker$"+Ie;function Ye(e){delete e[$e],delete e[Be],delete e[We],delete e[qe],delete e[Ve]}function Ge(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[$e]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Md(e);null!==e;){if(n=e[$e])return n;e=Md(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[$e]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(l(33))}function Ze(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ke]=!0}var tt=new Set,nt={};function rt(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lt={},it={};function st(e,t,n){if(a=t,re.call(it,a)||!re.call(lt,a)&&(ot.test(a)?it[a]=!0:(lt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bt(e,t,n,r,a,o,l,i){e.name="",null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.type=l:e.removeAttribute("type"),null!=t?"number"===l?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==l&&"reset"!==l||e.removeAttribute("value"),null!=t?wt(e,l,dt(t)):null!=n?wt(e,l,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+dt(i):e.removeAttribute("name")}function vt(e,t,n,r,a,o,l,i){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l&&(e.name=l),pt(e)}function wt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(l(92));if(L(r)){if(1<r.length)throw Error(l(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Et(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(l(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&_t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&_t(e,o,t[o])}function Nt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ot(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zt(){}var Lt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jt=null,Mt=null;function Dt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Be]||null;if(!a)throw Error(l(90));bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&mt(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Ft=!1;function Ut(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==jt||null!==Mt)&&(Zu(),jt&&(t=jt,e=Mt,Mt=jt=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Bt=!1;if($t)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Bt=!1}var Wt=null,qt=null,Vt=null;function Qt(){if(Vt)return Vt;var e,t,n=qt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Gt(){return!1}function Xt(e){function t(t,n,r,a,o){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(a):a[l]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Yt:Gt,this.isPropagationStopped=Gt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=p({},tn,{view:0,detail:0}),an=Xt(rn),on=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),ln=Xt(on),sn=Xt(p({},on,{dataTransfer:0})),un=Xt(p({},rn,{relatedTarget:0})),cn=Xt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Xt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function yn(){return gn}var bn=Xt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),vn=Xt(p({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Xt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),kn=Xt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Xt(p({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=Xt(p({},tn,{newState:0,oldState:0})),En=[9,13,27,32],Cn=$t&&"CompositionEvent"in window,_n=null;$t&&"documentMode"in document&&(_n=document.documentMode);var Tn=$t&&"TextEvent"in window&&!_n,Nn=$t&&(!Cn||_n&&8<_n&&11>=_n),Rn=String.fromCharCode(32),Pn=!1;function On(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1,An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function Mn(e,t,n,r){jt?Mt?Mt.push(r):Mt=[r]:jt=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Fn=null;function Un(e){Yc(e,0)}function In(e){if(mt(Je(e)))return e}function $n(e,t){if("change"===e)return t}var Bn=!1;if($t){var Hn;if($t){var Wn="oninput"in document;if(!Wn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Wn="function"==typeof qn.oninput}Hn=Wn}else Hn=!1;Bn=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){Dn&&(Dn.detachEvent("onpropertychange",Qn),Fn=Dn=null)}function Qn(e){if("value"===e.propertyName&&In(Fn)){var t=[];Mn(t,Fn,e,At(e)),Ut(Un,t)}}function Kn(e,t,n){"focusin"===e?(Vn(),Fn=n,(Dn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Vn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return In(Fn)}function Gn(e,t){if("click"===e)return In(t)}function Xn(e,t){if("input"===e||"change"===e)return In(t)}var Jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!re.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=$t&&"documentMode"in document&&11>=document.documentMode,lr=null,ir=null,sr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==lr||lr!==ht(r)||(r="selectionStart"in(r=lr)&&ar(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Zn(sr,r)||(sr=r,0<(r=rd(ir,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},mr={};function hr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return pr[e]=n[t];return e}$t&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=hr("animationend"),yr=hr("animationiteration"),br=hr("animationstart"),vr=hr("transitionrun"),wr=hr("transitionstart"),kr=hr("transitioncancel"),Sr=hr("transitionend"),xr=new Map,Er="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){xr.set(e,t),rt(t,[e])}Er.push("scrollEnd");var _r="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Nr=0,Rr=0;function Pr(){for(var e=Nr,t=Rr=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var o=Tr[t];if(Tr[t++]=null,null!==r&&null!==a){var l=r.pending;null===l?a.next=a:(a.next=l.next,l.next=a),r.pending=a}0!==o&&Ar(n,a,o)}}function Or(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Rr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function zr(e,t,n,r){return Or(e,t,n,r),jr(e)}function Lr(e,t){return Or(e,null,null,t),jr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-we(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function jr(e){if(50<Wu)throw Wu=0,qu=null,Error(l(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Dr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ir(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $r(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,a,o){var i=0;if(r=e,"function"==typeof e)Ur(e)&&(i=1);else if("string"==typeof e)i=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,W.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Fr(31,n,t,a)).elementType=T,e.lanes=o,e;case y:return Hr(n.children,a,o,t);case b:i=8,a|=24;break;case v:return(e=Fr(12,n,t,2|a)).elementType=v,e.lanes=o,e;case x:return(e=Fr(13,n,t,a)).elementType=x,e.lanes=o,e;case E:return(e=Fr(19,n,t,a)).elementType=E,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:i=10;break e;case w:i=9;break e;case S:i=11;break e;case C:i=14;break e;case _:i=16,r=null;break e}i=29,n=Error(l(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(i,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Wr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function qr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Kr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Gr=0,Xr=null,Jr=0,Zr=[],ea=0,ta=null,na=1,ra="";function aa(e,t){Yr[Gr++]=Jr,Yr[Gr++]=Xr,Xr=e,Jr=t}function oa(e,t,n){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,ta=e;var r=na;e=ra;var a=32-we(r)-1;r&=~(1<<a),n+=1;var o=32-we(t)+a;if(30<o){var l=a-a%5;o=(r&(1<<l)-1).toString(32),r>>=l,a-=l,na=1<<32-we(t)+a|n<<a|r,ra=o+e}else na=1<<o|n<<a|r,ra=e}function la(e){null!==e.return&&(aa(e,1),oa(e,1,0))}function ia(e){for(;e===Xr;)Xr=Yr[--Gr],Yr[Gr]=null,Jr=Yr[--Gr],Yr[Gr]=null;for(;e===ta;)ta=Zr[--ea],Zr[ea]=null,ra=Zr[--ea],Zr[ea]=null,na=Zr[--ea],Zr[ea]=null}function sa(e,t){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,na=t.id,ra=t.overflow,ta=e}var ua=null,ca=null,da=!1,fa=null,pa=!1,ma=Error(l(519));function ha(e){throw ka(Kr(Error(l(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),ma}function ga(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[Be]=r,n){case"dialog":Gc("cancel",t),Gc("close",t);break;case"iframe":case"object":case"embed":Gc("load",t);break;case"video":case"audio":for(n=0;n<Qc.length;n++)Gc(Qc[n],t);break;case"source":Gc("error",t);break;case"img":case"image":case"link":Gc("error",t),Gc("load",t);break;case"details":Gc("toggle",t);break;case"input":Gc("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Gc("invalid",t);break;case"textarea":Gc("invalid",t),xt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Gc("beforetoggle",t),Gc("toggle",t)),null!=r.onScroll&&Gc("scroll",t),null!=r.onScrollEnd&&Gc("scrollend",t),null!=r.onClick&&(t.onclick=zt),t=!0):t=!1,t||ha(e,!0)}function ya(e){for(ua=e.return;ua;)switch(ua.tag){case 5:case 31:case 13:return void(pa=!1);case 27:case 3:return void(pa=!0);default:ua=ua.return}}function ba(e){if(e!==ua)return!1;if(!da)return ya(e),da=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||vd(e.type,e.memoizedProps)),t=!t),t&&ca&&ha(e),ya(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));ca=jd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));ca=jd(e)}else 27===n?(n=ca,_d(e.type)?(e=Ad,Ad=null,ca=e):ca=n):ca=ua?Ld(e.stateNode.nextSibling):null;return!0}function va(){ca=ua=null,da=!1}function wa(){var e=fa;return null!==e&&(null===Pu?Pu=e:Pu.push.apply(Pu,e),fa=null),e}function ka(e){null===fa?fa=[e]:fa.push(e)}var Sa=U(null),xa=null,Ea=null;function Ca(e,t,n){$(Sa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=Sa.current,I(Sa)}function Ta(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var s=o;o=a;for(var u=0;u<t.length;u++)if(s.context===t[u]){o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Ta(o.return,n,e),r||(i=null);break e}o=s.next}}else if(18===a.tag){if(null===(i=a.return))throw Error(l(341));i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Ta(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Ra(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error(l(387));if(null!==(i=i.memoizedProps)){var s=a.type;Jn(a.pendingProps.value,i.value)||(null!==e?e.push(s):e=[s])}}else if(a===Q.current){if(null===(i=a.alternate))throw Error(l(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}a=a.return}null!==e&&Na(t,e,n,r),t.flags|=262144}function Pa(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){xa=e,Ea=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function za(e){return Aa(xa,e)}function La(e,t){return null===xa&&Oa(e),Aa(e,t)}function Aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Ea){if(null===e)throw Error(l(308));Ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ea=Ea.next=t;return n}var ja="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ma=r.unstable_scheduleCallback,Da=r.unstable_NormalPriority,Fa={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ua(){return{controller:new ja,data:new Map,refCount:0}}function Ia(e){e.refCount--,0===e.refCount&&Ma(Da,function(){e.controller.abort()})}var $a=null,Ba=0,Ha=0,Wa=null;function qa(){if(0===--Ba&&null!==$a){null!==Wa&&(Wa.status="fulfilled");var e=$a;$a=null,Ha=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Va=A.S;A.S=function(e,t){Lu=se(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===$a){var n=$a=[];Ba=0,Ha=Bc(),Wa={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ba++,t.then(qa,qa)}(0,t),null!==Va&&Va(e,t)};var Qa=U(null);function Ka(){var e=Qa.current;return null!==e?e:mu.pooledCache}function Ya(e,t){$(Qa,null===t?Qa.current:t.pool)}function Ga(){var e=Ka();return null===e?null:{parent:Fa._currentValue,pool:e}}var Xa=Error(l(460)),Ja=Error(l(474)),Za=Error(l(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(zt,zt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw lo(e=t.reason),e;default:if("string"==typeof t.status)t.then(zt,zt);else{if(null!==(e=mu)&&100<e.shellSuspendCounter)throw Error(l(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw lo(e=t.reason),e}throw ao=t,Xa}}function ro(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw ao=e,Xa;throw e}}var ao=null;function oo(){if(null===ao)throw Error(l(459));var e=ao;return ao=null,e}function lo(e){if(e===Xa||e===Za)throw Error(l(483))}var io=null,so=0;function uo(e){var t=so;return so+=1,null===io&&(io=[]),no(io,e,t)}function co(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fo(e,t){if(t.$$typeof===m)throw Error(l(525));throw e=Object.prototype.toString.call(t),Error(l(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Ir(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===_&&ro(o)===t.type)?(co(t=a(t,n.props),n),t.return=e,t):(co(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return co(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Vr(t,e.mode,n)).return=e,t;case _:return f(e,t=ro(t),n)}if(L(t)||P(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,uo(t),n);if(t.$$typeof===k)return f(e,La(e,t),n);fo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===a?u(e,t,n,r):null;case g:return n.key===a?c(e,t,n,r):null;case _:return p(e,t,n=ro(n),r)}if(L(n)||P(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,uo(n),r);if(n.$$typeof===k)return p(e,t,La(e,n),r);fo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case _:return m(e,t,n,r=ro(r),a)}if(L(r)||P(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return m(e,t,n,uo(r),a);if(r.$$typeof===k)return m(e,t,n,La(t,r),a);fo(t,r)}return null}function b(s,u,c,d){if("object"==typeof c&&null!==c&&c.type===y&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case h:e:{for(var v=c.key;null!==u;){if(u.key===v){if((v=c.type)===y){if(7===u.tag){n(s,u.sibling),(d=a(u,c.props.children)).return=s,s=d;break e}}else if(u.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===_&&ro(v)===u.type){n(s,u.sibling),co(d=a(u,c.props),c),d.return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}c.type===y?((d=Hr(c.props.children,s.mode,d,c.key)).return=s,s=d):(co(d=Br(c.type,c.key,c.props,null,s.mode,d),c),d.return=s,s=d)}return i(s);case g:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(s,u.sibling),(d=a(u,c.children||[])).return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}(d=Vr(c,s.mode,d)).return=s,s=d}return i(s);case _:return b(s,u,c=ro(c),d)}if(L(c))return function(a,l,i,s){for(var u=null,c=null,d=l,h=l=0,g=null;null!==d&&h<i.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=p(a,d,i[h],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),l=o(y,l,h),null===c?u=y:c.sibling=y,c=y,d=g}if(h===i.length)return n(a,d),da&&aa(a,h),u;if(null===d){for(;h<i.length;h++)null!==(d=f(a,i[h],s))&&(l=o(d,l,h),null===c?u=d:c.sibling=d,c=d);return da&&aa(a,h),u}for(d=r(d);h<i.length;h++)null!==(g=m(d,a,h,i[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),l=o(g,l,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(a,e)}),da&&aa(a,h),u}(s,u,c,d);if(P(c)){if("function"!=typeof(v=P(c)))throw Error(l(150));return function(a,i,s,u){if(null==s)throw Error(l(151));for(var c=null,d=null,h=i,g=i=0,y=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=p(a,h,b.value,u);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),i=o(v,i,g),null===d?c=v:d.sibling=v,d=v,h=y}if(b.done)return n(a,h),da&&aa(a,g),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=f(a,b.value,u))&&(i=o(b,i,g),null===d?c=b:d.sibling=b,d=b);return da&&aa(a,g),c}for(h=r(h);!b.done;g++,b=s.next())null!==(b=m(h,a,g,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),i=o(b,i,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(a,e)}),da&&aa(a,g),c}(s,u,c=v.call(c),d)}if("function"==typeof c.then)return b(s,u,uo(c),d);if(c.$$typeof===k)return b(s,u,La(s,c),d);fo(s,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(d=a(u,c)).return=s,s=d):(n(s,u),(d=Wr(c,s.mode,d)).return=s,s=d),i(s)):n(s,u)}return function(e,t,n,r){try{so=0;var a=b(e,t,n,r);return io=null,a}catch(t){if(t===Xa||t===Za)throw t;var o=Fr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var mo=po(!0),ho=po(!1),go=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=jr(e),Ar(e,null,n),t}return Or(e,r,t,n),jr(e)}function ko(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}function So(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=l:o=o.next=l,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function Eo(){if(xo&&null!==Wa)throw Wa}function Co(e,t,n,r){xo=!1;var a=e.updateQueue;go=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,u=s.next;s.next=null,null===l?o=u:l.next=u,l=s;var c=e.alternate;null!==c&&(i=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===i?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=s)}if(null!==o){var d=a.baseState;for(l=0,c=u=s=null,i=o;;){var f=-536870913&i.lane,m=f!==i.lane;if(m?(gu&f)===f:(r&f)===f){0!==f&&f===Ha&&(xo=!0),null!==c&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;f=t;var y=n;switch(g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(y,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(y,d,f):h))break e;d=p({},d,f);break e;case 2:go=!0}}null!==(f=i.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=a.callbacks)?a.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(u=c=m,s=d):c=c.next=m,l|=f;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(m=i).next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null===o&&(a.shared.lanes=0),Eu|=l,e.lanes=l,e.memoizedState=d}}function _o(e,t){if("function"!=typeof e)throw Error(l(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)_o(n[e],t)}var No=U(null),Ro=U(0);function Po(e,t){$(Ro,e=Su),$(No,t),Su=e|t.baseLanes}function Oo(){$(Ro,Su),$(No,No.current)}function zo(){Su=Ro.current,I(No),I(Ro)}var Lo=U(null),Ao=null;function jo(e){var t=e.alternate;$(Io,1&Io.current),$(Lo,e),null===Ao&&(null===t||null!==No.current||null!==t.memoizedState)&&(Ao=e)}function Mo(e){$(Io,Io.current),$(Lo,e),null===Ao&&(Ao=e)}function Do(e){22===e.tag?($(Io,Io.current),$(Lo,e),null===Ao&&(Ao=e)):Fo()}function Fo(){$(Io,Io.current),$(Lo,Lo.current)}function Uo(e){I(Lo),Ao===e&&(Ao=null),I(Io)}var Io=U(0);function $o(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Od(n)||zd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,Ho=null,Wo=null,qo=null,Vo=!1,Qo=!1,Ko=!1,Yo=0,Go=0,Xo=null,Jo=0;function Zo(){throw Error(l(321))}function el(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function tl(e,t,n,r,a,o){return Bo=o,Ho=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?gi:yi,Ko=!1,o=n(r,a),Ko=!1,Qo&&(o=rl(t,n,r,a)),nl(e),o}function nl(e){A.H=hi;var t=null!==Wo&&null!==Wo.next;if(Bo=0,qo=Wo=Ho=null,Vo=!1,Go=0,Xo=null,t)throw Error(l(300));null===e||Li||null!==(e=e.dependencies)&&Pa(e)&&(Li=!0)}function rl(e,t,n,r){Ho=e;var a=0;do{if(Qo&&(Xo=null),Go=0,Qo=!1,25<=a)throw Error(l(301));if(a+=1,qo=Wo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}A.H=bi,o=t(n,r)}while(Qo);return o}function al(){var e=A.H,t=e.useState()[0];return t="function"==typeof t.then?cl(t):t,e=e.useState()[0],(null!==Wo?Wo.memoizedState:null)!==e&&(Ho.flags|=1024),t}function ol(){var e=0!==Yo;return Yo=0,e}function ll(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function il(e){if(Vo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Vo=!1}Bo=0,qo=Wo=Ho=null,Qo=!1,Go=Yo=0,Xo=null}function sl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qo?Ho.memoizedState=qo=e:qo=qo.next=e,qo}function ul(){if(null===Wo){var e=Ho.alternate;e=null!==e?e.memoizedState:null}else e=Wo.next;var t=null===qo?Ho.memoizedState:qo.next;if(null!==t)qo=t,Wo=e;else{if(null===e){if(null===Ho.alternate)throw Error(l(467));throw Error(l(310))}e={memoizedState:(Wo=e).memoizedState,baseState:Wo.baseState,baseQueue:Wo.baseQueue,queue:Wo.queue,next:null},null===qo?Ho.memoizedState=qo=e:qo=qo.next=e}return qo}function cl(e){var t=Go;return Go+=1,null===Xo&&(Xo=[]),e=no(Xo,e,t),t=Ho,null===(null===qo?t.memoizedState:qo.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?gi:yi),e}function dl(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return cl(e);if(e.$$typeof===k)return za(e)}throw Error(l(438,String(e)))}function fl(e){var t=null,n=Ho.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Ho.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function pl(e,t){return"function"==typeof t?t(e):t}function ml(e){return hl(ul(),Wo,e)}function hl(e,t,n){var r=e.queue;if(null===r)throw Error(l(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var s=i=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(gu&f)===f:(Bo&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Ha&&(d=!0);else{if((Bo&p)===p){c=c.next,p===Ha&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=f,i=o):u=u.next=f,Ho.lanes|=p,Eu|=p}f=c.action,Ko&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,i=o):u=u.next=p,Ho.lanes|=f,Eu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?i=o:u.next=s,!Jn(o,e.memoizedState)&&(Li=!0,d&&null!==(n=Wa)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=u,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function gl(e){var t=ul(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Jn(o,t.memoizedState)||(Li=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function yl(e,t,n){var r=Ho,a=ul(),o=da;if(o){if(void 0===n)throw Error(l(407));n=n()}else n=t();var i=!Jn((Wo||a).memoizedState,n);if(i&&(a.memoizedState=n,Li=!0),a=a.queue,Bl(wl.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==qo&&1&qo.memoizedState.tag){if(r.flags|=2048,Dl(9,{destroy:void 0},vl.bind(null,r,a,n,t),null),null===mu)throw Error(l(349));o||127&Bo||bl(r,t,n)}return n}function bl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ho.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function vl(e,t,n,r){t.value=n,t.getSnapshot=r,kl(t)&&Sl(e)}function wl(e,t,n){return n(function(){kl(t)&&Sl(e)})}function kl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(e){return!0}}function Sl(e){var t=Lr(e,2);null!==t&&Ku(t,0,2)}function xl(e){var t=sl();if("function"==typeof e){var n=e;if(e=n(),Ko){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function El(e,t,n,r){return e.baseState=n,hl(e,Wo,"function"==typeof r?r:pl)}function Cl(e,t,n,r,a){if(fi(e))throw Error(l(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==A.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,_l(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _l(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=A.T,l={};A.T=l;try{var i=n(a,r),s=A.S;null!==s&&s(l,i),Tl(e,t,i)}catch(n){Rl(e,t,n)}finally{null!==o&&null!==l.types&&(o.types=l.types),A.T=o}}else try{Tl(e,t,o=n(a,r))}catch(n){Rl(e,t,n)}}function Tl(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Nl(e,t,n)},function(n){return Rl(e,t,n)}):Nl(e,t,n)}function Nl(e,t,n){t.status="fulfilled",t.value=n,Pl(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,_l(e,n)))}function Rl(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Pl(t),t=t.next}while(t!==r)}e.action=null}function Pl(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ol(e,t){return t}function zl(e,t){if(da){var n=mu.formState;if(null!==n){e:{var r=Ho;if(da){if(ca){t:{for(var a=ca,o=pa;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=Ld(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ca=Ld(a.nextSibling),r="F!"===a.data;break e}}ha(r)}r=!1}r&&(t=n[0])}}return(n=sl()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ol,lastRenderedState:t},n.queue=r,n=ui.bind(null,Ho,r),r.dispatch=n,r=xl(!1),o=di.bind(null,Ho,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=sl()).queue=a,n=Cl.bind(null,Ho,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ll(e){return Al(ul(),Wo,e)}function Al(e,t,n){if(t=hl(e,t,Ol)[0],e=ml(pl)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=cl(t)}catch(e){if(e===Xa)throw Za;throw e}else r=t;var a=(t=ul()).queue,o=a.dispatch;return n!==t.memoizedState&&(Ho.flags|=2048,Dl(9,{destroy:void 0},jl.bind(null,a,n),null)),[r,o,e]}function jl(e,t){e.action=t}function Ml(e){var t=ul(),n=Wo;if(null!==n)return Al(t,n,e);ul(),t=t.memoizedState;var r=(n=ul()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Dl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Ho.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fl(){return ul().memoizedState}function Ul(e,t,n,r){var a=sl();Ho.flags|=e,a.memoizedState=Dl(1|t,{destroy:void 0},n,void 0===r?null:r)}function Il(e,t,n,r){var a=ul();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Wo&&null!==r&&el(r,Wo.memoizedState.deps)?a.memoizedState=Dl(t,o,n,r):(Ho.flags|=e,a.memoizedState=Dl(1|t,o,n,r))}function $l(e,t){Ul(8390656,8,e,t)}function Bl(e,t){Il(2048,8,e,t)}function Hl(e){var t=ul().memoizedState;return function(e){Ho.flags|=4;var t=Ho.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pu)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Wl(e,t){return Il(4,2,e,t)}function ql(e,t){return Il(4,4,e,t)}function Vl(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ql(e,t,n){n=null!=n?n.concat([e]):null,Il(4,4,Vl.bind(null,t,e),n)}function Kl(){}function Yl(e,t){var n=ul();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&el(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gl(e,t){var n=ul();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&el(t,r[1]))return r[0];if(r=e(),Ko){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function Xl(e,t,n){return void 0===n||1073741824&Bo&&!(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Qu(),Ho.lanes|=e,Eu|=e,n)}function Jl(e,t,n,r){return Jn(n,t)?n:null!==No.current?(e=Xl(e,n,r),Jn(e,t)||(Li=!0),e):42&Bo&&(!(1073741824&Bo)||261930&gu)?(e=Qu(),Ho.lanes|=e,Eu|=e,t):(Li=!0,e.memoizedState=n)}function Zl(e,t,n,r,a){var o=j.p;j.p=0!==o&&8>o?o:8;var l,i,s,u=A.T,c={};A.T=c,di(e,!1,t,n);try{var d=a(),f=A.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?ci(e,t,(l=r,i=[],s={status:"pending",value:null,reason:null,then:function(e){i.push(e)}},d.then(function(){s.status="fulfilled",s.value=l;for(var e=0;e<i.length;e++)(0,i[e])(l)},function(e){for(s.status="rejected",s.reason=e,e=0;e<i.length;e++)(0,i[e])(void 0)}),s),Vu()):ci(e,t,r,Vu())}catch(n){ci(e,t,{then:function(){},status:"rejected",reason:n},Vu())}finally{j.p=o,null!==u&&null!==c.types&&(u.types=c.types),A.T=u}}function ei(){}function ti(e,t,n,r){if(5!==e.tag)throw Error(l(476));var a=ni(e).queue;Zl(e,a,t,M,null===n?ei:function(){return ri(e),n(r)})}function ni(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ri(e){var t=ni(e);null===t.next&&(t=e.alternate.memoizedState),ci(e,t.next.queue,{},Vu())}function ai(){return za(df)}function oi(){return ul().memoizedState}function li(){return ul().memoizedState}function ii(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Vu(),r=wo(t,e=vo(n),n);return null!==r&&(Ku(r,0,n),ko(r,t,n)),t={cache:Ua()},void(e.payload=t)}t=t.return}}function si(e,t,n){var r=Vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fi(e)?pi(t,n):null!==(n=zr(e,t,n,r))&&(Ku(n,0,r),mi(n,t,r))}function ui(e,t,n){ci(e,t,n,Vu())}function ci(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fi(e))pi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,i=o(l,n);if(a.hasEagerState=!0,a.eagerState=i,Jn(i,l))return Or(e,t,a,0),null===mu&&Pr(),!1}catch(e){}if(null!==(n=zr(e,t,a,r)))return Ku(n,0,r),mi(n,t,r),!0}return!1}function di(e,t,n,r){if(r={lane:2,revertLane:Bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(l(479))}else null!==(t=zr(e,n,r,2))&&Ku(t,0,2)}function fi(e){var t=e.alternate;return e===Ho||null!==t&&t===Ho}function pi(e,t){Qo=Vo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}var hi={readContext:za,use:dl,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};hi.useEffectEvent=Zo;var gi={readContext:za,use:dl,useCallback:function(e,t){return sl().memoizedState=[e,void 0===t?null:t],e},useContext:za,useEffect:$l,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ul(4194308,4,Vl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ul(4194308,4,e,t)},useInsertionEffect:function(e,t){Ul(4,2,e,t)},useMemo:function(e,t){var n=sl();t=void 0===t?null:t;var r=e();if(Ko){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=sl();if(void 0!==n){var a=n(t);if(Ko){ve(!0);try{n(t)}finally{ve(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=si.bind(null,Ho,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},sl().memoizedState=e},useState:function(e){var t=(e=xl(e)).queue,n=ui.bind(null,Ho,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kl,useDeferredValue:function(e,t){return Xl(sl(),e,t)},useTransition:function(){var e=xl(!1);return e=Zl.bind(null,Ho,e.queue,!0,!1),sl().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ho,a=sl();if(da){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===mu)throw Error(l(349));127&gu||bl(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,$l(wl.bind(null,r,o,e),[e]),r.flags|=2048,Dl(9,{destroy:void 0},vl.bind(null,r,o,n,t),null),n},useId:function(){var e=sl(),t=mu.identifierPrefix;if(da){var n=ra;t="_"+t+"R_"+(n=(na&~(1<<32-we(na)-1)).toString(32)+n),0<(n=Yo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Jo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ai,useFormState:zl,useActionState:zl,useOptimistic:function(e){var t=sl();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=di.bind(null,Ho,!0,n),n.dispatch=t,[e,t]},useMemoCache:fl,useCacheRefresh:function(){return sl().memoizedState=ii.bind(null,Ho)},useEffectEvent:function(e){var t=sl(),n={impl:e};return t.memoizedState=n,function(){if(2&pu)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},yi={readContext:za,use:dl,useCallback:Yl,useContext:za,useEffect:Bl,useImperativeHandle:Ql,useInsertionEffect:Wl,useLayoutEffect:ql,useMemo:Gl,useReducer:ml,useRef:Fl,useState:function(){return ml(pl)},useDebugValue:Kl,useDeferredValue:function(e,t){return Jl(ul(),Wo.memoizedState,e,t)},useTransition:function(){var e=ml(pl)[0],t=ul().memoizedState;return["boolean"==typeof e?e:cl(e),t]},useSyncExternalStore:yl,useId:oi,useHostTransitionStatus:ai,useFormState:Ll,useActionState:Ll,useOptimistic:function(e,t){return El(ul(),0,e,t)},useMemoCache:fl,useCacheRefresh:li};yi.useEffectEvent=Hl;var bi={readContext:za,use:dl,useCallback:Yl,useContext:za,useEffect:Bl,useImperativeHandle:Ql,useInsertionEffect:Wl,useLayoutEffect:ql,useMemo:Gl,useReducer:gl,useRef:Fl,useState:function(){return gl(pl)},useDebugValue:Kl,useDeferredValue:function(e,t){var n=ul();return null===Wo?Xl(n,e,t):Jl(n,Wo.memoizedState,e,t)},useTransition:function(){var e=gl(pl)[0],t=ul().memoizedState;return["boolean"==typeof e?e:cl(e),t]},useSyncExternalStore:yl,useId:oi,useHostTransitionStatus:ai,useFormState:Ml,useActionState:Ml,useOptimistic:function(e,t){var n=ul();return null!==Wo?El(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fl,useCacheRefresh:li};function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}bi.useEffectEvent=Hl;var wi={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vu(),a=vo(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=wo(e,a,r))&&(Ku(t,0,r),ko(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vu(),a=vo(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=wo(e,a,r))&&(Ku(t,0,r),ko(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vu(),r=vo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wo(e,r,n))&&(Ku(t,0,n),ko(t,e,n))}};function ki(e,t,n,r,a,o,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,l):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(a,o))}function Si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function xi(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=p({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function Ei(e){_r(e)}function Ci(e){console.error(e)}function _i(e){_r(e)}function Ti(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ni(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ri(e,t,n){return(n=vo(n)).tag=3,n.payload={element:null},n.callback=function(){Ti(e,t)},n}function Pi(e){return(e=vo(e)).tag=3,e}function Oi(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Ni(t,n,r)}}var l=n.stateNode;null!==l&&"function"==typeof l.componentDidCatch&&(e.callback=function(){Ni(t,n,r),"function"!=typeof a&&(null===Mu?Mu=new Set([this]):Mu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var zi=Error(l(461)),Li=!1;function Ai(e,t,n,r){t.child=null===e?ho(t,null,n,r):mo(t,e.child,n,r)}function ji(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var l={};for(var i in r)"ref"!==i&&(l[i]=r[i])}else l=r;return Oa(t),r=tl(e,t,n,l,o,a),i=ol(),null===e||Li?(da&&i&&la(t),t.flags|=1,Ai(e,t,r,a),t.child):(ll(e,t,a),as(e,t,a))}function Mi(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Ur(o)||void 0!==o.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Di(e,t,o,r,a))}if(o=e.child,!os(e,a)){var l=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(l,r)&&e.ref===t.ref)return as(e,t,a)}return t.flags|=1,(e=Ir(o,r)).ref=t.ref,e.return=t,t.child=e}function Di(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Li=!1,t.pendingProps=r=o,!os(e,a))return t.lanes=e.lanes,as(e,t,a);131072&e.flags&&(Li=!0)}}return Wi(e,t,n,r,a)}function Fi(e,t,n,r){var a=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,a=0;null!==r;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~o}else r=0,t.child=null;return Ii(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Ii(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ya(0,null!==o?o.cachePool:null),null!==o?Po(t,o):Oo(),Do(t)}else null!==o?(Ya(0,o.cachePool),Po(t,o),Fo(),t.memoizedState=null):(null!==e&&Ya(0,null),Oo(),Fo());return Ai(e,t,a,n),t.child}function Ui(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ii(e,t,n,r,a){var o=Ka();return o=null===o?null:{parent:Fa._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Ya(0,null),Oo(),Do(t),null!==e&&Ra(e,t,r,!0),t.childLanes=a,null}function $i(e,t){return(t=Zi({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Bi(e,t,n){return mo(t,e.child,null,n),(e=$i(t,t.pendingProps)).flags|=2,Uo(t),t.memoizedState=null,e}function Hi(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(l(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Wi(e,t,n,r,a){return Oa(t),n=tl(e,t,n,r,void 0,a),r=ol(),null===e||Li?(da&&r&&la(t),t.flags|=1,Ai(e,t,n,a),t.child):(ll(e,t,a),as(e,t,a))}function qi(e,t,n,r,a,o){return Oa(t),t.updateQueue=null,n=rl(t,r,n,a),nl(e),r=ol(),null===e||Li?(da&&r&&la(t),t.flags|=1,Ai(e,t,n,o),t.child):(ll(e,t,o),as(e,t,o))}function Vi(e,t,n,r,a){if(Oa(t),null===t.stateNode){var o=Mr,l=n.contextType;"object"==typeof l&&null!==l&&(o=za(l)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=wi,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},yo(t),l=n.contextType,o.context="object"==typeof l&&null!==l?za(l):Mr,o.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(vi(t,n,l,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(l=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),l!==o.state&&wi.enqueueReplaceState(o,o.state,null),Co(t,r,o,a),Eo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var i=t.memoizedProps,s=xi(n,i);o.props=s;var u=o.context,c=n.contextType;l=Mr,"object"==typeof c&&null!==c&&(l=za(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,i=t.pendingProps!==i,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i||u!==l)&&Si(t,o,r,l),go=!1;var f=t.memoizedState;o.state=f,Co(t,r,o,a),Eo(),u=t.memoizedState,i||f!==u||go?("function"==typeof d&&(vi(t,n,d,r),u=t.memoizedState),(s=go||ki(t,n,s,r,f,u,l))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,bo(e,t),c=xi(n,l=t.memoizedProps),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,s=Mr,"object"==typeof u&&null!==u&&(s=za(u)),(u="function"==typeof(i=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==d||f!==s)&&Si(t,o,r,s),go=!1,f=t.memoizedState,o.state=f,Co(t,r,o,a),Eo();var p=t.memoizedState;l!==d||f!==p||go||null!==e&&null!==e.dependencies&&Pa(e.dependencies)?("function"==typeof i&&(vi(t,n,i,r),p=t.memoizedState),(c=go||ki(t,n,c,r,f,p,s)||null!==e&&null!==e.dependencies&&Pa(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=c):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Hi(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=mo(t,e.child,null,a),t.child=mo(t,null,n,a)):Ai(e,t,n,a),t.memoizedState=o.state,e=t.child):e=as(e,t,a),e}function Qi(e,t,n,r){return va(),t.flags|=256,Ai(e,t,n,r),t.child}var Ki={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yi(e){return{baseLanes:e,cachePool:Ga()}}function Gi(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tu),e}function Xi(e,t,n){var r,a=t.pendingProps,o=!1,i=!!(128&t.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&Io.current)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(da){if(o?jo(t):Fo(),(e=ca)?null!==(e=null!==(e=Pd(e,pa))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ua=t,ca=null):e=null,null===e)throw ha(t);return zd(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,o?(Fo(),s=Zi({mode:"hidden",children:s},o=t.mode),a=Hr(a,o,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,(a=t.child).memoizedState=Yi(n),a.childLanes=Gi(e,r,n),t.memoizedState=Ki,Ui(null,a)):(jo(t),Ji(t,s))}var u=e.memoizedState;if(null!==u&&null!==(s=u.dehydrated)){if(i)256&t.flags?(jo(t),t.flags&=-257,t=es(e,t,n)):null!==t.memoizedState?(Fo(),t.child=e.child,t.flags|=128,t=null):(Fo(),s=a.fallback,o=t.mode,a=Zi({mode:"visible",children:a.children},o),(s=Hr(s,o,n,null)).flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,mo(t,e.child,null,n),(a=t.child).memoizedState=Yi(n),a.childLanes=Gi(e,r,n),t.memoizedState=Ki,t=Ui(null,a));else if(jo(t),zd(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(a=Error(l(419))).stack="",a.digest=r,ka({value:a,source:null,stack:null}),t=es(e,t,n)}else if(Li||Ra(e,t,n,!1),r=0!==(n&e.childLanes),Li||r){if(null!==(r=mu)&&0!==(a=je(r,n))&&a!==u.retryLane)throw u.retryLane=a,Lr(e,a),Ku(r,0,a),zi;Od(s)||lc(),t=es(e,t,n)}else Od(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ca=Ld(s.nextSibling),ua=t,da=!0,fa=null,pa=!1,null!==e&&sa(t,e),(t=Ji(t,a.children)).flags|=4096);return t}return o?(Fo(),s=a.fallback,o=t.mode,c=(u=e.child).sibling,(a=Ir(u,{mode:"hidden",children:a.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?s=Ir(c,s):(s=Hr(s,o,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,Ui(null,a),a=t.child,null===(s=e.child.memoizedState)?s=Yi(n):(null!==(o=s.cachePool)?(u=Fa._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Ga(),s={baseLanes:s.baseLanes|n,cachePool:o}),a.memoizedState=s,a.childLanes=Gi(e,r,n),t.memoizedState=Ki,Ui(e.child,a)):(jo(t),e=(n=e.child).sibling,(n=Ir(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ji(e,t){return(t=Zi({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zi(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function es(e,t,n){return mo(t,e.child,null,n),(e=Ji(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ts(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ta(e.return,t,n)}function ns(e,t,n,r,a,o){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function rs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;r=r.children;var l=Io.current,i=!!(2&l);if(i?(l=1&l|2,t.flags|=128):l&=1,$(Io,l),Ai(e,t,r,n),r=da?Jr:0,!i&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ts(e,n,t);else if(19===e.tag)ts(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===$o(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ns(t,!1,a,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===$o(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ns(t,!0,n,null,o,r);break;case"together":ns(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Eu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ra(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Ir(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ir(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function os(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Pa(e))}function ls(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Li=!0;else{if(!(os(e,n)||128&t.flags))return Li=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Ca(0,Fa,e.memoizedState.cache),va();break;case 27:case 5:G(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Ca(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(jo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xi(e,t,n):(jo(t),null!==(e=as(e,t,n))?e.sibling:null);jo(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ra(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return rs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),$(Io,Io.current),r)break;return null;case 22:return t.lanes=0,Fi(e,t,n,t.pendingProps);case 24:Ca(0,Fa,e.memoizedState.cache)}return as(e,t,n)}(e,t,n);Li=!!(131072&e.flags)}else Li=!1,da&&1048576&t.flags&&oa(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===S){t.tag=11,t=ji(null,t,e,r,n);break e}if(a===C){t.tag=14,t=Mi(null,t,e,r,n);break e}}throw t=z(e)||e,Error(l(306,t,""))}Ur(e)?(r=xi(e,r),t.tag=1,t=Vi(null,t,e,r,n)):(t.tag=0,t=Wi(null,t,e,r,n))}return t;case 0:return Wi(e,t,t.type,t.pendingProps,n);case 1:return Vi(e,t,r=t.type,a=xi(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(l(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,bo(e,t),Co(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Ca(0,Fa,r),r!==o.cache&&Na(t,[Fa],n,!0),Eo(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Qi(e,t,r,n);break e}if(r!==a){ka(a=Kr(Error(l(424)),t)),t=Qi(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ca=Ld(e.firstChild),ua=t,da=!0,fa=null,pa=!0,n=ho(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(va(),r===a){t=as(e,t,n);break e}Ai(e,t,r,n)}t=t.child}return t;case 26:return Hi(e,t),null===e?(n=qd(t.type,null,t.pendingProps,null))?t.memoizedState=n:da||(n=t.type,e=t.pendingProps,(r=gd(V.current).createElement(n))[$e]=t,r[Be]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&da&&(r=t.stateNode=Dd(t.type,t.pendingProps,V.current),ua=t,pa=!0,a=ca,_d(t.type)?(Ad=a,ca=Ld(r.firstChild)):ca=a),Ai(e,t,t.pendingProps.children,n),Hi(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&da&&((a=r=ca)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pa))?(t.stateNode=r,ua=t,ca=Ld(r.firstChild),pa=!1,a=!0):a=!1),a||ha(t)),G(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,vd(a,o)?r=null:null!==i&&vd(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=tl(e,t,al,null,null,n),df._currentValue=a),Hi(e,t),Ai(e,t,r,n),t.child;case 6:return null===e&&da&&((e=n=ca)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,pa))?(t.stateNode=n,ua=t,ca=null,e=!0):e=!1),e||ha(t)),null;case 13:return Xi(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=mo(t,null,r,n):Ai(e,t,r,n),t.child;case 11:return ji(e,t,t.type,t.pendingProps,n);case 7:return Ai(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ai(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ca(0,t.type,r.value),Ai(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Oa(t),r=r(a=za(a)),t.flags|=1,Ai(e,t,r,n),t.child;case 14:return Mi(e,t,t.type,t.pendingProps,n);case 15:return Di(e,t,t.type,t.pendingProps,n);case 19:return rs(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(da){if("hidden"===r.mode)return e=$i(t,r),t.lanes=536870912,Ui(null,e);if(Mo(t),(e=ca)?null!==(e=null!==(e=Pd(e,pa))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ua=t,ca=null):e=null,null===e)throw ha(t);return t.lanes=536870912,null}return $i(t,r)}var o=e.memoizedState;if(null!==o){var i=o.dehydrated;if(Mo(t),a)if(256&t.flags)t.flags&=-257,t=Bi(e,t,n);else{if(null===t.memoizedState)throw Error(l(558));t.child=e.child,t.flags|=128,t=null}else if(Li||Ra(e,t,n,!1),a=0!==(n&e.childLanes),Li||a){if(null!==(r=mu)&&0!==(i=je(r,n))&&i!==o.retryLane)throw o.retryLane=i,Lr(e,i),Ku(r,0,i),zi;lc(),t=Bi(e,t,n)}else e=o.treeContext,ca=Ld(i.nextSibling),ua=t,da=!0,fa=null,pa=!1,null!==e&&sa(t,e),(t=$i(t,r)).flags|=4096;return t}return(e=Ir(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fi(e,t,n,t.pendingProps);case 24:return Oa(t),r=za(Fa),null===e?(null===(a=Ka())&&(a=mu,o=Ua(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},yo(t),Ca(0,Fa,a)):(0!==(e.lanes&n)&&(bo(e,t),Co(t,null,null,n),Eo()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Ca(0,Fa,r)):(r=o.cache,Ca(0,Fa,r),r!==a.cache&&Na(t,[Fa],n,!0))),Ai(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function is(e){e.flags|=4}function ss(e,t,n,r,a){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&a)===a)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw ao=eo,Ja;e.flags|=8192}}else e.flags&=-16777217}function us(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!af(t)){if(!rc())throw ao=eo,Ja;e.flags|=8192}}function cs(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,Nu|=t)}function ds(e,t){if(!da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ps(e,t,n){var r=t.pendingProps;switch(ia(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fs(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(Fa),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ba(t)?is(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,wa())),fs(t),null;case 26:var a=t.type,o=t.memoizedState;return null===e?(is(t),null!==o?(fs(t),us(t,o)):(fs(t),ss(t,a,0,0,n))):o?o!==e.memoizedState?(is(t),fs(t),us(t,o)):(fs(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&is(t),fs(t),ss(t,a,0,0,n)),null;case 27:if(X(t),n=V.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return fs(t),null}e=W.current,ba(t)?ga(t):(e=Dd(a,r,n),t.stateNode=e,is(t))}return fs(t),null;case 5:if(X(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return fs(t),null}if(o=W.current,ba(t))ga(t);else{var i=gd(V.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(o=i.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?i.createElement(a,{is:r.is}):i.createElement(a)}}o[$e]=t,o[Be]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)o.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(fd(o,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&is(t)}}return fs(t),ss(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(e=V.current,ba(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=ua))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||ha(t,!0)}else(e=gd(e).createTextNode(r))[$e]=t,t.stateNode=e}return fs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=ba(t),null!==n){if(null===e){if(!r)throw Error(l(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(l(557));e[$e]=t}else va(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),e=!1}else n=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Uo(t),t):(Uo(t),null);if(128&t.flags)throw Error(l(558))}return fs(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ba(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(l(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(l(317));a[$e]=t}else va(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),a=!1}else a=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Uo(t),t):(Uo(t),null)}return Uo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cs(t,t.updateQueue),fs(t),null);case 4:return Y(),null===e&&Zc(t.stateNode.containerInfo),fs(t),null;case 10:return _a(t.type),fs(t),null;case 19:if(I(Io),null===(r=t.memoizedState))return fs(t),null;if(a=!!(128&t.flags),null===(o=r.rendering))if(a)ds(r,!1);else{if(0!==xu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=$o(e))){for(t.flags|=128,ds(r,!1),e=o.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)$r(n,e),n=n.sibling;return $(Io,1&Io.current|2),da&&aa(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&se()>Au&&(t.flags|=128,a=!0,ds(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=$o(o))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),ds(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!da)return fs(t),null}else 2*se()-r.renderingStartTime>Au&&536870912!==n&&(t.flags|=128,a=!0,ds(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=se(),e.sibling=null,n=Io.current,$(Io,a?1&n|2:1&n),da&&aa(t,r.treeForkCount),e):(fs(t),null);case 22:case 23:return Uo(t),zo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fs(t),6&t.subtreeFlags&&(t.flags|=8192)):fs(t),null!==(n=t.updateQueue)&&cs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&I(Qa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(Fa),fs(t),null;case 25:case 30:return null}throw Error(l(156,t.tag))}function ms(e,t){switch(ia(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return _a(Fa),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Uo(t),null===t.alternate)throw Error(l(340));va()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Uo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));va()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return I(Io),null;case 4:return Y(),null;case 10:return _a(t.type),null;case 22:case 23:return Uo(t),zo(),null!==e&&I(Qa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return _a(Fa),null;default:return null}}function hs(e,t){switch(ia(t),t.tag){case 3:_a(Fa),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Uo(t);break;case 13:Uo(t);break;case 19:I(Io);break;case 10:_a(t.type);break;case 22:case 23:Uo(t),zo(),null!==e&&I(Qa);break;case 24:_a(Fa)}}function gs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,l=n.inst;r=o(),l.destroy=r}n=n.next}while(n!==a)}}catch(e){xc(t,t.return,e)}}function ys(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var l=r.inst,i=l.destroy;if(void 0!==i){l.destroy=void 0,a=t;var s=n,u=i;try{u()}catch(e){xc(a,s,e)}}}r=r.next}while(r!==o)}}catch(e){xc(t,t.return,e)}}function bs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{To(t,n)}catch(t){xc(e,e.return,t)}}}function vs(e,t,n){n.props=xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){xc(e,t,n)}}function ws(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){xc(e,t,n)}}function ks(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){xc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){xc(e,t,n)}else n.current=null}function Ss(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){xc(e,e.return,t)}}function xs(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,s=null,u=null,c=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&null!=f)switch(m){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(m)||cd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=m||null!=f))switch(p){case"type":o=m;break;case"name":a=m;break;case"checked":c=m;break;case"defaultChecked":d=m;break;case"value":i=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(l(137,t));break;default:m!==f&&cd(e,t,p,m,r,f)}}return void bt(e,i,s,u,c,d,o,a);case"select":for(o in m=i=s=p=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":m=u;default:r.hasOwnProperty(o)||cd(e,t,o,null,r,u)}for(a in r)if(o=r[a],u=n[a],r.hasOwnProperty(a)&&(null!=o||null!=u))switch(a){case"value":p=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:o!==u&&cd(e,t,a,o,r,u)}return t=s,n=i,r=m,void(null!=p?kt(e,!!n,p,!1):!!r!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in m=p=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:cd(e,t,s,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(l(91));break;default:a!==o&&cd(e,t,i,a,r,o)}return void St(e,p,m);case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:cd(e,t,h,null,r,p));for(u in r)p=r[u],m=n[u],!r.hasOwnProperty(u)||p===m||null==p&&null==m||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:cd(e,t,u,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(l(137,t));break;default:cd(e,t,c,p,r,m)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||void 0===p&&void 0===m||dd(e,t,d,p,r,m);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!r.hasOwnProperty(b)&&cd(e,t,b,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||null==p&&null==m||cd(e,t,f,p,r,m)}(r,e.type,n,t),r[Be]=t}catch(t){xc(e,e.return,t)}}function Es(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&_d(e.type)||4===e.tag}function Cs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Es(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&_d(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function _s(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zt));else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Ts(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ts(e,t,n),e=e.sibling;null!==e;)Ts(e,t,n),e=e.sibling}function Ns(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);fd(t,r,n),t[$e]=e,t[Be]=n}catch(t){xc(e,e.return,t)}}var Rs=!1,Ps=!1,Os=!1,zs="function"==typeof WeakSet?WeakSet:Set,Ls=null;function As(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ks(e,n),4&r&&gs(5,n);break;case 1:if(Ks(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){xc(n,n.return,e)}else{var a=xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){xc(n,n.return,e)}}64&r&&bs(n),512&r&&ws(n,n.return);break;case 3:if(Ks(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{To(e,t)}catch(e){xc(n,n.return,e)}}break;case 27:null===t&&4&r&&Ns(n);case 26:case 5:Ks(e,n),null===t&&4&r&&Ss(n),512&r&&ws(n,n.return);break;case 12:Ks(e,n);break;case 31:Ks(e,n),4&r&&Is(e,n);break;case 13:Ks(e,n),4&r&&$s(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Rs)){t=null!==t&&null!==t.memoizedState||Ps,a=Rs;var o=Ps;Rs=r,(Ps=t)&&!o?Gs(e,n,!!(8772&n.subtreeFlags)):Ks(e,n),Rs=a,Ps=o}break;case 30:break;default:Ks(e,n)}}function js(e){var t=e.alternate;null!==t&&(e.alternate=null,js(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ms=null,Ds=!1;function Fs(e,t,n){for(n=n.child;null!==n;)Us(e,t,n),n=n.sibling}function Us(e,t,n){if(be&&"function"==typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Ps||ks(n,t),Fs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ps||ks(n,t);var r=Ms,a=Ds;_d(n.type)&&(Ms=n.stateNode,Ds=!1),Fs(e,t,n),Fd(n.stateNode),Ms=r,Ds=a;break;case 5:Ps||ks(n,t);case 6:if(r=Ms,a=Ds,Ms=null,Fs(e,t,n),Ds=a,null!==(Ms=r))if(Ds)try{(9===Ms.nodeType?Ms.body:"HTML"===Ms.nodeName?Ms.ownerDocument.body:Ms).removeChild(n.stateNode)}catch(e){xc(n,t,e)}else try{Ms.removeChild(n.stateNode)}catch(e){xc(n,t,e)}break;case 18:null!==Ms&&(Ds?(Td(9===(e=Ms).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qf(e)):Td(Ms,n.stateNode));break;case 4:r=Ms,a=Ds,Ms=n.stateNode.containerInfo,Ds=!0,Fs(e,t,n),Ms=r,Ds=a;break;case 0:case 11:case 14:case 15:ys(2,n,t),Ps||ys(4,n,t),Fs(e,t,n);break;case 1:Ps||(ks(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&vs(n,t,r)),Fs(e,t,n);break;case 21:Fs(e,t,n);break;case 22:Ps=(r=Ps)||null!==n.memoizedState,Fs(e,t,n),Ps=r;break;default:Fs(e,t,n)}}function Is(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{qf(e)}catch(e){xc(t,t.return,e)}}}function $s(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{qf(e)}catch(e){xc(t,t.return,e)}}function Bs(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new zs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new zs),t;default:throw Error(l(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function Hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],o=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 27:if(_d(s.type)){Ms=s.stateNode,Ds=!1;break e}break;case 5:Ms=s.stateNode,Ds=!1;break e;case 3:case 4:Ms=s.stateNode.containerInfo,Ds=!0;break e}s=s.return}if(null===Ms)throw Error(l(160));Us(o,i,a),Ms=null,Ds=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)qs(t,e),t=t.sibling}var Ws=null;function qs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hs(t,e),Vs(e),4&r&&(ys(3,e,e.return),gs(3,e),ys(5,e,e.return));break;case 1:Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),64&r&&Rs&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=Ws;if(Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(o=a.getElementsByTagName("title")[0])||o[Ke]||o[$e]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector("head > title"))),fd(o,r,n),o[$e]=e,et(o),r=o;break e;case"link":var i=nf("link","href",a).get(r+(n.href||""));if(i)for(var s=0;s<i.length;s++)if((o=i[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){i.splice(s,1);break t}fd(o=a.createElement(r),r,n),a.head.appendChild(o);break;case"meta":if(i=nf("meta","content",a).get(r+(n.content||"")))for(s=0;s<i.length;s++)if((o=i[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){i.splice(s,1);break t}fd(o=a.createElement(r),r,n),a.head.appendChild(o);break;default:throw Error(l(468,r))}o[$e]=e,et(o),r=o}e.stateNode=r}else rf(a,e.type,e.stateNode);else e.stateNode=Xd(a,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?rf(a,e.type,e.stateNode):Xd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&xs(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),null!==n&&4&r&&xs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),32&e.flags){a=e.stateNode;try{Et(a,"")}catch(t){xc(e,e.return,t)}}4&r&&null!=e.stateNode&&xs(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Os=!0);break;case 6:if(Hs(t,e),Vs(e),4&r){if(null===e.stateNode)throw Error(l(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){xc(e,e.return,t)}}break;case 3:if(tf=null,a=Ws,Ws=$d(t.containerInfo),Hs(t,e),Ws=a,Vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qf(t.containerInfo)}catch(t){xc(e,e.return,t)}Os&&(Os=!1,Qs(e));break;case 4:r=Ws,Ws=$d(e.stateNode.containerInfo),Hs(t,e),Vs(e),Ws=r;break;case 12:default:Hs(t,e),Vs(e);break;case 31:case 19:Hs(t,e),Vs(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bs(e,r));break;case 13:Hs(t,e),Vs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(zu=se()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bs(e,r));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Rs,d=Ps;if(Rs=c||a,Ps=d||u,Hs(t,e),Ps=d,Rs=c,Vs(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||Rs||Ps||Ys(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,a)"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none";else{s=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){xc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){xc(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var m=u.stateNode;a?Nd(m,!0):Nd(u.stateNode,!1)}catch(e){xc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Bs(e,n));case 30:case 21:}}function Vs(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Es(r)){n=r;break}r=r.return}if(null==n)throw Error(l(160));switch(n.tag){case 27:var a=n.stateNode;Ts(e,Cs(e),a);break;case 5:var o=n.stateNode;32&n.flags&&(Et(o,""),n.flags&=-33),Ts(e,Cs(e),o);break;case 3:case 4:var i=n.stateNode.containerInfo;_s(e,Cs(e),i);break;default:throw Error(l(161))}}catch(t){xc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Qs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Qs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ks(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)As(e,t.alternate,t),t=t.sibling}function Ys(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ys(4,t,t.return),Ys(t);break;case 1:ks(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&vs(t,t.return,n),Ys(t);break;case 27:Fd(t.stateNode);case 26:case 5:ks(t,t.return),Ys(t);break;case 22:null===t.memoizedState&&Ys(t);break;default:Ys(t)}e=e.sibling}}function Gs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,l=o.flags;switch(o.tag){case 0:case 11:case 15:Gs(a,o,n),gs(4,o);break;case 1:if(Gs(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){xc(r,r.return,e)}if(null!==(a=(r=o).updateQueue)){var i=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)_o(s[a],i)}catch(e){xc(r,r.return,e)}}n&&64&l&&bs(o),ws(o,o.return);break;case 27:Ns(o);case 26:case 5:Gs(a,o,n),n&&null===r&&4&l&&Ss(o),ws(o,o.return);break;case 12:Gs(a,o,n);break;case 31:Gs(a,o,n),n&&4&l&&Is(a,o);break;case 13:Gs(a,o,n),n&&4&l&&$s(a,o);break;case 22:null===o.memoizedState&&Gs(a,o,n),ws(o,o.return);break;case 30:break;default:Gs(a,o,n)}t=t.sibling}}function Xs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ia(n))}function Js(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e))}function Zs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Zs(e,t,n,r),2048&a&&gs(9,t);break;case 1:case 31:case 13:default:Zs(e,t,n,r);break;case 3:Zs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e)));break;case 12:if(2048&a){Zs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,l=o.id,i=o.onPostCommit;"function"==typeof i&&i(l,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){xc(t,t.return,e)}}else Zs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,l=t.alternate,null!==t.memoizedState?2&o._visibility?Zs(e,t,n,r):nu(e,t):2&o._visibility?Zs(e,t,n,r):(o._visibility|=2,tu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&a&&Xs(l,t);break;case 24:Zs(e,t,n,r),2048&a&&Js(t.alternate,t)}}function tu(e,t,n,r,a){for(a=a&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,l=t,i=n,s=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:tu(o,l,i,s,a),gs(8,l);break;case 23:break;case 22:var c=l.stateNode;null!==l.memoizedState?2&c._visibility?tu(o,l,i,s,a):nu(o,l):(c._visibility|=2,tu(o,l,i,s,a)),a&&2048&u&&Xs(l.alternate,l);break;case 24:tu(o,l,i,s,a),a&&2048&u&&Js(l.alternate,l);break;default:tu(o,l,i,s,a)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:nu(n,r),2048&a&&Xs(r.alternate,r);break;case 24:nu(n,r),2048&a&&Js(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function au(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)ou(e,t,n),e=e.sibling}function ou(e,t,n){switch(e.tag){case 26:au(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var a=Vd(r.href),o=t.querySelector(Qd(a));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=lf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,r=Kd(r),(a=Ud.get(a))&&Zd(r,a),et(o=o.createElement("link"));var l=o;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),fd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=lf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Ws,e.memoizedState,e.memoizedProps);break;case 5:default:au(e,t,n);break;case 3:case 4:var r=Ws;Ws=$d(e.stateNode.containerInfo),au(e,t,n),Ws=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,au(e,t,n),ru=r):au(e,t,n))}}function lu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function iu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,cu(r,e)}lu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)su(e),e=e.sibling}function su(e){switch(e.tag){case 0:case 11:case 15:iu(e),2048&e.flags&&ys(9,e,e.return);break;case 3:case 12:default:iu(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):iu(e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,cu(r,e)}lu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ys(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ls;){var n=Ls;switch(n.tag){case 0:case 11:case 15:ys(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ls=r;else e:for(n=e;null!==Ls;){var a=(r=Ls).sibling,o=r.return;if(js(r),r===n){Ls=null;break e}if(null!==a){a.return=o,Ls=a;break e}Ls=o}}}var du={getCacheForType:function(e){var t=za(Fa),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return za(Fa).controller.signal}},fu="function"==typeof WeakMap?WeakMap:Map,pu=0,mu=null,hu=null,gu=0,yu=0,bu=null,vu=!1,wu=!1,ku=!1,Su=0,xu=0,Eu=0,Cu=0,_u=0,Tu=0,Nu=0,Ru=null,Pu=null,Ou=!1,zu=0,Lu=0,Au=1/0,ju=null,Mu=null,Du=0,Fu=null,Uu=null,Iu=0,$u=0,Bu=null,Hu=null,Wu=0,qu=null;function Vu(){return 2&pu&&0!==gu?gu&-gu:null!==A.T?Bc():Fe()}function Qu(){if(0===Tu)if(536870912&gu&&!da)Tu=536870912;else{var e=Ee;!(3932160&(Ee<<=1))&&(Ee=262144),Tu=e}return null!==(e=Lo.current)&&(e.flags|=32),Tu}function Ku(e,t,n){(e!==mu||2!==yu&&9!==yu)&&null===e.cancelPendingCommit||(tc(e,0),Ju(e,gu,Tu,!1)),ze(e,n),2&pu&&e===mu||(e===mu&&(!(2&pu)&&(Cu|=n),4===xu&&Ju(e,gu,Tu,!1)),jc(e))}function Yu(e,t,n){if(6&pu)throw Error(l(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),a=r?function(e,t){var n=pu;pu|=2;var r=ac(),a=oc();mu!==e||gu!==t?(ju=null,Au=se()+500,tc(e,t)):wu=Ne(e,t);e:for(;;)try{if(0!==yu&&null!==hu){t=hu;var o=bu;t:switch(yu){case 1:yu=0,bu=null,fc(e,t,o,1);break;case 2:case 9:if(to(o)){yu=0,bu=null,dc(t);break}t=function(){2!==yu&&9!==yu||mu!==e||(yu=7),jc(e)},o.then(t,t);break e;case 3:yu=7;break e;case 4:yu=5;break e;case 7:to(o)?(yu=0,bu=null,dc(t)):(yu=0,bu=null,fc(e,t,o,7));break;case 5:var i=null;switch(hu.tag){case 26:i=hu.memoizedState;case 5:case 27:var s=hu;if(i?af(i):s.stateNode.complete){yu=0,bu=null;var u=s.sibling;if(null!==u)hu=u;else{var c=s.return;null!==c?(hu=c,pc(c)):hu=null}break t}}yu=0,bu=null,fc(e,t,o,5);break;case 6:yu=0,bu=null,fc(e,t,o,6);break;case 8:ec(),xu=6;break e;default:throw Error(l(462))}}uc();break}catch(t){nc(e,t)}return Ea=xa=null,A.H=r,A.A=a,pu=n,null!==hu?0:(mu=null,gu=0,Pr(),xu)}(e,t):ic(e,t,!0),o=r;;){if(0===a){wu&&!r&&Ju(e,t,0,!1);break}if(n=e.current.alternate,!o||Xu(n)){if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var s=e;a=Ru;var u=s.current.memoizedState.isDehydrated;if(u&&(tc(s,i).flags|=256),2!==(i=ic(s,i,!1))){if(ku&&!u){s.errorRecoveryDisabledLanes|=o,Cu|=o,a=4;break e}o=Pu,Pu=a,null!==o&&(null===Pu?Pu=o:Pu.push.apply(Pu,o))}a=i}if(o=!1,2!==a)continue}}if(1===a){tc(e,0),Ju(e,t,0,!0);break}e:{switch(r=e,o=a){case 0:case 1:throw Error(l(345));case 4:if((4194048&t)!==t)break;case 6:Ju(r,t,Tu,!vu);break e;case 2:Pu=null;break;case 3:case 5:break;default:throw Error(l(329))}if((62914560&t)===t&&10<(a=zu+300-se())){if(Ju(r,t,Tu,!vu),0!==Te(r,0,!0))break e;Iu=t,r.timeoutHandle=kd(Gu.bind(null,r,n,Pu,ju,Ou,t,Tu,Cu,Nu,vu,o,"Throttled",-0,0),a)}else Gu(r,n,Pu,ju,Ou,t,Tu,Cu,Nu,vu,o,null,-0,0)}break}a=ic(e,t,!1),o=!1}jc(e)}function Gu(e,t,n,r,a,o,l,i,s,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ou(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zt});var m=(62914560&o)===o?zu-se():(4194048&o)===o?Lu-se():0;if(null!==(m=function(e,t){return e.stylesheets&&0===e.count&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===of&&(of=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],o=a.transferSize,l=a.initiatorType,i=a.duration;if(o&&i&&pd(l)){for(l=0,i=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>i)break;var c=s.transferSize,d=s.initiatorType;c&&pd(d)&&(l+=c*((s=s.responseEnd)<i?1:(i-u)/(s-u)))}if(--r,t+=8*(o+l)/(a.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var a=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>of?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}(d,m)))return Iu=o,e.cancelPendingCommit=m(hc.bind(null,e,t,o,n,r,a,l,i,s,c,d,null,f,p)),void Ju(e,o,l,!u)}hc(e,t,o,n,r,a,l,i,s)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Jn(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ju(e,t,n,r){t&=~_u,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-we(a),l=1<<o;r[o]=-1,a&=~l}0!==n&&Le(e,n,t)}function Zu(){return!!(6&pu)||(Mc(0,!1),!1)}function ec(){if(null!==hu){if(0===yu)var e=hu.return;else Ea=xa=null,il(e=hu),io=null,so=0,e=hu;for(;null!==e;)hs(e.alternate,e),e=e.return;hu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Iu=0,ec(),mu=e,hu=n=Ir(e.current,null),gu=t,yu=0,bu=null,vu=!1,wu=Ne(e,t),ku=!1,Nu=Tu=_u=Cu=Eu=xu=0,Pu=Ru=null,Ou=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-we(r),o=1<<a;t|=e[a],r&=~o}return Su=t,Pr(),n}function nc(e,t){Ho=null,A.H=hi,t===Xa||t===Za?(t=oo(),yu=3):t===Ja?(t=oo(),yu=4):yu=t===zi?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,bu=t,null===hu&&(xu=1,Ti(e,Kr(t,e.current)))}function rc(){var e=Lo.current;return null===e||((4194048&gu)===gu?null===Ao:!!((62914560&gu)===gu||536870912&gu)&&e===Ao)}function ac(){var e=A.H;return A.H=hi,null===e?hi:e}function oc(){var e=A.A;return A.A=du,e}function lc(){xu=4,vu||(4194048&gu)!==gu&&null!==Lo.current||(wu=!0),!(134217727&Eu)&&!(134217727&Cu)||null===mu||Ju(mu,gu,Tu,!1)}function ic(e,t,n){var r=pu;pu|=2;var a=ac(),o=oc();mu===e&&gu===t||(ju=null,tc(e,t)),t=!1;var l=xu;e:for(;;)try{if(0!==yu&&null!==hu){var i=hu,s=bu;switch(yu){case 8:ec(),l=6;break e;case 3:case 2:case 9:case 6:null===Lo.current&&(t=!0);var u=yu;if(yu=0,bu=null,fc(e,i,s,u),n&&wu){l=0;break e}break;default:u=yu,yu=0,bu=null,fc(e,i,s,u)}}sc(),l=xu;break}catch(t){nc(e,t)}return t&&e.shellSuspendCounter++,Ea=xa=null,pu=r,A.H=a,A.A=o,null===hu&&(mu=null,gu=0,Pr()),l}function sc(){for(;null!==hu;)cc(hu)}function uc(){for(;null!==hu&&!le();)cc(hu)}function cc(e){var t=ls(e.alternate,e,Su);e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qi(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=qi(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:il(t);default:hs(n,t),t=ls(n,t=hu=$r(t,Su),Su)}e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function fc(e,t,n,r){Ea=xa=null,il(t),io=null,so=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ra(t,n,a,!0),null!==(n=Lo.current)){switch(n.tag){case 31:case 13:return null===Ao?lc():null===n.alternate&&0===xu&&(xu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Ec(e,r,a)),!1;case 22:return n.flags|=65536,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Ec(e,r,a)),!1}throw Error(l(435,n.tag))}return Ec(e,r,a),lc(),!1}if(da)return null!==(t=Lo.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ma&&ka(Kr(e=Error(l(422),{cause:r}),n))):(r!==ma&&ka(Kr(t=Error(l(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Kr(r,n),So(e,a=Ri(e.stateNode,r,a)),4!==xu&&(xu=2)),!1;var o=Error(l(520),{cause:r});if(o=Kr(o,n),null===Ru?Ru=[o]:Ru.push(o),4!==xu&&(xu=2),null===t)return!0;r=Kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,So(n,e=Ri(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Mu&&Mu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Oi(a=Pi(a),e,n,r),So(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,gu))return xu=1,Ti(e,Kr(n,e.current)),void(hu=null)}catch(t){if(null!==a)throw hu=a,t;return xu=1,Ti(e,Kr(n,e.current)),void(hu=null)}32768&t.flags?(da||1===r?e=!0:wu||536870912&gu?e=!1:(vu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Lo.current)&&13===r.tag&&(r.flags|=16384)),mc(t,e)):pc(t)}function pc(e){var t=e;do{if(32768&t.flags)return void mc(t,vu);e=t.return;var n=ps(t.alternate,t,Su);if(null!==n)return void(hu=n);if(null!==(t=t.sibling))return void(hu=t);hu=t=e}while(null!==t);0===xu&&(xu=5)}function mc(e,t){do{var n=ms(e.alternate,e);if(null!==n)return n.flags&=32767,void(hu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(hu=e);hu=e=n}while(null!==e);xu=6,hu=null}function hc(e,t,n,r,a,o,i,s,u){e.cancelPendingCommit=null;do{wc()}while(0!==Du);if(6&pu)throw Error(l(327));if(null!==t){if(t===e.current)throw Error(l(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-we(n),d=1<<c;i[c]=0,s[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Le(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(l&~t))}(e,n,o|=Rr,i,s,u),e===mu&&(hu=mu=null,gu=0),Uu=t,Fu=e,Iu=n,$u=o,Bu=a,Hu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(fe,function(){return kc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=A.T,A.T=null,a=j.p,j.p=2,i=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,md=wf,ar(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var i=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==a&&3!==f.nodeType||(s=i+a),f!==o||0!==r&&3!==f.nodeType||(u=i+r),3===f.nodeType&&(i+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===a&&(s=i),p===o&&++d===r&&(u=i),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},wf=!1,Ls=t;null!==Ls;)if(e=(t=Ls).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ls=e;else for(;null!==Ls;){switch(o=(t=Ls).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=xi(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){xc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Rd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(l(163))}if(null!==(e=t.sibling)){e.return=t.return,Ls=e;break}Ls=t.return}}(e,t)}finally{pu=i,j.p=a,A.T=r}}Du=1,gc(),yc(),bc()}}function gc(){if(1===Du){Du=0;var e=Fu,t=Uu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=A.T,A.T=null;var r=j.p;j.p=2;var a=pu;pu|=4;try{qs(t,e);var o=hd,l=rr(e.containerInfo),i=o.focusedElem,s=o.selectionRange;if(l!==i&&i&&i.ownerDocument&&nr(i.ownerDocument.documentElement,i)){if(null!==s&&ar(i)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=i.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(l=g,g=h,h=l);var y=tr(i,h),b=tr(i,g);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=i;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i<d.length;i++){var w=d[i];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}wf=!!md,hd=md=null}finally{pu=a,j.p=r,A.T=n}}e.current=t,Du=2}}function yc(){if(2===Du){Du=0;var e=Fu,t=Uu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=A.T,A.T=null;var r=j.p;j.p=2;var a=pu;pu|=4;try{As(e,t.alternate,t)}finally{pu=a,j.p=r,A.T=n}}Du=3}}function bc(){if(4===Du||3===Du){Du=0,ie();var e=Fu,t=Uu,n=Iu,r=Hu;10256&t.subtreeFlags||10256&t.flags?Du=5:(Du=0,Uu=Fu=null,vc(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Mu=null),De(n),t=t.stateNode,be&&"function"==typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=A.T,a=j.p,j.p=2,A.T=null;try{for(var o=e.onRecoverableError,l=0;l<r.length;l++){var i=r[l];o(i.value,{componentStack:i.stack})}}finally{A.T=t,j.p=a}}3&Iu&&wc(),jc(e),a=e.pendingLanes,261930&n&&42&a?e===qu?Wu++:(Wu=0,qu=e):Wu=0,Mc(0,!1)}}function vc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ia(t))}function wc(){return gc(),yc(),bc(),kc()}function kc(){if(5!==Du)return!1;var e=Fu,t=$u;$u=0;var n=De(Iu),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=Bu,Bu=null;var o=Fu,i=Iu;if(Du=0,Uu=Fu=null,Iu=0,6&pu)throw Error(l(331));var s=pu;if(pu|=4,su(o.current),eu(o,o.current,i,n),pu=s,Mc(0,!1),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ye,o)}catch(e){}return!0}finally{j.p=a,A.T=r,vc(e,t)}}function Sc(e,t,n){t=Kr(n,t),null!==(e=wo(e,t=Ri(e.stateNode,t,2),2))&&(ze(e,2),jc(e))}function xc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Mu||!Mu.has(r))){e=Kr(n,e),null!==(r=wo(t,n=Pi(2),2))&&(Oi(n,r,t,e),ze(r,2),jc(r));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(ku=!0,a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mu===e&&(gu&n)===n&&(4===xu||3===xu&&(62914560&gu)===gu&&300>se()-zu?!(2&pu)&&tc(e,0):_u|=n,Nu===gu&&(Nu=0)),jc(e)}function _c(e,t){0===t&&(t=Pe()),null!==(e=Lr(e,t))&&(ze(e,t),jc(e))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),_c(e,n)}var Rc=null,Pc=null,Oc=!1,zc=!1,Lc=!1,Ac=0;function jc(e){e!==Pc&&null===e.next&&(null===Pc?Rc=Pc=e:Pc=Pc.next=e),zc=!0,Oc||(Oc=!0,Ed(function(){6&pu?ae(ce,Dc):Fc()}))}function Mc(e,t){if(!Lc&&zc){Lc=!0;do{for(var n=!1,r=Rc;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var l=r.suspendedLanes,i=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=a&~(l&~i))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,$c(r,o))}else o=gu,!(3&(o=Te(r,r===mu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,$c(r,o));r=r.next}}while(n);Lc=!1}}function Dc(){Fc()}function Fc(){zc=Oc=!1;var e,t=0;0!==Ac&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Ac);for(var n=se(),r=null,a=Rc;null!==a;){var o=a.next,l=Uc(a,n);0===l?(a.next=null,null===r?Rc=o:r.next=o,null===o&&(Pc=r)):(r=a,(0!==t||3&l)&&(zc=!0)),a=o}0!==Du&&5!==Du||Mc(t,!1),0!==Ac&&(Ac=0)}function Uc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var l=31-we(o),i=1<<l,s=a[l];-1===s?0!==(i&n)&&0===(i&r)||(a[l]=Re(i,t)):s<=t&&(e.expiredLanes|=i),o&=~i}if(n=gu,n=Te(e,e===(t=mu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yu||9===yu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),De(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=me}return r=Ic.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function Ic(e,t){if(0!==Du&&5!==Du)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=Te(e,e===mu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yu(e,r,t),Uc(e,se()),null!=e.callbackNode&&e.callbackNode===n?Ic.bind(null,e):null)}function $c(e,t){if(wc())return null;Yu(e,t,!0)}function Bc(){if(0===Ac){var e=Ha;0===e&&(e=xe,!(261888&(xe<<=1))&&(xe=256)),Ac=e}return Ac}function Hc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Ot(""+e)}function Wc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var qc=0;qc<Er.length;qc++){var Vc=Er[qc];Cr(Vc.toLowerCase(),"on"+(Vc[0].toUpperCase()+Vc.slice(1)))}Cr(gr,"onAnimationEnd"),Cr(yr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(vr,"onTransitionRun"),Cr(wr,"onTransitionStart"),Cr(kr,"onTransitionCancel"),Cr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qc));function Yc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],s=i.instance,u=i.currentTarget;if(i=i.listener,s!==o&&a.isPropagationStopped())break e;o=i,a.currentTarget=u;try{o(a)}catch(e){_r(e)}a.currentTarget=null,o=s}else for(l=0;l<r.length;l++){if(s=(i=r[l]).instance,u=i.currentTarget,i=i.listener,s!==o&&a.isPropagationStopped())break e;o=i,a.currentTarget=u;try{o(a)}catch(e){_r(e)}a.currentTarget=null,o=s}}}}function Gc(e,t){var n=t[We];void 0===n&&(n=t[We]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Jc]){e[Jc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Kc.has(t)||Xc(t,!1,e),Xc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Jc]||(t[Jc]=!0,Xc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Tf(t)){case 2:var a=kf;break;case 8:a=Sf;break;default:a=xf}n=a.bind(null,t,n,e),a=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function td(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var i=r.stateNode.containerInfo;if(i===a)break;if(4===l)for(l=r.return;null!==l;){var u=l.tag;if((3===u||4===u)&&l.stateNode.containerInfo===a)return;l=l.return}for(;null!==i;){if(null===(l=Ge(i)))return;if(5===(u=l.tag)||6===u||26===u||27===u){r=o=l;continue e}i=i.parentNode}}r=r.return}Ut(function(){var r=o,a=At(n),l=[];e:{var i=xr.get(e);if(void 0!==i){var u=nn,c=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":u=bn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=wn;break;case gr:case yr:case br:u=cn;break;case Sr:u=kn;break;case"scroll":case"scrollend":u=an;break;case"wheel":u=Sn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=vn;break;case"toggle":case"beforetoggle":u=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==i?i+"Capture":null:i;d=[];for(var m,h=r;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===p||null!=(g=It(h,p))&&d.push(nd(h,g,m)),f)break;h=h.return}0<d.length&&(i=new u(i,c,null,n,a),l.push({event:i,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===Lt||!(c=n.relatedTarget||n.fromElement)||!Ge(c)&&!c[He])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ge(c):null)&&(f=s(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=ln,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=vn,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?i:Je(u),m=null==c?i:Je(c),(i=new d(g,h+"leave",u,n,a)).target=f,i.relatedTarget=m,g=null,Ge(a)===r&&((d=new d(p,h+"enter",c,n,a)).target=m,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=ad,h=c,m=0,g=p=u;g;g=d(g))m++;g=0;for(var y=h;y;y=d(y))g++;for(;0<m-g;)p=d(p),m--;for(;0<g-m;)h=d(h),g--;for(;m--;){if(p===h||null!==h&&p===h.alternate){d=p;break e}p=d(p),h=d(h)}d=null}else d=null;null!==u&&od(l,i,u,d,!1),null!==c&&null!==f&&od(l,f,c,d,!0)}if("select"===(u=(i=r?Je(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var b=$n;else if(jn(i))if(Bn)b=Xn;else{b=Yn;var v=Kn}else!(u=i.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==i.type&&"radio"!==i.type?r&&Nt(r.elementType)&&(b=$n):b=Gn;switch(b&&(b=b(e,r))?Mn(l,b,n,a):(v&&v(e,i,r),"focusout"===e&&r&&"number"===i.type&&null!=r.memoizedProps.value&&wt(i,"number",i.value)),v=r?Je(r):window,e){case"focusin":(jn(v)||"true"===v.contentEditable)&&(lr=v,ir=r,sr=null);break;case"focusout":sr=ir=lr=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(l,n,a);break;case"selectionchange":if(or)break;case"keydown":case"keyup":cr(l,n,a)}var w;if(Cn)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ln?On(e,n)&&(k="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(k="onCompositionStart");k&&(Nn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==k?"onCompositionEnd"===k&&Ln&&(w=Qt()):(qt="value"in(Wt=a)?Wt.value:Wt.textContent,Ln=!0)),0<(v=rd(r,k)).length&&(k=new fn(k,e,null,n,a),l.push({event:k,listeners:v}),(w||null!==(w=zn(n)))&&(k.data=w))),(w=Tn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Cn&&On(e,t)?(e=Qt(),Vt=qt=Wt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(k=rd(r,"onBeforeInput")).length&&(v=new fn("onBeforeInput","beforeinput",null,n,a),l.push({event:v,listeners:k}),v.data=w),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=Hc((a[Be]||null).action),l=r.submitter;l&&null!==(t=(t=l[Be]||null)?Hc(t.formAction):l.getAttribute("formAction"))&&(o=t,l=null);var i=new nn("action","action",null,r,a);e.push({event:i,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Ac){var e=l?Wc(a,l):new FormData(a);ti(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(i.preventDefault(),e=l?Wc(a,l):new FormData(a),ti(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(l,e,r,n,a)}Yc(l,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=It(e,n))&&r.unshift(nd(e,a,o)),null!=(a=It(e,t))&&r.push(nd(e,a,o))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,r,a){for(var o=t._reactName,l=[];null!==n&&n!==r;){var i=n,s=i.alternate,u=i.stateNode;if(i=i.tag,null!==s&&s===r)break;5!==i&&26!==i&&27!==i||null===u||(s=u,a?null!=(u=It(n,o))&&l.unshift(nd(n,u,s)):a||null!=(u=It(n,o))&&l.push(nd(n,u,s))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var ld=/\r\n?/g,id=/\u0000|\uFFFD/g;function sd(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(id,"")}function ud(e,t){return t=sd(t),sd(e)===t}function cd(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Et(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Et(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":Tt(e,r,o);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&cd(e,t,"name",a.name,a,null),cd(e,t,"formEncType",a.formEncType,a,null),cd(e,t,"formMethod",a.formMethod,a,null),cd(e,t,"formTarget",a.formTarget,a,null)):(cd(e,t,"encType",a.encType,a,null),cd(e,t,"method",a.method,a,null),cd(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=zt);break;case"onScroll":null!=r&&Gc("scroll",e);break;case"onScrollEnd":null!=r&&Gc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Ot(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Gc("beforetoggle",e),Gc("toggle",e),st(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":st(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=Rt.get(n)||n,r)}}function dd(e,t,n,r,a,o){switch(n){case"style":Tt(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Et(e,r):("number"==typeof r||"bigint"==typeof r)&&Et(e,""+r);break;case"onScroll":null!=r&&Gc("scroll",e);break;case"onScrollEnd":null!=r&&Gc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Be]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):st(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gc("error",e),Gc("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:cd(e,t,r,i,n,null)}}return o&&cd(e,t,"srcSet",n.srcSet,n,null),void(a&&cd(e,t,"src",n.src,n,null));case"input":Gc("invalid",e);var s=r=i=o=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":o=d;break;case"type":i=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(l(137,t));break;default:cd(e,t,a,d,n,null)}}return void vt(e,r,s,u,c,i,o,!1);case"select":for(o in Gc("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(s=n[o]))switch(o){case"value":r=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:cd(e,t,o,s,n,null)}return t=r,n=i,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(i in Gc("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":a=s;break;case"defaultValue":o=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(l(91));break;default:cd(e,t,i,s,n,null)}return void xt(e,a,o,r);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(a=n[u])&&("selected"===u?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:cd(e,t,u,a,n,null));return;case"dialog":Gc("beforetoggle",e),Gc("toggle",e),Gc("cancel",e),Gc("close",e);break;case"iframe":case"object":Gc("load",e);break;case"video":case"audio":for(a=0;a<Qc.length;a++)Gc(Qc[a],e);break;case"image":Gc("error",e),Gc("load",e);break;case"details":Gc("toggle",e);break;case"embed":case"source":case"link":Gc("error",e),Gc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:cd(e,t,c,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(a=n[d])&&dd(e,t,d,a,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(a=n[s])&&cd(e,t,s,a,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,hd=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function yd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function vd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null,kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,xd="function"==typeof Promise?Promise:void 0,Ed="function"==typeof queueMicrotask?queueMicrotask:void 0!==xd?function(e){return xd.resolve(null).then(e).catch(Cd)}:kd;function Cd(e){setTimeout(function(){throw e})}function _d(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)||"/&"===n){if(0===r)return e.removeChild(a),void qf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var l=o.nextSibling,i=o.nodeName;o[Ke]||"SCRIPT"===i||"STYLE"===i||"LINK"===i&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=l}}else"body"===n&&Fd(e.ownerDocument.body);n=a}while(n);qf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Rd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Rd(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Pd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Od(e){return"$?"===e.data||"$~"===e.data}function zd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ad=null;function jd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Md(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Dd(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(l(452));return e;case"head":if(!(e=t.head))throw Error(l(453));return e;case"body":if(!(e=t.body))throw Error(l(454));return e;default:throw Error(l(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Ud=new Map,Id=new Set;function $d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=j.d;j.d={f:function(){var e=Bd.f(),t=Zu();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?ri(t):Bd.r(e)},D:function(e){Bd.D(e),Wd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Wd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=Hd;if(r&&e&&t){var a='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+yt(n.imageSizes)+'"]')):a+='[href="'+yt(e)+'"]';var o=a;switch(t){case"style":o=Vd(e);break;case"script":o=Yd(e)}Ud.has(o)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Qd(o))||"script"===t&&r.querySelector(Gd(o))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yd(e)}if(!Ud.has(o)&&(e=p({rel:"modulepreload",href:e},t),Ud.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Gd(o)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,a=Yd(e),o=r.get(a);o||((o=n.querySelector(Gd(a)))||(e=p({src:e,async:!0},t),(t=Ud.get(a))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){Bd.S(e,t,n);var r=Hd;if(r&&e){var a=Ze(r).hoistableStyles,o=Vd(e);t=t||"default";var l=a.get(o);if(!l){var i={loading:0,preload:null};if(l=r.querySelector(Qd(o)))i.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(o))&&Zd(e,n);var s=l=r.createElement("link");et(s),fd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){i.loading|=1}),s.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Jd(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:i},a.set(o,l)}}},M:function(e,t){Bd.M(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,a=Yd(e),o=r.get(a);o||((o=n.querySelector(Gd(a)))||(e=p({src:e,async:!0,type:"module"},t),(t=Ud.get(a))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Hd="undefined"==typeof document?null:document;function Wd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var a=yt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Id.has(a)||(Id.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function qd(e,t,n,r){var a,o,i,s,u=(u=V.current)?$d(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Vd(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Vd(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Qd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),c||(a=u,o=e,i=n,s=d.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?s.loading=1:(o=a.createElement("link"),s.preload=o,o.addEventListener("load",function(){return s.loading|=1}),o.addEventListener("error",function(){return s.loading|=2}),fd(o,"link",i),et(o),a.head.appendChild(o))))),t&&null===r)throw Error(l(528,""));return d}if(t&&null!==r)throw Error(l(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vd(e){return'href="'+yt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+yt(e)+'"]'}function Gd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",a),Jd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Vd(n.href);var o=e.querySelector(Qd(a));if(o)return t.state.loading|=4,t.instance=o,et(o),o;r=Kd(n),(a=Ud.get(a))&&Zd(r,a),et(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),fd(o,"link",r),t.state.loading|=4,Jd(o,n.precedence,e),t.instance=o;case"script":return o=Yd(n.src),(a=e.querySelector(Gd(o)))?(t.instance=a,et(a),a):(r=n,(a=Ud.get(o))&&ef(r=p({},n),a),et(a=(e=e.ownerDocument||e).createElement("script")),fd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(l(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jd(r,n.precedence,e));return t.instance}function Jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,l=0;l<r.length;l++){var i=r[l];if(i.dataset.precedence===t)o=i;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,a=tf=new Map;a.set(n,r)}else(r=(a=tf).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ke]||o[$e]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var l=o.getAttribute(t)||"";l=e+l;var i=r.get(l);i?i.push(o):r.set(l,[o])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function af(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var of=0;function lf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sf=new Map,t.forEach(cf,e),sf=null,lf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=sf.get(e);if(n)var r=n.get(null);else{n=new Map,sf.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];"LINK"!==l.nodeName&&"not all"===l.getAttribute("media")||(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}l=(a=t.instance).getAttribute("data-precedence"),(o=n.get(l)||r)===r&&n.set(null,a),n.set(l,a),this.count++,r=lf.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var df={$$typeof:k,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function ff(e,t,n,r,a,o,l,i,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function pf(e,t,n,r,a,o,l,i,s,u,c,d){return e=new ff(e,t,n,l,s,u,c,d,i),t=1,!0===o&&(t|=24),o=Fr(3,null,null,t),e.current=o,o.stateNode=e,(t=Ua()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},yo(o),e}function mf(e){return e?e=Mr:Mr}function hf(e,t,n,r,a,o){a=mf(a),null===r.context?r.context=a:r.pendingContext=a,(r=vo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=wo(e,r,t))&&(Ku(n,0,t),ko(n,e,t))}function gf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){gf(e,t),(e=e.alternate)&&gf(e,t)}function bf(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Ku(t,0,67108864),yf(e,67108864)}}function vf(e){if(13===e.tag||31===e.tag){var t=Vu(),n=Lr(e,t=Me(t));null!==n&&Ku(n,0,t),yf(e,t)}}var wf=!0;function kf(e,t,n,r){var a=A.T;A.T=null;var o=j.p;try{j.p=2,xf(e,t,n,r)}finally{j.p=o,A.T=a}}function Sf(e,t,n,r){var a=A.T;A.T=null;var o=j.p;try{j.p=8,xf(e,t,n,r)}finally{j.p=o,A.T=a}}function xf(e,t,n,r){if(wf){var a=Ef(r);if(null===a)td(e,t,r,Cf,n),Mf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rf=Df(Rf,e,t,n,r,a),!0;case"dragenter":return Pf=Df(Pf,e,t,n,r,a),!0;case"mouseover":return Of=Df(Of,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return zf.set(o,Df(zf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Lf.set(o,Df(Lf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<jf.indexOf(e)){for(;null!==a;){var o=Xe(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var l=_e(o.pendingLanes);if(0!==l){var i=o;for(i.pendingLanes|=2,i.entangledLanes|=2;l;){var s=1<<31-we(l);i.entanglements[1]|=s,l&=~s}jc(o),!(6&pu)&&(Au=se()+500,Mc(0,!1))}}break;case 31:case 13:null!==(i=Lr(o,2))&&Ku(i,0,2),Zu(),yf(o,2)}if(null===(o=Ef(r))&&td(e,t,r,Cf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else td(e,t,r,null,n)}}function Ef(e){return _f(e=At(e))}var Cf=null;function _f(e){if(Cf=null,null!==(e=Ge(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cf=e,null}function Tf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case me:return 268435456;default:return 32}default:return 32}}var Nf=!1,Rf=null,Pf=null,Of=null,zf=new Map,Lf=new Map,Af=[],jf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":Rf=null;break;case"dragenter":case"dragleave":Pf=null;break;case"mouseover":case"mouseout":Of=null;break;case"pointerover":case"pointerout":zf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function Df(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=Xe(t))&&bf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ff(e){var t=Ge(e.target);if(null!==t){var n=s(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void Ue(e.priority,function(){vf(n)})}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void Ue(e.priority,function(){vf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&bf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function If(e,t,n){Uf(e)&&n.delete(t)}function $f(){Nf=!1,null!==Rf&&Uf(Rf)&&(Rf=null),null!==Pf&&Uf(Pf)&&(Pf=null),null!==Of&&Uf(Of)&&(Of=null),zf.forEach(If),Lf.forEach(If)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,$f)))}var Hf=null;function Wf(e){Hf!==e&&(Hf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Hf===e&&(Hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===_f(r||n))continue;break}var o=Xe(n);null!==o&&(e.splice(t,3),t-=3,ti(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function qf(e){function t(t){return Bf(t,e)}null!==Rf&&Bf(Rf,e),null!==Pf&&Bf(Pf,e),null!==Of&&Bf(Of,e),zf.forEach(t),Lf.forEach(t);for(var n=0;n<Af.length;n++){var r=Af[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Af.length&&null===(n=Af[0]).blockedOn;)Ff(n),null===n.blockedOn&&Af.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],l=a[Be]||null;if("function"==typeof o)l||Wf(n);else if(l){var i=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Be]||null)i=l.formAction;else if(null!==_f(a))continue}else i=l.action;"function"==typeof i?n[r+1]=i:(n.splice(r,3),r-=3),Wf(n)}}}function Vf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==a&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==a&&(a(),a=null)}}}function Qf(e){this._internalRoot=e}function Kf(e){this._internalRoot=e}Kf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));hf(t.current,Vu(),e,t,null,null)},Kf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hf(e.current,2,null,e,null,null),Zu(),t[He]=null}},Kf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Af.length&&0!==t&&t<Af[n].priority;n++);Af.splice(n,0,e),0===n&&Ff(e)}};var Yf=a.version;if("19.2.4"!==Yf)throw Error(l(527,Yf,"19.2.4"));j.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw e=Object.keys(e).join(","),Error(l(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return d(a),e;if(o===r)return d(a),t;o=o.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,u=a.child;u;){if(u===n){i=!0,n=a,r=o;break}if(u===r){i=!0,r=a,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=a;break}if(u===r){i=!0,r=o,n=a;break}u=u.sibling}if(!i)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?f(e):null)?null:e.stateNode};var Gf={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xf.isDisabled&&Xf.supportsFiber)try{ye=Xf.inject(Gf),be=Xf}catch(e){}}t.createRoot=function(e,t){if(!i(e))throw Error(l(299));var n=!1,r="",a=Ei,o=Ci,s=_i;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,a,o,s,Vf),e[He]=t.current,Zc(e),new Qf(t)},t.hydrateRoot=function(e,t,n){if(!i(e))throw Error(l(299));var r=!1,a="",o=Ei,s=Ci,u=_i,c=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=pf(e,1,!0,t,0,r,a,c,o,s,u,Vf)).context=mf(null),n=t.current,(a=vo(r=Me(r=Vu()))).callback=null,wo(n,a,r),n=r,t.current.lanes=n,ze(t,n),jc(t),e[He]=t.current,Zc(e),new Kf(t)},t.version="19.2.4"},6221(e,t,n){var r=n(6540);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},i=Symbol.for("react.portal"),s=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(a(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=s.T,n=l.p;try{if(s.T=null,l.p=2,e)return e()}finally{s.T=t,l.p=n,l.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,l.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&l.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?l.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):"script"===n&&l.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);l.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&l.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);l.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else l.d.m(e)},t.requestFormReset=function(e){l.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},t.useFormStatus=function(){return s.H.useHostTransitionStatus()},t.version="19.2.4"},5338(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},961(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=a,t.jsxs=a},9869(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var k=w.prototype=new v;k.constructor=w,g(k,b.prototype),k.isPureReactComponent=!0;var S=Array.isArray;function x(){}var E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(e,t,r){var a=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(e,t,a,o,l){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s,u,c=!1;if(null===e)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return P((c=e._init)(e._payload),t,a,o,l)}}if(c)return l=l(e),c=""===o?"."+R(e,0):o,S(l)?(a="",null!=c&&(a=c.replace(N,"$&/")+"/"),P(l,t,a,"",function(e){return e})):null!=l&&(T(l)&&(s=l,u=a+(null==l.key||e&&e.key===l.key?"":(""+l.key).replace(N,"$&/")+"/")+c,l=_(s.type,u,s.props)),t.push(l)),1;c=0;var d,p=""===o?".":o+":";if(S(e))for(var h=0;h<e.length;h++)c+=P(o=e[h],t,a,i=p+R(o,h),l);else if("function"==typeof(h=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=m&&d[m]||d["@@iterator"])?d:null))for(e=h.call(e),h=0;!(o=e.next()).done;)c+=P(o=o.value,t,a,i=p+R(o,h++),l);else if("object"===i){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,a,o,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function O(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},A={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=A,t.Component=b,t.Fragment=a,t.Profiler=l,t.PureComponent=w,t.StrictMode=o,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key;if(null!=t)for(o in void 0!==t.key&&(a=""+t.key),t)!C.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var l=Array(o),i=0;i<o;i++)l[i]=arguments[i+2];r.children=l}return _(e.type,a,r)},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},t.createElement=function(e,t,n){var r,a={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var i=Array(l),s=0;s<l;s++)i[s]=arguments[s+2];a.children=i}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return _(e,o,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:z}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),a=E.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,L)}catch(e){L(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),E.T=t}},t.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},t.use=function(e){return E.H.use(e)},t.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)},t.useCallback=function(e,t){return E.H.useCallback(e,t)},t.useContext=function(e){return E.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return E.H.useEffect(e,t)},t.useEffectEvent=function(e){return E.H.useEffectEvent(e)},t.useId=function(){return E.H.useId()},t.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return E.H.useMemo(e,t)},t.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)},t.useRef=function(e){return E.H.useRef(e)},t.useState=function(e){return E.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return E.H.useTransition()},t.version="19.2.4"},6540(e,t,n){e.exports=n(9869)},4848(e,t,n){e.exports=n(9698)},4477(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,l=a>>>1;r<l;){var i=2*(r+1)-1,s=e[i],u=i+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[i]=n,r=i);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var u=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(g=!1,k(e),!h)if(null!==r(u))h=!0,E||(E=!0,x());else{var t=r(c);null!==t&&z(S,t.startTime-e)}}var x,E=!1,C=-1,_=5,T=-1;function N(){return!(!y&&t.unstable_now()-T<_)}function R(){if(y=!1,E){var e=t.unstable_now();T=e;var n=!0;try{e:{h=!1,g&&(g=!1,v(C),C=-1),m=!0;var o=p;try{t:{for(k(e),f=r(u);null!==f&&!(f.expirationTime>e&&N());){var l=f.callback;if("function"==typeof l){f.callback=null,p=f.priorityLevel;var i=l(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){f.callback=i,k(e),n=!0;break t}f===r(u)&&a(u),k(e)}else a(u);f=r(u)}if(null!==f)n=!0;else{var s=r(c);null!==s&&z(S,s.startTime-e),n=!1}}break e}finally{f=null,p=o,m=!1}n=void 0}}finally{n?x():E=!1}}}if("function"==typeof w)x=function(){w(R)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=R,x=function(){O.postMessage(null)}}else x=function(){b(R,0)};function z(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var l=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?l+o:l,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>l?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(v(C),C=-1):g=!0,z(S,o-l))):(e.sortIndex=i,n(u,e),h||m||(h=!0,E||(E=!0,x()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982(e,t,n){e.exports=n(4477)},7009(e,t,n){n.d(t,{Q:()=>yt});var r={};function a(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>me,navigator:()=>fe,origin:()=>he});const{toString:o}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:i,toStringTag:s}=Symbol,u=(c=Object.create(null),e=>{const t=o.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const d=e=>(e=e.toLowerCase(),t=>u(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,m=f("undefined");function h(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=d("ArrayBuffer"),y=f("string"),b=f("function"),v=f("number"),w=e=>null!==e&&"object"==typeof e,k=e=>{if("object"!==u(e))return!1;const t=l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||i in e)},S=d("Date"),x=d("File"),E=d("Blob"),C=d("FileList"),_=d("URLSearchParams"),[T,N,R,P]=["ReadableStream","Request","Response","Headers"].map(d);function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(h(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(r=0;r<o;r++)l=a[r],t.call(null,e[l],l,e)}}function z(e,t){if(h(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,A=e=>!m(e)&&e!==L,j=(M="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>M&&e instanceof M);var M;const D=d("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=d("RegExp"),I=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,(n,a)=>{let o;!1!==(o=t(n,a,e))&&(r[a]=o||n)}),Object.defineProperties(e,r)},$=d("AsyncFunction"),B=(H="function"==typeof setImmediate,W=b(L.postMessage),H?setImmediate:W?(q=`axios@${Math.random()}`,V=[],L.addEventListener("message",({source:e,data:t})=>{e===L&&t===q&&V.length&&V.shift()()},!1),e=>{V.push(e),L.postMessage(q,"*")}):e=>setTimeout(e));var H,W,q,V;const Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!=typeof process&&process.nextTick||B,K={isArray:p,isArrayBuffer:g,isBuffer:h,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=u(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:y,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:k,isEmptyObject:e=>{if(!w(e)||h(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:T,isRequest:N,isResponse:R,isHeaders:P,isUndefined:m,isDate:S,isFile:x,isBlob:E,isRegExp:U,isFunction:b,isStream:e=>w(e)&&b(e.pipe),isURLSearchParams:_,isTypedArray:j,isFileList:C,forEach:O,merge:function e(){const{caseless:t,skipUndefined:n}=A(this)&&this||{},r={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const l=t&&z(r,o)||o;k(r[l])&&k(a)?r[l]=e(r[l],a):k(a)?r[l]=e({},a):p(a)?r[l]=a.slice():n&&m(a)||(r[l]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],a);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(O(t,(t,r)=>{n&&b(t)?Object.defineProperty(e,r,{value:a(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,o,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[i]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:I,freezeMethods:e=>{I(e,(t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:L,isContextDefined:A,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[s]&&e[i])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(h(e))return e;if(!("toJSON"in e)){t[r]=e;const a=p(e)?[]:{};return O(e,(e,t)=>{const o=n(e,r+1);!m(o)&&(a[t]=o)}),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(w(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:B,asap:Q,isIterable:e=>null!=e&&b(e[i])};class Y extends Error{static from(e,t,n,r,a,o){const l=new Y(e.message,t||e.code,n,r,a);return l.cause=e,l.name=e.name,o&&Object.assign(l,o),l}constructor(e,t,n,r,a){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}}Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Y.ERR_BAD_OPTION="ERR_BAD_OPTION",Y.ECONNABORTED="ECONNABORTED",Y.ETIMEDOUT="ETIMEDOUT",Y.ERR_NETWORK="ERR_NETWORK",Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Y.ERR_DEPRECATED="ERR_DEPRECATED",Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Y.ERR_CANCELED="ERR_CANCELED",Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Y.ERR_INVALID_URL="ERR_INVALID_URL";const G=Y;function X(e){return K.isPlainObject(e)||K.isArray(e)}function J(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map(function(e,t){return e=J(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ee=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)}),te=function(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])})).metaTokens,a=n.visitor||u,o=n.dots,l=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!i&&K.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let i=e;if(e&&!a&&"object"==typeof e)if(K.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(X)}(e)||(K.isFileList(e)||K.endsWith(n,"[]"))&&(i=K.toArray(e)))return n=J(n),i.forEach(function(e,r){!K.isUndefined(e)&&null!==e&&t.append(!0===l?Z([n],r,o):null===l?n:n+"[]",s(e))}),!1;return!!X(e)||(t.append(Z(a,n,o),s(e)),!1)}const c=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:s,isVisitable:X});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!K.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),K.forEach(n,function(n,o){!0===(!(K.isUndefined(n)||null===n)&&a.call(t,n,K.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ae=re.prototype;ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const oe=re;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||le,a=K.isFunction(n)?{serialize:n}:n,o=a&&a.serialize;let l;if(l=o?o(t,a):K.isURLSearchParams(t)?t.toString():new oe(t,a).toString(r),l){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}const se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,function(t){null!==t&&e(t)})}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=de&&window.location.href||"http://localhost",ge={...r,...ce},ye=function(e){function t(e,n,r,a){let o=e[a++];if("__proto__"===o)return!0;const l=Number.isFinite(+o),i=a>=e.length;return o=!o&&K.isArray(r)?r.length:o,i?(K.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l):(r[o]&&K.isObject(r[o])||(r[o]=[]),t(e,n,r[o],a)&&K.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}(r[o])),!l)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,(e,r)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},be={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=K.isObject(e);if(a&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(ye(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,{visitor:function(e,t,n,r){return ge.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=K.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const ve=be,we=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ke=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:K.isArray(e)?e.map(xe):String(e)}function Ee(e,t,n,r,a){return K.isFunction(r)?r.call(this,t,n):(a&&(t=n),K.isString(t)?K.isString(r)?-1!==t.indexOf(r):K.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Se(t);if(!a)throw new Error("header name must be a non-empty string");const o=K.findKey(r,a);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=xe(e))}const o=(e,t)=>K.forEach(e,(e,n)=>a(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let n,r,a={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[r=t[0]]=(n=a[r])?K.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Se(e)){const n=K.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Se(e)){const n=K.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Se(e)){const a=K.findKey(n,e);!a||t&&!Ee(0,n[a],a,t)||(delete n[a],r=!0)}}return K.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Ee(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return K.forEach(this,(r,a)=>{const o=K.findKey(n,a);if(o)return t[o]=xe(r),void delete t[a];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();l!==a&&delete t[a],t[l]=xe(r),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&K.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ke]=this[ke]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Se(e);t[r]||(function(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(Ce);const _e=Ce;function Te(e,t){const n=this||ve,r=t||n,a=_e.from(r.headers);let o=r.data;return K.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}const Re=class extends G{constructor(e,t,n){super(null==e?"canceled":e,G.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Oe=(e,t,n=3)=>{let r=0;const a=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,o=0,l=0;return t=void 0!==t?t:1e3,function(i){const s=Date.now(),u=r[l];a||(a=s),n[o]=i,r[o]=s;let c=l,d=0;for(;c!==o;)d+=n[c++],c%=e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),s-a<t)return;const f=u&&s-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,a=0,o=1e3/t;const l=(t,o=Date.now())=>{a=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-a;i>=o?l(e,t):(n=e,r||(r=setTimeout(()=>{r=null,l(n)},o-i)))},()=>n&&l(n)]}(n=>{const o=n.loaded,l=n.lengthComputable?n.total:void 0,i=o-r,s=a(i);r=o,e({loaded:o,total:l,progress:l?o/l:void 0,bytes:i,rate:s||void 0,estimated:s&&l&&o<=l?(l-o)/s:void 0,event:n,lengthComputable:null!=l,[t?"download":"upload"]:!0})},n)},ze=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>K.asap(()=>e(...t)),Ae=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,je=ge.hasStandardBrowserEnv?{write(e,t,n,r,a,o,l){if("undefined"==typeof document)return;const i=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&i.push(`path=${r}`),K.isString(a)&&i.push(`domain=${a}`),!0===o&&i.push("secure"),K.isString(l)&&i.push(`SameSite=${l}`),document.cookie=i.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Me(e,t,n){let r=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const De=e=>e instanceof _e?{...e}:e;function Fe(e,t){t=t||{};const n={};function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function a(e,t,n,a){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function o(e,t){if(!K.isUndefined(t))return r(void 0,t)}function l(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,a,o){return o in t?r(n,a):o in e?r(void 0,n):void 0}const s={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i,headers:(e,t,n)=>a(De(e),De(t),0,!0)};return K.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=K.hasOwnProp(s,r)?s[r]:a,l=o(e[r],t[r],r);K.isUndefined(l)&&o!==i||(n[r]=l)}),n}const Ue=e=>{const t=Fe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:i}=t;if(t.headers=l=_e.from(l),t.url=ie(Me(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&l.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),K.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(K.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&l.set(e,n)})}if(ge.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(t)),r||!1!==r&&Ae(t.url))){const e=a&&o&&je.read(o);e&&l.set(a,e)}return t},Ie="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ue(e);let a=r.data;const o=_e.from(r.headers).normalize();let l,i,s,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=_e.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Pe(function(e){t(e),m()},function(e){n(e),m()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new G(r,G.ERR_NETWORK,e,h);a.event=t||null,n(a),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new G(t,a.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&K.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([s,c]=Oe(p,!0),h.addEventListener("progress",s)),f&&h.upload&&([i,u]=Oe(f),h.upload.addEventListener("progress",i),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(l=t=>{h&&(n(!t||t.type?new Re(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ge.protocols.indexOf(y)?n(new G("Unsupported protocol "+y+":",G.ERR_BAD_REQUEST,e)):h.send(a||null)})},$e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,l();const t=e instanceof Error?e:this.reason;r.abort(t instanceof G?t:new Re(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,a(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:i}=r;return i.unsubscribe=()=>K.asap(l),i}},Be=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},He=(e,t,n,r)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Be(n,t)}(e,t);let o,l=0,i=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return i(),void e.close();let o=r.byteLength;if(n){let e=l+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw i(e),e}},cancel:e=>(i(e),a.return())},{highWaterMark:2})},{isFunction:We}=K,qe=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:Ve,TextEncoder:Qe}=K.global,Ke=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ye=e=>{e=K.merge.call({skipUndefined:!0},qe,e);const{fetch:t,Request:n,Response:r}=e,a=t?We(t):"function"==typeof fetch,o=We(n),l=We(r);if(!a)return!1;const i=a&&We(Ve),s=a&&("function"==typeof Qe?(u=new Qe,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=o&&i&&Ke(()=>{let e=!1;const t=new n(ge.origin,{body:new Ve,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=l&&i&&Ke(()=>K.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:a,method:l,data:i,signal:u,cancelToken:p,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ue(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let S=$e([u,p&&p.toAbortSignal()],m),x=null;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let C;try{if(g&&c&&"get"!==l&&"head"!==l&&0!==(C=await(async(e,t)=>{const r=K.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new n(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await s(e)).byteLength:void 0)})(t):r})(b,i))){let e,t=new n(a,{method:"POST",body:i,duplex:"half"});if(K.isFormData(i)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=ze(C,Oe(Le(g)));i=He(t.body,65536,e,n)}}K.isString(v)||(v=v?"include":"omit");const t=o&&"credentials"in n.prototype,u={...w,signal:S,method:l.toUpperCase(),headers:b.normalize().toJSON(),body:i,duplex:"half",credentials:t?v:void 0};x=o&&new n(a,u);let p=await(o?k(x,w):k(a,u));const m=d&&("stream"===y||"response"===y);if(d&&(h||m&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=K.toFiniteNumber(p.headers.get("content-length")),[n,a]=h&&ze(t,Oe(Le(h),!0))||[];p=new r(He(p.body,65536,n,()=>{a&&a(),E&&E()}),e)}y=y||"text";let _=await f[K.findKey(f,y)||"text"](p,e);return!m&&E&&E(),await new Promise((t,n)=>{Pe(t,n,{data:_,headers:_e.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw G.from(t,t&&t.code,e,x,t&&t.response)}}},Ge=new Map,Xe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let l,i,s=o.length,u=Ge;for(;s--;)l=o[s],i=u.get(l),void 0===i&&u.set(l,i=s?new Map:Ye(t)),u=i;return i},Je=(Xe(),{http:null,xhr:Ie,fetch:{get:Xe}});K.forEach(Je,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ze=e=>`- ${e}`,et=e=>K.isFunction(e)||null===e||!1===e,tt=function(e,t){e=K.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let l=0;l<n;l++){let n;if(r=e[l],a=r,!et(r)&&(a=Je[(n=String(r)).toLowerCase()],void 0===a))throw new G(`Unknown adapter '${n}'`);if(a&&(K.isFunction(a)||(a=a.get(t))))break;o[n||"#"+l]=a}if(!a){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function rt(e){return nt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ve.adapter,e)(e).then(function(t){return nt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t},function(t){return Ne(t)||(nt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)})}const at="1.13.5",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const lt={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+at+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new G(r(a," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!lt[a]&&(lt[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const it={assertOptions:function(e,t,n){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const t=e[o],n=void 0===t||l(t,o,e);if(!0!==n)throw new G("option "+o+" must be "+n,G.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new G("Unknown option "+o,G.ERR_BAD_OPTION)}},validators:ot},st=it.validators;class ut{constructor(e){this.defaults=e||{},this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&it.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean),legacyInterceptorReqResOrdering:st.transitional(st.boolean)},!1),null!=r&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:it.assertOptions(r,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&K.merge(a.common,a[t.method]);a&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=_e.concat(o,a);const l=[];let i=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;i=i&&e.synchronous;const n=t.transitional||ue;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});const s=[];let u;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let c,d=0;if(!i){const e=[rt.bind(this),void 0];for(e.unshift(...l),e.push(...s),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=l.length;let f=t;for(;d<c;){const e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=rt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=s.length;d<c;)u=u.then(s[d++],s[d++]);return u}getUri(e){return ie(Me((e=Fe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(e){ut.prototype[e]=function(t,n){return this.request(Fe(n||{},{method:e,url:t,data:(n||{}).data}))}}),K.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,a){return this.request(Fe(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)});const ct=ut;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new Re(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}const ft=dt,pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});const mt=pt,ht=function e(t){const n=new ct(t),r=a(ct.prototype.request,n);return K.extend(r,ct.prototype,n,{allOwnKeys:!0}),K.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Fe(t,n))},r}(ve);ht.Axios=ct,ht.CanceledError=Re,ht.CancelToken=ft,ht.isCancel=Ne,ht.VERSION=at,ht.toFormData=te,ht.AxiosError=G,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Fe,ht.AxiosHeaders=_e,ht.formToJSON=e=>ye(K.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=mt,ht.default=ht;const gt=ht,yt=async e=>await gt({method:"POST",url:"admin-ajax.php",data:e,headers:{"content-type":"multipart/form-data"}})},3929(e,t,n){n.d(t,{cn:()=>ye});var r=n(4164);const a=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),o="-",l=[],i=e=>{const t=c(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return u(e);const n=e.split(o),r=""===n[0]&&n.length>1?1:0;return s(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],a=n[e];return t?a?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(a,t):t:a||l}return n[e]||l}}},s=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],a=n.nextPart.get(r);if(a){const n=s(e,t+1,a);if(n)return n}const l=n.validators;if(null===l)return;const i=0===t?e.join(o):e.slice(t).join(o),u=l.length;for(let e=0;e<u;e++){const t=l[e];if(t.validator(i))return t.classGroupId}},u=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),c=e=>{const{theme:t,classGroups:n}=e;return d(n,t)},d=(e,t)=>{const n=a();for(const r in e){const a=e[r];f(a,n,r,t)}return n},f=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const a=e[o];p(a,t,n,r)}},p=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?g(e,t,n,r):h(e,t,n,r):m(e,t,n)},m=(e,t,n)=>{(""===e?t:y(t,e)).classGroupId=n},h=(e,t,n,r)=>{b(e)?f(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},g=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){const[o,l]=a[e];f(l,y(t,o),n,r)}},y=(e,t)=>{let n=e;const r=t.split(o),l=r.length;for(let e=0;e<l;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=a(),n.nextPart.set(t,o)),n=o}return n},b=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,v=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(a(e,t),t):void 0},set(e,t){e in n?n[e]=t:a(e,t)}}},w=[],k=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),S=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,a=0,o=0;const l=e.length;for(let i=0;i<l;i++){const l=e[i];if(0===r&&0===a){if(":"===l){t.push(e.slice(o,i)),o=i+1;continue}if("/"===l){n=i;continue}}"["===l?r++:"]"===l?r--:"("===l?a++:")"===l&&a--}const i=0===t.length?e:e.slice(o);let s=i,u=!1;return i.endsWith("!")?(s=i.slice(0,-1),u=!0):i.startsWith("!")&&(s=i.slice(1),u=!0),k(t,u,s,n&&n>o?n-o:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):k(w,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},x=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let a=0;a<e.length;a++){const o=e[a],l="["===o[0],i=t.has(o);l||i?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(o)):r.push(o)}return r.length>0&&(r.sort(),n.push(...r)),n}},E=/\s+/,C=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C(e[r]))&&(n&&(n+=" "),n+=t);return n},_=[],T=e=>{const t=t=>t[e]||_;return t.isThemeGetter=!0,t},N=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,O=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>P.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),U=e=>e.endsWith("%")&&D(e.slice(0,-1)),I=e=>O.test(e),$=()=>!0,B=e=>z.test(e)&&!L.test(e),H=()=>!1,W=e=>A.test(e),q=e=>j.test(e),V=e=>!K(e)&&!ee(e),Q=e=>ie(e,de,H),K=e=>N.test(e),Y=e=>ie(e,fe,B),G=e=>ie(e,pe,D),X=e=>ie(e,ue,H),J=e=>ie(e,ce,q),Z=e=>ie(e,he,W),ee=e=>R.test(e),te=e=>se(e,fe),ne=e=>se(e,me),re=e=>se(e,ue),ae=e=>se(e,de),oe=e=>se(e,ce),le=e=>se(e,he,!0),ie=(e,t,n)=>{const r=N.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},se=(e,t,n=!1)=>{const r=R.exec(e);return!!r&&(r[1]?t(r[1]):n)},ue=e=>"position"===e||"percentage"===e,ce=e=>"image"===e||"url"===e,de=e=>"length"===e||"size"===e||"bg-size"===e,fe=e=>"length"===e,pe=e=>"number"===e,me=e=>"family-name"===e,he=e=>"shadow"===e,ge=((e,...t)=>{let n,r,a,o;const l=e=>{const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],i=e.trim().split(E);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){s=t+(s.length>0?" "+s:s);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){s=t+(s.length>0?" "+s:s);continue}if(h=r(f),!h){s=t+(s.length>0?" "+s:s);continue}m=!1}const g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),y=d?g+"!":g,b=y+h;if(l.indexOf(b)>-1)continue;l.push(b);const v=a(h,m);for(let e=0;e<v.length;++e){const t=v[e];l.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return a(e,o),o};return o=s=>{const u=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:v(e.cacheSize),parseClassName:S(e),sortModifiers:x(e),...i(e)}))(u),r=n.cache.get,a=n.cache.set,o=l,l(s)},(...e)=>o(((...e)=>{let t,n,r=0,a="";for(;r<e.length;)(t=e[r++])&&(n=C(t))&&(a&&(a+=" "),a+=n);return a})(...e))})((Symbol.toStringTag,()=>{const e=T("color"),t=T("font"),n=T("text"),r=T("font-weight"),a=T("tracking"),o=T("leading"),l=T("breakpoint"),i=T("container"),s=T("spacing"),u=T("radius"),c=T("shadow"),d=T("inset-shadow"),f=T("text-shadow"),p=T("drop-shadow"),m=T("blur"),h=T("perspective"),g=T("aspect"),y=T("ease"),b=T("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,K],w=()=>[ee,K,s],k=()=>[M,"full","auto",...w()],S=()=>[F,"none","subgrid",ee,K],x=()=>["auto",{span:["full",F,ee,K]},F,ee,K],E=()=>[F,"auto",ee,K],C=()=>["auto","min","max","fr",ee,K],_=()=>["auto",...w()],N=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],R=()=>[e,ee,K],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,X,{position:[ee,K]}],O=()=>["auto","cover","contain",ae,Q,{size:[ee,K]}],z=()=>[U,te,Y],L=()=>["","none","full",u,ee,K],A=()=>["",D,te,Y],j=()=>[D,U,re,X],B=()=>["","none",m,ee,K],H=()=>["none",D,ee,K],W=()=>["none",D,ee,K],q=()=>[D,ee,K],ie=()=>[M,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[I],breakpoint:[I],color:[$],container:[I],"drop-shadow":[I],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[I],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[I],shadow:[I],spacing:["px",D],text:[I],"text-shadow":[I],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,K,ee,g]}],container:["container"],columns:[{columns:[D,K,ee,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",ee,K]}],basis:[{basis:[M,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,M,"auto","initial","none",K]}],grow:[{grow:["",D,ee,K]}],shrink:[{shrink:["",D,ee,K]}],order:[{order:[F,"first","last","none",ee,K]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[i,"screen",...N()]}],"min-w":[{"min-w":[i,"screen","none",...N()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",n,te,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ee,G]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U,K]}],"font-family":[{font:[ne,K,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ee,K]}],"line-clamp":[{"line-clamp":[D,"none",ee,G]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",ee,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",ee,Y]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[D,"auto",ee,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,ee,K],radial:["",ee,K],conic:[F,ee,K]},oe,J]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[D,ee,K]}],"outline-w":[{outline:["",D,te,Y]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",c,le,Z]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,le,Z]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[D,Y]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",f,le,Z]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[D,ee,K]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ee,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,K]}],filter:[{filter:["","none",ee,K]}],blur:[{blur:B()}],brightness:[{brightness:[D,ee,K]}],contrast:[{contrast:[D,ee,K]}],"drop-shadow":[{"drop-shadow":["","none",p,le,Z]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",D,ee,K]}],"hue-rotate":[{"hue-rotate":[D,ee,K]}],invert:[{invert:["",D,ee,K]}],saturate:[{saturate:[D,ee,K]}],sepia:[{sepia:["",D,ee,K]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,K]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[D,ee,K]}],"backdrop-contrast":[{"backdrop-contrast":[D,ee,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,ee,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,ee,K]}],"backdrop-invert":[{"backdrop-invert":["",D,ee,K]}],"backdrop-opacity":[{"backdrop-opacity":[D,ee,K]}],"backdrop-saturate":[{"backdrop-saturate":[D,ee,K]}],"backdrop-sepia":[{"backdrop-sepia":["",D,ee,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",ee,K]}],ease:[{ease:["linear","initial",y,ee,K]}],delay:[{delay:[D,ee,K]}],animate:[{animate:["none",b,ee,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ee,K]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[ee,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,K]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[D,te,Y,G]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));function ye(...e){return ge((0,r.$)(e))}},9942(e,t,n){n.d(t,{Sz:()=>c,ov:()=>s,Ul:()=>u,sI:()=>d});var r=n(6540);const a=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(r,a,o);return o},o=e=>e,l=e=>{const t=(e=>e?a(e):a)(e),n=e=>function(e,t=o){const n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n}(t,e);return Object.assign(n,t),n},i=e=>e?l(e):l,s=i(e=>({labels:{},setLabels:t=>e({labels:t})})),u=i(e=>({localState:{},setLocalState:t=>e({localState:t})})),c={rtfl_api_key:"",rtfl_enable_direct_sync:"0",rtfl_enable_product_view:"0",rtfl_enable_background_order_sync:"no",rtfl_track_zero_value_carts:"no",rtfl_enable_dynamic_popup:"yes",rtfl_popup_js_loading_method:"cdn",rtfl_refresh_fragments_on_page_load:"0",rtfl_enable_gdpr_compliance:"0",rtfl_cart_capture_msg:"Keep me up-to-date on news and exclusive offers",rtfl_gdpr_display_position:"after_billing_email",rtfl_enable_sms_consent:"0",rtfl_sms_capture_msg:"Keep me up-to-date on news and exclusive offers",rtfl_sms_consent_display_position:"after_billing_phone",rtfl_enable_ip_filter:"0",rtfl_ignored_ip_addresses:"",rtfl_enable_debug_log:"0",rtfl_clear_cache:"1",rtfl_handle_storage_using:"woocommerce",rtfl_enable_afterpay_action:"no",rtfl_varnish_check:"no",rtfl_enable_contact_form_7:"0",rtfl_enable_elementor_form:"0",rtfl_enable_formidable_form:"0",rtfl_enable_ninja_form:"0",rtfl_enable_gravity_form:"0",rtfl_order_placed_statuses:"on-hold,pending",rtfl_order_paid_statuses:"processing",rtfl_order_fulfilled_statuses:"completed",rtfl_order_refunded_statuses:"refunded",rtfl_order_cancelled_statuses:"cancelled,expired",rtfl_enable_coupon_cleanup:"0",rtfl_coupon_cleanup_period:"60",rtfl_coupon_cleanup_unit:"day"},d=i(e=>({settingsState:c,setSettingsState:t=>e({settingsState:t})}))},4164(e,t,n){function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function a(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}n.d(t,{$:()=>a})},5570(e,t,n){var r;n.d(t,{BV:()=>ye,C5:()=>pe,I9:()=>Ue,Zp:()=>J,g:()=>ee,qh:()=>he,sv:()=>me,zy:()=>Y});var a=n(6540),o="popstate";function l(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,s=a.history,f="POP",p=null,m=h();function h(){return(s.state||{idx:null}).idx}function g(){f="POP";let e=h(),t=null==e?null:e-m;m=e,p&&p({action:f,location:b.location,delta:t})}function y(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),i(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==m&&(m=0,s.replaceState({...s.state,idx:m},""));let b={get action(){return f},get location(){return e(a,s)},listen(e){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(o,g),p=e,()=>{a.removeEventListener(o,g),p=null}},createHref:e=>t(a,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f="PUSH";let r=c(b.location,e,t);n&&n(r,e),m=h()+1;let o=u(r,m),i=b.createHref(r);try{s.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(i)}l&&p&&p({action:f,location:b.location,delta:1})},replace:function(e,t){f="REPLACE";let r=c(b.location,e,t);n&&n(r,e),m=h();let a=u(r,m),o=b.createHref(r);s.replaceState(a,"",o),l&&p&&p({action:f,location:b.location,delta:0})},go:e=>s.go(e)};return b}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=f(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))},function(e,t){s("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function i(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?f(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function d({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n="/"){return function(e,t,n,r){let a=S(("string"==typeof t?f(t):t).pathname||"/",n);if(null==a)return null;let o=m(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let l=null;for(let e=0;null==l&&e<o.length;++e){let t=k(a);l=v(o[e],t,r)}return l}(e,t,n,!1)}function m(e,t=[],n=[],r="",a=!1){let o=(e,o,l=a,s)=>{let u={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;i(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let c=N([r,u.relativePath]),d=n.concat(u);e.children&&e.children.length>0&&(i(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),m(e.children,t,d,c,l)),(null!=e.path||e.index)&&t.push({path:c,score:b(c,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of h(e.path))o(e,t,!0,n);else o(e,t)}),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let l=h(r.join("/")),i=[];return i.push(...l.map(e=>""===e?o:[o,e].join("/"))),a&&i.push(...l),i.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var g=/^:[\w-]+$/,y=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(y)&&(r+=-2),t&&(r+=2),n.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),r)}function v(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let e=0;e<r.length;++e){let i=r[e],s=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c=w({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},u),d=i.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=w({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),l.push({params:a,pathname:N([o,c.pathname]),pathnameBase:R(N([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=N([o,c.pathnameBase]))}return l}function w(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){s("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=i[r]||"";l=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=i[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:l,pattern:e}}function k(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return s(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function E(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function C(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function T(e,t,n,r=!1){let a;"string"==typeof e?a=f(e):(a={...e},i(!a.pathname||!a.pathname.includes("?"),C("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),C("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),C("#","search","hash",a)));let o,l=""===e||""===a.pathname,s=l?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?f(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?E(r.substring(1),"/"):E(r,t)):n=t,{pathname:n,search:P(a),hash:O(o)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(l||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!c&&!d||(u.pathname+="/"),u}var N=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",z=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function A(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function M(e,t){let n=e;if("string"!=typeof n||!x.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(j)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=S(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){s(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var D=["POST","PUT","PATCH","DELETE"],F=(new Set(D),["GET",...D]);new Set(F),Symbol("ResetLoaderData");var U=a.createContext(null);U.displayName="DataRouter";var I=a.createContext(null);I.displayName="DataRouterState";var $=a.createContext(!1);var B=a.createContext({isTransitioning:!1});B.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var H=a.createContext(null);H.displayName="Navigation";var W=a.createContext(null);W.displayName="Location";var q=a.createContext({outlet:null,matches:[],isDataRoute:!1});q.displayName="Route";var V=a.createContext(null);V.displayName="RouteError";var Q="REACT_ROUTER_ERROR";function K(){return null!=a.useContext(W)}function Y(){return i(K(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(W).location}var G="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function X(e){a.useContext(H).static||a.useLayoutEffect(e)}function J(){let{isDataRoute:e}=a.useContext(q);return e?function(){let{router:e}=function(e){let t=a.useContext(U);return i(t,ue(e)),t}("useNavigate"),t=ce("useNavigate"),n=a.useRef(!1);return X(()=>{n.current=!0}),a.useCallback(async(r,a={})=>{s(n.current,G),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}():function(){i(K(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(U),{basename:t,navigator:n}=a.useContext(H),{matches:r}=a.useContext(q),{pathname:o}=Y(),l=JSON.stringify(_(r)),u=a.useRef(!1);return X(()=>{u.current=!0}),a.useCallback((r,a={})=>{if(s(u.current,G),!u.current)return;if("number"==typeof r)return void n.go(r);let i=T(r,JSON.parse(l),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:N([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,l,o,e])}()}var Z=a.createContext(null);function ee(){let{matches:e}=a.useContext(q),t=e[e.length-1];return t?t.params:{}}function te(e,{relative:t}={}){let{matches:n}=a.useContext(q),{pathname:r}=Y(),o=JSON.stringify(_(n));return a.useMemo(()=>T(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function ne(e,t,n,r,o){i(K(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=a.useContext(H),{matches:u}=a.useContext(q),c=u[u.length-1],d=c?c.params:{},m=c?c.pathname:"/",h=c?c.pathnameBase:"/",g=c&&c.route;{let e=g&&g.path||"";fe(m,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let y,b=Y();if(t){let e="string"==typeof t?f(t):t;i("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),y=e}else y=b;let v=y.pathname||"/",w=v;if("/"!==h){let e=h.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let k=p(e,{pathname:w});s(g||null!=k,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),s(null==k||void 0!==k[k.length-1].route.element||void 0!==k[k.length-1].route.Component||void 0!==k[k.length-1].route.lazy,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,l=n?.errors;if(null!=l){let e=o.findIndex(e=>e.route.id&&void 0!==l?.[e.route.id]);i(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,u=-1;if(n)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){s=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}let c=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:A(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,i)=>{let d,f=!1,p=null,m=null;n&&(d=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||ae,s&&(u<0&&0===i?(fe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):u===i&&(f=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,i+1)),g=()=>{let t;return t=d?p:f?m:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(se,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?a.createElement(oe,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):g()},null)}(k&&k.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:N([h,l.encodeLocation?l.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:N([h,l.encodeLocation?l.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),u,n,r,o);return t&&S?a.createElement(W.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function re(){let e=function(){let e=a.useContext(V),t=function(e){let t=a.useContext(I);return i(t,ue(e)),t}("useRouteError"),n=ce("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=L(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:l},"ErrorBoundary")," or"," ",a.createElement("code",{style:l},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}var ae=a.createElement(re,null),oe=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Q}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new z(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(q.Provider,{value:this.props.routeContext},a.createElement(V.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(ie,{error:e},t):t}};oe.contextType=$;var le=new WeakMap;function ie({children:e,error:t}){let{basename:n}=a.useContext(H);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Q}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=le.get(t);if(r)throw r;let o=M(e.location,n);if(j&&!le.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw le.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function se({routeContext:e,match:t,children:n}){let r=a.useContext(U);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(q.Provider,{value:e},n)}function ue(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ce(e){let t=function(e){let t=a.useContext(q);return i(t,ue(e)),t}(e),n=t.matches[t.matches.length-1];return i(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var de={};function fe(e,t,n){t||de[e]||(de[e]=!0,s(!1,n))}function pe({to:e,replace:t,state:n,relative:r}){i(K(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(H);s(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=a.useContext(q),{pathname:u}=Y(),c=J(),d=T(e,_(l),u,"path"===r),f=JSON.stringify(d);return a.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function me(e){return function(e){let t=a.useContext(q).outlet;return a.useMemo(()=>t&&a.createElement(Z.Provider,{value:e},t),[t,e])}(e.context)}function he(e){i(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ge({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:u}){i(!K(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=a.useMemo(()=>({basename:c,navigator:o,static:l,unstable_useTransitions:u,future:{}}),[c,o,l,u]);"string"==typeof n&&(n=f(n));let{pathname:p="/",search:m="",hash:h="",state:g=null,key:y="default"}=n,b=a.useMemo(()=>{let e=S(p,c);return null==e?null:{location:{pathname:e,search:m,hash:h,state:g,key:y},navigationType:r}},[c,p,m,h,g,y,r]);return s(null!=b,`<Router basename="${c}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(H.Provider,{value:d},a.createElement(W.Provider,{children:t,value:b}))}function ye({children:e,location:t}){return ne(be(e),t)}function be(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,be(e.props.children,o));i(e.type===he,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),i(!e.props.index||!e.props.children,"An index route cannot have child routes.");let l={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=be(e.props.children,o)),n.push(l)}),n}(r||(r=n.t(a,2))).useOptimistic,a.memo(function({routes:e,future:t,state:n,onError:r}){return ne(e,void 0,n,r,t)}),a.Component;var ve="get",we="application/x-www-form-urlencoded";function ke(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Se=null,xe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ee(e){return null==e||xe.has(e)?e:(s(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${we}"`),null)}function Ce(e,t){if(!1===e||null==e)throw new Error(t)}function _e(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Te(e,t,n,r,a,o){let l=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>l(e,t)||i(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(l(t,o)||i(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Ne(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function Re(){let e=a.useContext(U);return Ce(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Pe(){let e=a.useContext(I);return Ce(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Oe=a.createContext(void 0);function ze(){let e=a.useContext(Oe);return Ce(e,"You must render this element inside a <HydratedRouter> element"),e}function Le(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ae({page:e,...t}){let{router:n}=Re(),r=a.useMemo(()=>p(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?a.createElement(Me,{page:e,matches:r,...t}):null}function je(e){let{manifest:t,routeModules:n}=ze(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&(null==(o=a)||"string"!=typeof o.page)&&"script"===a.as&&a.href&&r.has(a.href))return e;var o;let l=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(l)||(n.add(l),e.push({key:l,link:a})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_e).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function Me({page:e,matches:t,...n}){let r=Y(),{future:o,manifest:l,routeModules:i}=ze(),{basename:s}=Re(),{loaderData:u,matches:c}=Pe(),d=a.useMemo(()=>Te(e,t,c,l,r,"data"),[e,t,c,l,r]),f=a.useMemo(()=>Te(e,t,c,l,r,"assets"),[e,t,c,l,r]),p=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=l.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in u&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=function(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===S(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,o.unstable_trailingSlashAwareDataRequests,u,r,l,d,t,e,i]),m=a.useMemo(()=>Ne(f,l),[f,l]),h=je(f);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}Oe.displayName="FrameworkContext";function De(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;var Fe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Fe&&(window.__reactRouterVersion="7.13.0")}catch(e){}function Ue({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=l({window:r,v5Compat:!0}));let i=o.current,[s,u]=a.useState({action:i.action,location:i.location}),c=a.useCallback(e=>{!1===n?u(e):a.startTransition(()=>u(e))},[n]);return a.useLayoutEffect(()=>i.listen(c),[i,c]),a.createElement(ge,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:l,state:s,target:u,to:c,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m,...h},g){let{basename:y,unstable_useTransitions:b}=a.useContext(H),v="string"==typeof c&&Ie.test(c),w=M(c,y),k=function(e,{relative:t}={}){i(K(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(H),{hash:o,pathname:l,search:s}=te(e,{relative:t}),u=l;return"/"!==n&&(u="/"===l?n:N([n,l])),r.createHref({pathname:u,search:s,hash:o})}(c=w.to,{relative:r}),[S,x,E]=function(e,t){let n=a.useContext(Oe),[r,o]=a.useState(!1),[l,i]=a.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},h=()=>{o(!1),i(!1)};return n?"intent"!==e?[l,p,{}]:[l,p,{onFocus:Le(s,m),onBlur:Le(u,h),onMouseEnter:Le(c,m),onMouseLeave:Le(d,h),onTouchStart:Le(f,m)}]:[!1,p,{}]}(n,h),C=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=J(),f=Y(),p=te(e,{relative:l});return a.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:d(f)===d(p),h=()=>c(e,{replace:t,state:r,preventScrollReset:o,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:s});u?a.startTransition(()=>h()):h()}},[f,c,p,n,r,t,e,o,l,i,s,u])}(c,{replace:l,state:s,target:u,preventScrollReset:f,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:b}),_=a.createElement("a",{...h,...E,href:w.absoluteURL||k,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||C(t)},ref:De(g,x),target:u,"data-discover":v||"render"!==t?void 0:"true"});return S&&!v?a.createElement(a.Fragment,null,_,a.createElement(Ae,{page:k})):_});function Be(e){let t=a.useContext(U);return i(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}$e.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:l,viewTransition:s,children:u,...c},d){let f=te(l,{relative:c.relative}),p=Y(),m=a.useContext(I),{navigator:h,basename:g}=a.useContext(H),y=null!=m&&function(e,{relative:t}={}){let n=a.useContext(B);i(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Be("useViewTransitionState"),o=te(e,{relative:t});if(!n.isTransitioning)return!1;let l=S(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=S(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=w(o.pathname,s)||null!=w(o.pathname,l)}(f)&&!0===s,b=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,v=p.pathname,k=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(v=v.toLowerCase(),k=k?k.toLowerCase():null,b=b.toLowerCase()),k&&g&&(k=S(k,g)||k);const x="/"!==b&&b.endsWith("/")?b.length-1:b.length;let E,C=v===b||!r&&v.startsWith(b)&&"/"===v.charAt(x),_=null!=k&&(k===b||!r&&k.startsWith(b)&&"/"===k.charAt(b.length)),T={isActive:C,isPending:_,isTransitioning:y},N=C?e:void 0;E="function"==typeof n?n(T):[n,C?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof o?o(T):o;return a.createElement($e,{...c,"aria-current":N,className:E,ref:d,style:R,to:l,viewTransition:s},"function"==typeof u?u(T):u)}).displayName="NavLink",a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:l,method:s=ve,action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h,...g},y)=>{let{unstable_useTransitions:b}=a.useContext(H),v=function(){let{router:e}=Be("useSubmit"),{basename:t}=a.useContext(H),n=ce("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:l,method:i,encType:s,formData:u,body:c}=function(e,t){let n,r,a,o,l;if(ke(i=e)&&"form"===i.tagName.toLowerCase()){let l=e.getAttribute("action");r=l?S(l,t):null,n=e.getAttribute("method")||ve,a=Ee(e.getAttribute("enctype"))||we,o=new FormData(e)}else if(function(e){return ke(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ke(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let l=e.form;if(null==l)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||l.getAttribute("action");if(r=i?S(i,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ve,a=Ee(e.getAttribute("formenctype"))||Ee(l.getAttribute("enctype"))||we,o=new FormData(l,e),!function(){if(null===Se)try{new FormData(document.createElement("form"),0),Se=!1}catch(e){Se=!0}return Se}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(ke(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ve,r=null,a=we,l=e}var i;return o&&"text/plain"===a&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++He)}__`;await r(e,n,a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||i,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(H),r=a.useContext(q);i(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),l={...te(e||".",{relative:t})},s=Y();if(null==e){l.search=s.search;let e=new URLSearchParams(l.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();l.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(l.pathname="/"===l.pathname?n:N([n,l.pathname])),d(l)}(u,{relative:f}),k="get"===s.toLowerCase()?"get":"post",x="string"==typeof u&&Ie.test(u);return a.createElement("form",{ref:y,method:k,action:w,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||s,u=()=>v(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:o,state:l,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h});b&&!1!==n?a.startTransition(()=>u()):u()},...g,"data-discover":x||"render"!==e?void 0:"true"})}).displayName="Form";var He=0},4721(e,t,n){n.d(t,{l$:()=>x,oR:()=>h});var r=n(6540),a=n(961);const o=Array(12).fill(0),l=({visible:e,className:t})=>r.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},r.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),i=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let f=1;const p=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:f++,o=this.toasts.find(e=>e.id===a),l=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:n}),{...t,...e,id:a,dismissible:l,title:n}):t):this.addToast({title:n,...r,dismissible:l,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const a=Promise.resolve(e instanceof Function?e():e);let o,l=void 0!==n;const i=a.then(async e=>{if(o=["resolve",e],r.isValidElement(e))l=!1,this.create({id:n,type:"default",message:e});else if(m(e)&&!e.ok){l=!1;const a="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){l=!1;const a="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){l=!1;const a="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){l=!1;const a="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{l&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||f++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},m=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,h=Object.assign((e,t)=>{const n=(null==t?void 0:t.id)||f++;return p.addToast({title:e,...t,id:n}),n},{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts,getToasts:()=>p.getActiveToasts()});function g(e){return void 0!==e.label}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const y=3,b=14;function v(...e){return e.filter(Boolean).join(" ")}const w=e=>{var t,n,a,o,f,p,m,h,y;const{invert:b,toast:w,unstyled:k,interacting:S,setHeights:x,visibleToasts:E,heights:C,index:_,toasts:T,expanded:N,removeToast:R,defaultRichColors:P,closeButton:O,style:z,cancelButtonStyle:L,actionButtonStyle:A,className:j="",descriptionClassName:M="",duration:D,position:F,gap:U,expandByDefault:I,classNames:$,icons:B,closeButtonAriaLabel:H="Close toast"}=e,[W,q]=r.useState(null),[V,Q]=r.useState(null),[K,Y]=r.useState(!1),[G,X]=r.useState(!1),[J,Z]=r.useState(!1),[ee,te]=r.useState(!1),[ne,re]=r.useState(!1),[ae,oe]=r.useState(0),[le,ie]=r.useState(0),se=r.useRef(w.duration||D||4e3),ue=r.useRef(null),ce=r.useRef(null),de=0===_,fe=_+1<=E,pe=w.type,me=!1!==w.dismissible,he=w.className||"",ge=w.descriptionClassName||"",ye=r.useMemo(()=>C.findIndex(e=>e.toastId===w.id)||0,[C,w.id]),be=r.useMemo(()=>{var e;return null!=(e=w.closeButton)?e:O},[w.closeButton,O]),ve=r.useMemo(()=>w.duration||D||4e3,[w.duration,D]),we=r.useRef(0),ke=r.useRef(0),Se=r.useRef(0),xe=r.useRef(null),[Ee,Ce]=F.split("-"),_e=r.useMemo(()=>C.reduce((e,t,n)=>n>=ye?e:e+t.height,0),[C,ye]),Te=(()=>{const[e,t]=r.useState(document.hidden);return r.useEffect(()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),Ne=w.invert||b,Re="loading"===pe;ke.current=r.useMemo(()=>ye*U+_e,[ye,_e]),r.useEffect(()=>{se.current=ve},[ve]),r.useEffect(()=>{Y(!0)},[]),r.useEffect(()=>{const e=ce.current;if(e){const t=e.getBoundingClientRect().height;return ie(t),x(e=>[{toastId:w.id,height:t,position:w.position},...e]),()=>x(e=>e.filter(e=>e.toastId!==w.id))}},[x,w.id]),r.useLayoutEffect(()=>{if(!K)return;const e=ce.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,ie(n),x(e=>e.find(e=>e.toastId===w.id)?e.map(e=>e.toastId===w.id?{...e,height:n}:e):[{toastId:w.id,height:n,position:w.position},...e])},[K,w.title,w.description,x,w.id,w.jsx,w.action,w.cancel]);const Pe=r.useCallback(()=>{X(!0),oe(ke.current),x(e=>e.filter(e=>e.toastId!==w.id)),setTimeout(()=>{R(w)},200)},[w,R,x,ke]);r.useEffect(()=>{if(w.promise&&"loading"===pe||w.duration===1/0||"loading"===w.type)return;let e;return N||S||Te?(()=>{if(Se.current<we.current){const e=(new Date).getTime()-we.current;se.current=se.current-e}Se.current=(new Date).getTime()})():se.current!==1/0&&(we.current=(new Date).getTime(),e=setTimeout(()=>{null==w.onAutoClose||w.onAutoClose.call(w,w),Pe()},se.current)),()=>clearTimeout(e)},[N,S,w,pe,Te,Pe]),r.useEffect(()=>{w.delete&&(Pe(),null==w.onDismiss||w.onDismiss.call(w,w))},[Pe,w.delete]);const Oe=w.icon||(null==B?void 0:B[pe])||(e=>{switch(e){case"success":return i;case"info":return u;case"warning":return s;case"error":return c;default:return null}})(pe);var ze,Le;return r.createElement("li",{tabIndex:0,ref:ce,className:v(j,he,null==$?void 0:$.toast,null==w||null==(t=w.classNames)?void 0:t.toast,null==$?void 0:$.default,null==$?void 0:$[pe],null==w||null==(n=w.classNames)?void 0:n[pe]),"data-sonner-toast":"","data-rich-colors":null!=(ze=w.richColors)?ze:P,"data-styled":!Boolean(w.jsx||w.unstyled||k),"data-mounted":K,"data-promise":Boolean(w.promise),"data-swiped":ne,"data-removed":G,"data-visible":fe,"data-y-position":Ee,"data-x-position":Ce,"data-index":_,"data-front":de,"data-swiping":J,"data-dismissible":me,"data-type":pe,"data-invert":Ne,"data-swipe-out":ee,"data-swipe-direction":V,"data-expanded":Boolean(N||I&&K),"data-testid":w.testId,style:{"--index":_,"--toasts-before":_,"--z-index":T.length-_,"--offset":`${G?ae:ke.current}px`,"--initial-height":I?"auto":`${le}px`,...z,...w.style},onDragEnd:()=>{Z(!1),q(null),xe.current=null},onPointerDown:e=>{2!==e.button&&!Re&&me&&(ue.current=new Date,oe(ke.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),xe.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ee||!me)return;xe.current=null;const r=Number((null==(e=ce.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=ce.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=ue.current)?void 0:n.getTime()),l="x"===W?r:a,i=Math.abs(l)/o;if(Math.abs(l)>=45||i>.11)return oe(ke.current),null==w.onDismiss||w.onDismiss.call(w,w),Q("x"===W?r>0?"right":"left":a>0?"down":"up"),Pe(),void te(!0);var s,u;null==(s=ce.current)||s.style.setProperty("--swipe-amount-x","0px"),null==(u=ce.current)||u.style.setProperty("--swipe-amount-y","0px"),re(!1),Z(!1),q(null)},onPointerMove:t=>{var n,r,a;if(!xe.current||!me)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const o=t.clientY-xe.current.y,l=t.clientX-xe.current.x;var i;const s=null!=(i=e.swipeDirections)?i:function(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(F);!W&&(Math.abs(l)>1||Math.abs(o)>1)&&q(Math.abs(l)>Math.abs(o)?"x":"y");let u={x:0,y:0};const c=e=>1/(1.5+Math.abs(e)/20);if("y"===W){if(s.includes("top")||s.includes("bottom"))if(s.includes("top")&&o<0||s.includes("bottom")&&o>0)u.y=o;else{const e=o*c(o);u.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===W&&(s.includes("left")||s.includes("right")))if(s.includes("left")&&l<0||s.includes("right")&&l>0)u.x=l;else{const e=l*c(l);u.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&re(!0),null==(r=ce.current)||r.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(a=ce.current)||a.style.setProperty("--swipe-amount-y",`${u.y}px`)}},be&&!w.jsx&&"loading"!==pe?r.createElement("button",{"aria-label":H,"data-disabled":Re,"data-close-button":!0,onClick:Re||!me?()=>{}:()=>{Pe(),null==w.onDismiss||w.onDismiss.call(w,w)},className:v(null==$?void 0:$.closeButton,null==w||null==(a=w.classNames)?void 0:a.closeButton)},null!=(Le=null==B?void 0:B.close)?Le:d):null,(pe||w.icon||w.promise)&&null!==w.icon&&(null!==(null==B?void 0:B[pe])||w.icon)?r.createElement("div",{"data-icon":"",className:v(null==$?void 0:$.icon,null==w||null==(o=w.classNames)?void 0:o.icon)},w.promise||"loading"===w.type&&!w.icon?w.icon||function(){var e,t;return(null==B?void 0:B.loading)?r.createElement("div",{className:v(null==$?void 0:$.loader,null==w||null==(t=w.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===pe},B.loading):r.createElement(l,{className:v(null==$?void 0:$.loader,null==w||null==(e=w.classNames)?void 0:e.loader),visible:"loading"===pe})}():null,"loading"!==w.type?Oe:null):null,r.createElement("div",{"data-content":"",className:v(null==$?void 0:$.content,null==w||null==(f=w.classNames)?void 0:f.content)},r.createElement("div",{"data-title":"",className:v(null==$?void 0:$.title,null==w||null==(p=w.classNames)?void 0:p.title)},w.jsx?w.jsx:"function"==typeof w.title?w.title():w.title),w.description?r.createElement("div",{"data-description":"",className:v(M,ge,null==$?void 0:$.description,null==w||null==(m=w.classNames)?void 0:m.description)},"function"==typeof w.description?w.description():w.description):null),r.isValidElement(w.cancel)?w.cancel:w.cancel&&g(w.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||L,onClick:e=>{g(w.cancel)&&me&&(null==w.cancel.onClick||w.cancel.onClick.call(w.cancel,e),Pe())},className:v(null==$?void 0:$.cancelButton,null==w||null==(h=w.classNames)?void 0:h.cancelButton)},w.cancel.label):null,r.isValidElement(w.action)?w.action:w.action&&g(w.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||A,onClick:e=>{g(w.action)&&(null==w.action.onClick||w.action.onClick.call(w.action,e),e.defaultPrevented||Pe())},className:v(null==$?void 0:$.actionButton,null==w||null==(y=w.classNames)?void 0:y.actionButton)},w.action.label):null)};function k(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function S(e,t){const n={};return[e,t].forEach((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",o=r?"16px":"24px";function l(e){["top","right","bottom","left"].forEach(t=>{n[`${a}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?l(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${a}-${t}`]=o:n[`${a}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):l(o)}),n}const x=r.forwardRef(function(e,t){const{id:n,invert:o,position:l="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:u,className:c,offset:d,mobileOffset:f,theme:m="light",richColors:h,duration:g,style:v,visibleToasts:x=y,toastOptions:E,dir:C=k(),gap:_=b,icons:T,containerAriaLabel:N="Notifications"}=e,[R,P]=r.useState([]),O=r.useMemo(()=>n?R.filter(e=>e.toasterId===n):R.filter(e=>!e.toasterId),[R,n]),z=r.useMemo(()=>Array.from(new Set([l].concat(O.filter(e=>e.position).map(e=>e.position)))),[O,l]),[L,A]=r.useState([]),[j,M]=r.useState(!1),[D,F]=r.useState(!1),[U,I]=r.useState("system"!==m?m:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=r.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=r.useRef(null),W=r.useRef(!1),q=r.useCallback(e=>{P(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||p.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return r.useEffect(()=>p.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{P(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{a.flushSync(()=>{P(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[R]),r.useEffect(()=>{if("system"!==m)return void I(m);if("system"===m&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{I(e?"dark":"light")})}catch(t){e.addListener(({matches:e})=>{try{I(e?"dark":"light")}catch(e){console.error(e)}})}},[m]),r.useEffect(()=>{R.length<=1&&M(!1)},[R]),r.useEffect(()=>{const e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&(M(!0),null==(n=$.current)||n.focus()),"Escape"!==e.code||document.activeElement!==$.current&&!(null==(t=$.current)?void 0:t.contains(document.activeElement))||M(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{if($.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,W.current=!1)}},[$.current]),r.createElement("section",{ref:t,"aria-label":`${N} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((t,n)=>{var a;const[l,i]=t.split("-");return O.length?r.createElement("ol",{key:t,dir:"auto"===C?k():C,tabIndex:-1,ref:$,className:c,"data-sonner-toaster":!0,"data-sonner-theme":U,"data-y-position":l,"data-x-position":i,style:{"--front-toast-height":`${(null==(a=L[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${_}px`,...v,...S(d,f)},onBlur:e=>{W.current&&!e.currentTarget.contains(e.relatedTarget)&&(W.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||W.current||(W.current=!0,H.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{D||M(!1)},onDragEnd:()=>M(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||F(!0)},onPointerUp:()=>F(!1)},O.filter(e=>!e.position&&0===n||e.position===t).map((n,a)=>{var l,i;return r.createElement(w,{key:n.id,icons:T,index:a,toast:n,defaultRichColors:h,duration:null!=(l=null==E?void 0:E.duration)?l:g,className:null==E?void 0:E.className,descriptionClassName:null==E?void 0:E.descriptionClassName,invert:o,visibleToasts:x,closeButton:null!=(i=null==E?void 0:E.closeButton)?i:u,interacting:D,position:t,style:null==E?void 0:E.style,unstyled:null==E?void 0:E.unstyled,classNames:null==E?void 0:E.classNames,cancelButtonStyle:null==E?void 0:E.cancelButtonStyle,actionButtonStyle:null==E?void 0:E.actionButtonStyle,closeButtonAriaLabel:null==E?void 0:E.closeButtonAriaLabel,removeToast:q,toasts:O.filter(e=>e.position==n.position),heights:L.filter(e=>e.position==n.position),setHeights:A,expandByDefault:s,gap:_,expanded:j,swipeDirections:e.swipeDirections})})):null}))})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.m=a,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);l.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,l.d(a,o),a},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,n)=>(l.f[n](e,t),t),[])),l.u=e=>({91:"rtfl-use-sidecar",96:"rtfl-class-variance-authority",133:"layout",234:"rtfl-lucide-react",304:"rtfl-tslib",357:"rtfl-radix-ui",410:"rtfl-web-vitals",472:"settings",504:"rtfl-react-remove-scroll-bar",618:"rtfl-get-nonce",621:"rtfl-react-style-singleton",624:"rtfl-react-remove-scroll",769:"rtfl-floating-ui",808:"rtfl-aria-hidden",947:"rtfl-use-callback-ref"}[e]+".chunk.js"),l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="rtfl-admin-ui:",l.l=(e,t,a,o)=>{if(n[e])n[e].push(t);else{var i,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+a){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",r+a),i.src=e),n[e]=[t];var f=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{var e={792:0};l.f.j=(t,n)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var o=l.p+l.u(t),i=new Error;l.l(o,n=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,r[1](i)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,i,s]=n,u=0;if(o.some(t=>0!==e[t])){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);s&&s(l)}for(t&&t(n);u<o.length;u++)a=o[u],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkrtfl_admin_ui=self.webpackChunkrtfl_admin_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),l.nc=void 0;var i=l(4848),s=l(6540),u=l(5338),c=l(5570),d=l(9407);const f=(0,d.A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);var p=l(8723);const m=(0,d.A)("loader-pinwheel",[["path",{d:"M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0",key:"1lzz15"}],["path",{d:"M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6",key:"1gnrpi"}],["path",{d:"M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6",key:"u9yy5q"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var h=l(3929);const g=({className:e,...t})=>(0,i.jsx)(f,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),y=({className:e,...t})=>(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),b=({className:e,...t})=>(0,i.jsx)(m,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),v=({className:e,size:t=24,...n})=>(0,i.jsxs)("div",{className:"rtfl-relative",style:{width:t,height:t},children:[(0,i.jsx)("div",{className:"rtfl-absolute rtfl-inset-0 rtfl-rotate-180",children:(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-animate-spin",e,"rtfl-text-foreground rtfl-opacity-20"),size:t,...n})}),(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-relative rtfl-animate-spin",e),size:t,...n})]}),w=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("circle",{cx:"4",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"0;ellipsis3.end+0.25s",calcMode:"spline",dur:"0.6s",id:"ellipsis1",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})}),(0,i.jsx)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"ellipsis1.begin+0.1s",calcMode:"spline",dur:"0.6s",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})}),(0,i.jsx)("circle",{cx:"20",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"ellipsis1.begin+0.2s",calcMode:"spline",dur:"0.6s",id:"ellipsis3",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})})]}),k=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,stroke:"currentColor",viewBox:"0 0 44 44",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsxs)("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2",children:[(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"0s",calcMode:"spline",dur:"1.8s",keySplines:"0.165, 0.84, 0.44, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 20"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"0s",calcMode:"spline",dur:"1.8s",keySplines:"0.3, 0.61, 0.355, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 0"})]}),(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"-0.9s",calcMode:"spline",dur:"1.8s",keySplines:"0.165, 0.84, 0.44, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 20"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"-0.9s",calcMode:"spline",dur:"1.8s",keySplines:"0.3, 0.61, 0.355, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 0"})]})]})]}),S=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("style",{children:"\n      .spinner-bar {\n        animation: spinner-bars-animation .8s linear infinite;\n        animation-delay: -.8s;\n      }\n      .spinner-bars-2 {\n        animation-delay: -.65s;\n      }\n      .spinner-bars-3 {\n        animation-delay: -0.5s;\n      }\n      @keyframes spinner-bars-animation {\n        0% {\n          y: 1px;\n          height: 22px;\n        }\n        93.75% {\n          y: 5px;\n          height: 14px;\n          opacity: 0.2;\n        }\n      }\n    "}),(0,i.jsx)("rect",{className:"spinner-bar",fill:"currentColor",height:"22",width:"6",x:"1",y:"1"}),(0,i.jsx)("rect",{className:"spinner-bar spinner-bars-2",fill:"currentColor",height:"22",width:"6",x:"9",y:"1"}),(0,i.jsx)("rect",{className:"spinner-bar spinner-bars-3",fill:"currentColor",height:"22",width:"6",x:"17",y:"1"})]}),x=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("path",{d:"M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z",fill:"none",stroke:"currentColor",strokeDasharray:"205.271142578125 51.317785644531256",strokeLinecap:"round",strokeWidth:"10",style:{transform:"scale(0.8)",transformOrigin:"50px 50px"},children:(0,i.jsx)("animate",{attributeName:"stroke-dashoffset",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;256.58892822265625"})})]}),E=({variant:e,...t})=>{switch(e){case"circle":return(0,i.jsx)(y,{...t});case"pinwheel":return(0,i.jsx)(b,{...t});case"circle-filled":return(0,i.jsx)(v,{...t});case"ellipsis":return(0,i.jsx)(w,{...t});case"ring":return(0,i.jsx)(k,{...t});case"bars":return(0,i.jsx)(S,{...t});case"infinite":return(0,i.jsx)(x,{...t});default:return(0,i.jsx)(g,{...t})}};var C=l(4721),_=l(7009),T=l(9942);const N=(0,s.lazy)(()=>Promise.all([l.e(234),l.e(357),l.e(624),l.e(769),l.e(621),l.e(504),l.e(947),l.e(91),l.e(304),l.e(96),l.e(618),l.e(808),l.e(472)]).then(l.bind(l,1249))),R=(0,s.lazy)(()=>Promise.all([l.e(234),l.e(133)]).then(l.bind(l,542)));var P;u.createRoot(document.getElementById("rtfl-main")).render((0,i.jsx)(s.StrictMode,{children:(0,i.jsx)(()=>{const[e,t]=(0,s.useState)(!0),{labels:n,setLabels:r}=(0,T.ov)(),{localState:a,setLocalState:o}=(0,T.Ul)();let l=!1;return(0,s.useEffect)(()=>{l||(l=!0,(async()=>{try{const e={action:"retainful_integration",method:"get_local_data"},n=await(0,_.Q)(e);o(n.data.data.nonce),(async e=>{t(!0);let n={action:"retainful_integration",method:"get_label_data",nonce:e},a=await(0,_.Q)(n);r(a?.data?.data),t(!1)})(n.data.data.nonce)}catch(e){console.error("Failed to fetch nonce:",e)}})())},[]),e?(0,i.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-center rtfl-min-h-screen rtfl-bg-background",children:(0,i.jsx)(E,{size:20})}):(0,i.jsx)(s.StrictMode,{children:(0,i.jsx)(c.I9,{children:(0,i.jsxs)(s.Suspense,{fallback:(0,i.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-center rtfl-min-h-screen rtfl-bg-background",children:(0,i.jsx)(E,{size:20})}),children:[n?.common?.webhook_notice&&(0,i.jsx)("div",{className:"rtfl-bg-yellow-50 rtfl-border rtfl-border-yellow-200 rtfl-p-2 rtfl-rounded",children:(0,i.jsx)("p",{className:"rtfl-text-xs rtfl-text-yellow-800",children:n.common.webhook_notice})}),(0,i.jsxs)(c.BV,{children:[(0,i.jsxs)(c.qh,{path:"/",element:(0,i.jsx)(R,{}),children:[(0,i.jsx)(c.qh,{index:!0,element:(0,i.jsx)(N,{})}),(0,i.jsx)(c.qh,{path:"integration/:integrationKey",element:(0,i.jsx)(N,{})})]}),(0,i.jsx)(c.qh,{path:"*",element:(0,i.jsx)(c.C5,{to:"/",replace:!0})})]}),(0,i.jsx)(C.l$,{position:"top-right"})]})})})},{})})),P&&P instanceof Function&&l.e(410).then(l.bind(l,364)).then(({getCLS:e,getFID:t,getFCP:n,getLCP:r,getTTFB:a})=>{e(P),t(P),n(P),r(P),a(P)})})();
     2(()=>{"use strict";var e,t,n,r,a={9407(e,t,n){n.d(t,{A:()=>s});var r=n(6540);const a=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:s,iconNode:u,...c},d)=>(0,r.createElement)("svg",{ref:d,...l,width:t,height:t,stroke:e,strokeWidth:a?24*Number(n)/Number(t):n,className:o("lucide",i),...c},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(s)?s:[s]])),s=(e,t)=>{const n=(0,r.forwardRef)(({className:n,...l},s)=>{return(0,r.createElement)(i,{ref:s,iconNode:t,className:o(`lucide-${u=a(e),u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l});var u});return n.displayName=a(e),n}},8723(e,t,n){n.d(t,{A:()=>r});const r=(0,n(9407).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1247(e,t,n){var r=n(9982),a=n(6540),o=n(961);function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(s(e)!==e)throw Error(l(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var R=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function z(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case x:return"Suspense";case E:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case k:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}var L=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},D=[],F=-1;function U(e){return{current:e}}function I(e){0>F||(e.current=D[F],D[F]=null,F--)}function $(e,t){F++,D[F]=e.current,e.current=t}var B,H,W=U(null),q=U(null),V=U(null),Q=U(null);function K(e,t){switch($(V,t),$(q,e),$(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=bd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(W),$(W,e)}function Y(){I(W),I(q),I(V)}function G(e){null!==e.memoizedState&&$(Q,e);var t=W.current,n=bd(t,e.type);t!==n&&($(q,e),$(W,n))}function X(e){q.current===e&&(I(W),I(q)),Q.current===e&&(I(Q),df._currentValue=M)}function J(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",H=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),l=o[0],i=o[1];if(l&&i){var s=l.split("\n"),u=i.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==u[a]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=a);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,le=r.unstable_shouldYield,ie=r.unstable_requestPaint,se=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,me=r.unstable_IdlePriority,he=r.log,ge=r.unstable_setDisableYieldValue,ye=null,be=null;function ve(e){if("function"==typeof he&&ge(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ye,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2,xe=256,Ee=262144,Ce=4194304;function _e(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var i=134217727&r;return 0!==i?0!==(r=i&~o)?a=_e(r):0!==(l&=i)?a=_e(l):n||0!==(n=i&~e)&&(a=_e(n)):0!==(i=r&~o)?a=_e(i):0!==l?a=_e(l):n||0!==(n=r&~e)&&(a=_e(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Re(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pe(){var e=Ce;return!(62914560&(Ce<<=1))&&(Ce=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function je(e,t){var n=t&-t;return 0!==((n=42&n?1:Me(n))&(e.suspendedLanes|t))?0:n}function Me(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function De(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Fe(){var e=j.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function Ue(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var Ie=Math.random().toString(36).slice(2),$e="__reactFiber$"+Ie,Be="__reactProps$"+Ie,He="__reactContainer$"+Ie,We="__reactEvents$"+Ie,qe="__reactListeners$"+Ie,Ve="__reactHandles$"+Ie,Qe="__reactResources$"+Ie,Ke="__reactMarker$"+Ie;function Ye(e){delete e[$e],delete e[Be],delete e[We],delete e[qe],delete e[Ve]}function Ge(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[$e]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Md(e);null!==e;){if(n=e[$e])return n;e=Md(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[$e]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(l(33))}function Ze(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ke]=!0}var tt=new Set,nt={};function rt(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lt={},it={};function st(e,t,n){if(a=t,re.call(it,a)||!re.call(lt,a)&&(ot.test(a)?it[a]=!0:(lt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bt(e,t,n,r,a,o,l,i){e.name="",null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.type=l:e.removeAttribute("type"),null!=t?"number"===l?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==l&&"reset"!==l||e.removeAttribute("value"),null!=t?wt(e,l,dt(t)):null!=n?wt(e,l,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+dt(i):e.removeAttribute("name")}function vt(e,t,n,r,a,o,l,i){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l&&(e.name=l),pt(e)}function wt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(l(92));if(L(r)){if(1<r.length)throw Error(l(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Et(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(l(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&_t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&_t(e,o,t[o])}function Nt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ot(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zt(){}var Lt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jt=null,Mt=null;function Dt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Be]||null;if(!a)throw Error(l(90));bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&mt(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Ft=!1;function Ut(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==jt||null!==Mt)&&(Zu(),jt&&(t=jt,e=Mt,Mt=jt=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Bt=!1;if($t)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Bt=!1}var Wt=null,qt=null,Vt=null;function Qt(){if(Vt)return Vt;var e,t,n=qt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Gt(){return!1}function Xt(e){function t(t,n,r,a,o){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(a):a[l]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Yt:Gt,this.isPropagationStopped=Gt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=p({},tn,{view:0,detail:0}),an=Xt(rn),on=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),ln=Xt(on),sn=Xt(p({},on,{dataTransfer:0})),un=Xt(p({},rn,{relatedTarget:0})),cn=Xt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Xt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function yn(){return gn}var bn=Xt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),vn=Xt(p({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Xt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),kn=Xt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Xt(p({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=Xt(p({},tn,{newState:0,oldState:0})),En=[9,13,27,32],Cn=$t&&"CompositionEvent"in window,_n=null;$t&&"documentMode"in document&&(_n=document.documentMode);var Tn=$t&&"TextEvent"in window&&!_n,Nn=$t&&(!Cn||_n&&8<_n&&11>=_n),Rn=String.fromCharCode(32),Pn=!1;function On(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1,An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function Mn(e,t,n,r){jt?Mt?Mt.push(r):Mt=[r]:jt=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Fn=null;function Un(e){Yc(e,0)}function In(e){if(mt(Je(e)))return e}function $n(e,t){if("change"===e)return t}var Bn=!1;if($t){var Hn;if($t){var Wn="oninput"in document;if(!Wn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Wn="function"==typeof qn.oninput}Hn=Wn}else Hn=!1;Bn=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){Dn&&(Dn.detachEvent("onpropertychange",Qn),Fn=Dn=null)}function Qn(e){if("value"===e.propertyName&&In(Fn)){var t=[];Mn(t,Fn,e,At(e)),Ut(Un,t)}}function Kn(e,t,n){"focusin"===e?(Vn(),Fn=n,(Dn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Vn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return In(Fn)}function Gn(e,t){if("click"===e)return In(t)}function Xn(e,t){if("input"===e||"change"===e)return In(t)}var Jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!re.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=$t&&"documentMode"in document&&11>=document.documentMode,lr=null,ir=null,sr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==lr||lr!==ht(r)||(r="selectionStart"in(r=lr)&&ar(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Zn(sr,r)||(sr=r,0<(r=rd(ir,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},mr={};function hr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return pr[e]=n[t];return e}$t&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=hr("animationend"),yr=hr("animationiteration"),br=hr("animationstart"),vr=hr("transitionrun"),wr=hr("transitionstart"),kr=hr("transitioncancel"),Sr=hr("transitionend"),xr=new Map,Er="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){xr.set(e,t),rt(t,[e])}Er.push("scrollEnd");var _r="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Nr=0,Rr=0;function Pr(){for(var e=Nr,t=Rr=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var o=Tr[t];if(Tr[t++]=null,null!==r&&null!==a){var l=r.pending;null===l?a.next=a:(a.next=l.next,l.next=a),r.pending=a}0!==o&&Ar(n,a,o)}}function Or(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Rr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function zr(e,t,n,r){return Or(e,t,n,r),jr(e)}function Lr(e,t){return Or(e,null,null,t),jr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-we(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function jr(e){if(50<Wu)throw Wu=0,qu=null,Error(l(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Dr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ir(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $r(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,a,o){var i=0;if(r=e,"function"==typeof e)Ur(e)&&(i=1);else if("string"==typeof e)i=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,W.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Fr(31,n,t,a)).elementType=T,e.lanes=o,e;case y:return Hr(n.children,a,o,t);case b:i=8,a|=24;break;case v:return(e=Fr(12,n,t,2|a)).elementType=v,e.lanes=o,e;case x:return(e=Fr(13,n,t,a)).elementType=x,e.lanes=o,e;case E:return(e=Fr(19,n,t,a)).elementType=E,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:i=10;break e;case w:i=9;break e;case S:i=11;break e;case C:i=14;break e;case _:i=16,r=null;break e}i=29,n=Error(l(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(i,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Wr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function qr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Kr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Gr=0,Xr=null,Jr=0,Zr=[],ea=0,ta=null,na=1,ra="";function aa(e,t){Yr[Gr++]=Jr,Yr[Gr++]=Xr,Xr=e,Jr=t}function oa(e,t,n){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,ta=e;var r=na;e=ra;var a=32-we(r)-1;r&=~(1<<a),n+=1;var o=32-we(t)+a;if(30<o){var l=a-a%5;o=(r&(1<<l)-1).toString(32),r>>=l,a-=l,na=1<<32-we(t)+a|n<<a|r,ra=o+e}else na=1<<o|n<<a|r,ra=e}function la(e){null!==e.return&&(aa(e,1),oa(e,1,0))}function ia(e){for(;e===Xr;)Xr=Yr[--Gr],Yr[Gr]=null,Jr=Yr[--Gr],Yr[Gr]=null;for(;e===ta;)ta=Zr[--ea],Zr[ea]=null,ra=Zr[--ea],Zr[ea]=null,na=Zr[--ea],Zr[ea]=null}function sa(e,t){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,na=t.id,ra=t.overflow,ta=e}var ua=null,ca=null,da=!1,fa=null,pa=!1,ma=Error(l(519));function ha(e){throw ka(Kr(Error(l(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),ma}function ga(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[Be]=r,n){case"dialog":Gc("cancel",t),Gc("close",t);break;case"iframe":case"object":case"embed":Gc("load",t);break;case"video":case"audio":for(n=0;n<Qc.length;n++)Gc(Qc[n],t);break;case"source":Gc("error",t);break;case"img":case"image":case"link":Gc("error",t),Gc("load",t);break;case"details":Gc("toggle",t);break;case"input":Gc("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Gc("invalid",t);break;case"textarea":Gc("invalid",t),xt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Gc("beforetoggle",t),Gc("toggle",t)),null!=r.onScroll&&Gc("scroll",t),null!=r.onScrollEnd&&Gc("scrollend",t),null!=r.onClick&&(t.onclick=zt),t=!0):t=!1,t||ha(e,!0)}function ya(e){for(ua=e.return;ua;)switch(ua.tag){case 5:case 31:case 13:return void(pa=!1);case 27:case 3:return void(pa=!0);default:ua=ua.return}}function ba(e){if(e!==ua)return!1;if(!da)return ya(e),da=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||vd(e.type,e.memoizedProps)),t=!t),t&&ca&&ha(e),ya(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));ca=jd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));ca=jd(e)}else 27===n?(n=ca,_d(e.type)?(e=Ad,Ad=null,ca=e):ca=n):ca=ua?Ld(e.stateNode.nextSibling):null;return!0}function va(){ca=ua=null,da=!1}function wa(){var e=fa;return null!==e&&(null===Pu?Pu=e:Pu.push.apply(Pu,e),fa=null),e}function ka(e){null===fa?fa=[e]:fa.push(e)}var Sa=U(null),xa=null,Ea=null;function Ca(e,t,n){$(Sa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=Sa.current,I(Sa)}function Ta(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var s=o;o=a;for(var u=0;u<t.length;u++)if(s.context===t[u]){o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Ta(o.return,n,e),r||(i=null);break e}o=s.next}}else if(18===a.tag){if(null===(i=a.return))throw Error(l(341));i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Ta(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Ra(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error(l(387));if(null!==(i=i.memoizedProps)){var s=a.type;Jn(a.pendingProps.value,i.value)||(null!==e?e.push(s):e=[s])}}else if(a===Q.current){if(null===(i=a.alternate))throw Error(l(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}a=a.return}null!==e&&Na(t,e,n,r),t.flags|=262144}function Pa(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){xa=e,Ea=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function za(e){return Aa(xa,e)}function La(e,t){return null===xa&&Oa(e),Aa(e,t)}function Aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Ea){if(null===e)throw Error(l(308));Ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ea=Ea.next=t;return n}var ja="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ma=r.unstable_scheduleCallback,Da=r.unstable_NormalPriority,Fa={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ua(){return{controller:new ja,data:new Map,refCount:0}}function Ia(e){e.refCount--,0===e.refCount&&Ma(Da,function(){e.controller.abort()})}var $a=null,Ba=0,Ha=0,Wa=null;function qa(){if(0===--Ba&&null!==$a){null!==Wa&&(Wa.status="fulfilled");var e=$a;$a=null,Ha=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Va=A.S;A.S=function(e,t){Lu=se(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===$a){var n=$a=[];Ba=0,Ha=Bc(),Wa={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ba++,t.then(qa,qa)}(0,t),null!==Va&&Va(e,t)};var Qa=U(null);function Ka(){var e=Qa.current;return null!==e?e:mu.pooledCache}function Ya(e,t){$(Qa,null===t?Qa.current:t.pool)}function Ga(){var e=Ka();return null===e?null:{parent:Fa._currentValue,pool:e}}var Xa=Error(l(460)),Ja=Error(l(474)),Za=Error(l(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(zt,zt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw lo(e=t.reason),e;default:if("string"==typeof t.status)t.then(zt,zt);else{if(null!==(e=mu)&&100<e.shellSuspendCounter)throw Error(l(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw lo(e=t.reason),e}throw ao=t,Xa}}function ro(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw ao=e,Xa;throw e}}var ao=null;function oo(){if(null===ao)throw Error(l(459));var e=ao;return ao=null,e}function lo(e){if(e===Xa||e===Za)throw Error(l(483))}var io=null,so=0;function uo(e){var t=so;return so+=1,null===io&&(io=[]),no(io,e,t)}function co(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fo(e,t){if(t.$$typeof===m)throw Error(l(525));throw e=Object.prototype.toString.call(t),Error(l(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Ir(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===_&&ro(o)===t.type)?(co(t=a(t,n.props),n),t.return=e,t):(co(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return co(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Vr(t,e.mode,n)).return=e,t;case _:return f(e,t=ro(t),n)}if(L(t)||P(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,uo(t),n);if(t.$$typeof===k)return f(e,La(e,t),n);fo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===a?u(e,t,n,r):null;case g:return n.key===a?c(e,t,n,r):null;case _:return p(e,t,n=ro(n),r)}if(L(n)||P(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,uo(n),r);if(n.$$typeof===k)return p(e,t,La(e,n),r);fo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case _:return m(e,t,n,r=ro(r),a)}if(L(r)||P(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return m(e,t,n,uo(r),a);if(r.$$typeof===k)return m(e,t,n,La(t,r),a);fo(t,r)}return null}function b(s,u,c,d){if("object"==typeof c&&null!==c&&c.type===y&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case h:e:{for(var v=c.key;null!==u;){if(u.key===v){if((v=c.type)===y){if(7===u.tag){n(s,u.sibling),(d=a(u,c.props.children)).return=s,s=d;break e}}else if(u.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===_&&ro(v)===u.type){n(s,u.sibling),co(d=a(u,c.props),c),d.return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}c.type===y?((d=Hr(c.props.children,s.mode,d,c.key)).return=s,s=d):(co(d=Br(c.type,c.key,c.props,null,s.mode,d),c),d.return=s,s=d)}return i(s);case g:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(s,u.sibling),(d=a(u,c.children||[])).return=s,s=d;break e}n(s,u);break}t(s,u),u=u.sibling}(d=Vr(c,s.mode,d)).return=s,s=d}return i(s);case _:return b(s,u,c=ro(c),d)}if(L(c))return function(a,l,i,s){for(var u=null,c=null,d=l,h=l=0,g=null;null!==d&&h<i.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=p(a,d,i[h],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),l=o(y,l,h),null===c?u=y:c.sibling=y,c=y,d=g}if(h===i.length)return n(a,d),da&&aa(a,h),u;if(null===d){for(;h<i.length;h++)null!==(d=f(a,i[h],s))&&(l=o(d,l,h),null===c?u=d:c.sibling=d,c=d);return da&&aa(a,h),u}for(d=r(d);h<i.length;h++)null!==(g=m(d,a,h,i[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),l=o(g,l,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(a,e)}),da&&aa(a,h),u}(s,u,c,d);if(P(c)){if("function"!=typeof(v=P(c)))throw Error(l(150));return function(a,i,s,u){if(null==s)throw Error(l(151));for(var c=null,d=null,h=i,g=i=0,y=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=p(a,h,b.value,u);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),i=o(v,i,g),null===d?c=v:d.sibling=v,d=v,h=y}if(b.done)return n(a,h),da&&aa(a,g),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=f(a,b.value,u))&&(i=o(b,i,g),null===d?c=b:d.sibling=b,d=b);return da&&aa(a,g),c}for(h=r(h);!b.done;g++,b=s.next())null!==(b=m(h,a,g,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),i=o(b,i,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(a,e)}),da&&aa(a,g),c}(s,u,c=v.call(c),d)}if("function"==typeof c.then)return b(s,u,uo(c),d);if(c.$$typeof===k)return b(s,u,La(s,c),d);fo(s,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(d=a(u,c)).return=s,s=d):(n(s,u),(d=Wr(c,s.mode,d)).return=s,s=d),i(s)):n(s,u)}return function(e,t,n,r){try{so=0;var a=b(e,t,n,r);return io=null,a}catch(t){if(t===Xa||t===Za)throw t;var o=Fr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var mo=po(!0),ho=po(!1),go=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=jr(e),Ar(e,null,n),t}return Or(e,r,t,n),jr(e)}function ko(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}function So(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=l:o=o.next=l,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function Eo(){if(xo&&null!==Wa)throw Wa}function Co(e,t,n,r){xo=!1;var a=e.updateQueue;go=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,u=s.next;s.next=null,null===l?o=u:l.next=u,l=s;var c=e.alternate;null!==c&&(i=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===i?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=s)}if(null!==o){var d=a.baseState;for(l=0,c=u=s=null,i=o;;){var f=-536870913&i.lane,m=f!==i.lane;if(m?(gu&f)===f:(r&f)===f){0!==f&&f===Ha&&(xo=!0),null!==c&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;f=t;var y=n;switch(g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(y,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(y,d,f):h))break e;d=p({},d,f);break e;case 2:go=!0}}null!==(f=i.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=a.callbacks)?a.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(u=c=m,s=d):c=c.next=m,l|=f;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(m=i).next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null===o&&(a.shared.lanes=0),Eu|=l,e.lanes=l,e.memoizedState=d}}function _o(e,t){if("function"!=typeof e)throw Error(l(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)_o(n[e],t)}var No=U(null),Ro=U(0);function Po(e,t){$(Ro,e=Su),$(No,t),Su=e|t.baseLanes}function Oo(){$(Ro,Su),$(No,No.current)}function zo(){Su=Ro.current,I(No),I(Ro)}var Lo=U(null),Ao=null;function jo(e){var t=e.alternate;$(Io,1&Io.current),$(Lo,e),null===Ao&&(null===t||null!==No.current||null!==t.memoizedState)&&(Ao=e)}function Mo(e){$(Io,Io.current),$(Lo,e),null===Ao&&(Ao=e)}function Do(e){22===e.tag?($(Io,Io.current),$(Lo,e),null===Ao&&(Ao=e)):Fo()}function Fo(){$(Io,Io.current),$(Lo,Lo.current)}function Uo(e){I(Lo),Ao===e&&(Ao=null),I(Io)}var Io=U(0);function $o(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Od(n)||zd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,Ho=null,Wo=null,qo=null,Vo=!1,Qo=!1,Ko=!1,Yo=0,Go=0,Xo=null,Jo=0;function Zo(){throw Error(l(321))}function el(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function tl(e,t,n,r,a,o){return Bo=o,Ho=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?gi:yi,Ko=!1,o=n(r,a),Ko=!1,Qo&&(o=rl(t,n,r,a)),nl(e),o}function nl(e){A.H=hi;var t=null!==Wo&&null!==Wo.next;if(Bo=0,qo=Wo=Ho=null,Vo=!1,Go=0,Xo=null,t)throw Error(l(300));null===e||Li||null!==(e=e.dependencies)&&Pa(e)&&(Li=!0)}function rl(e,t,n,r){Ho=e;var a=0;do{if(Qo&&(Xo=null),Go=0,Qo=!1,25<=a)throw Error(l(301));if(a+=1,qo=Wo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}A.H=bi,o=t(n,r)}while(Qo);return o}function al(){var e=A.H,t=e.useState()[0];return t="function"==typeof t.then?cl(t):t,e=e.useState()[0],(null!==Wo?Wo.memoizedState:null)!==e&&(Ho.flags|=1024),t}function ol(){var e=0!==Yo;return Yo=0,e}function ll(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function il(e){if(Vo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Vo=!1}Bo=0,qo=Wo=Ho=null,Qo=!1,Go=Yo=0,Xo=null}function sl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qo?Ho.memoizedState=qo=e:qo=qo.next=e,qo}function ul(){if(null===Wo){var e=Ho.alternate;e=null!==e?e.memoizedState:null}else e=Wo.next;var t=null===qo?Ho.memoizedState:qo.next;if(null!==t)qo=t,Wo=e;else{if(null===e){if(null===Ho.alternate)throw Error(l(467));throw Error(l(310))}e={memoizedState:(Wo=e).memoizedState,baseState:Wo.baseState,baseQueue:Wo.baseQueue,queue:Wo.queue,next:null},null===qo?Ho.memoizedState=qo=e:qo=qo.next=e}return qo}function cl(e){var t=Go;return Go+=1,null===Xo&&(Xo=[]),e=no(Xo,e,t),t=Ho,null===(null===qo?t.memoizedState:qo.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?gi:yi),e}function dl(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return cl(e);if(e.$$typeof===k)return za(e)}throw Error(l(438,String(e)))}function fl(e){var t=null,n=Ho.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Ho.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function pl(e,t){return"function"==typeof t?t(e):t}function ml(e){return hl(ul(),Wo,e)}function hl(e,t,n){var r=e.queue;if(null===r)throw Error(l(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var s=i=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(gu&f)===f:(Bo&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Ha&&(d=!0);else{if((Bo&p)===p){c=c.next,p===Ha&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=f,i=o):u=u.next=f,Ho.lanes|=p,Eu|=p}f=c.action,Ko&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,i=o):u=u.next=p,Ho.lanes|=f,Eu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?i=o:u.next=s,!Jn(o,e.memoizedState)&&(Li=!0,d&&null!==(n=Wa)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=u,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function gl(e){var t=ul(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Jn(o,t.memoizedState)||(Li=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function yl(e,t,n){var r=Ho,a=ul(),o=da;if(o){if(void 0===n)throw Error(l(407));n=n()}else n=t();var i=!Jn((Wo||a).memoizedState,n);if(i&&(a.memoizedState=n,Li=!0),a=a.queue,Bl(wl.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==qo&&1&qo.memoizedState.tag){if(r.flags|=2048,Dl(9,{destroy:void 0},vl.bind(null,r,a,n,t),null),null===mu)throw Error(l(349));o||127&Bo||bl(r,t,n)}return n}function bl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ho.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function vl(e,t,n,r){t.value=n,t.getSnapshot=r,kl(t)&&Sl(e)}function wl(e,t,n){return n(function(){kl(t)&&Sl(e)})}function kl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(e){return!0}}function Sl(e){var t=Lr(e,2);null!==t&&Ku(t,0,2)}function xl(e){var t=sl();if("function"==typeof e){var n=e;if(e=n(),Ko){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function El(e,t,n,r){return e.baseState=n,hl(e,Wo,"function"==typeof r?r:pl)}function Cl(e,t,n,r,a){if(fi(e))throw Error(l(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==A.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,_l(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _l(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=A.T,l={};A.T=l;try{var i=n(a,r),s=A.S;null!==s&&s(l,i),Tl(e,t,i)}catch(n){Rl(e,t,n)}finally{null!==o&&null!==l.types&&(o.types=l.types),A.T=o}}else try{Tl(e,t,o=n(a,r))}catch(n){Rl(e,t,n)}}function Tl(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Nl(e,t,n)},function(n){return Rl(e,t,n)}):Nl(e,t,n)}function Nl(e,t,n){t.status="fulfilled",t.value=n,Pl(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,_l(e,n)))}function Rl(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Pl(t),t=t.next}while(t!==r)}e.action=null}function Pl(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ol(e,t){return t}function zl(e,t){if(da){var n=mu.formState;if(null!==n){e:{var r=Ho;if(da){if(ca){t:{for(var a=ca,o=pa;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=Ld(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ca=Ld(a.nextSibling),r="F!"===a.data;break e}}ha(r)}r=!1}r&&(t=n[0])}}return(n=sl()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ol,lastRenderedState:t},n.queue=r,n=ui.bind(null,Ho,r),r.dispatch=n,r=xl(!1),o=di.bind(null,Ho,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=sl()).queue=a,n=Cl.bind(null,Ho,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ll(e){return Al(ul(),Wo,e)}function Al(e,t,n){if(t=hl(e,t,Ol)[0],e=ml(pl)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=cl(t)}catch(e){if(e===Xa)throw Za;throw e}else r=t;var a=(t=ul()).queue,o=a.dispatch;return n!==t.memoizedState&&(Ho.flags|=2048,Dl(9,{destroy:void 0},jl.bind(null,a,n),null)),[r,o,e]}function jl(e,t){e.action=t}function Ml(e){var t=ul(),n=Wo;if(null!==n)return Al(t,n,e);ul(),t=t.memoizedState;var r=(n=ul()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Dl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Ho.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fl(){return ul().memoizedState}function Ul(e,t,n,r){var a=sl();Ho.flags|=e,a.memoizedState=Dl(1|t,{destroy:void 0},n,void 0===r?null:r)}function Il(e,t,n,r){var a=ul();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Wo&&null!==r&&el(r,Wo.memoizedState.deps)?a.memoizedState=Dl(t,o,n,r):(Ho.flags|=e,a.memoizedState=Dl(1|t,o,n,r))}function $l(e,t){Ul(8390656,8,e,t)}function Bl(e,t){Il(2048,8,e,t)}function Hl(e){var t=ul().memoizedState;return function(e){Ho.flags|=4;var t=Ho.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Ho.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pu)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Wl(e,t){return Il(4,2,e,t)}function ql(e,t){return Il(4,4,e,t)}function Vl(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ql(e,t,n){n=null!=n?n.concat([e]):null,Il(4,4,Vl.bind(null,t,e),n)}function Kl(){}function Yl(e,t){var n=ul();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&el(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gl(e,t){var n=ul();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&el(t,r[1]))return r[0];if(r=e(),Ko){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function Xl(e,t,n){return void 0===n||1073741824&Bo&&!(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Qu(),Ho.lanes|=e,Eu|=e,n)}function Jl(e,t,n,r){return Jn(n,t)?n:null!==No.current?(e=Xl(e,n,r),Jn(e,t)||(Li=!0),e):42&Bo&&(!(1073741824&Bo)||261930&gu)?(e=Qu(),Ho.lanes|=e,Eu|=e,t):(Li=!0,e.memoizedState=n)}function Zl(e,t,n,r,a){var o=j.p;j.p=0!==o&&8>o?o:8;var l,i,s,u=A.T,c={};A.T=c,di(e,!1,t,n);try{var d=a(),f=A.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?ci(e,t,(l=r,i=[],s={status:"pending",value:null,reason:null,then:function(e){i.push(e)}},d.then(function(){s.status="fulfilled",s.value=l;for(var e=0;e<i.length;e++)(0,i[e])(l)},function(e){for(s.status="rejected",s.reason=e,e=0;e<i.length;e++)(0,i[e])(void 0)}),s),Vu()):ci(e,t,r,Vu())}catch(n){ci(e,t,{then:function(){},status:"rejected",reason:n},Vu())}finally{j.p=o,null!==u&&null!==c.types&&(u.types=c.types),A.T=u}}function ei(){}function ti(e,t,n,r){if(5!==e.tag)throw Error(l(476));var a=ni(e).queue;Zl(e,a,t,M,null===n?ei:function(){return ri(e),n(r)})}function ni(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ri(e){var t=ni(e);null===t.next&&(t=e.alternate.memoizedState),ci(e,t.next.queue,{},Vu())}function ai(){return za(df)}function oi(){return ul().memoizedState}function li(){return ul().memoizedState}function ii(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Vu(),r=wo(t,e=vo(n),n);return null!==r&&(Ku(r,0,n),ko(r,t,n)),t={cache:Ua()},void(e.payload=t)}t=t.return}}function si(e,t,n){var r=Vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fi(e)?pi(t,n):null!==(n=zr(e,t,n,r))&&(Ku(n,0,r),mi(n,t,r))}function ui(e,t,n){ci(e,t,n,Vu())}function ci(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fi(e))pi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,i=o(l,n);if(a.hasEagerState=!0,a.eagerState=i,Jn(i,l))return Or(e,t,a,0),null===mu&&Pr(),!1}catch(e){}if(null!==(n=zr(e,t,a,r)))return Ku(n,0,r),mi(n,t,r),!0}return!1}function di(e,t,n,r){if(r={lane:2,revertLane:Bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(l(479))}else null!==(t=zr(e,n,r,2))&&Ku(t,0,2)}function fi(e){var t=e.alternate;return e===Ho||null!==t&&t===Ho}function pi(e,t){Qo=Vo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}var hi={readContext:za,use:dl,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};hi.useEffectEvent=Zo;var gi={readContext:za,use:dl,useCallback:function(e,t){return sl().memoizedState=[e,void 0===t?null:t],e},useContext:za,useEffect:$l,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ul(4194308,4,Vl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ul(4194308,4,e,t)},useInsertionEffect:function(e,t){Ul(4,2,e,t)},useMemo:function(e,t){var n=sl();t=void 0===t?null:t;var r=e();if(Ko){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=sl();if(void 0!==n){var a=n(t);if(Ko){ve(!0);try{n(t)}finally{ve(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=si.bind(null,Ho,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},sl().memoizedState=e},useState:function(e){var t=(e=xl(e)).queue,n=ui.bind(null,Ho,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kl,useDeferredValue:function(e,t){return Xl(sl(),e,t)},useTransition:function(){var e=xl(!1);return e=Zl.bind(null,Ho,e.queue,!0,!1),sl().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ho,a=sl();if(da){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===mu)throw Error(l(349));127&gu||bl(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,$l(wl.bind(null,r,o,e),[e]),r.flags|=2048,Dl(9,{destroy:void 0},vl.bind(null,r,o,n,t),null),n},useId:function(){var e=sl(),t=mu.identifierPrefix;if(da){var n=ra;t="_"+t+"R_"+(n=(na&~(1<<32-we(na)-1)).toString(32)+n),0<(n=Yo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Jo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ai,useFormState:zl,useActionState:zl,useOptimistic:function(e){var t=sl();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=di.bind(null,Ho,!0,n),n.dispatch=t,[e,t]},useMemoCache:fl,useCacheRefresh:function(){return sl().memoizedState=ii.bind(null,Ho)},useEffectEvent:function(e){var t=sl(),n={impl:e};return t.memoizedState=n,function(){if(2&pu)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},yi={readContext:za,use:dl,useCallback:Yl,useContext:za,useEffect:Bl,useImperativeHandle:Ql,useInsertionEffect:Wl,useLayoutEffect:ql,useMemo:Gl,useReducer:ml,useRef:Fl,useState:function(){return ml(pl)},useDebugValue:Kl,useDeferredValue:function(e,t){return Jl(ul(),Wo.memoizedState,e,t)},useTransition:function(){var e=ml(pl)[0],t=ul().memoizedState;return["boolean"==typeof e?e:cl(e),t]},useSyncExternalStore:yl,useId:oi,useHostTransitionStatus:ai,useFormState:Ll,useActionState:Ll,useOptimistic:function(e,t){return El(ul(),0,e,t)},useMemoCache:fl,useCacheRefresh:li};yi.useEffectEvent=Hl;var bi={readContext:za,use:dl,useCallback:Yl,useContext:za,useEffect:Bl,useImperativeHandle:Ql,useInsertionEffect:Wl,useLayoutEffect:ql,useMemo:Gl,useReducer:gl,useRef:Fl,useState:function(){return gl(pl)},useDebugValue:Kl,useDeferredValue:function(e,t){var n=ul();return null===Wo?Xl(n,e,t):Jl(n,Wo.memoizedState,e,t)},useTransition:function(){var e=gl(pl)[0],t=ul().memoizedState;return["boolean"==typeof e?e:cl(e),t]},useSyncExternalStore:yl,useId:oi,useHostTransitionStatus:ai,useFormState:Ml,useActionState:Ml,useOptimistic:function(e,t){var n=ul();return null!==Wo?El(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fl,useCacheRefresh:li};function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}bi.useEffectEvent=Hl;var wi={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vu(),a=vo(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=wo(e,a,r))&&(Ku(t,0,r),ko(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vu(),a=vo(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=wo(e,a,r))&&(Ku(t,0,r),ko(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vu(),r=vo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wo(e,r,n))&&(Ku(t,0,n),ko(t,e,n))}};function ki(e,t,n,r,a,o,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,l):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(a,o))}function Si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function xi(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=p({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function Ei(e){_r(e)}function Ci(e){console.error(e)}function _i(e){_r(e)}function Ti(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ni(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ri(e,t,n){return(n=vo(n)).tag=3,n.payload={element:null},n.callback=function(){Ti(e,t)},n}function Pi(e){return(e=vo(e)).tag=3,e}function Oi(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Ni(t,n,r)}}var l=n.stateNode;null!==l&&"function"==typeof l.componentDidCatch&&(e.callback=function(){Ni(t,n,r),"function"!=typeof a&&(null===Mu?Mu=new Set([this]):Mu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var zi=Error(l(461)),Li=!1;function Ai(e,t,n,r){t.child=null===e?ho(t,null,n,r):mo(t,e.child,n,r)}function ji(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var l={};for(var i in r)"ref"!==i&&(l[i]=r[i])}else l=r;return Oa(t),r=tl(e,t,n,l,o,a),i=ol(),null===e||Li?(da&&i&&la(t),t.flags|=1,Ai(e,t,r,a),t.child):(ll(e,t,a),as(e,t,a))}function Mi(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Ur(o)||void 0!==o.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Di(e,t,o,r,a))}if(o=e.child,!os(e,a)){var l=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(l,r)&&e.ref===t.ref)return as(e,t,a)}return t.flags|=1,(e=Ir(o,r)).ref=t.ref,e.return=t,t.child=e}function Di(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Li=!1,t.pendingProps=r=o,!os(e,a))return t.lanes=e.lanes,as(e,t,a);131072&e.flags&&(Li=!0)}}return Wi(e,t,n,r,a)}function Fi(e,t,n,r){var a=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,a=0;null!==r;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~o}else r=0,t.child=null;return Ii(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Ii(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ya(0,null!==o?o.cachePool:null),null!==o?Po(t,o):Oo(),Do(t)}else null!==o?(Ya(0,o.cachePool),Po(t,o),Fo(),t.memoizedState=null):(null!==e&&Ya(0,null),Oo(),Fo());return Ai(e,t,a,n),t.child}function Ui(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ii(e,t,n,r,a){var o=Ka();return o=null===o?null:{parent:Fa._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Ya(0,null),Oo(),Do(t),null!==e&&Ra(e,t,r,!0),t.childLanes=a,null}function $i(e,t){return(t=Zi({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Bi(e,t,n){return mo(t,e.child,null,n),(e=$i(t,t.pendingProps)).flags|=2,Uo(t),t.memoizedState=null,e}function Hi(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(l(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Wi(e,t,n,r,a){return Oa(t),n=tl(e,t,n,r,void 0,a),r=ol(),null===e||Li?(da&&r&&la(t),t.flags|=1,Ai(e,t,n,a),t.child):(ll(e,t,a),as(e,t,a))}function qi(e,t,n,r,a,o){return Oa(t),t.updateQueue=null,n=rl(t,r,n,a),nl(e),r=ol(),null===e||Li?(da&&r&&la(t),t.flags|=1,Ai(e,t,n,o),t.child):(ll(e,t,o),as(e,t,o))}function Vi(e,t,n,r,a){if(Oa(t),null===t.stateNode){var o=Mr,l=n.contextType;"object"==typeof l&&null!==l&&(o=za(l)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=wi,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},yo(t),l=n.contextType,o.context="object"==typeof l&&null!==l?za(l):Mr,o.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(vi(t,n,l,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(l=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),l!==o.state&&wi.enqueueReplaceState(o,o.state,null),Co(t,r,o,a),Eo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var i=t.memoizedProps,s=xi(n,i);o.props=s;var u=o.context,c=n.contextType;l=Mr,"object"==typeof c&&null!==c&&(l=za(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,i=t.pendingProps!==i,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i||u!==l)&&Si(t,o,r,l),go=!1;var f=t.memoizedState;o.state=f,Co(t,r,o,a),Eo(),u=t.memoizedState,i||f!==u||go?("function"==typeof d&&(vi(t,n,d,r),u=t.memoizedState),(s=go||ki(t,n,s,r,f,u,l))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,bo(e,t),c=xi(n,l=t.memoizedProps),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,s=Mr,"object"==typeof u&&null!==u&&(s=za(u)),(u="function"==typeof(i=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==d||f!==s)&&Si(t,o,r,s),go=!1,f=t.memoizedState,o.state=f,Co(t,r,o,a),Eo();var p=t.memoizedState;l!==d||f!==p||go||null!==e&&null!==e.dependencies&&Pa(e.dependencies)?("function"==typeof i&&(vi(t,n,i,r),p=t.memoizedState),(c=go||ki(t,n,c,r,f,p,s)||null!==e&&null!==e.dependencies&&Pa(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=c):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Hi(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=mo(t,e.child,null,a),t.child=mo(t,null,n,a)):Ai(e,t,n,a),t.memoizedState=o.state,e=t.child):e=as(e,t,a),e}function Qi(e,t,n,r){return va(),t.flags|=256,Ai(e,t,n,r),t.child}var Ki={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yi(e){return{baseLanes:e,cachePool:Ga()}}function Gi(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tu),e}function Xi(e,t,n){var r,a=t.pendingProps,o=!1,i=!!(128&t.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&Io.current)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(da){if(o?jo(t):Fo(),(e=ca)?null!==(e=null!==(e=Pd(e,pa))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ua=t,ca=null):e=null,null===e)throw ha(t);return zd(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,o?(Fo(),s=Zi({mode:"hidden",children:s},o=t.mode),a=Hr(a,o,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,(a=t.child).memoizedState=Yi(n),a.childLanes=Gi(e,r,n),t.memoizedState=Ki,Ui(null,a)):(jo(t),Ji(t,s))}var u=e.memoizedState;if(null!==u&&null!==(s=u.dehydrated)){if(i)256&t.flags?(jo(t),t.flags&=-257,t=es(e,t,n)):null!==t.memoizedState?(Fo(),t.child=e.child,t.flags|=128,t=null):(Fo(),s=a.fallback,o=t.mode,a=Zi({mode:"visible",children:a.children},o),(s=Hr(s,o,n,null)).flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,mo(t,e.child,null,n),(a=t.child).memoizedState=Yi(n),a.childLanes=Gi(e,r,n),t.memoizedState=Ki,t=Ui(null,a));else if(jo(t),zd(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(a=Error(l(419))).stack="",a.digest=r,ka({value:a,source:null,stack:null}),t=es(e,t,n)}else if(Li||Ra(e,t,n,!1),r=0!==(n&e.childLanes),Li||r){if(null!==(r=mu)&&0!==(a=je(r,n))&&a!==u.retryLane)throw u.retryLane=a,Lr(e,a),Ku(r,0,a),zi;Od(s)||lc(),t=es(e,t,n)}else Od(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ca=Ld(s.nextSibling),ua=t,da=!0,fa=null,pa=!1,null!==e&&sa(t,e),(t=Ji(t,a.children)).flags|=4096);return t}return o?(Fo(),s=a.fallback,o=t.mode,c=(u=e.child).sibling,(a=Ir(u,{mode:"hidden",children:a.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?s=Ir(c,s):(s=Hr(s,o,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,Ui(null,a),a=t.child,null===(s=e.child.memoizedState)?s=Yi(n):(null!==(o=s.cachePool)?(u=Fa._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Ga(),s={baseLanes:s.baseLanes|n,cachePool:o}),a.memoizedState=s,a.childLanes=Gi(e,r,n),t.memoizedState=Ki,Ui(e.child,a)):(jo(t),e=(n=e.child).sibling,(n=Ir(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ji(e,t){return(t=Zi({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zi(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function es(e,t,n){return mo(t,e.child,null,n),(e=Ji(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ts(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ta(e.return,t,n)}function ns(e,t,n,r,a,o){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function rs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;r=r.children;var l=Io.current,i=!!(2&l);if(i?(l=1&l|2,t.flags|=128):l&=1,$(Io,l),Ai(e,t,r,n),r=da?Jr:0,!i&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ts(e,n,t);else if(19===e.tag)ts(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===$o(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ns(t,!1,a,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===$o(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ns(t,!0,n,null,o,r);break;case"together":ns(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Eu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ra(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Ir(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ir(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function os(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Pa(e))}function ls(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Li=!0;else{if(!(os(e,n)||128&t.flags))return Li=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Ca(0,Fa,e.memoizedState.cache),va();break;case 27:case 5:G(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Ca(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(jo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xi(e,t,n):(jo(t),null!==(e=as(e,t,n))?e.sibling:null);jo(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ra(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return rs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),$(Io,Io.current),r)break;return null;case 22:return t.lanes=0,Fi(e,t,n,t.pendingProps);case 24:Ca(0,Fa,e.memoizedState.cache)}return as(e,t,n)}(e,t,n);Li=!!(131072&e.flags)}else Li=!1,da&&1048576&t.flags&&oa(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===S){t.tag=11,t=ji(null,t,e,r,n);break e}if(a===C){t.tag=14,t=Mi(null,t,e,r,n);break e}}throw t=z(e)||e,Error(l(306,t,""))}Ur(e)?(r=xi(e,r),t.tag=1,t=Vi(null,t,e,r,n)):(t.tag=0,t=Wi(null,t,e,r,n))}return t;case 0:return Wi(e,t,t.type,t.pendingProps,n);case 1:return Vi(e,t,r=t.type,a=xi(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(l(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,bo(e,t),Co(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Ca(0,Fa,r),r!==o.cache&&Na(t,[Fa],n,!0),Eo(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Qi(e,t,r,n);break e}if(r!==a){ka(a=Kr(Error(l(424)),t)),t=Qi(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ca=Ld(e.firstChild),ua=t,da=!0,fa=null,pa=!0,n=ho(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(va(),r===a){t=as(e,t,n);break e}Ai(e,t,r,n)}t=t.child}return t;case 26:return Hi(e,t),null===e?(n=qd(t.type,null,t.pendingProps,null))?t.memoizedState=n:da||(n=t.type,e=t.pendingProps,(r=gd(V.current).createElement(n))[$e]=t,r[Be]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&da&&(r=t.stateNode=Dd(t.type,t.pendingProps,V.current),ua=t,pa=!0,a=ca,_d(t.type)?(Ad=a,ca=Ld(r.firstChild)):ca=a),Ai(e,t,t.pendingProps.children,n),Hi(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&da&&((a=r=ca)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pa))?(t.stateNode=r,ua=t,ca=Ld(r.firstChild),pa=!1,a=!0):a=!1),a||ha(t)),G(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,vd(a,o)?r=null:null!==i&&vd(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=tl(e,t,al,null,null,n),df._currentValue=a),Hi(e,t),Ai(e,t,r,n),t.child;case 6:return null===e&&da&&((e=n=ca)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,pa))?(t.stateNode=n,ua=t,ca=null,e=!0):e=!1),e||ha(t)),null;case 13:return Xi(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=mo(t,null,r,n):Ai(e,t,r,n),t.child;case 11:return ji(e,t,t.type,t.pendingProps,n);case 7:return Ai(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ai(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ca(0,t.type,r.value),Ai(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Oa(t),r=r(a=za(a)),t.flags|=1,Ai(e,t,r,n),t.child;case 14:return Mi(e,t,t.type,t.pendingProps,n);case 15:return Di(e,t,t.type,t.pendingProps,n);case 19:return rs(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(da){if("hidden"===r.mode)return e=$i(t,r),t.lanes=536870912,Ui(null,e);if(Mo(t),(e=ca)?null!==(e=null!==(e=Pd(e,pa))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ua=t,ca=null):e=null,null===e)throw ha(t);return t.lanes=536870912,null}return $i(t,r)}var o=e.memoizedState;if(null!==o){var i=o.dehydrated;if(Mo(t),a)if(256&t.flags)t.flags&=-257,t=Bi(e,t,n);else{if(null===t.memoizedState)throw Error(l(558));t.child=e.child,t.flags|=128,t=null}else if(Li||Ra(e,t,n,!1),a=0!==(n&e.childLanes),Li||a){if(null!==(r=mu)&&0!==(i=je(r,n))&&i!==o.retryLane)throw o.retryLane=i,Lr(e,i),Ku(r,0,i),zi;lc(),t=Bi(e,t,n)}else e=o.treeContext,ca=Ld(i.nextSibling),ua=t,da=!0,fa=null,pa=!1,null!==e&&sa(t,e),(t=$i(t,r)).flags|=4096;return t}return(e=Ir(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fi(e,t,n,t.pendingProps);case 24:return Oa(t),r=za(Fa),null===e?(null===(a=Ka())&&(a=mu,o=Ua(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},yo(t),Ca(0,Fa,a)):(0!==(e.lanes&n)&&(bo(e,t),Co(t,null,null,n),Eo()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Ca(0,Fa,r)):(r=o.cache,Ca(0,Fa,r),r!==a.cache&&Na(t,[Fa],n,!0))),Ai(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function is(e){e.flags|=4}function ss(e,t,n,r,a){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&a)===a)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw ao=eo,Ja;e.flags|=8192}}else e.flags&=-16777217}function us(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!af(t)){if(!rc())throw ao=eo,Ja;e.flags|=8192}}function cs(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,Nu|=t)}function ds(e,t){if(!da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ps(e,t,n){var r=t.pendingProps;switch(ia(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fs(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(Fa),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ba(t)?is(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,wa())),fs(t),null;case 26:var a=t.type,o=t.memoizedState;return null===e?(is(t),null!==o?(fs(t),us(t,o)):(fs(t),ss(t,a,0,0,n))):o?o!==e.memoizedState?(is(t),fs(t),us(t,o)):(fs(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&is(t),fs(t),ss(t,a,0,0,n)),null;case 27:if(X(t),n=V.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return fs(t),null}e=W.current,ba(t)?ga(t):(e=Dd(a,r,n),t.stateNode=e,is(t))}return fs(t),null;case 5:if(X(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return fs(t),null}if(o=W.current,ba(t))ga(t);else{var i=gd(V.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(o=i.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?i.createElement(a,{is:r.is}):i.createElement(a)}}o[$e]=t,o[Be]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)o.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(fd(o,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&is(t)}}return fs(t),ss(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(e=V.current,ba(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=ua))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||ha(t,!0)}else(e=gd(e).createTextNode(r))[$e]=t,t.stateNode=e}return fs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=ba(t),null!==n){if(null===e){if(!r)throw Error(l(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(l(557));e[$e]=t}else va(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),e=!1}else n=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Uo(t),t):(Uo(t),null);if(128&t.flags)throw Error(l(558))}return fs(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ba(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(l(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(l(317));a[$e]=t}else va(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),a=!1}else a=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Uo(t),t):(Uo(t),null)}return Uo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cs(t,t.updateQueue),fs(t),null);case 4:return Y(),null===e&&Zc(t.stateNode.containerInfo),fs(t),null;case 10:return _a(t.type),fs(t),null;case 19:if(I(Io),null===(r=t.memoizedState))return fs(t),null;if(a=!!(128&t.flags),null===(o=r.rendering))if(a)ds(r,!1);else{if(0!==xu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=$o(e))){for(t.flags|=128,ds(r,!1),e=o.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)$r(n,e),n=n.sibling;return $(Io,1&Io.current|2),da&&aa(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&se()>Au&&(t.flags|=128,a=!0,ds(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=$o(o))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),ds(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!da)return fs(t),null}else 2*se()-r.renderingStartTime>Au&&536870912!==n&&(t.flags|=128,a=!0,ds(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=se(),e.sibling=null,n=Io.current,$(Io,a?1&n|2:1&n),da&&aa(t,r.treeForkCount),e):(fs(t),null);case 22:case 23:return Uo(t),zo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fs(t),6&t.subtreeFlags&&(t.flags|=8192)):fs(t),null!==(n=t.updateQueue)&&cs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&I(Qa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(Fa),fs(t),null;case 25:case 30:return null}throw Error(l(156,t.tag))}function ms(e,t){switch(ia(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return _a(Fa),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Uo(t),null===t.alternate)throw Error(l(340));va()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Uo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));va()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return I(Io),null;case 4:return Y(),null;case 10:return _a(t.type),null;case 22:case 23:return Uo(t),zo(),null!==e&&I(Qa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return _a(Fa),null;default:return null}}function hs(e,t){switch(ia(t),t.tag){case 3:_a(Fa),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Uo(t);break;case 13:Uo(t);break;case 19:I(Io);break;case 10:_a(t.type);break;case 22:case 23:Uo(t),zo(),null!==e&&I(Qa);break;case 24:_a(Fa)}}function gs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,l=n.inst;r=o(),l.destroy=r}n=n.next}while(n!==a)}}catch(e){xc(t,t.return,e)}}function ys(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var l=r.inst,i=l.destroy;if(void 0!==i){l.destroy=void 0,a=t;var s=n,u=i;try{u()}catch(e){xc(a,s,e)}}}r=r.next}while(r!==o)}}catch(e){xc(t,t.return,e)}}function bs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{To(t,n)}catch(t){xc(e,e.return,t)}}}function vs(e,t,n){n.props=xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){xc(e,t,n)}}function ws(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){xc(e,t,n)}}function ks(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){xc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){xc(e,t,n)}else n.current=null}function Ss(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){xc(e,e.return,t)}}function xs(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,s=null,u=null,c=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&null!=f)switch(m){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(m)||cd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=m||null!=f))switch(p){case"type":o=m;break;case"name":a=m;break;case"checked":c=m;break;case"defaultChecked":d=m;break;case"value":i=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(l(137,t));break;default:m!==f&&cd(e,t,p,m,r,f)}}return void bt(e,i,s,u,c,d,o,a);case"select":for(o in m=i=s=p=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":m=u;default:r.hasOwnProperty(o)||cd(e,t,o,null,r,u)}for(a in r)if(o=r[a],u=n[a],r.hasOwnProperty(a)&&(null!=o||null!=u))switch(a){case"value":p=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:o!==u&&cd(e,t,a,o,r,u)}return t=s,n=i,r=m,void(null!=p?kt(e,!!n,p,!1):!!r!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in m=p=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:cd(e,t,s,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(l(91));break;default:a!==o&&cd(e,t,i,a,r,o)}return void St(e,p,m);case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:cd(e,t,h,null,r,p));for(u in r)p=r[u],m=n[u],!r.hasOwnProperty(u)||p===m||null==p&&null==m||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:cd(e,t,u,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(l(137,t));break;default:cd(e,t,c,p,r,m)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||void 0===p&&void 0===m||dd(e,t,d,p,r,m);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!r.hasOwnProperty(b)&&cd(e,t,b,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||null==p&&null==m||cd(e,t,f,p,r,m)}(r,e.type,n,t),r[Be]=t}catch(t){xc(e,e.return,t)}}function Es(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&_d(e.type)||4===e.tag}function Cs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Es(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&_d(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function _s(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zt));else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Ts(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&_d(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ts(e,t,n),e=e.sibling;null!==e;)Ts(e,t,n),e=e.sibling}function Ns(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);fd(t,r,n),t[$e]=e,t[Be]=n}catch(t){xc(e,e.return,t)}}var Rs=!1,Ps=!1,Os=!1,zs="function"==typeof WeakSet?WeakSet:Set,Ls=null;function As(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ks(e,n),4&r&&gs(5,n);break;case 1:if(Ks(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){xc(n,n.return,e)}else{var a=xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){xc(n,n.return,e)}}64&r&&bs(n),512&r&&ws(n,n.return);break;case 3:if(Ks(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{To(e,t)}catch(e){xc(n,n.return,e)}}break;case 27:null===t&&4&r&&Ns(n);case 26:case 5:Ks(e,n),null===t&&4&r&&Ss(n),512&r&&ws(n,n.return);break;case 12:Ks(e,n);break;case 31:Ks(e,n),4&r&&Is(e,n);break;case 13:Ks(e,n),4&r&&$s(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Rs)){t=null!==t&&null!==t.memoizedState||Ps,a=Rs;var o=Ps;Rs=r,(Ps=t)&&!o?Gs(e,n,!!(8772&n.subtreeFlags)):Ks(e,n),Rs=a,Ps=o}break;case 30:break;default:Ks(e,n)}}function js(e){var t=e.alternate;null!==t&&(e.alternate=null,js(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ms=null,Ds=!1;function Fs(e,t,n){for(n=n.child;null!==n;)Us(e,t,n),n=n.sibling}function Us(e,t,n){if(be&&"function"==typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Ps||ks(n,t),Fs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ps||ks(n,t);var r=Ms,a=Ds;_d(n.type)&&(Ms=n.stateNode,Ds=!1),Fs(e,t,n),Fd(n.stateNode),Ms=r,Ds=a;break;case 5:Ps||ks(n,t);case 6:if(r=Ms,a=Ds,Ms=null,Fs(e,t,n),Ds=a,null!==(Ms=r))if(Ds)try{(9===Ms.nodeType?Ms.body:"HTML"===Ms.nodeName?Ms.ownerDocument.body:Ms).removeChild(n.stateNode)}catch(e){xc(n,t,e)}else try{Ms.removeChild(n.stateNode)}catch(e){xc(n,t,e)}break;case 18:null!==Ms&&(Ds?(Td(9===(e=Ms).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qf(e)):Td(Ms,n.stateNode));break;case 4:r=Ms,a=Ds,Ms=n.stateNode.containerInfo,Ds=!0,Fs(e,t,n),Ms=r,Ds=a;break;case 0:case 11:case 14:case 15:ys(2,n,t),Ps||ys(4,n,t),Fs(e,t,n);break;case 1:Ps||(ks(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&vs(n,t,r)),Fs(e,t,n);break;case 21:Fs(e,t,n);break;case 22:Ps=(r=Ps)||null!==n.memoizedState,Fs(e,t,n),Ps=r;break;default:Fs(e,t,n)}}function Is(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{qf(e)}catch(e){xc(t,t.return,e)}}}function $s(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{qf(e)}catch(e){xc(t,t.return,e)}}function Bs(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new zs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new zs),t;default:throw Error(l(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function Hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],o=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 27:if(_d(s.type)){Ms=s.stateNode,Ds=!1;break e}break;case 5:Ms=s.stateNode,Ds=!1;break e;case 3:case 4:Ms=s.stateNode.containerInfo,Ds=!0;break e}s=s.return}if(null===Ms)throw Error(l(160));Us(o,i,a),Ms=null,Ds=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)qs(t,e),t=t.sibling}var Ws=null;function qs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hs(t,e),Vs(e),4&r&&(ys(3,e,e.return),gs(3,e),ys(5,e,e.return));break;case 1:Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),64&r&&Rs&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=Ws;if(Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(o=a.getElementsByTagName("title")[0])||o[Ke]||o[$e]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector("head > title"))),fd(o,r,n),o[$e]=e,et(o),r=o;break e;case"link":var i=nf("link","href",a).get(r+(n.href||""));if(i)for(var s=0;s<i.length;s++)if((o=i[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){i.splice(s,1);break t}fd(o=a.createElement(r),r,n),a.head.appendChild(o);break;case"meta":if(i=nf("meta","content",a).get(r+(n.content||"")))for(s=0;s<i.length;s++)if((o=i[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){i.splice(s,1);break t}fd(o=a.createElement(r),r,n),a.head.appendChild(o);break;default:throw Error(l(468,r))}o[$e]=e,et(o),r=o}e.stateNode=r}else rf(a,e.type,e.stateNode);else e.stateNode=Xd(a,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?rf(a,e.type,e.stateNode):Xd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&xs(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),null!==n&&4&r&&xs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hs(t,e),Vs(e),512&r&&(Ps||null===n||ks(n,n.return)),32&e.flags){a=e.stateNode;try{Et(a,"")}catch(t){xc(e,e.return,t)}}4&r&&null!=e.stateNode&&xs(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Os=!0);break;case 6:if(Hs(t,e),Vs(e),4&r){if(null===e.stateNode)throw Error(l(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){xc(e,e.return,t)}}break;case 3:if(tf=null,a=Ws,Ws=$d(t.containerInfo),Hs(t,e),Ws=a,Vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qf(t.containerInfo)}catch(t){xc(e,e.return,t)}Os&&(Os=!1,Qs(e));break;case 4:r=Ws,Ws=$d(e.stateNode.containerInfo),Hs(t,e),Vs(e),Ws=r;break;case 12:default:Hs(t,e),Vs(e);break;case 31:case 19:Hs(t,e),Vs(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bs(e,r));break;case 13:Hs(t,e),Vs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(zu=se()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bs(e,r));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Rs,d=Ps;if(Rs=c||a,Ps=d||u,Hs(t,e),Ps=d,Rs=c,Vs(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||Rs||Ps||Ys(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,a)"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none";else{s=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){xc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){xc(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var m=u.stateNode;a?Nd(m,!0):Nd(u.stateNode,!1)}catch(e){xc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Bs(e,n));case 30:case 21:}}function Vs(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Es(r)){n=r;break}r=r.return}if(null==n)throw Error(l(160));switch(n.tag){case 27:var a=n.stateNode;Ts(e,Cs(e),a);break;case 5:var o=n.stateNode;32&n.flags&&(Et(o,""),n.flags&=-33),Ts(e,Cs(e),o);break;case 3:case 4:var i=n.stateNode.containerInfo;_s(e,Cs(e),i);break;default:throw Error(l(161))}}catch(t){xc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Qs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Qs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ks(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)As(e,t.alternate,t),t=t.sibling}function Ys(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ys(4,t,t.return),Ys(t);break;case 1:ks(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&vs(t,t.return,n),Ys(t);break;case 27:Fd(t.stateNode);case 26:case 5:ks(t,t.return),Ys(t);break;case 22:null===t.memoizedState&&Ys(t);break;default:Ys(t)}e=e.sibling}}function Gs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,l=o.flags;switch(o.tag){case 0:case 11:case 15:Gs(a,o,n),gs(4,o);break;case 1:if(Gs(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){xc(r,r.return,e)}if(null!==(a=(r=o).updateQueue)){var i=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)_o(s[a],i)}catch(e){xc(r,r.return,e)}}n&&64&l&&bs(o),ws(o,o.return);break;case 27:Ns(o);case 26:case 5:Gs(a,o,n),n&&null===r&&4&l&&Ss(o),ws(o,o.return);break;case 12:Gs(a,o,n);break;case 31:Gs(a,o,n),n&&4&l&&Is(a,o);break;case 13:Gs(a,o,n),n&&4&l&&$s(a,o);break;case 22:null===o.memoizedState&&Gs(a,o,n),ws(o,o.return);break;case 30:break;default:Gs(a,o,n)}t=t.sibling}}function Xs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ia(n))}function Js(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e))}function Zs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Zs(e,t,n,r),2048&a&&gs(9,t);break;case 1:case 31:case 13:default:Zs(e,t,n,r);break;case 3:Zs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ia(e)));break;case 12:if(2048&a){Zs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,l=o.id,i=o.onPostCommit;"function"==typeof i&&i(l,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){xc(t,t.return,e)}}else Zs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,l=t.alternate,null!==t.memoizedState?2&o._visibility?Zs(e,t,n,r):nu(e,t):2&o._visibility?Zs(e,t,n,r):(o._visibility|=2,tu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&a&&Xs(l,t);break;case 24:Zs(e,t,n,r),2048&a&&Js(t.alternate,t)}}function tu(e,t,n,r,a){for(a=a&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,l=t,i=n,s=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:tu(o,l,i,s,a),gs(8,l);break;case 23:break;case 22:var c=l.stateNode;null!==l.memoizedState?2&c._visibility?tu(o,l,i,s,a):nu(o,l):(c._visibility|=2,tu(o,l,i,s,a)),a&&2048&u&&Xs(l.alternate,l);break;case 24:tu(o,l,i,s,a),a&&2048&u&&Js(l.alternate,l);break;default:tu(o,l,i,s,a)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:nu(n,r),2048&a&&Xs(r.alternate,r);break;case 24:nu(n,r),2048&a&&Js(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function au(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)ou(e,t,n),e=e.sibling}function ou(e,t,n){switch(e.tag){case 26:au(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var a=Vd(r.href),o=t.querySelector(Qd(a));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=lf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,r=Kd(r),(a=Ud.get(a))&&Zd(r,a),et(o=o.createElement("link"));var l=o;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),fd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=lf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Ws,e.memoizedState,e.memoizedProps);break;case 5:default:au(e,t,n);break;case 3:case 4:var r=Ws;Ws=$d(e.stateNode.containerInfo),au(e,t,n),Ws=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,au(e,t,n),ru=r):au(e,t,n))}}function lu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function iu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,cu(r,e)}lu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)su(e),e=e.sibling}function su(e){switch(e.tag){case 0:case 11:case 15:iu(e),2048&e.flags&&ys(9,e,e.return);break;case 3:case 12:default:iu(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):iu(e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,cu(r,e)}lu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ys(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ls;){var n=Ls;switch(n.tag){case 0:case 11:case 15:ys(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ls=r;else e:for(n=e;null!==Ls;){var a=(r=Ls).sibling,o=r.return;if(js(r),r===n){Ls=null;break e}if(null!==a){a.return=o,Ls=a;break e}Ls=o}}}var du={getCacheForType:function(e){var t=za(Fa),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return za(Fa).controller.signal}},fu="function"==typeof WeakMap?WeakMap:Map,pu=0,mu=null,hu=null,gu=0,yu=0,bu=null,vu=!1,wu=!1,ku=!1,Su=0,xu=0,Eu=0,Cu=0,_u=0,Tu=0,Nu=0,Ru=null,Pu=null,Ou=!1,zu=0,Lu=0,Au=1/0,ju=null,Mu=null,Du=0,Fu=null,Uu=null,Iu=0,$u=0,Bu=null,Hu=null,Wu=0,qu=null;function Vu(){return 2&pu&&0!==gu?gu&-gu:null!==A.T?Bc():Fe()}function Qu(){if(0===Tu)if(536870912&gu&&!da)Tu=536870912;else{var e=Ee;!(3932160&(Ee<<=1))&&(Ee=262144),Tu=e}return null!==(e=Lo.current)&&(e.flags|=32),Tu}function Ku(e,t,n){(e!==mu||2!==yu&&9!==yu)&&null===e.cancelPendingCommit||(tc(e,0),Ju(e,gu,Tu,!1)),ze(e,n),2&pu&&e===mu||(e===mu&&(!(2&pu)&&(Cu|=n),4===xu&&Ju(e,gu,Tu,!1)),jc(e))}function Yu(e,t,n){if(6&pu)throw Error(l(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),a=r?function(e,t){var n=pu;pu|=2;var r=ac(),a=oc();mu!==e||gu!==t?(ju=null,Au=se()+500,tc(e,t)):wu=Ne(e,t);e:for(;;)try{if(0!==yu&&null!==hu){t=hu;var o=bu;t:switch(yu){case 1:yu=0,bu=null,fc(e,t,o,1);break;case 2:case 9:if(to(o)){yu=0,bu=null,dc(t);break}t=function(){2!==yu&&9!==yu||mu!==e||(yu=7),jc(e)},o.then(t,t);break e;case 3:yu=7;break e;case 4:yu=5;break e;case 7:to(o)?(yu=0,bu=null,dc(t)):(yu=0,bu=null,fc(e,t,o,7));break;case 5:var i=null;switch(hu.tag){case 26:i=hu.memoizedState;case 5:case 27:var s=hu;if(i?af(i):s.stateNode.complete){yu=0,bu=null;var u=s.sibling;if(null!==u)hu=u;else{var c=s.return;null!==c?(hu=c,pc(c)):hu=null}break t}}yu=0,bu=null,fc(e,t,o,5);break;case 6:yu=0,bu=null,fc(e,t,o,6);break;case 8:ec(),xu=6;break e;default:throw Error(l(462))}}uc();break}catch(t){nc(e,t)}return Ea=xa=null,A.H=r,A.A=a,pu=n,null!==hu?0:(mu=null,gu=0,Pr(),xu)}(e,t):ic(e,t,!0),o=r;;){if(0===a){wu&&!r&&Ju(e,t,0,!1);break}if(n=e.current.alternate,!o||Xu(n)){if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var s=e;a=Ru;var u=s.current.memoizedState.isDehydrated;if(u&&(tc(s,i).flags|=256),2!==(i=ic(s,i,!1))){if(ku&&!u){s.errorRecoveryDisabledLanes|=o,Cu|=o,a=4;break e}o=Pu,Pu=a,null!==o&&(null===Pu?Pu=o:Pu.push.apply(Pu,o))}a=i}if(o=!1,2!==a)continue}}if(1===a){tc(e,0),Ju(e,t,0,!0);break}e:{switch(r=e,o=a){case 0:case 1:throw Error(l(345));case 4:if((4194048&t)!==t)break;case 6:Ju(r,t,Tu,!vu);break e;case 2:Pu=null;break;case 3:case 5:break;default:throw Error(l(329))}if((62914560&t)===t&&10<(a=zu+300-se())){if(Ju(r,t,Tu,!vu),0!==Te(r,0,!0))break e;Iu=t,r.timeoutHandle=kd(Gu.bind(null,r,n,Pu,ju,Ou,t,Tu,Cu,Nu,vu,o,"Throttled",-0,0),a)}else Gu(r,n,Pu,ju,Ou,t,Tu,Cu,Nu,vu,o,null,-0,0)}break}a=ic(e,t,!1),o=!1}jc(e)}function Gu(e,t,n,r,a,o,l,i,s,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ou(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zt});var m=(62914560&o)===o?zu-se():(4194048&o)===o?Lu-se():0;if(null!==(m=function(e,t){return e.stylesheets&&0===e.count&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===of&&(of=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],o=a.transferSize,l=a.initiatorType,i=a.duration;if(o&&i&&pd(l)){for(l=0,i=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>i)break;var c=s.transferSize,d=s.initiatorType;c&&pd(d)&&(l+=c*((s=s.responseEnd)<i?1:(i-u)/(s-u)))}if(--r,t+=8*(o+l)/(a.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var a=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>of?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}(d,m)))return Iu=o,e.cancelPendingCommit=m(hc.bind(null,e,t,o,n,r,a,l,i,s,c,d,null,f,p)),void Ju(e,o,l,!u)}hc(e,t,o,n,r,a,l,i,s)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Jn(o(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ju(e,t,n,r){t&=~_u,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-we(a),l=1<<o;r[o]=-1,a&=~l}0!==n&&Le(e,n,t)}function Zu(){return!!(6&pu)||(Mc(0,!1),!1)}function ec(){if(null!==hu){if(0===yu)var e=hu.return;else Ea=xa=null,il(e=hu),io=null,so=0,e=hu;for(;null!==e;)hs(e.alternate,e),e=e.return;hu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Iu=0,ec(),mu=e,hu=n=Ir(e.current,null),gu=t,yu=0,bu=null,vu=!1,wu=Ne(e,t),ku=!1,Nu=Tu=_u=Cu=Eu=xu=0,Pu=Ru=null,Ou=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-we(r),o=1<<a;t|=e[a],r&=~o}return Su=t,Pr(),n}function nc(e,t){Ho=null,A.H=hi,t===Xa||t===Za?(t=oo(),yu=3):t===Ja?(t=oo(),yu=4):yu=t===zi?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,bu=t,null===hu&&(xu=1,Ti(e,Kr(t,e.current)))}function rc(){var e=Lo.current;return null===e||((4194048&gu)===gu?null===Ao:!!((62914560&gu)===gu||536870912&gu)&&e===Ao)}function ac(){var e=A.H;return A.H=hi,null===e?hi:e}function oc(){var e=A.A;return A.A=du,e}function lc(){xu=4,vu||(4194048&gu)!==gu&&null!==Lo.current||(wu=!0),!(134217727&Eu)&&!(134217727&Cu)||null===mu||Ju(mu,gu,Tu,!1)}function ic(e,t,n){var r=pu;pu|=2;var a=ac(),o=oc();mu===e&&gu===t||(ju=null,tc(e,t)),t=!1;var l=xu;e:for(;;)try{if(0!==yu&&null!==hu){var i=hu,s=bu;switch(yu){case 8:ec(),l=6;break e;case 3:case 2:case 9:case 6:null===Lo.current&&(t=!0);var u=yu;if(yu=0,bu=null,fc(e,i,s,u),n&&wu){l=0;break e}break;default:u=yu,yu=0,bu=null,fc(e,i,s,u)}}sc(),l=xu;break}catch(t){nc(e,t)}return t&&e.shellSuspendCounter++,Ea=xa=null,pu=r,A.H=a,A.A=o,null===hu&&(mu=null,gu=0,Pr()),l}function sc(){for(;null!==hu;)cc(hu)}function uc(){for(;null!==hu&&!le();)cc(hu)}function cc(e){var t=ls(e.alternate,e,Su);e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qi(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=qi(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:il(t);default:hs(n,t),t=ls(n,t=hu=$r(t,Su),Su)}e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function fc(e,t,n,r){Ea=xa=null,il(t),io=null,so=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ra(t,n,a,!0),null!==(n=Lo.current)){switch(n.tag){case 31:case 13:return null===Ao?lc():null===n.alternate&&0===xu&&(xu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Ec(e,r,a)),!1;case 22:return n.flags|=65536,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Ec(e,r,a)),!1}throw Error(l(435,n.tag))}return Ec(e,r,a),lc(),!1}if(da)return null!==(t=Lo.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ma&&ka(Kr(e=Error(l(422),{cause:r}),n))):(r!==ma&&ka(Kr(t=Error(l(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Kr(r,n),So(e,a=Ri(e.stateNode,r,a)),4!==xu&&(xu=2)),!1;var o=Error(l(520),{cause:r});if(o=Kr(o,n),null===Ru?Ru=[o]:Ru.push(o),4!==xu&&(xu=2),null===t)return!0;r=Kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,So(n,e=Ri(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Mu&&Mu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Oi(a=Pi(a),e,n,r),So(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,gu))return xu=1,Ti(e,Kr(n,e.current)),void(hu=null)}catch(t){if(null!==a)throw hu=a,t;return xu=1,Ti(e,Kr(n,e.current)),void(hu=null)}32768&t.flags?(da||1===r?e=!0:wu||536870912&gu?e=!1:(vu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Lo.current)&&13===r.tag&&(r.flags|=16384)),mc(t,e)):pc(t)}function pc(e){var t=e;do{if(32768&t.flags)return void mc(t,vu);e=t.return;var n=ps(t.alternate,t,Su);if(null!==n)return void(hu=n);if(null!==(t=t.sibling))return void(hu=t);hu=t=e}while(null!==t);0===xu&&(xu=5)}function mc(e,t){do{var n=ms(e.alternate,e);if(null!==n)return n.flags&=32767,void(hu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(hu=e);hu=e=n}while(null!==e);xu=6,hu=null}function hc(e,t,n,r,a,o,i,s,u){e.cancelPendingCommit=null;do{wc()}while(0!==Du);if(6&pu)throw Error(l(327));if(null!==t){if(t===e.current)throw Error(l(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-we(n),d=1<<c;i[c]=0,s[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Le(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(l&~t))}(e,n,o|=Rr,i,s,u),e===mu&&(hu=mu=null,gu=0),Uu=t,Fu=e,Iu=n,$u=o,Bu=a,Hu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(fe,function(){return kc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=A.T,A.T=null,a=j.p,j.p=2,i=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,md=wf,ar(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var i=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==a&&3!==f.nodeType||(s=i+a),f!==o||0!==r&&3!==f.nodeType||(u=i+r),3===f.nodeType&&(i+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===a&&(s=i),p===o&&++d===r&&(u=i),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},wf=!1,Ls=t;null!==Ls;)if(e=(t=Ls).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ls=e;else for(;null!==Ls;){switch(o=(t=Ls).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=xi(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){xc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Rd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(l(163))}if(null!==(e=t.sibling)){e.return=t.return,Ls=e;break}Ls=t.return}}(e,t)}finally{pu=i,j.p=a,A.T=r}}Du=1,gc(),yc(),bc()}}function gc(){if(1===Du){Du=0;var e=Fu,t=Uu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=A.T,A.T=null;var r=j.p;j.p=2;var a=pu;pu|=4;try{qs(t,e);var o=hd,l=rr(e.containerInfo),i=o.focusedElem,s=o.selectionRange;if(l!==i&&i&&i.ownerDocument&&nr(i.ownerDocument.documentElement,i)){if(null!==s&&ar(i)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=i.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(l=g,g=h,h=l);var y=tr(i,h),b=tr(i,g);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=i;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i<d.length;i++){var w=d[i];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}wf=!!md,hd=md=null}finally{pu=a,j.p=r,A.T=n}}e.current=t,Du=2}}function yc(){if(2===Du){Du=0;var e=Fu,t=Uu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=A.T,A.T=null;var r=j.p;j.p=2;var a=pu;pu|=4;try{As(e,t.alternate,t)}finally{pu=a,j.p=r,A.T=n}}Du=3}}function bc(){if(4===Du||3===Du){Du=0,ie();var e=Fu,t=Uu,n=Iu,r=Hu;10256&t.subtreeFlags||10256&t.flags?Du=5:(Du=0,Uu=Fu=null,vc(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Mu=null),De(n),t=t.stateNode,be&&"function"==typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=A.T,a=j.p,j.p=2,A.T=null;try{for(var o=e.onRecoverableError,l=0;l<r.length;l++){var i=r[l];o(i.value,{componentStack:i.stack})}}finally{A.T=t,j.p=a}}3&Iu&&wc(),jc(e),a=e.pendingLanes,261930&n&&42&a?e===qu?Wu++:(Wu=0,qu=e):Wu=0,Mc(0,!1)}}function vc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ia(t))}function wc(){return gc(),yc(),bc(),kc()}function kc(){if(5!==Du)return!1;var e=Fu,t=$u;$u=0;var n=De(Iu),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=Bu,Bu=null;var o=Fu,i=Iu;if(Du=0,Uu=Fu=null,Iu=0,6&pu)throw Error(l(331));var s=pu;if(pu|=4,su(o.current),eu(o,o.current,i,n),pu=s,Mc(0,!1),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ye,o)}catch(e){}return!0}finally{j.p=a,A.T=r,vc(e,t)}}function Sc(e,t,n){t=Kr(n,t),null!==(e=wo(e,t=Ri(e.stateNode,t,2),2))&&(ze(e,2),jc(e))}function xc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Mu||!Mu.has(r))){e=Kr(n,e),null!==(r=wo(t,n=Pi(2),2))&&(Oi(n,r,t,e),ze(r,2),jc(r));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(ku=!0,a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mu===e&&(gu&n)===n&&(4===xu||3===xu&&(62914560&gu)===gu&&300>se()-zu?!(2&pu)&&tc(e,0):_u|=n,Nu===gu&&(Nu=0)),jc(e)}function _c(e,t){0===t&&(t=Pe()),null!==(e=Lr(e,t))&&(ze(e,t),jc(e))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),_c(e,n)}var Rc=null,Pc=null,Oc=!1,zc=!1,Lc=!1,Ac=0;function jc(e){e!==Pc&&null===e.next&&(null===Pc?Rc=Pc=e:Pc=Pc.next=e),zc=!0,Oc||(Oc=!0,Ed(function(){6&pu?ae(ce,Dc):Fc()}))}function Mc(e,t){if(!Lc&&zc){Lc=!0;do{for(var n=!1,r=Rc;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var l=r.suspendedLanes,i=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=a&~(l&~i))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,$c(r,o))}else o=gu,!(3&(o=Te(r,r===mu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,$c(r,o));r=r.next}}while(n);Lc=!1}}function Dc(){Fc()}function Fc(){zc=Oc=!1;var e,t=0;0!==Ac&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Ac);for(var n=se(),r=null,a=Rc;null!==a;){var o=a.next,l=Uc(a,n);0===l?(a.next=null,null===r?Rc=o:r.next=o,null===o&&(Pc=r)):(r=a,(0!==t||3&l)&&(zc=!0)),a=o}0!==Du&&5!==Du||Mc(t,!1),0!==Ac&&(Ac=0)}function Uc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var l=31-we(o),i=1<<l,s=a[l];-1===s?0!==(i&n)&&0===(i&r)||(a[l]=Re(i,t)):s<=t&&(e.expiredLanes|=i),o&=~i}if(n=gu,n=Te(e,e===(t=mu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yu||9===yu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),De(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=me}return r=Ic.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function Ic(e,t){if(0!==Du&&5!==Du)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=Te(e,e===mu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yu(e,r,t),Uc(e,se()),null!=e.callbackNode&&e.callbackNode===n?Ic.bind(null,e):null)}function $c(e,t){if(wc())return null;Yu(e,t,!0)}function Bc(){if(0===Ac){var e=Ha;0===e&&(e=xe,!(261888&(xe<<=1))&&(xe=256)),Ac=e}return Ac}function Hc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Ot(""+e)}function Wc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var qc=0;qc<Er.length;qc++){var Vc=Er[qc];Cr(Vc.toLowerCase(),"on"+(Vc[0].toUpperCase()+Vc.slice(1)))}Cr(gr,"onAnimationEnd"),Cr(yr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(vr,"onTransitionRun"),Cr(wr,"onTransitionStart"),Cr(kr,"onTransitionCancel"),Cr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qc));function Yc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],s=i.instance,u=i.currentTarget;if(i=i.listener,s!==o&&a.isPropagationStopped())break e;o=i,a.currentTarget=u;try{o(a)}catch(e){_r(e)}a.currentTarget=null,o=s}else for(l=0;l<r.length;l++){if(s=(i=r[l]).instance,u=i.currentTarget,i=i.listener,s!==o&&a.isPropagationStopped())break e;o=i,a.currentTarget=u;try{o(a)}catch(e){_r(e)}a.currentTarget=null,o=s}}}}function Gc(e,t){var n=t[We];void 0===n&&(n=t[We]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Jc]){e[Jc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Kc.has(t)||Xc(t,!1,e),Xc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Jc]||(t[Jc]=!0,Xc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Tf(t)){case 2:var a=kf;break;case 8:a=Sf;break;default:a=xf}n=a.bind(null,t,n,e),a=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function td(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var i=r.stateNode.containerInfo;if(i===a)break;if(4===l)for(l=r.return;null!==l;){var u=l.tag;if((3===u||4===u)&&l.stateNode.containerInfo===a)return;l=l.return}for(;null!==i;){if(null===(l=Ge(i)))return;if(5===(u=l.tag)||6===u||26===u||27===u){r=o=l;continue e}i=i.parentNode}}r=r.return}Ut(function(){var r=o,a=At(n),l=[];e:{var i=xr.get(e);if(void 0!==i){var u=nn,c=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":u=bn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=wn;break;case gr:case yr:case br:u=cn;break;case Sr:u=kn;break;case"scroll":case"scrollend":u=an;break;case"wheel":u=Sn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=vn;break;case"toggle":case"beforetoggle":u=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==i?i+"Capture":null:i;d=[];for(var m,h=r;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===p||null!=(g=It(h,p))&&d.push(nd(h,g,m)),f)break;h=h.return}0<d.length&&(i=new u(i,c,null,n,a),l.push({event:i,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===Lt||!(c=n.relatedTarget||n.fromElement)||!Ge(c)&&!c[He])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ge(c):null)&&(f=s(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=ln,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=vn,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?i:Je(u),m=null==c?i:Je(c),(i=new d(g,h+"leave",u,n,a)).target=f,i.relatedTarget=m,g=null,Ge(a)===r&&((d=new d(p,h+"enter",c,n,a)).target=m,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=ad,h=c,m=0,g=p=u;g;g=d(g))m++;g=0;for(var y=h;y;y=d(y))g++;for(;0<m-g;)p=d(p),m--;for(;0<g-m;)h=d(h),g--;for(;m--;){if(p===h||null!==h&&p===h.alternate){d=p;break e}p=d(p),h=d(h)}d=null}else d=null;null!==u&&od(l,i,u,d,!1),null!==c&&null!==f&&od(l,f,c,d,!0)}if("select"===(u=(i=r?Je(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var b=$n;else if(jn(i))if(Bn)b=Xn;else{b=Yn;var v=Kn}else!(u=i.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==i.type&&"radio"!==i.type?r&&Nt(r.elementType)&&(b=$n):b=Gn;switch(b&&(b=b(e,r))?Mn(l,b,n,a):(v&&v(e,i,r),"focusout"===e&&r&&"number"===i.type&&null!=r.memoizedProps.value&&wt(i,"number",i.value)),v=r?Je(r):window,e){case"focusin":(jn(v)||"true"===v.contentEditable)&&(lr=v,ir=r,sr=null);break;case"focusout":sr=ir=lr=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(l,n,a);break;case"selectionchange":if(or)break;case"keydown":case"keyup":cr(l,n,a)}var w;if(Cn)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ln?On(e,n)&&(k="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(k="onCompositionStart");k&&(Nn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==k?"onCompositionEnd"===k&&Ln&&(w=Qt()):(qt="value"in(Wt=a)?Wt.value:Wt.textContent,Ln=!0)),0<(v=rd(r,k)).length&&(k=new fn(k,e,null,n,a),l.push({event:k,listeners:v}),(w||null!==(w=zn(n)))&&(k.data=w))),(w=Tn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Cn&&On(e,t)?(e=Qt(),Vt=qt=Wt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(k=rd(r,"onBeforeInput")).length&&(v=new fn("onBeforeInput","beforeinput",null,n,a),l.push({event:v,listeners:k}),v.data=w),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=Hc((a[Be]||null).action),l=r.submitter;l&&null!==(t=(t=l[Be]||null)?Hc(t.formAction):l.getAttribute("formAction"))&&(o=t,l=null);var i=new nn("action","action",null,r,a);e.push({event:i,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Ac){var e=l?Wc(a,l):new FormData(a);ti(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(i.preventDefault(),e=l?Wc(a,l):new FormData(a),ti(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(l,e,r,n,a)}Yc(l,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=It(e,n))&&r.unshift(nd(e,a,o)),null!=(a=It(e,t))&&r.push(nd(e,a,o))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,r,a){for(var o=t._reactName,l=[];null!==n&&n!==r;){var i=n,s=i.alternate,u=i.stateNode;if(i=i.tag,null!==s&&s===r)break;5!==i&&26!==i&&27!==i||null===u||(s=u,a?null!=(u=It(n,o))&&l.unshift(nd(n,u,s)):a||null!=(u=It(n,o))&&l.push(nd(n,u,s))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var ld=/\r\n?/g,id=/\u0000|\uFFFD/g;function sd(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(id,"")}function ud(e,t){return t=sd(t),sd(e)===t}function cd(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Et(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Et(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":Tt(e,r,o);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&cd(e,t,"name",a.name,a,null),cd(e,t,"formEncType",a.formEncType,a,null),cd(e,t,"formMethod",a.formMethod,a,null),cd(e,t,"formTarget",a.formTarget,a,null)):(cd(e,t,"encType",a.encType,a,null),cd(e,t,"method",a.method,a,null),cd(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=zt);break;case"onScroll":null!=r&&Gc("scroll",e);break;case"onScrollEnd":null!=r&&Gc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Ot(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Gc("beforetoggle",e),Gc("toggle",e),st(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":st(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=Rt.get(n)||n,r)}}function dd(e,t,n,r,a,o){switch(n){case"style":Tt(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Et(e,r):("number"==typeof r||"bigint"==typeof r)&&Et(e,""+r);break;case"onScroll":null!=r&&Gc("scroll",e);break;case"onScrollEnd":null!=r&&Gc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Be]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):st(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gc("error",e),Gc("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:cd(e,t,r,i,n,null)}}return o&&cd(e,t,"srcSet",n.srcSet,n,null),void(a&&cd(e,t,"src",n.src,n,null));case"input":Gc("invalid",e);var s=r=i=o=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":o=d;break;case"type":i=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(l(137,t));break;default:cd(e,t,a,d,n,null)}}return void vt(e,r,s,u,c,i,o,!1);case"select":for(o in Gc("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(s=n[o]))switch(o){case"value":r=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:cd(e,t,o,s,n,null)}return t=r,n=i,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(i in Gc("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":a=s;break;case"defaultValue":o=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(l(91));break;default:cd(e,t,i,s,n,null)}return void xt(e,a,o,r);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(a=n[u])&&("selected"===u?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:cd(e,t,u,a,n,null));return;case"dialog":Gc("beforetoggle",e),Gc("toggle",e),Gc("cancel",e),Gc("close",e);break;case"iframe":case"object":Gc("load",e);break;case"video":case"audio":for(a=0;a<Qc.length;a++)Gc(Qc[a],e);break;case"image":Gc("error",e),Gc("load",e);break;case"details":Gc("toggle",e);break;case"embed":case"source":case"link":Gc("error",e),Gc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:cd(e,t,c,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(a=n[d])&&dd(e,t,d,a,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(a=n[s])&&cd(e,t,s,a,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,hd=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function yd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function vd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null,kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,xd="function"==typeof Promise?Promise:void 0,Ed="function"==typeof queueMicrotask?queueMicrotask:void 0!==xd?function(e){return xd.resolve(null).then(e).catch(Cd)}:kd;function Cd(e){setTimeout(function(){throw e})}function _d(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)||"/&"===n){if(0===r)return e.removeChild(a),void qf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var l=o.nextSibling,i=o.nodeName;o[Ke]||"SCRIPT"===i||"STYLE"===i||"LINK"===i&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=l}}else"body"===n&&Fd(e.ownerDocument.body);n=a}while(n);qf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Rd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Rd(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Pd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Od(e){return"$?"===e.data||"$~"===e.data}function zd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ad=null;function jd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Md(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Dd(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(l(452));return e;case"head":if(!(e=t.head))throw Error(l(453));return e;case"body":if(!(e=t.body))throw Error(l(454));return e;default:throw Error(l(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Ud=new Map,Id=new Set;function $d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=j.d;j.d={f:function(){var e=Bd.f(),t=Zu();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?ri(t):Bd.r(e)},D:function(e){Bd.D(e),Wd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Wd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=Hd;if(r&&e&&t){var a='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+yt(n.imageSizes)+'"]')):a+='[href="'+yt(e)+'"]';var o=a;switch(t){case"style":o=Vd(e);break;case"script":o=Yd(e)}Ud.has(o)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Qd(o))||"script"===t&&r.querySelector(Gd(o))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yd(e)}if(!Ud.has(o)&&(e=p({rel:"modulepreload",href:e},t),Ud.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Gd(o)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,a=Yd(e),o=r.get(a);o||((o=n.querySelector(Gd(a)))||(e=p({src:e,async:!0},t),(t=Ud.get(a))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){Bd.S(e,t,n);var r=Hd;if(r&&e){var a=Ze(r).hoistableStyles,o=Vd(e);t=t||"default";var l=a.get(o);if(!l){var i={loading:0,preload:null};if(l=r.querySelector(Qd(o)))i.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(o))&&Zd(e,n);var s=l=r.createElement("link");et(s),fd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){i.loading|=1}),s.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Jd(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:i},a.set(o,l)}}},M:function(e,t){Bd.M(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,a=Yd(e),o=r.get(a);o||((o=n.querySelector(Gd(a)))||(e=p({src:e,async:!0,type:"module"},t),(t=Ud.get(a))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Hd="undefined"==typeof document?null:document;function Wd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var a=yt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Id.has(a)||(Id.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function qd(e,t,n,r){var a,o,i,s,u=(u=V.current)?$d(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Vd(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Vd(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Qd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),c||(a=u,o=e,i=n,s=d.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?s.loading=1:(o=a.createElement("link"),s.preload=o,o.addEventListener("load",function(){return s.loading|=1}),o.addEventListener("error",function(){return s.loading|=2}),fd(o,"link",i),et(o),a.head.appendChild(o))))),t&&null===r)throw Error(l(528,""));return d}if(t&&null!==r)throw Error(l(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vd(e){return'href="'+yt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+yt(e)+'"]'}function Gd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",a),Jd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Vd(n.href);var o=e.querySelector(Qd(a));if(o)return t.state.loading|=4,t.instance=o,et(o),o;r=Kd(n),(a=Ud.get(a))&&Zd(r,a),et(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),fd(o,"link",r),t.state.loading|=4,Jd(o,n.precedence,e),t.instance=o;case"script":return o=Yd(n.src),(a=e.querySelector(Gd(o)))?(t.instance=a,et(a),a):(r=n,(a=Ud.get(o))&&ef(r=p({},n),a),et(a=(e=e.ownerDocument||e).createElement("script")),fd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(l(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jd(r,n.precedence,e));return t.instance}function Jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,l=0;l<r.length;l++){var i=r[l];if(i.dataset.precedence===t)o=i;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,a=tf=new Map;a.set(n,r)}else(r=(a=tf).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ke]||o[$e]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var l=o.getAttribute(t)||"";l=e+l;var i=r.get(l);i?i.push(o):r.set(l,[o])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function af(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var of=0;function lf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sf=new Map,t.forEach(cf,e),sf=null,lf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=sf.get(e);if(n)var r=n.get(null);else{n=new Map,sf.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];"LINK"!==l.nodeName&&"not all"===l.getAttribute("media")||(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}l=(a=t.instance).getAttribute("data-precedence"),(o=n.get(l)||r)===r&&n.set(null,a),n.set(l,a),this.count++,r=lf.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var df={$$typeof:k,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function ff(e,t,n,r,a,o,l,i,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function pf(e,t,n,r,a,o,l,i,s,u,c,d){return e=new ff(e,t,n,l,s,u,c,d,i),t=1,!0===o&&(t|=24),o=Fr(3,null,null,t),e.current=o,o.stateNode=e,(t=Ua()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},yo(o),e}function mf(e){return e?e=Mr:Mr}function hf(e,t,n,r,a,o){a=mf(a),null===r.context?r.context=a:r.pendingContext=a,(r=vo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=wo(e,r,t))&&(Ku(n,0,t),ko(n,e,t))}function gf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){gf(e,t),(e=e.alternate)&&gf(e,t)}function bf(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Ku(t,0,67108864),yf(e,67108864)}}function vf(e){if(13===e.tag||31===e.tag){var t=Vu(),n=Lr(e,t=Me(t));null!==n&&Ku(n,0,t),yf(e,t)}}var wf=!0;function kf(e,t,n,r){var a=A.T;A.T=null;var o=j.p;try{j.p=2,xf(e,t,n,r)}finally{j.p=o,A.T=a}}function Sf(e,t,n,r){var a=A.T;A.T=null;var o=j.p;try{j.p=8,xf(e,t,n,r)}finally{j.p=o,A.T=a}}function xf(e,t,n,r){if(wf){var a=Ef(r);if(null===a)td(e,t,r,Cf,n),Mf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rf=Df(Rf,e,t,n,r,a),!0;case"dragenter":return Pf=Df(Pf,e,t,n,r,a),!0;case"mouseover":return Of=Df(Of,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return zf.set(o,Df(zf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Lf.set(o,Df(Lf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<jf.indexOf(e)){for(;null!==a;){var o=Xe(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var l=_e(o.pendingLanes);if(0!==l){var i=o;for(i.pendingLanes|=2,i.entangledLanes|=2;l;){var s=1<<31-we(l);i.entanglements[1]|=s,l&=~s}jc(o),!(6&pu)&&(Au=se()+500,Mc(0,!1))}}break;case 31:case 13:null!==(i=Lr(o,2))&&Ku(i,0,2),Zu(),yf(o,2)}if(null===(o=Ef(r))&&td(e,t,r,Cf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else td(e,t,r,null,n)}}function Ef(e){return _f(e=At(e))}var Cf=null;function _f(e){if(Cf=null,null!==(e=Ge(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cf=e,null}function Tf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case me:return 268435456;default:return 32}default:return 32}}var Nf=!1,Rf=null,Pf=null,Of=null,zf=new Map,Lf=new Map,Af=[],jf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":Rf=null;break;case"dragenter":case"dragleave":Pf=null;break;case"mouseover":case"mouseout":Of=null;break;case"pointerover":case"pointerout":zf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function Df(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=Xe(t))&&bf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ff(e){var t=Ge(e.target);if(null!==t){var n=s(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void Ue(e.priority,function(){vf(n)})}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void Ue(e.priority,function(){vf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&bf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function If(e,t,n){Uf(e)&&n.delete(t)}function $f(){Nf=!1,null!==Rf&&Uf(Rf)&&(Rf=null),null!==Pf&&Uf(Pf)&&(Pf=null),null!==Of&&Uf(Of)&&(Of=null),zf.forEach(If),Lf.forEach(If)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,$f)))}var Hf=null;function Wf(e){Hf!==e&&(Hf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Hf===e&&(Hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===_f(r||n))continue;break}var o=Xe(n);null!==o&&(e.splice(t,3),t-=3,ti(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function qf(e){function t(t){return Bf(t,e)}null!==Rf&&Bf(Rf,e),null!==Pf&&Bf(Pf,e),null!==Of&&Bf(Of,e),zf.forEach(t),Lf.forEach(t);for(var n=0;n<Af.length;n++){var r=Af[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Af.length&&null===(n=Af[0]).blockedOn;)Ff(n),null===n.blockedOn&&Af.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],l=a[Be]||null;if("function"==typeof o)l||Wf(n);else if(l){var i=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Be]||null)i=l.formAction;else if(null!==_f(a))continue}else i=l.action;"function"==typeof i?n[r+1]=i:(n.splice(r,3),r-=3),Wf(n)}}}function Vf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==a&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==a&&(a(),a=null)}}}function Qf(e){this._internalRoot=e}function Kf(e){this._internalRoot=e}Kf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));hf(t.current,Vu(),e,t,null,null)},Kf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hf(e.current,2,null,e,null,null),Zu(),t[He]=null}},Kf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Af.length&&0!==t&&t<Af[n].priority;n++);Af.splice(n,0,e),0===n&&Ff(e)}};var Yf=a.version;if("19.2.4"!==Yf)throw Error(l(527,Yf,"19.2.4"));j.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw e=Object.keys(e).join(","),Error(l(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return d(a),e;if(o===r)return d(a),t;o=o.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,u=a.child;u;){if(u===n){i=!0,n=a,r=o;break}if(u===r){i=!0,r=a,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=a;break}if(u===r){i=!0,r=o,n=a;break}u=u.sibling}if(!i)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?f(e):null)?null:e.stateNode};var Gf={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xf.isDisabled&&Xf.supportsFiber)try{ye=Xf.inject(Gf),be=Xf}catch(e){}}t.createRoot=function(e,t){if(!i(e))throw Error(l(299));var n=!1,r="",a=Ei,o=Ci,s=_i;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,a,o,s,Vf),e[He]=t.current,Zc(e),new Qf(t)},t.hydrateRoot=function(e,t,n){if(!i(e))throw Error(l(299));var r=!1,a="",o=Ei,s=Ci,u=_i,c=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=pf(e,1,!0,t,0,r,a,c,o,s,u,Vf)).context=mf(null),n=t.current,(a=vo(r=Me(r=Vu()))).callback=null,wo(n,a,r),n=r,t.current.lanes=n,ze(t,n),jc(t),e[He]=t.current,Zc(e),new Kf(t)},t.version="19.2.4"},6221(e,t,n){var r=n(6540);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},i=Symbol.for("react.portal"),s=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(a(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=s.T,n=l.p;try{if(s.T=null,l.p=2,e)return e()}finally{s.T=t,l.p=n,l.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,l.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&l.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?l.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):"script"===n&&l.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);l.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&l.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);l.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else l.d.m(e)},t.requestFormReset=function(e){l.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},t.useFormStatus=function(){return s.H.useHostTransitionStatus()},t.version="19.2.4"},5338(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},961(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=a,t.jsxs=a},9869(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var k=w.prototype=new v;k.constructor=w,g(k,b.prototype),k.isPureReactComponent=!0;var S=Array.isArray;function x(){}var E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(e,t,r){var a=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(e,t,a,o,l){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s,u,c=!1;if(null===e)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return P((c=e._init)(e._payload),t,a,o,l)}}if(c)return l=l(e),c=""===o?"."+R(e,0):o,S(l)?(a="",null!=c&&(a=c.replace(N,"$&/")+"/"),P(l,t,a,"",function(e){return e})):null!=l&&(T(l)&&(s=l,u=a+(null==l.key||e&&e.key===l.key?"":(""+l.key).replace(N,"$&/")+"/")+c,l=_(s.type,u,s.props)),t.push(l)),1;c=0;var d,p=""===o?".":o+":";if(S(e))for(var h=0;h<e.length;h++)c+=P(o=e[h],t,a,i=p+R(o,h),l);else if("function"==typeof(h=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=m&&d[m]||d["@@iterator"])?d:null))for(e=h.call(e),h=0;!(o=e.next()).done;)c+=P(o=o.value,t,a,i=p+R(o,h++),l);else if("object"===i){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,a,o,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function O(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},A={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=A,t.Component=b,t.Fragment=a,t.Profiler=l,t.PureComponent=w,t.StrictMode=o,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key;if(null!=t)for(o in void 0!==t.key&&(a=""+t.key),t)!C.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var l=Array(o),i=0;i<o;i++)l[i]=arguments[i+2];r.children=l}return _(e.type,a,r)},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},t.createElement=function(e,t,n){var r,a={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var i=Array(l),s=0;s<l;s++)i[s]=arguments[s+2];a.children=i}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return _(e,o,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:z}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),a=E.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,L)}catch(e){L(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),E.T=t}},t.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},t.use=function(e){return E.H.use(e)},t.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)},t.useCallback=function(e,t){return E.H.useCallback(e,t)},t.useContext=function(e){return E.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return E.H.useEffect(e,t)},t.useEffectEvent=function(e){return E.H.useEffectEvent(e)},t.useId=function(){return E.H.useId()},t.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return E.H.useMemo(e,t)},t.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)},t.useRef=function(e){return E.H.useRef(e)},t.useState=function(e){return E.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return E.H.useTransition()},t.version="19.2.4"},6540(e,t,n){e.exports=n(9869)},4848(e,t,n){e.exports=n(9698)},4477(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,l=a>>>1;r<l;){var i=2*(r+1)-1,s=e[i],u=i+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[i]=n,r=i);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var u=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(g=!1,k(e),!h)if(null!==r(u))h=!0,E||(E=!0,x());else{var t=r(c);null!==t&&z(S,t.startTime-e)}}var x,E=!1,C=-1,_=5,T=-1;function N(){return!(!y&&t.unstable_now()-T<_)}function R(){if(y=!1,E){var e=t.unstable_now();T=e;var n=!0;try{e:{h=!1,g&&(g=!1,v(C),C=-1),m=!0;var o=p;try{t:{for(k(e),f=r(u);null!==f&&!(f.expirationTime>e&&N());){var l=f.callback;if("function"==typeof l){f.callback=null,p=f.priorityLevel;var i=l(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){f.callback=i,k(e),n=!0;break t}f===r(u)&&a(u),k(e)}else a(u);f=r(u)}if(null!==f)n=!0;else{var s=r(c);null!==s&&z(S,s.startTime-e),n=!1}}break e}finally{f=null,p=o,m=!1}n=void 0}}finally{n?x():E=!1}}}if("function"==typeof w)x=function(){w(R)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=R,x=function(){O.postMessage(null)}}else x=function(){b(R,0)};function z(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var l=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?l+o:l,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>l?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(v(C),C=-1):g=!0,z(S,o-l))):(e.sortIndex=i,n(u,e),h||m||(h=!0,E||(E=!0,x()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982(e,t,n){e.exports=n(4477)},7009(e,t,n){n.d(t,{Q:()=>yt});var r={};function a(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>me,navigator:()=>fe,origin:()=>he});const{toString:o}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:i,toStringTag:s}=Symbol,u=(c=Object.create(null),e=>{const t=o.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const d=e=>(e=e.toLowerCase(),t=>u(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,m=f("undefined");function h(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=d("ArrayBuffer"),y=f("string"),b=f("function"),v=f("number"),w=e=>null!==e&&"object"==typeof e,k=e=>{if("object"!==u(e))return!1;const t=l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||i in e)},S=d("Date"),x=d("File"),E=d("Blob"),C=d("FileList"),_=d("URLSearchParams"),[T,N,R,P]=["ReadableStream","Request","Response","Headers"].map(d);function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(h(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(r=0;r<o;r++)l=a[r],t.call(null,e[l],l,e)}}function z(e,t){if(h(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,A=e=>!m(e)&&e!==L,j=(M="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>M&&e instanceof M);var M;const D=d("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=d("RegExp"),I=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,(n,a)=>{let o;!1!==(o=t(n,a,e))&&(r[a]=o||n)}),Object.defineProperties(e,r)},$=d("AsyncFunction"),B=(H="function"==typeof setImmediate,W=b(L.postMessage),H?setImmediate:W?(q=`axios@${Math.random()}`,V=[],L.addEventListener("message",({source:e,data:t})=>{e===L&&t===q&&V.length&&V.shift()()},!1),e=>{V.push(e),L.postMessage(q,"*")}):e=>setTimeout(e));var H,W,q,V;const Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!=typeof process&&process.nextTick||B,K={isArray:p,isArrayBuffer:g,isBuffer:h,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=u(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:y,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:k,isEmptyObject:e=>{if(!w(e)||h(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:T,isRequest:N,isResponse:R,isHeaders:P,isUndefined:m,isDate:S,isFile:x,isBlob:E,isRegExp:U,isFunction:b,isStream:e=>w(e)&&b(e.pipe),isURLSearchParams:_,isTypedArray:j,isFileList:C,forEach:O,merge:function e(){const{caseless:t,skipUndefined:n}=A(this)&&this||{},r={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const l=t&&z(r,o)||o;k(r[l])&&k(a)?r[l]=e(r[l],a):k(a)?r[l]=e({},a):p(a)?r[l]=a.slice():n&&m(a)||(r[l]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],a);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(O(t,(t,r)=>{n&&b(t)?Object.defineProperty(e,r,{value:a(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,o,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[i]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:I,freezeMethods:e=>{I(e,(t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:L,isContextDefined:A,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[s]&&e[i])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(h(e))return e;if(!("toJSON"in e)){t[r]=e;const a=p(e)?[]:{};return O(e,(e,t)=>{const o=n(e,r+1);!m(o)&&(a[t]=o)}),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(w(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:B,asap:Q,isIterable:e=>null!=e&&b(e[i])};class Y extends Error{static from(e,t,n,r,a,o){const l=new Y(e.message,t||e.code,n,r,a);return l.cause=e,l.name=e.name,o&&Object.assign(l,o),l}constructor(e,t,n,r,a){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}}Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Y.ERR_BAD_OPTION="ERR_BAD_OPTION",Y.ECONNABORTED="ECONNABORTED",Y.ETIMEDOUT="ETIMEDOUT",Y.ERR_NETWORK="ERR_NETWORK",Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Y.ERR_DEPRECATED="ERR_DEPRECATED",Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Y.ERR_CANCELED="ERR_CANCELED",Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Y.ERR_INVALID_URL="ERR_INVALID_URL";const G=Y;function X(e){return K.isPlainObject(e)||K.isArray(e)}function J(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map(function(e,t){return e=J(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ee=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)}),te=function(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])})).metaTokens,a=n.visitor||u,o=n.dots,l=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!i&&K.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let i=e;if(e&&!a&&"object"==typeof e)if(K.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(X)}(e)||(K.isFileList(e)||K.endsWith(n,"[]"))&&(i=K.toArray(e)))return n=J(n),i.forEach(function(e,r){!K.isUndefined(e)&&null!==e&&t.append(!0===l?Z([n],r,o):null===l?n:n+"[]",s(e))}),!1;return!!X(e)||(t.append(Z(a,n,o),s(e)),!1)}const c=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:s,isVisitable:X});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!K.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),K.forEach(n,function(n,o){!0===(!(K.isUndefined(n)||null===n)&&a.call(t,n,K.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ae=re.prototype;ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const oe=re;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||le,a=K.isFunction(n)?{serialize:n}:n,o=a&&a.serialize;let l;if(l=o?o(t,a):K.isURLSearchParams(t)?t.toString():new oe(t,a).toString(r),l){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}const se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,function(t){null!==t&&e(t)})}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=de&&window.location.href||"http://localhost",ge={...r,...ce},ye=function(e){function t(e,n,r,a){let o=e[a++];if("__proto__"===o)return!0;const l=Number.isFinite(+o),i=a>=e.length;return o=!o&&K.isArray(r)?r.length:o,i?(K.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l):(r[o]&&K.isObject(r[o])||(r[o]=[]),t(e,n,r[o],a)&&K.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}(r[o])),!l)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,(e,r)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},be={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=K.isObject(e);if(a&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(ye(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,{visitor:function(e,t,n,r){return ge.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=K.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const ve=be,we=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ke=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:K.isArray(e)?e.map(xe):String(e)}function Ee(e,t,n,r,a){return K.isFunction(r)?r.call(this,t,n):(a&&(t=n),K.isString(t)?K.isString(r)?-1!==t.indexOf(r):K.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Se(t);if(!a)throw new Error("header name must be a non-empty string");const o=K.findKey(r,a);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=xe(e))}const o=(e,t)=>K.forEach(e,(e,n)=>a(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let n,r,a={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[r=t[0]]=(n=a[r])?K.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Se(e)){const n=K.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Se(e)){const n=K.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Se(e)){const a=K.findKey(n,e);!a||t&&!Ee(0,n[a],a,t)||(delete n[a],r=!0)}}return K.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Ee(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return K.forEach(this,(r,a)=>{const o=K.findKey(n,a);if(o)return t[o]=xe(r),void delete t[a];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();l!==a&&delete t[a],t[l]=xe(r),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&K.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ke]=this[ke]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Se(e);t[r]||(function(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(Ce);const _e=Ce;function Te(e,t){const n=this||ve,r=t||n,a=_e.from(r.headers);let o=r.data;return K.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}const Re=class extends G{constructor(e,t,n){super(null==e?"canceled":e,G.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Oe=(e,t,n=3)=>{let r=0;const a=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,o=0,l=0;return t=void 0!==t?t:1e3,function(i){const s=Date.now(),u=r[l];a||(a=s),n[o]=i,r[o]=s;let c=l,d=0;for(;c!==o;)d+=n[c++],c%=e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),s-a<t)return;const f=u&&s-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,a=0,o=1e3/t;const l=(t,o=Date.now())=>{a=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-a;i>=o?l(e,t):(n=e,r||(r=setTimeout(()=>{r=null,l(n)},o-i)))},()=>n&&l(n)]}(n=>{const o=n.loaded,l=n.lengthComputable?n.total:void 0,i=o-r,s=a(i);r=o,e({loaded:o,total:l,progress:l?o/l:void 0,bytes:i,rate:s||void 0,estimated:s&&l&&o<=l?(l-o)/s:void 0,event:n,lengthComputable:null!=l,[t?"download":"upload"]:!0})},n)},ze=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>K.asap(()=>e(...t)),Ae=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,je=ge.hasStandardBrowserEnv?{write(e,t,n,r,a,o,l){if("undefined"==typeof document)return;const i=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&i.push(`path=${r}`),K.isString(a)&&i.push(`domain=${a}`),!0===o&&i.push("secure"),K.isString(l)&&i.push(`SameSite=${l}`),document.cookie=i.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Me(e,t,n){let r=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const De=e=>e instanceof _e?{...e}:e;function Fe(e,t){t=t||{};const n={};function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function a(e,t,n,a){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function o(e,t){if(!K.isUndefined(t))return r(void 0,t)}function l(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,a,o){return o in t?r(n,a):o in e?r(void 0,n):void 0}const s={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i,headers:(e,t,n)=>a(De(e),De(t),0,!0)};return K.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=K.hasOwnProp(s,r)?s[r]:a,l=o(e[r],t[r],r);K.isUndefined(l)&&o!==i||(n[r]=l)}),n}const Ue=e=>{const t=Fe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:i}=t;if(t.headers=l=_e.from(l),t.url=ie(Me(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&l.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),K.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(K.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&l.set(e,n)})}if(ge.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(t)),r||!1!==r&&Ae(t.url))){const e=a&&o&&je.read(o);e&&l.set(a,e)}return t},Ie="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ue(e);let a=r.data;const o=_e.from(r.headers).normalize();let l,i,s,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=_e.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Pe(function(e){t(e),m()},function(e){n(e),m()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new G(r,G.ERR_NETWORK,e,h);a.event=t||null,n(a),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new G(t,a.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&K.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([s,c]=Oe(p,!0),h.addEventListener("progress",s)),f&&h.upload&&([i,u]=Oe(f),h.upload.addEventListener("progress",i),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(l=t=>{h&&(n(!t||t.type?new Re(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ge.protocols.indexOf(y)?n(new G("Unsupported protocol "+y+":",G.ERR_BAD_REQUEST,e)):h.send(a||null)})},$e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,l();const t=e instanceof Error?e:this.reason;r.abort(t instanceof G?t:new Re(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,a(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:i}=r;return i.unsubscribe=()=>K.asap(l),i}},Be=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},He=(e,t,n,r)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Be(n,t)}(e,t);let o,l=0,i=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return i(),void e.close();let o=r.byteLength;if(n){let e=l+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw i(e),e}},cancel:e=>(i(e),a.return())},{highWaterMark:2})},{isFunction:We}=K,qe=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:Ve,TextEncoder:Qe}=K.global,Ke=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ye=e=>{e=K.merge.call({skipUndefined:!0},qe,e);const{fetch:t,Request:n,Response:r}=e,a=t?We(t):"function"==typeof fetch,o=We(n),l=We(r);if(!a)return!1;const i=a&&We(Ve),s=a&&("function"==typeof Qe?(u=new Qe,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=o&&i&&Ke(()=>{let e=!1;const t=new n(ge.origin,{body:new Ve,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=l&&i&&Ke(()=>K.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:a,method:l,data:i,signal:u,cancelToken:p,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ue(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let S=$e([u,p&&p.toAbortSignal()],m),x=null;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let C;try{if(g&&c&&"get"!==l&&"head"!==l&&0!==(C=await(async(e,t)=>{const r=K.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new n(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await s(e)).byteLength:void 0)})(t):r})(b,i))){let e,t=new n(a,{method:"POST",body:i,duplex:"half"});if(K.isFormData(i)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=ze(C,Oe(Le(g)));i=He(t.body,65536,e,n)}}K.isString(v)||(v=v?"include":"omit");const t=o&&"credentials"in n.prototype,u={...w,signal:S,method:l.toUpperCase(),headers:b.normalize().toJSON(),body:i,duplex:"half",credentials:t?v:void 0};x=o&&new n(a,u);let p=await(o?k(x,w):k(a,u));const m=d&&("stream"===y||"response"===y);if(d&&(h||m&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=K.toFiniteNumber(p.headers.get("content-length")),[n,a]=h&&ze(t,Oe(Le(h),!0))||[];p=new r(He(p.body,65536,n,()=>{a&&a(),E&&E()}),e)}y=y||"text";let _=await f[K.findKey(f,y)||"text"](p,e);return!m&&E&&E(),await new Promise((t,n)=>{Pe(t,n,{data:_,headers:_e.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw G.from(t,t&&t.code,e,x,t&&t.response)}}},Ge=new Map,Xe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let l,i,s=o.length,u=Ge;for(;s--;)l=o[s],i=u.get(l),void 0===i&&u.set(l,i=s?new Map:Ye(t)),u=i;return i},Je=(Xe(),{http:null,xhr:Ie,fetch:{get:Xe}});K.forEach(Je,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ze=e=>`- ${e}`,et=e=>K.isFunction(e)||null===e||!1===e,tt=function(e,t){e=K.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let l=0;l<n;l++){let n;if(r=e[l],a=r,!et(r)&&(a=Je[(n=String(r)).toLowerCase()],void 0===a))throw new G(`Unknown adapter '${n}'`);if(a&&(K.isFunction(a)||(a=a.get(t))))break;o[n||"#"+l]=a}if(!a){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function rt(e){return nt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ve.adapter,e)(e).then(function(t){return nt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t},function(t){return Ne(t)||(nt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)})}const at="1.13.5",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const lt={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+at+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new G(r(a," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!lt[a]&&(lt[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const it={assertOptions:function(e,t,n){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const t=e[o],n=void 0===t||l(t,o,e);if(!0!==n)throw new G("option "+o+" must be "+n,G.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new G("Unknown option "+o,G.ERR_BAD_OPTION)}},validators:ot},st=it.validators;class ut{constructor(e){this.defaults=e||{},this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&it.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean),legacyInterceptorReqResOrdering:st.transitional(st.boolean)},!1),null!=r&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:it.assertOptions(r,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&K.merge(a.common,a[t.method]);a&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=_e.concat(o,a);const l=[];let i=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;i=i&&e.synchronous;const n=t.transitional||ue;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});const s=[];let u;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let c,d=0;if(!i){const e=[rt.bind(this),void 0];for(e.unshift(...l),e.push(...s),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=l.length;let f=t;for(;d<c;){const e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=rt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=s.length;d<c;)u=u.then(s[d++],s[d++]);return u}getUri(e){return ie(Me((e=Fe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(e){ut.prototype[e]=function(t,n){return this.request(Fe(n||{},{method:e,url:t,data:(n||{}).data}))}}),K.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,a){return this.request(Fe(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)});const ct=ut;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new Re(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}const ft=dt,pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});const mt=pt,ht=function e(t){const n=new ct(t),r=a(ct.prototype.request,n);return K.extend(r,ct.prototype,n,{allOwnKeys:!0}),K.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Fe(t,n))},r}(ve);ht.Axios=ct,ht.CanceledError=Re,ht.CancelToken=ft,ht.isCancel=Ne,ht.VERSION=at,ht.toFormData=te,ht.AxiosError=G,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Fe,ht.AxiosHeaders=_e,ht.formToJSON=e=>ye(K.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=mt,ht.default=ht;const gt=ht,yt=async e=>await gt({method:"POST",url:"admin-ajax.php",data:e,headers:{"content-type":"multipart/form-data"}})},3929(e,t,n){n.d(t,{cn:()=>ye});var r=n(4164);const a=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),o="-",l=[],i=e=>{const t=c(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return u(e);const n=e.split(o),r=""===n[0]&&n.length>1?1:0;return s(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],a=n[e];return t?a?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(a,t):t:a||l}return n[e]||l}}},s=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],a=n.nextPart.get(r);if(a){const n=s(e,t+1,a);if(n)return n}const l=n.validators;if(null===l)return;const i=0===t?e.join(o):e.slice(t).join(o),u=l.length;for(let e=0;e<u;e++){const t=l[e];if(t.validator(i))return t.classGroupId}},u=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),c=e=>{const{theme:t,classGroups:n}=e;return d(n,t)},d=(e,t)=>{const n=a();for(const r in e){const a=e[r];f(a,n,r,t)}return n},f=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const a=e[o];p(a,t,n,r)}},p=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?g(e,t,n,r):h(e,t,n,r):m(e,t,n)},m=(e,t,n)=>{(""===e?t:y(t,e)).classGroupId=n},h=(e,t,n,r)=>{b(e)?f(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},g=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){const[o,l]=a[e];f(l,y(t,o),n,r)}},y=(e,t)=>{let n=e;const r=t.split(o),l=r.length;for(let e=0;e<l;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=a(),n.nextPart.set(t,o)),n=o}return n},b=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,v=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(a(e,t),t):void 0},set(e,t){e in n?n[e]=t:a(e,t)}}},w=[],k=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),S=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,a=0,o=0;const l=e.length;for(let i=0;i<l;i++){const l=e[i];if(0===r&&0===a){if(":"===l){t.push(e.slice(o,i)),o=i+1;continue}if("/"===l){n=i;continue}}"["===l?r++:"]"===l?r--:"("===l?a++:")"===l&&a--}const i=0===t.length?e:e.slice(o);let s=i,u=!1;return i.endsWith("!")?(s=i.slice(0,-1),u=!0):i.startsWith("!")&&(s=i.slice(1),u=!0),k(t,u,s,n&&n>o?n-o:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):k(w,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},x=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let a=0;a<e.length;a++){const o=e[a],l="["===o[0],i=t.has(o);l||i?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(o)):r.push(o)}return r.length>0&&(r.sort(),n.push(...r)),n}},E=/\s+/,C=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C(e[r]))&&(n&&(n+=" "),n+=t);return n},_=[],T=e=>{const t=t=>t[e]||_;return t.isThemeGetter=!0,t},N=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,O=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>P.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),U=e=>e.endsWith("%")&&D(e.slice(0,-1)),I=e=>O.test(e),$=()=>!0,B=e=>z.test(e)&&!L.test(e),H=()=>!1,W=e=>A.test(e),q=e=>j.test(e),V=e=>!K(e)&&!ee(e),Q=e=>ie(e,de,H),K=e=>N.test(e),Y=e=>ie(e,fe,B),G=e=>ie(e,pe,D),X=e=>ie(e,ue,H),J=e=>ie(e,ce,q),Z=e=>ie(e,he,W),ee=e=>R.test(e),te=e=>se(e,fe),ne=e=>se(e,me),re=e=>se(e,ue),ae=e=>se(e,de),oe=e=>se(e,ce),le=e=>se(e,he,!0),ie=(e,t,n)=>{const r=N.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},se=(e,t,n=!1)=>{const r=R.exec(e);return!!r&&(r[1]?t(r[1]):n)},ue=e=>"position"===e||"percentage"===e,ce=e=>"image"===e||"url"===e,de=e=>"length"===e||"size"===e||"bg-size"===e,fe=e=>"length"===e,pe=e=>"number"===e,me=e=>"family-name"===e,he=e=>"shadow"===e,ge=((e,...t)=>{let n,r,a,o;const l=e=>{const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],i=e.trim().split(E);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){s=t+(s.length>0?" "+s:s);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){s=t+(s.length>0?" "+s:s);continue}if(h=r(f),!h){s=t+(s.length>0?" "+s:s);continue}m=!1}const g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),y=d?g+"!":g,b=y+h;if(l.indexOf(b)>-1)continue;l.push(b);const v=a(h,m);for(let e=0;e<v.length;++e){const t=v[e];l.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return a(e,o),o};return o=s=>{const u=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:v(e.cacheSize),parseClassName:S(e),sortModifiers:x(e),...i(e)}))(u),r=n.cache.get,a=n.cache.set,o=l,l(s)},(...e)=>o(((...e)=>{let t,n,r=0,a="";for(;r<e.length;)(t=e[r++])&&(n=C(t))&&(a&&(a+=" "),a+=n);return a})(...e))})((Symbol.toStringTag,()=>{const e=T("color"),t=T("font"),n=T("text"),r=T("font-weight"),a=T("tracking"),o=T("leading"),l=T("breakpoint"),i=T("container"),s=T("spacing"),u=T("radius"),c=T("shadow"),d=T("inset-shadow"),f=T("text-shadow"),p=T("drop-shadow"),m=T("blur"),h=T("perspective"),g=T("aspect"),y=T("ease"),b=T("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,K],w=()=>[ee,K,s],k=()=>[M,"full","auto",...w()],S=()=>[F,"none","subgrid",ee,K],x=()=>["auto",{span:["full",F,ee,K]},F,ee,K],E=()=>[F,"auto",ee,K],C=()=>["auto","min","max","fr",ee,K],_=()=>["auto",...w()],N=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],R=()=>[e,ee,K],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,X,{position:[ee,K]}],O=()=>["auto","cover","contain",ae,Q,{size:[ee,K]}],z=()=>[U,te,Y],L=()=>["","none","full",u,ee,K],A=()=>["",D,te,Y],j=()=>[D,U,re,X],B=()=>["","none",m,ee,K],H=()=>["none",D,ee,K],W=()=>["none",D,ee,K],q=()=>[D,ee,K],ie=()=>[M,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[I],breakpoint:[I],color:[$],container:[I],"drop-shadow":[I],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[I],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[I],shadow:[I],spacing:["px",D],text:[I],"text-shadow":[I],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,K,ee,g]}],container:["container"],columns:[{columns:[D,K,ee,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",ee,K]}],basis:[{basis:[M,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,M,"auto","initial","none",K]}],grow:[{grow:["",D,ee,K]}],shrink:[{shrink:["",D,ee,K]}],order:[{order:[F,"first","last","none",ee,K]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[i,"screen",...N()]}],"min-w":[{"min-w":[i,"screen","none",...N()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",n,te,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ee,G]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U,K]}],"font-family":[{font:[ne,K,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ee,K]}],"line-clamp":[{"line-clamp":[D,"none",ee,G]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",ee,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",ee,Y]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[D,"auto",ee,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,ee,K],radial:["",ee,K],conic:[F,ee,K]},oe,J]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[D,ee,K]}],"outline-w":[{outline:["",D,te,Y]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",c,le,Z]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,le,Z]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[D,Y]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",f,le,Z]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[D,ee,K]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ee,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,K]}],filter:[{filter:["","none",ee,K]}],blur:[{blur:B()}],brightness:[{brightness:[D,ee,K]}],contrast:[{contrast:[D,ee,K]}],"drop-shadow":[{"drop-shadow":["","none",p,le,Z]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",D,ee,K]}],"hue-rotate":[{"hue-rotate":[D,ee,K]}],invert:[{invert:["",D,ee,K]}],saturate:[{saturate:[D,ee,K]}],sepia:[{sepia:["",D,ee,K]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,K]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[D,ee,K]}],"backdrop-contrast":[{"backdrop-contrast":[D,ee,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,ee,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,ee,K]}],"backdrop-invert":[{"backdrop-invert":["",D,ee,K]}],"backdrop-opacity":[{"backdrop-opacity":[D,ee,K]}],"backdrop-saturate":[{"backdrop-saturate":[D,ee,K]}],"backdrop-sepia":[{"backdrop-sepia":["",D,ee,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",ee,K]}],ease:[{ease:["linear","initial",y,ee,K]}],delay:[{delay:[D,ee,K]}],animate:[{animate:["none",b,ee,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ee,K]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[ee,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,K]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[D,te,Y,G]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));function ye(...e){return ge((0,r.$)(e))}},9942(e,t,n){n.d(t,{Sz:()=>c,ov:()=>s,Ul:()=>u,sI:()=>d});var r=n(6540);const a=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(r,a,o);return o},o=e=>e,l=e=>{const t=(e=>e?a(e):a)(e),n=e=>function(e,t=o){const n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n}(t,e);return Object.assign(n,t),n},i=e=>e?l(e):l,s=i(e=>({labels:{},setLabels:t=>e({labels:t})})),u=i(e=>({localState:{},setLocalState:t=>e({localState:t})})),c={rtfl_api_key:"",rtfl_enable_direct_sync:"0",rtfl_enable_product_view:"0",rtfl_enable_background_order_sync:"no",rtfl_track_zero_value_carts:"no",rtfl_enable_dynamic_popup:"yes",rtfl_popup_js_loading_method:"cdn",rtfl_refresh_fragments_on_page_load:"0",rtfl_enable_gdpr_compliance:"0",rtfl_cart_capture_msg:"Keep me up-to-date on news and exclusive offers",rtfl_gdpr_display_position:"after_billing_email",rtfl_enable_sms_consent:"0",rtfl_sms_capture_msg:"Keep me up-to-date on news and exclusive offers",rtfl_sms_consent_display_position:"after_billing_phone",rtfl_enable_ip_filter:"0",rtfl_ignored_ip_addresses:"",rtfl_enable_debug_log:"0",rtfl_clear_cache:"1",rtfl_handle_storage_using:"woocommerce",rtfl_enable_afterpay_action:"no",rtfl_varnish_check:"no",rtfl_enable_contact_form_7:"0",rtfl_enable_elementor_form:"0",rtfl_enable_formidable_form:"0",rtfl_enable_ninja_form:"0",rtfl_enable_gravity_form:"0",rtfl_order_placed_statuses:"on-hold,pending",rtfl_order_paid_statuses:"processing",rtfl_order_fulfilled_statuses:"completed",rtfl_order_refunded_statuses:"refunded",rtfl_order_cancelled_statuses:"cancelled,expired"},d=i(e=>({settingsState:c,setSettingsState:t=>e({settingsState:t})}))},4164(e,t,n){function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function a(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}n.d(t,{$:()=>a})},5570(e,t,n){var r;n.d(t,{BV:()=>ye,C5:()=>pe,I9:()=>Ue,Zp:()=>J,g:()=>ee,qh:()=>he,sv:()=>me,zy:()=>Y});var a=n(6540),o="popstate";function l(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,s=a.history,f="POP",p=null,m=h();function h(){return(s.state||{idx:null}).idx}function g(){f="POP";let e=h(),t=null==e?null:e-m;m=e,p&&p({action:f,location:b.location,delta:t})}function y(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),i(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==m&&(m=0,s.replaceState({...s.state,idx:m},""));let b={get action(){return f},get location(){return e(a,s)},listen(e){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(o,g),p=e,()=>{a.removeEventListener(o,g),p=null}},createHref:e=>t(a,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f="PUSH";let r=c(b.location,e,t);n&&n(r,e),m=h()+1;let o=u(r,m),i=b.createHref(r);try{s.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(i)}l&&p&&p({action:f,location:b.location,delta:1})},replace:function(e,t){f="REPLACE";let r=c(b.location,e,t);n&&n(r,e),m=h();let a=u(r,m),o=b.createHref(r);s.replaceState(a,"",o),l&&p&&p({action:f,location:b.location,delta:0})},go:e=>s.go(e)};return b}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=f(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))},function(e,t){s("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function i(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?f(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function d({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n="/"){return function(e,t,n,r){let a=S(("string"==typeof t?f(t):t).pathname||"/",n);if(null==a)return null;let o=m(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let l=null;for(let e=0;null==l&&e<o.length;++e){let t=k(a);l=v(o[e],t,r)}return l}(e,t,n,!1)}function m(e,t=[],n=[],r="",a=!1){let o=(e,o,l=a,s)=>{let u={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;i(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let c=N([r,u.relativePath]),d=n.concat(u);e.children&&e.children.length>0&&(i(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),m(e.children,t,d,c,l)),(null!=e.path||e.index)&&t.push({path:c,score:b(c,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of h(e.path))o(e,t,!0,n);else o(e,t)}),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let l=h(r.join("/")),i=[];return i.push(...l.map(e=>""===e?o:[o,e].join("/"))),a&&i.push(...l),i.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var g=/^:[\w-]+$/,y=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(y)&&(r+=-2),t&&(r+=2),n.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),r)}function v(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let e=0;e<r.length;++e){let i=r[e],s=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c=w({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},u),d=i.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=w({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),l.push({params:a,pathname:N([o,c.pathname]),pathnameBase:R(N([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=N([o,c.pathnameBase]))}return l}function w(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){s("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=i[r]||"";l=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=i[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:l,pattern:e}}function k(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return s(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function E(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function C(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function T(e,t,n,r=!1){let a;"string"==typeof e?a=f(e):(a={...e},i(!a.pathname||!a.pathname.includes("?"),C("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),C("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),C("#","search","hash",a)));let o,l=""===e||""===a.pathname,s=l?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?f(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?E(r.substring(1),"/"):E(r,t)):n=t,{pathname:n,search:P(a),hash:O(o)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(l||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!c&&!d||(u.pathname+="/"),u}var N=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",z=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function A(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function M(e,t){let n=e;if("string"!=typeof n||!x.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(j)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=S(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){s(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var D=["POST","PUT","PATCH","DELETE"],F=(new Set(D),["GET",...D]);new Set(F),Symbol("ResetLoaderData");var U=a.createContext(null);U.displayName="DataRouter";var I=a.createContext(null);I.displayName="DataRouterState";var $=a.createContext(!1);var B=a.createContext({isTransitioning:!1});B.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var H=a.createContext(null);H.displayName="Navigation";var W=a.createContext(null);W.displayName="Location";var q=a.createContext({outlet:null,matches:[],isDataRoute:!1});q.displayName="Route";var V=a.createContext(null);V.displayName="RouteError";var Q="REACT_ROUTER_ERROR";function K(){return null!=a.useContext(W)}function Y(){return i(K(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(W).location}var G="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function X(e){a.useContext(H).static||a.useLayoutEffect(e)}function J(){let{isDataRoute:e}=a.useContext(q);return e?function(){let{router:e}=function(e){let t=a.useContext(U);return i(t,ue(e)),t}("useNavigate"),t=ce("useNavigate"),n=a.useRef(!1);return X(()=>{n.current=!0}),a.useCallback(async(r,a={})=>{s(n.current,G),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}():function(){i(K(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(U),{basename:t,navigator:n}=a.useContext(H),{matches:r}=a.useContext(q),{pathname:o}=Y(),l=JSON.stringify(_(r)),u=a.useRef(!1);return X(()=>{u.current=!0}),a.useCallback((r,a={})=>{if(s(u.current,G),!u.current)return;if("number"==typeof r)return void n.go(r);let i=T(r,JSON.parse(l),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:N([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,l,o,e])}()}var Z=a.createContext(null);function ee(){let{matches:e}=a.useContext(q),t=e[e.length-1];return t?t.params:{}}function te(e,{relative:t}={}){let{matches:n}=a.useContext(q),{pathname:r}=Y(),o=JSON.stringify(_(n));return a.useMemo(()=>T(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function ne(e,t,n,r,o){i(K(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=a.useContext(H),{matches:u}=a.useContext(q),c=u[u.length-1],d=c?c.params:{},m=c?c.pathname:"/",h=c?c.pathnameBase:"/",g=c&&c.route;{let e=g&&g.path||"";fe(m,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let y,b=Y();if(t){let e="string"==typeof t?f(t):t;i("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),y=e}else y=b;let v=y.pathname||"/",w=v;if("/"!==h){let e=h.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let k=p(e,{pathname:w});s(g||null!=k,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),s(null==k||void 0!==k[k.length-1].route.element||void 0!==k[k.length-1].route.Component||void 0!==k[k.length-1].route.lazy,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,l=n?.errors;if(null!=l){let e=o.findIndex(e=>e.route.id&&void 0!==l?.[e.route.id]);i(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,u=-1;if(n)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){s=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}let c=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:A(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,i)=>{let d,f=!1,p=null,m=null;n&&(d=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||ae,s&&(u<0&&0===i?(fe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):u===i&&(f=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,i+1)),g=()=>{let t;return t=d?p:f?m:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(se,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?a.createElement(oe,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):g()},null)}(k&&k.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:N([h,l.encodeLocation?l.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:N([h,l.encodeLocation?l.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),u,n,r,o);return t&&S?a.createElement(W.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function re(){let e=function(){let e=a.useContext(V),t=function(e){let t=a.useContext(I);return i(t,ue(e)),t}("useRouteError"),n=ce("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=L(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:l},"ErrorBoundary")," or"," ",a.createElement("code",{style:l},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}var ae=a.createElement(re,null),oe=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Q}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new z(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(q.Provider,{value:this.props.routeContext},a.createElement(V.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(ie,{error:e},t):t}};oe.contextType=$;var le=new WeakMap;function ie({children:e,error:t}){let{basename:n}=a.useContext(H);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Q}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=le.get(t);if(r)throw r;let o=M(e.location,n);if(j&&!le.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw le.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function se({routeContext:e,match:t,children:n}){let r=a.useContext(U);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(q.Provider,{value:e},n)}function ue(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ce(e){let t=function(e){let t=a.useContext(q);return i(t,ue(e)),t}(e),n=t.matches[t.matches.length-1];return i(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var de={};function fe(e,t,n){t||de[e]||(de[e]=!0,s(!1,n))}function pe({to:e,replace:t,state:n,relative:r}){i(K(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(H);s(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=a.useContext(q),{pathname:u}=Y(),c=J(),d=T(e,_(l),u,"path"===r),f=JSON.stringify(d);return a.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function me(e){return function(e){let t=a.useContext(q).outlet;return a.useMemo(()=>t&&a.createElement(Z.Provider,{value:e},t),[t,e])}(e.context)}function he(e){i(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ge({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:u}){i(!K(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=a.useMemo(()=>({basename:c,navigator:o,static:l,unstable_useTransitions:u,future:{}}),[c,o,l,u]);"string"==typeof n&&(n=f(n));let{pathname:p="/",search:m="",hash:h="",state:g=null,key:y="default"}=n,b=a.useMemo(()=>{let e=S(p,c);return null==e?null:{location:{pathname:e,search:m,hash:h,state:g,key:y},navigationType:r}},[c,p,m,h,g,y,r]);return s(null!=b,`<Router basename="${c}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(H.Provider,{value:d},a.createElement(W.Provider,{children:t,value:b}))}function ye({children:e,location:t}){return ne(be(e),t)}function be(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,be(e.props.children,o));i(e.type===he,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),i(!e.props.index||!e.props.children,"An index route cannot have child routes.");let l={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=be(e.props.children,o)),n.push(l)}),n}(r||(r=n.t(a,2))).useOptimistic,a.memo(function({routes:e,future:t,state:n,onError:r}){return ne(e,void 0,n,r,t)}),a.Component;var ve="get",we="application/x-www-form-urlencoded";function ke(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Se=null,xe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ee(e){return null==e||xe.has(e)?e:(s(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${we}"`),null)}function Ce(e,t){if(!1===e||null==e)throw new Error(t)}function _e(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Te(e,t,n,r,a,o){let l=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>l(e,t)||i(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(l(t,o)||i(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Ne(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function Re(){let e=a.useContext(U);return Ce(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Pe(){let e=a.useContext(I);return Ce(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Oe=a.createContext(void 0);function ze(){let e=a.useContext(Oe);return Ce(e,"You must render this element inside a <HydratedRouter> element"),e}function Le(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ae({page:e,...t}){let{router:n}=Re(),r=a.useMemo(()=>p(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?a.createElement(Me,{page:e,matches:r,...t}):null}function je(e){let{manifest:t,routeModules:n}=ze(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&(null==(o=a)||"string"!=typeof o.page)&&"script"===a.as&&a.href&&r.has(a.href))return e;var o;let l=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(l)||(n.add(l),e.push({key:l,link:a})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_e).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function Me({page:e,matches:t,...n}){let r=Y(),{future:o,manifest:l,routeModules:i}=ze(),{basename:s}=Re(),{loaderData:u,matches:c}=Pe(),d=a.useMemo(()=>Te(e,t,c,l,r,"data"),[e,t,c,l,r]),f=a.useMemo(()=>Te(e,t,c,l,r,"assets"),[e,t,c,l,r]),p=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=l.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in u&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=function(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===S(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,o.unstable_trailingSlashAwareDataRequests,u,r,l,d,t,e,i]),m=a.useMemo(()=>Ne(f,l),[f,l]),h=je(f);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}Oe.displayName="FrameworkContext";function De(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;var Fe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Fe&&(window.__reactRouterVersion="7.13.0")}catch(e){}function Ue({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=l({window:r,v5Compat:!0}));let i=o.current,[s,u]=a.useState({action:i.action,location:i.location}),c=a.useCallback(e=>{!1===n?u(e):a.startTransition(()=>u(e))},[n]);return a.useLayoutEffect(()=>i.listen(c),[i,c]),a.createElement(ge,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:l,state:s,target:u,to:c,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m,...h},g){let{basename:y,unstable_useTransitions:b}=a.useContext(H),v="string"==typeof c&&Ie.test(c),w=M(c,y),k=function(e,{relative:t}={}){i(K(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(H),{hash:o,pathname:l,search:s}=te(e,{relative:t}),u=l;return"/"!==n&&(u="/"===l?n:N([n,l])),r.createHref({pathname:u,search:s,hash:o})}(c=w.to,{relative:r}),[S,x,E]=function(e,t){let n=a.useContext(Oe),[r,o]=a.useState(!1),[l,i]=a.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},h=()=>{o(!1),i(!1)};return n?"intent"!==e?[l,p,{}]:[l,p,{onFocus:Le(s,m),onBlur:Le(u,h),onMouseEnter:Le(c,m),onMouseLeave:Le(d,h),onTouchStart:Le(f,m)}]:[!1,p,{}]}(n,h),C=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=J(),f=Y(),p=te(e,{relative:l});return a.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:d(f)===d(p),h=()=>c(e,{replace:t,state:r,preventScrollReset:o,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:s});u?a.startTransition(()=>h()):h()}},[f,c,p,n,r,t,e,o,l,i,s,u])}(c,{replace:l,state:s,target:u,preventScrollReset:f,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:b}),_=a.createElement("a",{...h,...E,href:w.absoluteURL||k,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||C(t)},ref:De(g,x),target:u,"data-discover":v||"render"!==t?void 0:"true"});return S&&!v?a.createElement(a.Fragment,null,_,a.createElement(Ae,{page:k})):_});function Be(e){let t=a.useContext(U);return i(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}$e.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:l,viewTransition:s,children:u,...c},d){let f=te(l,{relative:c.relative}),p=Y(),m=a.useContext(I),{navigator:h,basename:g}=a.useContext(H),y=null!=m&&function(e,{relative:t}={}){let n=a.useContext(B);i(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Be("useViewTransitionState"),o=te(e,{relative:t});if(!n.isTransitioning)return!1;let l=S(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=S(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=w(o.pathname,s)||null!=w(o.pathname,l)}(f)&&!0===s,b=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,v=p.pathname,k=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(v=v.toLowerCase(),k=k?k.toLowerCase():null,b=b.toLowerCase()),k&&g&&(k=S(k,g)||k);const x="/"!==b&&b.endsWith("/")?b.length-1:b.length;let E,C=v===b||!r&&v.startsWith(b)&&"/"===v.charAt(x),_=null!=k&&(k===b||!r&&k.startsWith(b)&&"/"===k.charAt(b.length)),T={isActive:C,isPending:_,isTransitioning:y},N=C?e:void 0;E="function"==typeof n?n(T):[n,C?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof o?o(T):o;return a.createElement($e,{...c,"aria-current":N,className:E,ref:d,style:R,to:l,viewTransition:s},"function"==typeof u?u(T):u)}).displayName="NavLink",a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:l,method:s=ve,action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h,...g},y)=>{let{unstable_useTransitions:b}=a.useContext(H),v=function(){let{router:e}=Be("useSubmit"),{basename:t}=a.useContext(H),n=ce("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:l,method:i,encType:s,formData:u,body:c}=function(e,t){let n,r,a,o,l;if(ke(i=e)&&"form"===i.tagName.toLowerCase()){let l=e.getAttribute("action");r=l?S(l,t):null,n=e.getAttribute("method")||ve,a=Ee(e.getAttribute("enctype"))||we,o=new FormData(e)}else if(function(e){return ke(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ke(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let l=e.form;if(null==l)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||l.getAttribute("action");if(r=i?S(i,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ve,a=Ee(e.getAttribute("formenctype"))||Ee(l.getAttribute("enctype"))||we,o=new FormData(l,e),!function(){if(null===Se)try{new FormData(document.createElement("form"),0),Se=!1}catch(e){Se=!0}return Se}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(ke(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ve,r=null,a=we,l=e}var i;return o&&"text/plain"===a&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++He)}__`;await r(e,n,a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||i,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(H),r=a.useContext(q);i(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),l={...te(e||".",{relative:t})},s=Y();if(null==e){l.search=s.search;let e=new URLSearchParams(l.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();l.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(l.pathname="/"===l.pathname?n:N([n,l.pathname])),d(l)}(u,{relative:f}),k="get"===s.toLowerCase()?"get":"post",x="string"==typeof u&&Ie.test(u);return a.createElement("form",{ref:y,method:k,action:w,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||s,u=()=>v(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:o,state:l,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h});b&&!1!==n?a.startTransition(()=>u()):u()},...g,"data-discover":x||"render"!==e?void 0:"true"})}).displayName="Form";var He=0},4721(e,t,n){n.d(t,{l$:()=>x,oR:()=>h});var r=n(6540),a=n(961);const o=Array(12).fill(0),l=({visible:e,className:t})=>r.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},r.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),i=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let f=1;const p=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:f++,o=this.toasts.find(e=>e.id===a),l=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:n}),{...t,...e,id:a,dismissible:l,title:n}):t):this.addToast({title:n,...r,dismissible:l,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const a=Promise.resolve(e instanceof Function?e():e);let o,l=void 0!==n;const i=a.then(async e=>{if(o=["resolve",e],r.isValidElement(e))l=!1,this.create({id:n,type:"default",message:e});else if(m(e)&&!e.ok){l=!1;const a="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){l=!1;const a="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){l=!1;const a="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){l=!1;const a="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||r.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{l&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||f++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},m=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,h=Object.assign((e,t)=>{const n=(null==t?void 0:t.id)||f++;return p.addToast({title:e,...t,id:n}),n},{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts,getToasts:()=>p.getActiveToasts()});function g(e){return void 0!==e.label}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const y=3,b=14;function v(...e){return e.filter(Boolean).join(" ")}const w=e=>{var t,n,a,o,f,p,m,h,y;const{invert:b,toast:w,unstyled:k,interacting:S,setHeights:x,visibleToasts:E,heights:C,index:_,toasts:T,expanded:N,removeToast:R,defaultRichColors:P,closeButton:O,style:z,cancelButtonStyle:L,actionButtonStyle:A,className:j="",descriptionClassName:M="",duration:D,position:F,gap:U,expandByDefault:I,classNames:$,icons:B,closeButtonAriaLabel:H="Close toast"}=e,[W,q]=r.useState(null),[V,Q]=r.useState(null),[K,Y]=r.useState(!1),[G,X]=r.useState(!1),[J,Z]=r.useState(!1),[ee,te]=r.useState(!1),[ne,re]=r.useState(!1),[ae,oe]=r.useState(0),[le,ie]=r.useState(0),se=r.useRef(w.duration||D||4e3),ue=r.useRef(null),ce=r.useRef(null),de=0===_,fe=_+1<=E,pe=w.type,me=!1!==w.dismissible,he=w.className||"",ge=w.descriptionClassName||"",ye=r.useMemo(()=>C.findIndex(e=>e.toastId===w.id)||0,[C,w.id]),be=r.useMemo(()=>{var e;return null!=(e=w.closeButton)?e:O},[w.closeButton,O]),ve=r.useMemo(()=>w.duration||D||4e3,[w.duration,D]),we=r.useRef(0),ke=r.useRef(0),Se=r.useRef(0),xe=r.useRef(null),[Ee,Ce]=F.split("-"),_e=r.useMemo(()=>C.reduce((e,t,n)=>n>=ye?e:e+t.height,0),[C,ye]),Te=(()=>{const[e,t]=r.useState(document.hidden);return r.useEffect(()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),Ne=w.invert||b,Re="loading"===pe;ke.current=r.useMemo(()=>ye*U+_e,[ye,_e]),r.useEffect(()=>{se.current=ve},[ve]),r.useEffect(()=>{Y(!0)},[]),r.useEffect(()=>{const e=ce.current;if(e){const t=e.getBoundingClientRect().height;return ie(t),x(e=>[{toastId:w.id,height:t,position:w.position},...e]),()=>x(e=>e.filter(e=>e.toastId!==w.id))}},[x,w.id]),r.useLayoutEffect(()=>{if(!K)return;const e=ce.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,ie(n),x(e=>e.find(e=>e.toastId===w.id)?e.map(e=>e.toastId===w.id?{...e,height:n}:e):[{toastId:w.id,height:n,position:w.position},...e])},[K,w.title,w.description,x,w.id,w.jsx,w.action,w.cancel]);const Pe=r.useCallback(()=>{X(!0),oe(ke.current),x(e=>e.filter(e=>e.toastId!==w.id)),setTimeout(()=>{R(w)},200)},[w,R,x,ke]);r.useEffect(()=>{if(w.promise&&"loading"===pe||w.duration===1/0||"loading"===w.type)return;let e;return N||S||Te?(()=>{if(Se.current<we.current){const e=(new Date).getTime()-we.current;se.current=se.current-e}Se.current=(new Date).getTime()})():se.current!==1/0&&(we.current=(new Date).getTime(),e=setTimeout(()=>{null==w.onAutoClose||w.onAutoClose.call(w,w),Pe()},se.current)),()=>clearTimeout(e)},[N,S,w,pe,Te,Pe]),r.useEffect(()=>{w.delete&&(Pe(),null==w.onDismiss||w.onDismiss.call(w,w))},[Pe,w.delete]);const Oe=w.icon||(null==B?void 0:B[pe])||(e=>{switch(e){case"success":return i;case"info":return u;case"warning":return s;case"error":return c;default:return null}})(pe);var ze,Le;return r.createElement("li",{tabIndex:0,ref:ce,className:v(j,he,null==$?void 0:$.toast,null==w||null==(t=w.classNames)?void 0:t.toast,null==$?void 0:$.default,null==$?void 0:$[pe],null==w||null==(n=w.classNames)?void 0:n[pe]),"data-sonner-toast":"","data-rich-colors":null!=(ze=w.richColors)?ze:P,"data-styled":!Boolean(w.jsx||w.unstyled||k),"data-mounted":K,"data-promise":Boolean(w.promise),"data-swiped":ne,"data-removed":G,"data-visible":fe,"data-y-position":Ee,"data-x-position":Ce,"data-index":_,"data-front":de,"data-swiping":J,"data-dismissible":me,"data-type":pe,"data-invert":Ne,"data-swipe-out":ee,"data-swipe-direction":V,"data-expanded":Boolean(N||I&&K),"data-testid":w.testId,style:{"--index":_,"--toasts-before":_,"--z-index":T.length-_,"--offset":`${G?ae:ke.current}px`,"--initial-height":I?"auto":`${le}px`,...z,...w.style},onDragEnd:()=>{Z(!1),q(null),xe.current=null},onPointerDown:e=>{2!==e.button&&!Re&&me&&(ue.current=new Date,oe(ke.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),xe.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ee||!me)return;xe.current=null;const r=Number((null==(e=ce.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=ce.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=ue.current)?void 0:n.getTime()),l="x"===W?r:a,i=Math.abs(l)/o;if(Math.abs(l)>=45||i>.11)return oe(ke.current),null==w.onDismiss||w.onDismiss.call(w,w),Q("x"===W?r>0?"right":"left":a>0?"down":"up"),Pe(),void te(!0);var s,u;null==(s=ce.current)||s.style.setProperty("--swipe-amount-x","0px"),null==(u=ce.current)||u.style.setProperty("--swipe-amount-y","0px"),re(!1),Z(!1),q(null)},onPointerMove:t=>{var n,r,a;if(!xe.current||!me)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const o=t.clientY-xe.current.y,l=t.clientX-xe.current.x;var i;const s=null!=(i=e.swipeDirections)?i:function(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(F);!W&&(Math.abs(l)>1||Math.abs(o)>1)&&q(Math.abs(l)>Math.abs(o)?"x":"y");let u={x:0,y:0};const c=e=>1/(1.5+Math.abs(e)/20);if("y"===W){if(s.includes("top")||s.includes("bottom"))if(s.includes("top")&&o<0||s.includes("bottom")&&o>0)u.y=o;else{const e=o*c(o);u.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===W&&(s.includes("left")||s.includes("right")))if(s.includes("left")&&l<0||s.includes("right")&&l>0)u.x=l;else{const e=l*c(l);u.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&re(!0),null==(r=ce.current)||r.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(a=ce.current)||a.style.setProperty("--swipe-amount-y",`${u.y}px`)}},be&&!w.jsx&&"loading"!==pe?r.createElement("button",{"aria-label":H,"data-disabled":Re,"data-close-button":!0,onClick:Re||!me?()=>{}:()=>{Pe(),null==w.onDismiss||w.onDismiss.call(w,w)},className:v(null==$?void 0:$.closeButton,null==w||null==(a=w.classNames)?void 0:a.closeButton)},null!=(Le=null==B?void 0:B.close)?Le:d):null,(pe||w.icon||w.promise)&&null!==w.icon&&(null!==(null==B?void 0:B[pe])||w.icon)?r.createElement("div",{"data-icon":"",className:v(null==$?void 0:$.icon,null==w||null==(o=w.classNames)?void 0:o.icon)},w.promise||"loading"===w.type&&!w.icon?w.icon||function(){var e,t;return(null==B?void 0:B.loading)?r.createElement("div",{className:v(null==$?void 0:$.loader,null==w||null==(t=w.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===pe},B.loading):r.createElement(l,{className:v(null==$?void 0:$.loader,null==w||null==(e=w.classNames)?void 0:e.loader),visible:"loading"===pe})}():null,"loading"!==w.type?Oe:null):null,r.createElement("div",{"data-content":"",className:v(null==$?void 0:$.content,null==w||null==(f=w.classNames)?void 0:f.content)},r.createElement("div",{"data-title":"",className:v(null==$?void 0:$.title,null==w||null==(p=w.classNames)?void 0:p.title)},w.jsx?w.jsx:"function"==typeof w.title?w.title():w.title),w.description?r.createElement("div",{"data-description":"",className:v(M,ge,null==$?void 0:$.description,null==w||null==(m=w.classNames)?void 0:m.description)},"function"==typeof w.description?w.description():w.description):null),r.isValidElement(w.cancel)?w.cancel:w.cancel&&g(w.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||L,onClick:e=>{g(w.cancel)&&me&&(null==w.cancel.onClick||w.cancel.onClick.call(w.cancel,e),Pe())},className:v(null==$?void 0:$.cancelButton,null==w||null==(h=w.classNames)?void 0:h.cancelButton)},w.cancel.label):null,r.isValidElement(w.action)?w.action:w.action&&g(w.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||A,onClick:e=>{g(w.action)&&(null==w.action.onClick||w.action.onClick.call(w.action,e),e.defaultPrevented||Pe())},className:v(null==$?void 0:$.actionButton,null==w||null==(y=w.classNames)?void 0:y.actionButton)},w.action.label):null)};function k(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function S(e,t){const n={};return[e,t].forEach((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",o=r?"16px":"24px";function l(e){["top","right","bottom","left"].forEach(t=>{n[`${a}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?l(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${a}-${t}`]=o:n[`${a}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):l(o)}),n}const x=r.forwardRef(function(e,t){const{id:n,invert:o,position:l="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:u,className:c,offset:d,mobileOffset:f,theme:m="light",richColors:h,duration:g,style:v,visibleToasts:x=y,toastOptions:E,dir:C=k(),gap:_=b,icons:T,containerAriaLabel:N="Notifications"}=e,[R,P]=r.useState([]),O=r.useMemo(()=>n?R.filter(e=>e.toasterId===n):R.filter(e=>!e.toasterId),[R,n]),z=r.useMemo(()=>Array.from(new Set([l].concat(O.filter(e=>e.position).map(e=>e.position)))),[O,l]),[L,A]=r.useState([]),[j,M]=r.useState(!1),[D,F]=r.useState(!1),[U,I]=r.useState("system"!==m?m:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=r.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=r.useRef(null),W=r.useRef(!1),q=r.useCallback(e=>{P(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||p.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return r.useEffect(()=>p.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{P(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{a.flushSync(()=>{P(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[R]),r.useEffect(()=>{if("system"!==m)return void I(m);if("system"===m&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{I(e?"dark":"light")})}catch(t){e.addListener(({matches:e})=>{try{I(e?"dark":"light")}catch(e){console.error(e)}})}},[m]),r.useEffect(()=>{R.length<=1&&M(!1)},[R]),r.useEffect(()=>{const e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&(M(!0),null==(n=$.current)||n.focus()),"Escape"!==e.code||document.activeElement!==$.current&&!(null==(t=$.current)?void 0:t.contains(document.activeElement))||M(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{if($.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,W.current=!1)}},[$.current]),r.createElement("section",{ref:t,"aria-label":`${N} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((t,n)=>{var a;const[l,i]=t.split("-");return O.length?r.createElement("ol",{key:t,dir:"auto"===C?k():C,tabIndex:-1,ref:$,className:c,"data-sonner-toaster":!0,"data-sonner-theme":U,"data-y-position":l,"data-x-position":i,style:{"--front-toast-height":`${(null==(a=L[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${_}px`,...v,...S(d,f)},onBlur:e=>{W.current&&!e.currentTarget.contains(e.relatedTarget)&&(W.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||W.current||(W.current=!0,H.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{D||M(!1)},onDragEnd:()=>M(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||F(!0)},onPointerUp:()=>F(!1)},O.filter(e=>!e.position&&0===n||e.position===t).map((n,a)=>{var l,i;return r.createElement(w,{key:n.id,icons:T,index:a,toast:n,defaultRichColors:h,duration:null!=(l=null==E?void 0:E.duration)?l:g,className:null==E?void 0:E.className,descriptionClassName:null==E?void 0:E.descriptionClassName,invert:o,visibleToasts:x,closeButton:null!=(i=null==E?void 0:E.closeButton)?i:u,interacting:D,position:t,style:null==E?void 0:E.style,unstyled:null==E?void 0:E.unstyled,classNames:null==E?void 0:E.classNames,cancelButtonStyle:null==E?void 0:E.cancelButtonStyle,actionButtonStyle:null==E?void 0:E.actionButtonStyle,closeButtonAriaLabel:null==E?void 0:E.closeButtonAriaLabel,removeToast:q,toasts:O.filter(e=>e.position==n.position),heights:L.filter(e=>e.position==n.position),setHeights:A,expandByDefault:s,gap:_,expanded:j,swipeDirections:e.swipeDirections})})):null}))})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.m=a,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);l.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,l.d(a,o),a},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,n)=>(l.f[n](e,t),t),[])),l.u=e=>({91:"rtfl-use-sidecar",96:"rtfl-class-variance-authority",133:"layout",234:"rtfl-lucide-react",304:"rtfl-tslib",357:"rtfl-radix-ui",410:"rtfl-web-vitals",472:"settings",504:"rtfl-react-remove-scroll-bar",618:"rtfl-get-nonce",621:"rtfl-react-style-singleton",624:"rtfl-react-remove-scroll",769:"rtfl-floating-ui",808:"rtfl-aria-hidden",947:"rtfl-use-callback-ref"}[e]+".chunk.js"),l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="rtfl-admin-ui:",l.l=(e,t,a,o)=>{if(n[e])n[e].push(t);else{var i,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+a){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",r+a),i.src=e),n[e]=[t];var f=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{var e={792:0};l.f.j=(t,n)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var o=l.p+l.u(t),i=new Error;l.l(o,n=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,r[1](i)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,i,s]=n,u=0;if(o.some(t=>0!==e[t])){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);s&&s(l)}for(t&&t(n);u<o.length;u++)a=o[u],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkrtfl_admin_ui=self.webpackChunkrtfl_admin_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),l.nc=void 0;var i=l(4848),s=l(6540),u=l(5338),c=l(5570),d=l(9407);const f=(0,d.A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);var p=l(8723);const m=(0,d.A)("loader-pinwheel",[["path",{d:"M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0",key:"1lzz15"}],["path",{d:"M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6",key:"1gnrpi"}],["path",{d:"M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6",key:"u9yy5q"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var h=l(3929);const g=({className:e,...t})=>(0,i.jsx)(f,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),y=({className:e,...t})=>(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),b=({className:e,...t})=>(0,i.jsx)(m,{className:(0,h.cn)("rtfl-animate-spin",e),...t}),v=({className:e,size:t=24,...n})=>(0,i.jsxs)("div",{className:"rtfl-relative",style:{width:t,height:t},children:[(0,i.jsx)("div",{className:"rtfl-absolute rtfl-inset-0 rtfl-rotate-180",children:(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-animate-spin",e,"rtfl-text-foreground rtfl-opacity-20"),size:t,...n})}),(0,i.jsx)(p.A,{className:(0,h.cn)("rtfl-relative rtfl-animate-spin",e),size:t,...n})]}),w=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("circle",{cx:"4",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"0;ellipsis3.end+0.25s",calcMode:"spline",dur:"0.6s",id:"ellipsis1",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})}),(0,i.jsx)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"ellipsis1.begin+0.1s",calcMode:"spline",dur:"0.6s",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})}),(0,i.jsx)("circle",{cx:"20",cy:"12",fill:"currentColor",r:"2",children:(0,i.jsx)("animate",{attributeName:"cy",begin:"ellipsis1.begin+0.2s",calcMode:"spline",dur:"0.6s",id:"ellipsis3",keySplines:".33,.66,.66,1;.33,0,.66,.33",values:"12;6;12"})})]}),k=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,stroke:"currentColor",viewBox:"0 0 44 44",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsxs)("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2",children:[(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"0s",calcMode:"spline",dur:"1.8s",keySplines:"0.165, 0.84, 0.44, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 20"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"0s",calcMode:"spline",dur:"1.8s",keySplines:"0.3, 0.61, 0.355, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 0"})]}),(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"-0.9s",calcMode:"spline",dur:"1.8s",keySplines:"0.165, 0.84, 0.44, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 20"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"-0.9s",calcMode:"spline",dur:"1.8s",keySplines:"0.3, 0.61, 0.355, 1",keyTimes:"0; 1",repeatCount:"indefinite",values:"1; 0"})]})]})]}),S=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("style",{children:"\n      .spinner-bar {\n        animation: spinner-bars-animation .8s linear infinite;\n        animation-delay: -.8s;\n      }\n      .spinner-bars-2 {\n        animation-delay: -.65s;\n      }\n      .spinner-bars-3 {\n        animation-delay: -0.5s;\n      }\n      @keyframes spinner-bars-animation {\n        0% {\n          y: 1px;\n          height: 22px;\n        }\n        93.75% {\n          y: 5px;\n          height: 14px;\n          opacity: 0.2;\n        }\n      }\n    "}),(0,i.jsx)("rect",{className:"spinner-bar",fill:"currentColor",height:"22",width:"6",x:"1",y:"1"}),(0,i.jsx)("rect",{className:"spinner-bar spinner-bars-2",fill:"currentColor",height:"22",width:"6",x:"9",y:"1"}),(0,i.jsx)("rect",{className:"spinner-bar spinner-bars-3",fill:"currentColor",height:"22",width:"6",x:"17",y:"1"})]}),x=({size:e=24,...t})=>(0,i.jsxs)("svg",{height:e,preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100",width:e,xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,i.jsx)("title",{children:"Loading..."}),(0,i.jsx)("path",{d:"M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z",fill:"none",stroke:"currentColor",strokeDasharray:"205.271142578125 51.317785644531256",strokeLinecap:"round",strokeWidth:"10",style:{transform:"scale(0.8)",transformOrigin:"50px 50px"},children:(0,i.jsx)("animate",{attributeName:"stroke-dashoffset",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;256.58892822265625"})})]}),E=({variant:e,...t})=>{switch(e){case"circle":return(0,i.jsx)(y,{...t});case"pinwheel":return(0,i.jsx)(b,{...t});case"circle-filled":return(0,i.jsx)(v,{...t});case"ellipsis":return(0,i.jsx)(w,{...t});case"ring":return(0,i.jsx)(k,{...t});case"bars":return(0,i.jsx)(S,{...t});case"infinite":return(0,i.jsx)(x,{...t});default:return(0,i.jsx)(g,{...t})}};var C=l(4721),_=l(7009),T=l(9942);const N=(0,s.lazy)(()=>Promise.all([l.e(234),l.e(357),l.e(624),l.e(769),l.e(621),l.e(504),l.e(947),l.e(91),l.e(304),l.e(96),l.e(618),l.e(808),l.e(472)]).then(l.bind(l,1249))),R=(0,s.lazy)(()=>Promise.all([l.e(234),l.e(133)]).then(l.bind(l,542)));var P;u.createRoot(document.getElementById("rtfl-main")).render((0,i.jsx)(s.StrictMode,{children:(0,i.jsx)(()=>{const[e,t]=(0,s.useState)(!0),{labels:n,setLabels:r}=(0,T.ov)(),{localState:a,setLocalState:o}=(0,T.Ul)();let l=!1;return(0,s.useEffect)(()=>{l||(l=!0,(async()=>{try{const e={action:"retainful_integration",method:"get_local_data"},n=await(0,_.Q)(e);o(n.data.data.nonce),(async e=>{t(!0);let n={action:"retainful_integration",method:"get_label_data",nonce:e},a=await(0,_.Q)(n);r(a?.data?.data),t(!1)})(n.data.data.nonce)}catch(e){console.error("Failed to fetch nonce:",e)}})())},[]),e?(0,i.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-center rtfl-min-h-screen rtfl-bg-background",children:(0,i.jsx)(E,{size:20})}):(0,i.jsx)(s.StrictMode,{children:(0,i.jsx)(c.I9,{children:(0,i.jsxs)(s.Suspense,{fallback:(0,i.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-center rtfl-min-h-screen rtfl-bg-background",children:(0,i.jsx)(E,{size:20})}),children:[n?.common?.webhook_notice&&(0,i.jsx)("div",{className:"rtfl-bg-yellow-50 rtfl-border rtfl-border-yellow-200 rtfl-p-2 rtfl-rounded",children:(0,i.jsx)("p",{className:"rtfl-text-xs rtfl-text-yellow-800",children:n.common.webhook_notice})}),(0,i.jsxs)(c.BV,{children:[(0,i.jsxs)(c.qh,{path:"/",element:(0,i.jsx)(R,{}),children:[(0,i.jsx)(c.qh,{index:!0,element:(0,i.jsx)(N,{})}),(0,i.jsx)(c.qh,{path:"integration/:integrationKey",element:(0,i.jsx)(N,{})})]}),(0,i.jsx)(c.qh,{path:"*",element:(0,i.jsx)(c.C5,{to:"/",replace:!0})})]}),(0,i.jsx)(C.l$,{position:"top-right"})]})})})},{})})),P&&P instanceof Function&&l.e(410).then(l.bind(l,364)).then(({getCLS:e,getFID:t,getFCP:n,getLCP:r,getTTFB:a})=>{e(P),t(P),n(P),r(P),a(P)})})();
  • retainful/trunk/assets/admin/dist/main.css

    r3655829 r3705113  
    781781  width: 8rem;
    782782}
    783 .rtfl-w-36 {
    784   width: 9rem;
    785 }
    786783.rtfl-w-4 {
    787784  width: 1rem;
    … …  
    13581355  --tw-text-opacity: 1;
    13591356  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
    1360 }
    1361 .rtfl-text-red-600 {
    1362   --tw-text-opacity: 1;
    1363   color: rgb(220 38 38 / var(--tw-text-opacity, 1));
    13641357}
    13651358.rtfl-text-retainful {
    … …  
    16281621  --tw-ring-opacity: 1;
    16291622  --tw-ring-color: rgb(36 86 204 / var(--tw-ring-opacity, 1));
    1630 }
    1631 .focus-visible\:rtfl-ring-red-500:focus-visible {
    1632   --tw-ring-opacity: 1;
    1633   --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));
    16341623}
    16351624.focus-visible\:rtfl-ring-ring:focus-visible {
  • retainful/trunk/assets/admin/dist/settings.chunk.js

    r3655829 r3705113  
    1 "use strict";(self.webpackChunkrtfl_admin_ui=self.webpackChunkrtfl_admin_ui||[]).push([[472],{1249(e,t,r){r.r(t),r.d(t,{default:()=>fe});var l=r(4848),s=r(6540),a=r(5570),n=r(3362),i=r(2732),f=r(3929);const o=(0,i.F)("rtfl-inline-flex rtfl-items-center rtfl-justify-center rtfl-gap-2 rtfl-whitespace-nowrap rtfl-rounded-md rtfl-text-sm rtfl-font-medium rtfl-transition-all rtfl-disabled:pointer-events-none rtfl-disabled:opacity-50 rtfl-[&_svg]:pointer-events-none rtfl-[&_svg:not([class*=size-])]:size-4 rtfl-shrink-0 rtfl-[&_svg]:shrink-0 rtfl-outline-none rtfl-focus-visible:border-ring rtfl-focus-visible:ring-ring/50 rtfl-focus-visible:ring-[3px] rtfl-aria-invalid:ring-destructive/20 rtfl-dark:aria-invalid:ring-destructive/40 rtfl-aria-invalid:border-destructive",{variants:{variant:{default:"rtfl-bg-primary rtfl-text-primary-foreground rtfl-hover:bg-primary/90",destructive:"rtfl-bg-destructive rtfl-text-white rtfl-hover:bg-destructive/90 rtfl-focus-visible:ring-destructive/20 rtfl-dark:focus-visible:ring-destructive/40 rtfl-dark:bg-destructive/60",outline:"rtfl-border rtfl-bg-background rtfl-shadow-xs rtfl-hover:bg-accent rtfl-hover:text-accent-foreground rtfl-dark:bg-input/30 rtfl-dark:border-input rtfl-dark:hover:bg-input/50",secondary:"rtfl-bg-secondary rtfl-text-secondary-foreground rtfl-hover:bg-secondary/80",ghost:"rtfl-hover:bg-accent rtfl-hover:text-accent-foreground rtfl-dark:hover:bg-accent/50",link:"rtfl-text-primary rtfl-underline-offset-4 rtfl-hover:underline"},size:{default:"rtfl-h-9 rtfl-px-4 rtfl-py-2 rtfl-has-[>svg]:px-3",sm:"rtfl-h-8 rtfl-rounded-md rtfl-gap-1.5 rtfl-px-3 rtfl-has-[>svg]:px-2.5",lg:"rtfl-h-10 rtfl-rounded-md rtfl-px-6 rtfl-has-[>svg]:px-4",icon:"rtfl-size-9","icon-sm":"rtfl-size-8","icon-lg":"rtfl-size-10"}},defaultVariants:{variant:"default",size:"default"}});function c({className:e,variant:t,size:r,asChild:s=!1,...a}){const i=s?n.DX:"button";return(0,l.jsx)(i,{"data-slot":"button",className:(0,f.cn)(o({variant:t,size:r,className:e})),...a})}function d({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card",className:(0,f.cn)("rtfl-bg-card rtfl-text-card-foreground rtfl-flex rtfl-flex-col rtfl-gap-6 rtfl-rounded-xl rtfl-border rtfl-py-6 rtfl-shadow-sm",e),...t})}function m({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-header",className:(0,f.cn)("rtfl-@container/card-header rtfl-grid rtfl-auto-rows-min rtfl-grid-rows-[auto_auto] rtfl-items-start rtfl-gap-2 rtfl-px-6 rtfl-has-data-[slot=card-action]:grid-cols-[1fr_auto] rtfl-[.border-b]:pb-6",e),...t})}function g({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-title",className:(0,f.cn)("rtfl-leading-none rtfl-font-semibold",e),...t})}function u({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-description",className:(0,f.cn)("rtfl-text-muted-foreground rtfl-text-sm",e),...t})}function p({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-content",className:(0,f.cn)("rtfl-px-6",e),...t})}var h=r(7444);const x=(0,i.F)("rtfl-text-sm rtfl-font-medium rtfl-leading-none peer-disabled:rtfl-cursor-not-allowed peer-disabled:rtfl-opacity-70"),_=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(h.b,{ref:r,className:(0,f.cn)(x(),e),...t}));_.displayName=h.b.displayName;var b=r(9014);const j=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(b.bL,{className:(0,f.cn)("rtfl-peer rtfl-inline-flex rtfl-h-6 rtfl-w-11 rtfl-shrink-0 rtfl-cursor-pointer rtfl-items-center rtfl-rounded-full rtfl-border-2 rtfl-border-transparent rtfl-transition-colors focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-[#2456cc] focus-visible:rtfl-ring-offset-2 focus-visible:rtfl-ring-offset-background disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 data-[state=checked]:rtfl-bg-[#2456cc] data-[state=unchecked]:rtfl-bg-input",e),...t,ref:r,children:(0,l.jsx)(b.zi,{className:(0,f.cn)("rtfl-pointer-events-none rtfl-block rtfl-h-5 rtfl-w-5 rtfl-rounded-full rtfl-bg-background rtfl-shadow-lg rtfl-ring-0 rtfl-transition-transform data-[state=checked]:rtfl-translate-x-5 data-[state=unchecked]:rtfl-translate-x-0")})}));j.displayName=b.bL.displayName;const y=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)("textarea",{className:(0,f.cn)("rtfl-flex rtfl-min-h-[80px] rtfl-w-full rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-base rtfl-ring-offset-background placeholder:rtfl-text-muted-foreground focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-ring focus-visible:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 md:rtfl-text-sm",e),ref:r,...t}));y.displayName="Textarea";const v=s.forwardRef(({className:e,type:t,...r},s)=>(0,l.jsx)("input",{type:t,className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-base rtfl-ring-offset-background file:rtfl-border-0 file:rtfl-bg-transparent file:rtfl-text-sm file:rtfl-font-medium placeholder:rtfl-text-muted-foreground focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-ring focus-visible:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 md:rtfl-text-sm",e),ref:s,...r}));v.displayName="Input";const N=(0,i.F)("rtfl-inline-flex rtfl-items-center rtfl-justify-center rtfl-rounded-full rtfl-border rtfl-px-2 rtfl-py-0.5 rtfl-text-xs rtfl-font-medium rtfl-w-fit rtfl-whitespace-nowrap rtfl-shrink-0 rtfl-[&>svg]:size-3 rtfl-gap-1 rtfl-[&>svg]:pointer-events-none rtfl-focus-visible:border-ring rtfl-focus-visible:ring-ring/50 rtfl-focus-visible:ring-[3px] rtfl-aria-invalid:ring-destructive/20 rtfl-dark:aria-invalid:ring-destructive/40 rtfl-aria-invalid:border-destructive rtfl-transition-[color,box-shadow] rtfl-overflow-hidden",{variants:{variant:{default:"rtfl-border-transparent rtfl-bg-primary rtfl-text-primary-foreground rtfl-[a&]:hover:bg-primary/90",secondary:"rtfl-border-transparent rtfl-bg-secondary rtfl-text-secondary-foreground rtfl-[a&]:hover:bg-secondary/90",destructive:"rtfl-border-transparent rtfl-bg-destructive rtfl-text-white rtfl-[a&]:hover:bg-destructive/90 rtfl-focus-visible:ring-destructive/20 rtfl-dark:focus-visible:ring-destructive/40 rtfl-dark:bg-destructive/60",outline:"rtfl-text-foreground rtfl-[a&]:hover:bg-accent rtfl-[a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function w({className:e,variant:t,asChild:r=!1,...s}){const a=r?n.DX:"span";return(0,l.jsx)(a,{"data-slot":"badge",className:(0,f.cn)(N({variant:t}),e),...s})}var k=r(5267),C=r(5107),S=r(2102),E=r(5773);const A=k.bL,P=(k.YJ,k.WT),I=s.forwardRef(({className:e,children:t,...r},s)=>(0,l.jsxs)(k.l9,{ref:s,className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-items-center rtfl-justify-between rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background data-[placeholder]:rtfl-text-muted-foreground focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-ring focus:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 [&>span]:rtfl-line-clamp-1",e),...r,children:[t,(0,l.jsx)(k.In,{asChild:!0,children:(0,l.jsx)(C.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-opacity-50"})})]}));I.displayName=k.l9.displayName;const R=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(k.PP,{ref:r,className:(0,f.cn)("rtfl-flex rtfl-cursor-default rtfl-items-center rtfl-justify-center rtfl-py-1",e),...t,children:(0,l.jsx)(S.A,{className:"rtfl-h-4 rtfl-w-4"})}));R.displayName=k.PP.displayName;const F=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(k.wn,{ref:r,className:(0,f.cn)("rtfl-flex rtfl-cursor-default rtfl-items-center rtfl-justify-center rtfl-py-1",e),...t,children:(0,l.jsx)(C.A,{className:"rtfl-h-4 rtfl-w-4"})}));F.displayName=k.wn.displayName;const z=s.forwardRef(({className:e,children:t,position:r="popper",...s},a)=>(0,l.jsx)(k.ZL,{children:(0,l.jsxs)(k.UC,{ref:a,className:(0,f.cn)("rtfl-relative rtfl-z-50 rtfl-max-h-[--radix-select-content-available-height] rtfl-min-w-[8rem] rtfl-overflow-y-auto rtfl-overflow-x-hidden rtfl-rounded-md rtfl-border rtfl-bg-popover rtfl-text-popover-foreground rtfl-shadow-md data-[state=open]:rtfl-animate-in data-[state=closed]:rtfl-animate-out data-[state=closed]:rtfl-fade-out-0 data-[state=open]:rtfl-fade-in-0 data-[state=closed]:rtfl-zoom-out-95 data-[state=open]:rtfl-zoom-in-95 data-[side=bottom]:rtfl-slide-in-from-top-2 data-[side=left]:rtfl-slide-in-from-right-2 data-[side=right]:rtfl-slide-in-from-left-2 data-[side=top]:rtfl-slide-in-from-bottom-2 rtfl-origin-[--radix-select-content-transform-origin]","popper"===r&&"data-[side=bottom]:rtfl-translate-y-1 data-[side=left]:rtfl--translate-x-1 data-[side=right]:rtfl-translate-x-1 data-[side=top]:rtfl--translate-y-1",e),position:r,...s,children:[(0,l.jsx)(R,{}),(0,l.jsx)(k.LM,{className:(0,f.cn)("rtfl-p-1","popper"===r&&"rtfl-h-[var(--radix-select-trigger-height)] rtfl-w-full rtfl-min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,l.jsx)(F,{})]})}));z.displayName=k.UC.displayName,s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(k.JU,{ref:r,className:(0,f.cn)("rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-font-semibold",e),...t})).displayName=k.JU.displayName;const W=s.forwardRef(({className:e,children:t,...r},s)=>(0,l.jsxs)(k.q7,{ref:s,className:(0,f.cn)("rtfl-relative rtfl-flex rtfl-w-full rtfl-cursor-default rtfl-select-none rtfl-items-center rtfl-rounded-sm rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-outline-none focus:rtfl-bg-accent focus:rtfl-text-accent-foreground data-[disabled]:rtfl-pointer-events-none data-[disabled]:rtfl-opacity-50",e),...r,children:[(0,l.jsx)("span",{className:"rtfl-absolute rtfl-left-2 rtfl-flex rtfl-h-3.5 rtfl-w-3.5 rtfl-items-center rtfl-justify-center",children:(0,l.jsx)(k.VF,{children:(0,l.jsx)(E.A,{className:"rtfl-h-4 rtfl-w-4"})})}),(0,l.jsx)(k.p4,{children:t})]}));W.displayName=k.q7.displayName,s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(k.wv,{ref:r,className:(0,f.cn)("rtfl--mx-1 rtfl-my-1 rtfl-h-px rtfl-bg-muted",e),...t})).displayName=k.wv.displayName;var T=r(8723),D=r(8697);function B({options:e,selected:t,onChange:r,placeholder:a="Select options...",className:n}){const[i,o]=s.useState(!1),c=s.useRef(null);s.useEffect(()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const d=(e,l)=>{l.stopPropagation(),r(t.filter(t=>t!==e))},m=e.filter(e=>t.includes(e.value)).map(e=>e.label);return(0,l.jsxs)("div",{ref:c,className:(0,f.cn)("rtfl-relative rtfl-w-full",n),children:[(0,l.jsxs)("button",{type:"button",onClick:()=>o(!i),className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-items-center rtfl-justify-between rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-ring focus:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50",t.length>0&&"rtfl-min-h-10 rtfl-h-auto rtfl-py-2"),children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-flex-wrap rtfl-gap-1 rtfl-flex-1",children:0===t.length?(0,l.jsx)("span",{className:"rtfl-text-muted-foreground",children:a}):m.map(t=>{const r=e.find(e=>e.label===t);return(0,l.jsxs)("span",{className:"rtfl-inline-flex rtfl-items-center rtfl-gap-1 rtfl-rounded-md rtfl-bg-[#3f4eae] rtfl-px-2 rtfl-py-0.5 rtfl-text-xs rtfl-text-white",children:[t,(0,l.jsx)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),r&&d(r.value,e)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),r&&d(r.value,e))},className:"rtfl-ml-1 rtfl-rounded-full hover:rtfl-bg-white/20 rtfl-transition-colors rtfl-cursor-pointer rtfl-focus:rtfl-outline-none rtfl-focus:rtfl-ring-2 rtfl-focus:rtfl-ring-white/50",children:(0,l.jsx)(D.A,{className:"rtfl-h-3 rtfl-w-3"})})]},r?.value||t)})}),(0,l.jsx)(C.A,{className:(0,f.cn)("rtfl-h-4 rtfl-w-4 rtfl-opacity-50 rtfl-transition-transform",i&&"rtfl-rotate-180")})]}),i&&(0,l.jsx)("div",{className:"rtfl-absolute rtfl-z-50 rtfl-mt-1 rtfl-w-full rtfl-rounded-md rtfl-border rtfl-bg-popover rtfl-text-popover-foreground rtfl-shadow-md rtfl-max-h-60 rtfl-overflow-auto",children:(0,l.jsx)("div",{className:"rtfl-p-1",children:e.map(e=>{const s=t.includes(e.value);return(0,l.jsxs)("div",{onClick:()=>(e=>{const l=t.includes(e)?t.filter(t=>t!==e):[...t,e];r(l)})(e.value),className:(0,f.cn)("rtfl-relative rtfl-flex rtfl-w-full rtfl-cursor-pointer rtfl-select-none rtfl-items-center rtfl-rounded-sm rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-outline-none hover:rtfl-bg-accent hover:rtfl-text-accent-foreground focus:rtfl-bg-accent focus:rtfl-text-accent-foreground"),children:[(0,l.jsx)("span",{className:"rtfl-absolute rtfl-left-2 rtfl-flex rtfl-h-3.5 rtfl-w-3.5 rtfl-items-center rtfl-justify-center",children:s&&(0,l.jsx)(E.A,{className:"rtfl-h-4 rtfl-w-4"})}),e.label]},e.value)})})})]})}var K=r(7009),U=r(4721);const V=(e,t)=>({style:{color:"white",backgroundColor:e},position:"top-right",actionButtonStyle:{background:"transparent",color:"white",boxShadow:"none",border:"none",padding:0,height:"auto",opacity:.85},action:{label:(0,l.jsx)(D.A,{className:"rtfl-w-4 rtfl-h-4","aria-label":"Dismiss"}),onClick:()=>U.oR.dismiss(t())}}),M=e=>{const t="string"==typeof e?e:e?.toString()||"Settings saved successfully";let r;r=U.oR.success(t,V("#1e7e34",()=>r))},q=e=>{const t="string"==typeof e&&e?e:e?.toString()||"An error occurred";let r;r=U.oR.error(t,{...V("#b32d2e",()=>r),duration:8e3})};var L=r(5923);function O({className:e,orientation:t="horizontal",decorative:r=!0,...s}){return(0,l.jsx)(L.b,{"data-slot":"separator",decorative:r,orientation:t,className:(0,f.cn)("rtfl-bg-border rtfl-shrink-0 rtfl-data-[orientation=horizontal]:h-px rtfl-data-[orientation=horizontal]:w-full rtfl-data-[orientation=vertical]:h-full rtfl-data-[orientation=vertical]:w-px",e),...s})}var Q=r(9942),$=r(8931);function G({name:e,version:t,isConnected:r,isWooCommerceInstalled:s=!0,connectUrl:a,apiKey:n=""}){const{labels:i}=(0,Q.ov)(),f=()=>{a&&window.open(a,"_blank")};if(!s){const r=n&&""!==n.trim();return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-h-full rtfl-flex rtfl-flex-col",children:[(0,l.jsxs)(m,{children:[(0,l.jsx)(g,{children:i.dashboard_page?.plugin_information||"Plugin Information"}),(0,l.jsx)(u,{children:i.dashboard_page?.card_description||"Configure your Retainful connection"})]}),(0,l.jsxs)(p,{className:"rtfl-space-y-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_name||"Plugin Name"}),(0,l.jsx)("span",{children:e})]}),(0,l.jsx)(O,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_version||"Plugin Version"}),(0,l.jsx)("span",{children:t})]}),(0,l.jsx)(O,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.connected_with_rtfl||"Retainful API connection status"}),(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3",children:(0,l.jsx)(w,{variant:r?"default":"destructive",children:r?i.dashboard_page?.connect||"Connected":i.dashboard_page?.disconnect||"Disconnected"})})]}),!r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{}),(0,l.jsx)("div",{className:"rtfl-pt-2",children:(0,l.jsxs)(c,{onClick:f,className:"rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-w-full",children:[(0,l.jsx)($.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),i.dashboard_page?.connect_button||"Connect to Retainful"]})})]})]})]})}return(0,l.jsxs)(d,{className:"rtfl-w-full",children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:i.dashboard_page?.plugin_information||"Plugin Information"})}),(0,l.jsxs)(p,{className:"rtfl-space-y-4",children:[(0,l.jsx)(O,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_version||"Plugin Version"}),(0,l.jsx)("span",{children:t})]}),(0,l.jsx)(O,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.connected_with_rtfl||"Retainful API connection status"}),(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3",children:(0,l.jsx)(w,{variant:r?"default":"destructive",children:r?i.dashboard_page?.connect||"Connected":i.dashboard_page?.disconnect||"Disconnected"})})]}),!r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{}),(0,l.jsx)("div",{className:"rtfl-pt-2",children:(0,l.jsxs)(c,{onClick:f,className:"rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-w-full",children:[(0,l.jsx)($.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),i.dashboard_page?.connect_button||"Connect to Retainful"]})})]})]})]})}var J=r(2864);function H({url:e}){const{labels:t}=(0,Q.ov)();return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-h-full rtfl-shadow-lg rtfl-bg-gradient-to-br rtfl-from-card rtfl-flex rtfl-flex-col",children:[(0,l.jsx)(m,{className:"rtfl-pb-4",children:(0,l.jsx)("div",{className:"rtfl-flex rtfl-flex-col sm:rtfl-flex-row rtfl-items-start sm:rtfl-items-center rtfl-justify-between rtfl-gap-4",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-flex-1",children:[(0,l.jsx)("div",{className:"rtfl-p-2 rtfl-rounded-lg rtfl-flex-shrink-0 rtfl-bg-retainful-light",children:(0,l.jsx)(J.A,{className:"rtfl-h-6 rtfl-w-6 rtfl-text-retainful"})}),(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1",children:[(0,l.jsx)(g,{className:"rtfl-text-base sm:rtfl-text-base rtfl-font-semibold",children:t?.yuko_dashboard_card?.title||"Email Marketing, Newsletters & Marketing Automation for WordPress & WooCommerce"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-muted-foreground rtfl-mt-1 rtfl-break-words",children:t?.yuko_dashboard_card?.description||"Grow your email lists. Automate cart recovery, order follow ups & lifecycle marketing with Retainful. Send beautiful email campaigns & newsletters."})]})]})})}),(0,l.jsx)(p,{children:(0,l.jsxs)(c,{onClick:()=>window.open(e,"_blank"),className:"rtfl-bg-retainful hover:rtfl-bg-retainful-hover rtfl-text-white rtfl-font-medium rtfl-h-11 rtfl-px-6 rtfl-w-full sm:rtfl-w-auto",children:[(0,l.jsx)($.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),t?.yuko_dashboard_card?.go_to_dashboard||"Go to Retainful Dashboard"]})})]})}function Y({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"skeleton",className:(0,f.cn)("rtfl-bg-accent rtfl-animate-pulse rtfl-rounded-md",e),...t})}function Z(){return(0,l.jsxs)(d,{className:"rtfl-w-full",children:[(0,l.jsxs)(m,{children:[(0,l.jsx)(g,{children:(0,l.jsx)(Y,{className:"rtfl-h-6 rtfl-w-48"})}),(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-64 rtfl-mt-2"})]}),(0,l.jsxs)(p,{className:"rtfl-space-y-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-32"}),(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-24"})]}),(0,l.jsx)(Y,{className:"rtfl-h-px rtfl-w-full"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-32"}),(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-16"})]}),(0,l.jsx)(Y,{className:"rtfl-h-px rtfl-w-full"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-40"}),(0,l.jsx)(Y,{className:"rtfl-h-6 rtfl-w-20 rtfl-rounded-full"})]})]})]})}function X(){return(0,l.jsx)(d,{className:"rtfl-w-full rtfl-shadow-lg rtfl-bg-gradient-to-br rtfl-from-card",children:(0,l.jsx)(m,{className:"rtfl-pb-4",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-col sm:rtfl-flex-row rtfl-items-start sm:rtfl-items-center rtfl-justify-between rtfl-gap-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-flex-1",children:[(0,l.jsx)(Y,{className:"rtfl-h-10 rtfl-w-10 rtfl-rounded-lg"}),(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1",children:[(0,l.jsx)(Y,{className:"rtfl-h-6 rtfl-w-40 rtfl-mb-2"}),(0,l.jsx)(Y,{className:"rtfl-h-4 rtfl-w-64"})]})]}),(0,l.jsx)(Y,{className:"rtfl-h-11 rtfl-w-48 rtfl-rounded-md"})]})})})}function ee({hideDashboardCards:e=!1,integrationName:t,onBack:r}){const{labels:a}=(0,Q.ov)(),{localState:n}=(0,Q.Ul)(),{settingsState:i,setSettingsState:f}=(0,Q.sI)(),[o,u]=(0,s.useState)(!1),[h,x]=(0,s.useState)(Q.Sz),[b,N]=(0,s.useState)({}),[k,C]=(0,s.useState)({}),[S,E]=(0,s.useState)(!0),[R,F]=(0,s.useState)({email:{hasError:!1,message:""},phone:{hasError:!1,message:""}}),[D,U]=(0,s.useState)("https://app.retainful.net"),[V,L]=(0,s.useState)({}),O="boolean"==typeof V?.isConnected?V.isConnected:"Connected"===V?.isConnected||"true"===V?.isConnected;(0,s.useEffect)(()=>{(async()=>{try{const e=await(0,K.Q)({action:"retainful_integration",method:"get_settings",nonce:n});if(200===e.status){const t=(e=>{const t={...e};return["rtfl_refresh_fragments_on_page_load","rtfl_enable_gdpr_compliance","rtfl_enable_sms_consent","rtfl_enable_ip_filter","rtfl_enable_debug_log","rtfl_enable_coupon_cleanup"].forEach(e=>{"yes"===t[e]?t[e]="1":"no"===t[e]&&(t[e]="0")}),["rtfl_enable_background_order_sync","rtfl_track_zero_value_carts","rtfl_enable_dynamic_popup","rtfl_varnish_check"].forEach(e=>{"1"===t[e]?t[e]="yes":"0"===t[e]&&(t[e]="no")}),t})(e.data.data);x(t),f(t)}}catch(e){console.error("Error fetching settings:",e)}})()},[]);const $=e=>{F(t=>({...t,[e]:{hasError:!1,message:""}}))},J=e=>{x(t=>{const r=t[e];return"yes"===r||"1"===r?{...t,[e]:"1"===r?"0":"no"}:{...t,[e]:"0"===r?"1":"yes"}})},Y=(e,t)=>{x(r=>({...r,[e]:t})),C(t=>{if(!t[e])return t;const r={...t};return delete r[e],r})},ee=e=>"yes"===e||"1"===e;return(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(n){E(!0);try{const t=await(0,K.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:n}),r=t?.data?.data??{};L(r);const l=r.dashboardUrl||r.dashboard_url||a?.common?.dashboard_url||a?.yuko_dashboard_card?.dashboard_url;e&&l&&U(l)}catch(e){console.error("Failed to fetch plugin info:",e)}finally{e&&E(!1)}}})(),()=>{e=!1}},[n,a]),(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[!e&&!1!==a?.common?.isWooCommerceInstalled&&(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-mb-8 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:S?(0,l.jsx)(X,{}):(0,l.jsx)(H,{url:D})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:S?(0,l.jsx)(Z,{}):(0,l.jsx)(G,{name:V?.name||a?.common?.plugin_name||"Retainful",version:V?.version||a?.common?.plugin_version||"2.0.0",isConnected:"boolean"==typeof V?.isConnected?V.isConnected:"Connected"===V?.isConnected||"true"===V?.isConnected,isWooCommerceInstalled:a?.common?.isWooCommerceInstalled??!0,connectUrl:a?.common?.connect_url,apiKey:V?.apiKey||V?.api_key||""})})]}),!1!==a?.common?.isWooCommerceInstalled&&O&&(0,l.jsxs)("div",{className:"rtfl-sticky rtfl-top-8 rtfl-z-30 rtfl-flex rtfl-items-center rtfl-justify-between rtfl-gap-4 rtfl-mb-8 rtfl-py-3 rtfl-bg-white rtfl-border-b rtfl-border-gray-200",children:[(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900 rtfl-truncate rtfl-min-w-0",children:t?`${t} ${a?.setting_page?.settings||"Settings"}`:a?.setting_page?.general_settings||a?.setting_page?.general_settings_title||"General Settings"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-shrink-0",children:[r&&(0,l.jsxs)(c,{onClick:r,variant:"outline",children:["← ",a?.addons_page?.back_to_addons||"Back to Addons"]}),(0,l.jsxs)(c,{onClick:async()=>{u(!0);try{const e=(e=>{const t={...e};return["rtfl_refresh_fragments_on_page_load","rtfl_enable_gdpr_compliance","rtfl_enable_sms_consent","rtfl_enable_ip_filter","rtfl_enable_debug_log","rtfl_enable_coupon_cleanup"].forEach(e=>{"yes"===t[e]?t[e]="1":"no"===t[e]&&(t[e]="0")}),["rtfl_enable_background_order_sync","rtfl_track_zero_value_carts","rtfl_enable_dynamic_popup","rtfl_enable_afterpay_action","rtfl_varnish_check"].forEach(e=>{"1"===t[e]?t[e]="yes":"0"===t[e]&&(t[e]="no")}),t})(h);if(!(e=>{const t={email:{hasError:!1,message:""},phone:{hasError:!1,message:""}};let r=!1;if(""!==e.rtfl_cart_capture_msg&&""!==e.rtfl_cart_capture_msg.trim()||(t.email={hasError:!0,message:a?.setting_page?.marketing_consent_message_required||"Marketing consent message is required"},r=!0),""!==e.rtfl_sms_capture_msg&&""!==e.rtfl_sms_capture_msg.trim()||(t.phone={hasError:!0,message:a?.setting_page?.phone_consent_message_required||"Phone consent message is required"},r=!0),F(t),r){const e=[t.email.hasError?t.email.message:null,t.phone.hasError?t.phone.message:null].filter(Boolean);e.length>0&&q(e.join(" "))}return!r})(e))return void u(!1);const t=await(0,K.Q)({action:"retainful_integration",method:"save_settings",nonce:n,...e});console.log(t.status);const r=t?.data;if(200===t.status&&!1!==r?.success)C({}),f(h),M(r?.message||r?.data?.message||a?.setting_page?.settings_saved_successfully||"Settings saved successfully");else{const e=r?.data?.error_fields??{};C(e);const t=Object.values(e),l=t.length?t.join(" "):r?.message||r?.data?.message||a?.setting_page?.failed_to_save_settings||"Failed to save settings";q(l)}}catch(e){q(e?.response?.data?.message||e?.response?.data?.data?.message||e?.message||a?.setting_page?.failed_to_save_settings||"Failed to save settings")}finally{u(!1)}},disabled:o,className:"rtfl-shrink-0 rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-font-medium rtfl-px-6 rtfl-py-2",children:[o&&(0,l.jsx)(T.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-animate-spin rtfl-mr-2"}),a?.setting_page?.save_changes||a?.setting_page?.save||a?.setting_page?.save_changes_button||"Save Changes"]})]})]}),!e&&!1===a?.common?.isWooCommerceInstalled&&(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-mb-8 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:S?(0,l.jsx)(X,{}):(0,l.jsx)(H,{url:D})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:S?(0,l.jsx)(Z,{}):(0,l.jsx)(G,{name:V?.name||a?.common?.plugin_name||"Retainful",version:V?.version||a?.common?.plugin_version||"2.0.0",isConnected:"boolean"==typeof V?.isConnected?V.isConnected:"Connected"===V?.isConnected||"true"===V?.isConnected,isWooCommerceInstalled:!1,connectUrl:a?.common?.connect_url,apiKey:V?.apiKey||V?.api_key||""})})]}),!1!==a?.common?.isWooCommerceInstalled&&O&&(0,l.jsxs)("div",{className:"rtfl-space-y-8",children:[(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6 ",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.webhook_order_status_settings||"Map Order Events To Corresponding Flow Triggers"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.webhook_order_status_settings_description||"Map the order events to the right flow triggers. Change these options only when necessary. "}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-font-normal rtfl-mt-2 rtfl-text-gray-400",children:a?.setting_page?.webhook_order_status_settings_note||"NOTE: Checkout started event to track abandoned carts / checkouts is handled automatically. No manual mapping is required."})]})})}),(0,l.jsx)(p,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:(()=>{const e=a?.setting_page?.order_status_options?.map(e=>({label:e.label,value:e.value}))||[{label:"Pending",value:"pending"},{label:"On Hold",value:"on-hold"},{label:"Processing",value:"processing"},{label:"Completed",value:"completed"},{label:"Refunded",value:"refunded"},{label:"Cancelled",value:"cancelled"},{label:"Failed",value:"failed"},{label:"Expired",value:"expired"}],t=e=>e?e.split(",").map(e=>e.trim()).filter(Boolean):[],r=e=>e.join(",");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_placed_webhook||"Placed order event triggers when order status changes to"}),(0,l.jsx)(B,{options:e,selected:t(h.rtfl_order_placed_statuses||""),onChange:e=>Y("rtfl_order_placed_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_placed_webhook_description||"This event triggers the flow for Placed order NOTE: The customer may not have paid yet. See Order Paid trigger."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_paid_webhook||"Paid order event triggers when order status changes to"}),(0,l.jsx)(B,{options:e,selected:t(h.rtfl_order_paid_statuses||""),onChange:e=>Y("rtfl_order_paid_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_paid_webhook_description||"This event triggers the flow for Paid order"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_fulfilled_webhook||"Fulfilled order event triggers when order status changes to"}),(0,l.jsx)(B,{options:e,selected:t(h.rtfl_order_fulfilled_statuses||""),onChange:e=>Y("rtfl_order_fulfilled_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_fulfilled_webhook_description||"This event triggers the flow for Fulfilled order"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_refunded_webhook||"Refunded order event triggers when order status changes to"}),(0,l.jsx)(B,{options:e,selected:t(h.rtfl_order_refunded_statuses||""),onChange:e=>Y("rtfl_order_refunded_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_refunded_webhook_description||"This event triggers the flow for Refunded order."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_canceled_webhook||"Cancelled order event triggers when order status changes to"}),(0,l.jsx)(B,{options:e,selected:t(h.rtfl_order_cancelled_statuses||""),onChange:e=>Y("rtfl_order_cancelled_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_canceled_webhook_description||"This event triggers the flow for Cancelled order."})]})]})})()})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.marketing_consent||"Email Marketing Consider"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_settings_description||"Configure email marketing consent options to ensure GDPR compliance"})]})})}),(0,l.jsx)(p,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.consent_type||"Consent Type"}),(0,l.jsxs)(A,{value:"1"===h.rtfl_enable_gdpr_compliance?"true":"false",onValueChange:e=>Y("rtfl_enable_gdpr_compliance","true"===e?"1":"0"),children:[(0,l.jsx)(I,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(P,{})}),(0,l.jsx)(z,{children:a?.setting_page?.consent_option?.map((e,t)=>(0,l.jsx)(W,{value:String(e.value),children:e.label},t))||(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W,{value:"true",children:"Explicit"}),(0,l.jsx)(W,{value:"false",children:"Implicit"})]})})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_description||'The "explicit" option will add an opt-in checkbox at the checkout to capture the consent from customers'})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.consent_position||'Consent field position (in case of "Explicit" content type):'}),(0,l.jsxs)(A,{value:h.rtfl_gdpr_display_position,onValueChange:e=>Y("rtfl_gdpr_display_position",e),children:[(0,l.jsx)(I,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(P,{})}),(0,l.jsx)(z,{children:a?.setting_page?.marketing_consent_position_option.map(e=>(0,l.jsx)(W,{value:e.value,children:e.label},e.value))})]})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.marketing_consent_text||"Text for the opt-in checkbox"}),(0,l.jsx)(y,{value:h.rtfl_cart_capture_msg,onChange:e=>{Y("rtfl_cart_capture_msg",e.target.value),R.email.hasError&&$("email")},onBlur:()=>{h.rtfl_cart_capture_msg&&""!==h.rtfl_cart_capture_msg.trim()?$("email"):F(e=>({...e,email:{hasError:!0,message:a?.setting_page?.marketing_consent_message_required||"Marketing consent message is required"}}))},className:`rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border ${R.email.hasError?"rtfl-border-red-500 focus:rtfl-ring-red-500":"rtfl-border-gray-300 focus:rtfl-ring-blue-500"} rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-offset-2`,placeholder:a?.setting_page?.enter_consent_text||"Enter consent text"}),R.email.hasError&&(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-red-500 rtfl-mt-1",children:R.email.message})]})]})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.phone_consent||"SMS / Text / WhatsApp Message Consent"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.phone_consent_settings_description||"Configure marketing consent for sending SMS / Text / WhatsApp messages"})]})})}),(0,l.jsx)(p,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_type||"Consent type"}),(0,l.jsxs)(A,{value:"1"===h.rtfl_enable_sms_consent?"true":"false",onValueChange:e=>Y("rtfl_enable_sms_consent","true"===e?"1":"0"),children:[(0,l.jsx)(I,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(P,{})}),(0,l.jsx)(z,{children:a?.setting_page?.consent_option?.map((e,t)=>(0,l.jsx)(W,{value:String(e.value),children:e.label},t))||(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W,{value:"true",children:"Explicit"}),(0,l.jsx)(W,{value:"false",children:"Implicit"})]})})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_description||'The "explicit" option will add an opt-in checkbox at the checkout to capture the consent from customers'})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_position||'Consent field position (in case of "Explicit" content type):'}),(0,l.jsxs)(A,{value:h.rtfl_sms_consent_display_position,onValueChange:e=>Y("rtfl_sms_consent_display_position",e),children:[(0,l.jsx)(I,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(P,{placeholder:a?.setting_page?.select})}),(0,l.jsx)(z,{children:a?.setting_page?.phone_consent_position_option?.map(e=>(0,l.jsx)(W,{value:e.value,children:e.label},e.value))})]})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_text||"Phone Text for the opt-in checkbox"}),(0,l.jsx)(y,{value:h.rtfl_sms_capture_msg,onChange:e=>{Y("rtfl_sms_capture_msg",e.target.value),R.phone.hasError&&$("phone")},onBlur:()=>{h.rtfl_sms_capture_msg&&""!==h.rtfl_sms_capture_msg.trim()?$("phone"):F(e=>({...e,phone:{hasError:!0,message:a?.setting_page?.phone_consent_message_required||"Phone consent message is required"}}))},className:`rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border ${R.phone.hasError?"rtfl-border-red-500 focus:rtfl-ring-red-500":"rtfl-border-gray-300 focus:rtfl-ring-blue-500"} rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-offset-2`,placeholder:a?.setting_page?.enter_phone_consent_text||"Enter phone consent text"}),R.phone.hasError&&(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-red-500 rtfl-mt-1",children:R.phone.message})]})]})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsx)("div",{children:(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.system_configuration||a?.setting_page?.plugin_information||"Advanced Settings"})})})}),(0,l.jsx)(p,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_product_view||"Track Product View (Optional)"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_enable_product_view),onCheckedChange:()=>J("rtfl_enable_product_view")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_product_view_description||"Enable this option to track product view events. This will help you trigger flows based on product views and understand customer behavior better."})]}),(0,l.jsx)("div",{className:"rtfl-space-y-2",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-start rtfl-justify-between rtfl-gap-4",children:[(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1 rtfl-pr-2",children:[(0,l.jsx)(_,{id:"rtfl-popup-js-loading-method-label",className:"rtfl-block rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.popup_js_loading_method||"Popup JS Loading Method"}),(0,l.jsx)("p",{className:"rtfl-mt-1 rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.popup_js_loading_method_description||"Choose whether the storefront popup engine loads from Retainful’s CDN or from the plugin’s local copy."})]}),(0,l.jsxs)("div",{className:"rtfl-mt-0.5 rtfl-flex rtfl-shrink-0 rtfl-items-center rtfl-gap-3 rtfl-mr-10",children:[(0,l.jsx)(w,{variant:"outline",className:"local"===h.rtfl_popup_js_loading_method?"rtfl-bg-green-100 rtfl-text-green-700 rtfl-border-green-300 hover:rtfl-bg-green-100":"rtfl-bg-blue-100 rtfl-text-blue-700 rtfl-border-blue-300 hover:rtfl-bg-blue-100",children:"local"===h.rtfl_popup_js_loading_method?a?.setting_page?.popup_js_toggle_local||"Local":a?.setting_page?.popup_js_toggle_cdn||"CDN"}),(0,l.jsx)(j,{className:"rtfl-shrink-0",checked:"local"===h.rtfl_popup_js_loading_method,onCheckedChange:e=>Y("rtfl_popup_js_loading_method",e?"local":"cdn"),"aria-labelledby":"rtfl-popup-js-loading-method-label"})]})]})}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_direct_sync||"Fallback to WordPress Cron Job (Optional)"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_enable_direct_sync),onCheckedChange:()=>J("rtfl_enable_direct_sync")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_direct_sync_description||"Turn on this option to use WordPress Cron for processing events instead of the default WooCommerce Scheduled Actions. Only do this if your flows are not triggering as expected."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.track_zero_value_cart||"Track zero value orders"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_track_zero_value_carts),onCheckedChange:()=>J("rtfl_track_zero_value_carts")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.track_zero_value_cart_description||"By default, orders with zero value (free) are not tracked. Turn this on only when your store needs it."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_ipfilter||"IP Filters"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_enable_ip_filter),onCheckedChange:()=>J("rtfl_enable_ip_filter")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_ipfilter_description||"Exclude tracking events from select IP addresses"})]}),ee(h.rtfl_enable_ip_filter)&&(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.ip_addresses_label||"IP Addresses (comma separated)"}),(0,l.jsx)(y,{value:h.rtfl_ignored_ip_addresses,onChange:e=>Y("rtfl_ignored_ip_addresses",e.target.value),className:"rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border rtfl-border-gray-300 rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-blue-500 focus:rtfl-ring-offset-2",placeholder:a?.setting_page?.ip_addresses_placeholder||"192.168.1.1, 10.0.0.1"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_debuglog||"Debug"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_enable_debug_log),onCheckedChange:()=>J("rtfl_enable_debug_log")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_debuglog_description||"Do not enable this option unless you're troubleshooting"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.clear_cache||"Clear Cache"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_clear_cache),onCheckedChange:()=>J("rtfl_clear_cache")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.clear_cache_description||"Automatically clear cache when settings are saved"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.["varnish cache"]||"Varnish Cache Compatibility"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_varnish_check),onCheckedChange:()=>J("rtfl_varnish_check")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.varnish_cache_description||"Enable this compatibility if you are using a Varnish caching features from SiteGround, WPEngine or other similar hosting providers."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_coupon_cleanup||"Delete old Retainful coupons"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:ee(h.rtfl_enable_coupon_cleanup),onCheckedChange:()=>J("rtfl_enable_coupon_cleanup")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_coupon_cleanup_description||"Adds a button to the Coupons screen that permanently deletes expired coupons Retainful created. Coupons you created yourself are never touched."})]}),ee(h.rtfl_enable_coupon_cleanup)&&(0,l.jsx)("div",{className:"rtfl-space-y-2",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-start rtfl-justify-between rtfl-gap-4",children:[(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1 rtfl-pr-2",children:[(0,l.jsx)(_,{id:"rtfl-coupon-cleanup-age-label",className:"rtfl-block rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.coupon_cleanup_age||"Delete coupons that expired more than"}),(0,l.jsx)("p",{className:"rtfl-mt-1 rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.coupon_cleanup_age_description||"Anything that expired inside this window is kept."})]}),(0,l.jsxs)("div",{className:"rtfl-mt-0.5 rtfl-shrink-0 rtfl-mr-10",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-2",children:[(0,l.jsx)("div",{className:"rtfl-w-20",children:(0,l.jsx)(v,{type:"number",min:1,step:1,value:h.rtfl_coupon_cleanup_period,onChange:e=>Y("rtfl_coupon_cleanup_period",e.target.value),className:k.rtfl_coupon_cleanup_period?"rtfl-border-red-500 focus-visible:rtfl-ring-red-500":"",placeholder:a?.setting_page?.coupon_cleanup_period_placeholder||"60","aria-labelledby":"rtfl-coupon-cleanup-age-label"})}),(0,l.jsx)("div",{className:"rtfl-w-36",children:(0,l.jsxs)(A,{value:h.rtfl_coupon_cleanup_unit,onValueChange:e=>Y("rtfl_coupon_cleanup_unit",e),children:[(0,l.jsx)(I,{children:(0,l.jsx)(P,{})}),(0,l.jsx)(z,{children:a?.setting_page?.coupon_cleanup_unit_options?.map(e=>(0,l.jsx)(W,{value:e.value,children:e.label},e.value))||(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W,{value:"day",children:"Days ago"}),(0,l.jsx)(W,{value:"month",children:"Months ago"}),(0,l.jsx)(W,{value:"year",children:"Years ago"})]})})]})})]}),k.rtfl_coupon_cleanup_period&&(0,l.jsx)("p",{className:"rtfl-mt-1 rtfl-text-xs rtfl-text-red-600 rtfl-whitespace-nowrap",children:k.rtfl_coupon_cleanup_period})]})]})})]})})]})})]})]})}var te=r(9804),re=r(3540),le=r(3160);function se({hideDashboardCards:e=!1}){const{labels:t}=(0,Q.ov)(),{localState:r}=(0,Q.Ul)(),[a,n]=(0,s.useState)(!0),[i,f]=(0,s.useState)(!1),[o,u]=(0,s.useState)(""),[h,x]=(0,s.useState)(""),[b,j]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(r){n(!0);try{const t=await(0,K.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:r}),l=t?.data?.data??{},s=l.apiKey||l.api_key||"";e&&(u(s),x(s))}catch(e){console.error("Failed to fetch plugin info:",e)}finally{e&&n(!1)}}})(),()=>{e=!1}},[r]),!a&&o&&""!==o.trim()?(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:t?.setting_page?.wordpress_settings||"WordPress Settings"})}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-col rtfl-items-center rtfl-justify-center rtfl-py-20",children:[(0,l.jsx)(te.A,{className:"rtfl-h-16 rtfl-w-16 rtfl-text-green-500 rtfl-mb-4"}),(0,l.jsx)("h2",{className:"rtfl-text-xl rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:t?.setting_page?.connected||"Connected"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-500",children:t?.setting_page?.wordpress_connected_message||"Your site is connected to Retainful."})]})]}):(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:t?.setting_page?.wordpress_settings||"WordPress Settings"})}),(0,l.jsx)("div",{className:"rtfl-space-y-4",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:t?.setting_page?.api_key_settings||"API Key Settings"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:t?.setting_page?.api_key_settings_description||"Enter your Retainful API key to connect your WordPress site"})]})})}),(0,l.jsx)(p,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:t?.setting_page?.api_key||t?.dashboard_page?.api_key||"API Key"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-gap-2 rtfl-items-center",children:[(0,l.jsxs)("div",{className:"rtfl-relative rtfl-w-full rtfl-max-w-md",children:[(0,l.jsx)(v,{type:b?"text":"password",value:h,onChange:e=>x(e.target.value),disabled:a||i,placeholder:t?.setting_page?.enter_api_key||t?.dashboard_page?.enter_api_key||"Enter your API key",className:"rtfl-pr-10"}),(0,l.jsx)("button",{type:"button",onClick:()=>j(!b),className:"rtfl-absolute rtfl-right-2 rtfl-top-1/2 rtfl--translate-y-1/2 rtfl-p-1 rtfl-text-gray-500 hover:rtfl-text-gray-700 focus:rtfl-outline-none",tabIndex:-1,"aria-label":b?"Hide API key":"Show API key",children:b?(0,l.jsx)(re.A,{className:"rtfl-h-4 rtfl-w-4"}):(0,l.jsx)(le.A,{className:"rtfl-h-4 rtfl-w-4"})})]}),(0,l.jsx)(c,{onClick:async()=>{if(!i&&!a)if(h.trim()){f(!0);try{const e=await(0,K.Q)({action:"retainful_integration",method:"wordpress_connect",api_key:h,nonce:r});e?.data?.success?(u(h),M(t?.setting_page?.connected_successfully||"Connected to Retainful successfully")):q(e?.data?.data?.message||t?.setting_page?.connection_failed||"Failed to connect")}catch(e){q(t?.setting_page?.connection_failed||"Failed to connect to Retainful")}finally{f(!1)}}else q(t?.setting_page?.api_key_required||"Please enter API key")},disabled:a||i,className:"rtfl-whitespace-nowrap "+(i?"rtfl-opacity-50 rtfl-cursor-not-allowed":""),children:i?t?.setting_page?.connecting||"Connecting...":t?.setting_page?.connect||"Connect"})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:t?.setting_page?.wordpress_disconnected_message||"Enter your API key and click Connect to connect to Retainful."})]})})})]})})]})}function ae({integrationKey:e}){const{labels:t}=(0,Q.ov)(),{localState:r}=(0,Q.Ul)(),[a,n]=(0,s.useState)(!0),[i,f]=(0,s.useState)(!1),[o,u]=(0,s.useState)(null),[h,x]=(0,s.useState)({}),[b,y]=(0,s.useState)({});(0,s.useEffect)(()=>{let t=!0;return(async()=>{if(r&&e){n(!0);try{const l=await(0,K.Q)({action:"retainful_integration",method:"get_integration_settings",nonce:r,integration_key:e}),s=l?.data?.data??{};if(t){u(s);const e=s?.settings??{},t={};(s?.schema??[]).forEach(r=>{t[r.key]=e[r.key]??("switch"!==r.type&&"")}),x(t)}}catch(e){console.error("Failed to fetch integration settings:",e)}finally{t&&n(!1)}}})(),()=>{t=!1}},[r,e]);const N=(e,t)=>{x(r=>({...r,[e]:t}))};if(a)return(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6 rtfl-flex rtfl-justify-center rtfl-items-center rtfl-min-h-[200px]",children:(0,l.jsx)(T.A,{className:"rtfl-h-8 rtfl-w-8 rtfl-animate-spin rtfl-text-gray-400"})});if(!o)return(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6",children:(0,l.jsx)("p",{className:"rtfl-text-gray-600",children:t?.addons_page?.settings_coming_soon||"Settings for this integration are coming soon."})});const w=o.schema??[];return 0===w.length?(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6",children:(0,l.jsx)("p",{className:"rtfl-text-gray-600",children:t?.addons_page?.settings_coming_soon||"Settings for this integration are coming soon."})}):(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsxs)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:[o.name," ",t?.setting_page?.settings||"Settings"]})}),(0,l.jsxs)("div",{className:"rtfl-space-y-4",children:[w.map(e=>(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:e.label}),e.description&&(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:e.description})]})})}),(0,l.jsx)(p,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:"switch"===e.type?(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-space-x-2",children:[(0,l.jsx)(j,{id:`integration-${e.key}`,checked:Boolean(h[e.key]),onCheckedChange:t=>N(e.key,t),disabled:i}),(0,l.jsx)(_,{htmlFor:`integration-${e.key}`,className:"rtfl-text-sm rtfl-font-medium",children:Boolean(h[e.key])?t?.addons_page?.enabled||"Enabled":t?.addons_page?.disabled||"Disabled"})]}):"select"===e.type&&e.options?(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:e.label}),(0,l.jsx)("select",{value:String(h[e.key]??""),onChange:t=>N(e.key,t.target.value),disabled:i,className:"rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border rtfl-border-gray-300 rtfl-px-3 rtfl-py-2 rtfl-text-sm",children:e.options.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))})]}):(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:e.label}),"password"===e.type?(0,l.jsxs)("div",{className:"rtfl-relative rtfl-max-w-md",children:[(0,l.jsx)(v,{type:b[e.key]?"text":"password",value:String(h[e.key]??""),onChange:t=>N(e.key,t.target.value),disabled:i,placeholder:e.placeholder,className:"rtfl-pr-10"}),(0,l.jsx)("button",{type:"button",onClick:()=>y(t=>({...t,[e.key]:!t[e.key]})),className:"rtfl-absolute rtfl-right-2 rtfl-top-1/2 rtfl--translate-y-1/2 rtfl-p-1 rtfl-text-gray-500 hover:rtfl-text-gray-700 focus:rtfl-outline-none",tabIndex:-1,"aria-label":b[e.key]?"Hide API key":"Show API key",children:b[e.key]?(0,l.jsx)(re.A,{className:"rtfl-h-4 rtfl-w-4"}):(0,l.jsx)(le.A,{className:"rtfl-h-4 rtfl-w-4"})})]}):(0,l.jsx)(v,{type:"text",value:String(h[e.key]??""),onChange:t=>N(e.key,t.target.value),disabled:i,placeholder:e.placeholder,className:"rtfl-w-full rtfl-max-w-md"})]})})})]},e.key)),(0,l.jsx)("div",{className:"rtfl-pt-4",children:(0,l.jsx)(c,{onClick:async()=>{if(r&&e){f(!0);try{const l={action:"retainful_integration",method:"save_integration_settings",nonce:r,integration_key:e,...h},s=await(0,K.Q)(l),a=s?.data?.data??{};!1!==a.success?M(a.message||t?.setting_page?.settings_saved_successfully||"Settings saved successfully"):q(a.message||t?.setting_page?.failed_to_save_settings||"Failed to save settings")}catch(e){const r=e;q(r?.response?.data?.data?.message||r?.message||t?.setting_page?.failed_to_save_settings||"Failed to save settings")}finally{f(!1)}}},disabled:i,className:"rtfl-bg-black rtfl-text-white hover:rtfl-bg-gray-900",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2 rtfl-animate-spin"}),"Saving..."]}):t?.setting_page?.save_changes_button||"Save Changes"})})]})]})}var ne=r(964);function ie({onIntegrationSettingsClick:e,isConnected:t=!1,isWooCommerceInstalled:r=!0}){const{labels:n}=(0,Q.ov)(),{localState:i}=(0,Q.Ul)(),f=(0,a.Zp)(),[o,h]=(0,s.useState)([]),[x,_]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(i){_(!0);try{const t=await(0,K.Q)({action:"retainful_integration",method:"get_integrations",nonce:i}),r=t?.data?.data??[];e&&Array.isArray(r)&&h(r)}catch(e){console.error("Failed to fetch integrations:",e)}finally{e&&_(!1)}}})(),()=>{e=!1}},[i]);const b=e=>"wordpress"===e.type||"woocommerce"!==e.type||Boolean(r&&e.is_connected);return(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsxs)("div",{className:"rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:[(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:n?.addons_page?.title||"Available Integrations"}),(0,l.jsxs)("p",{className:"rtfl-text-sm rtfl-text-gray-600 rtfl-mt-2",children:[n?.addons_page?.description||"Turn on integrations for WooCommerce and any form plugins that you are using. Not seeing your Form plugin? ",(0,l.jsx)("a",{href:n?.addons_page?.contact_support_link||"https://www.retainful.com/support",target:"_blank",className:"rtfl-text-blue-500 rtfl-underline",children:n?.addons_page?.contact_support||"Contact our support"})]})]}),(0,l.jsx)("div",{className:"rtfl-grid rtfl-grid-cols-1 md:rtfl-grid-cols-2 lg:rtfl-grid-cols-3 rtfl-gap-6",children:x?(0,l.jsx)("div",{className:"rtfl-col-span-full rtfl-flex rtfl-justify-center rtfl-py-12",children:(0,l.jsx)(T.A,{className:"rtfl-h-8 rtfl-w-8 rtfl-animate-spin rtfl-text-gray-400"})}):o.map(t=>{const r=(e=>"woocommerce"===e.type||"wordpress"===e.type?e.is_connected||!1:e.is_active||!1)(t);return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-shadow-md hover:rtfl-shadow-lg rtfl-transition-shadow",children:[(0,l.jsxs)(m,{children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-start rtfl-justify-between rtfl-mb-2 rtfl-gap-2",children:[(0,l.jsx)(g,{className:"rtfl-text-lg rtfl-font-semibold rtfl-text-gray-900",children:t.name}),r&&(0,l.jsx)("span",{className:"rtfl-shrink-0 rtfl-inline-flex rtfl-items-center rtfl-px-2 rtfl-py-0.5 rtfl-rounded-full rtfl-text-xs rtfl-font-medium rtfl-bg-green-100 rtfl-text-green-800",children:n?.addons_page?.active_tag||"Active"})]}),(0,l.jsx)(u,{className:"rtfl-text-sm rtfl-text-gray-600 rtfl-mt-2",children:t.description})]}),(0,l.jsx)(p,{children:(0,l.jsx)("div",{className:"rtfl-space-y-4",children:b(t)&&(0,l.jsx)("div",{className:"rtfl-pt-2 rtfl-border-t rtfl-border-gray-200",children:(0,l.jsxs)(c,{onClick:()=>{return r=t.key,void(e?e(r):f(`/integration/${r}`));var r},variant:"outline",className:"rtfl-w-full rtfl-mt-2 rtfl-bg-black rtfl-text-white rtfl-border-black hover:rtfl-bg-gray-900 hover:rtfl-border-gray-900",children:[(0,l.jsx)(ne.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),n?.addons_page?.settings_button||"View Settings"]})})})})]},t.key)})})]})}function fe(){const{labels:e}=(0,Q.ov)(),{localState:t}=(0,Q.Ul)(),{integrationKey:r}=(0,a.g)(),n=(0,a.Zp)(),[i,f]=(0,s.useState)(!0),[o,d]=(0,s.useState)("https://app.retainful.com"),[m,g]=(0,s.useState)({});(0,s.useEffect)(()=>{let r=!0;return(async()=>{if(t){f(!0);try{const l=await(0,K.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:t}),s=l?.data?.data??{};g(s);const a=s.dashboardUrl||s.dashboard_url||e?.common?.dashboard_url||e?.yuko_dashboard_card?.dashboard_url;r&&a&&d(a)}catch(e){console.error("Failed to fetch plugin info:",e)}finally{r&&f(!1)}}})(),()=>{r=!1}},[t,e]);const u=!1!==e?.common?.isWooCommerceInstalled,p="boolean"==typeof m?.isConnected&&u?m.isConnected:"Connected"===m?.isConnected||"true"===m?.isConnected,h=m?.apiKey||m?.api_key||"",x=!u&&Boolean(h&&""!==h.trim()),_=u?p:x;return r?"woocommerce"===r?(0,l.jsx)("div",{className:"rtfl-py-4",children:(0,l.jsx)(ee,{hideDashboardCards:!0,integrationName:"WooCommerce",onBack:()=>n("/")})}):"wordpress"===r?(0,l.jsxs)("div",{className:"rtfl-py-4",children:[(0,l.jsx)("div",{className:"rtfl-mb-6",children:(0,l.jsxs)(c,{onClick:()=>n("/"),variant:"outline",className:"rtfl-mb-4",children:["← ",e?.addons_page?.back_to_addons||"Back to Addons"]})}),(0,l.jsx)(se,{hideDashboardCards:!0})]}):(0,l.jsxs)("div",{className:"rtfl-py-4",children:[(0,l.jsx)("div",{className:"rtfl-mb-6",children:(0,l.jsxs)(c,{onClick:()=>n("/"),variant:"outline",className:"rtfl-mb-4",children:["← ",e?.addons_page?.back_to_addons||"Back to Addons"]})}),(0,l.jsx)(ae,{integrationKey:r})]}):(0,l.jsx)("div",{className:"rtfl-py-4",children:(0,l.jsxs)("div",{className:"rtfl-space-y-6",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:i?(0,l.jsx)(X,{}):(0,l.jsx)(H,{url:o})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:i?(0,l.jsx)(Z,{}):(0,l.jsx)(G,{name:m?.name||e?.common?.plugin_name||"Retainful",version:m?.version||e?.common?.plugin_version||"2.0.0",isConnected:_,isWooCommerceInstalled:u,connectUrl:e?.common?.connect_url||"https://app.retainful.com/connect",apiKey:m?.apiKey||m?.api_key||""})})]}),(0,l.jsx)(ie,{onIntegrationSettingsClick:e=>{n(`/integration/${e}`)},isConnected:p,isWooCommerceInstalled:u})]})})}}}]);
     1"use strict";(self.webpackChunkrtfl_admin_ui=self.webpackChunkrtfl_admin_ui||[]).push([[472],{1249(e,t,r){r.r(t),r.d(t,{default:()=>fe});var l=r(4848),s=r(6540),a=r(5570),n=r(3362),i=r(2732),f=r(3929);const o=(0,i.F)("rtfl-inline-flex rtfl-items-center rtfl-justify-center rtfl-gap-2 rtfl-whitespace-nowrap rtfl-rounded-md rtfl-text-sm rtfl-font-medium rtfl-transition-all rtfl-disabled:pointer-events-none rtfl-disabled:opacity-50 rtfl-[&_svg]:pointer-events-none rtfl-[&_svg:not([class*=size-])]:size-4 rtfl-shrink-0 rtfl-[&_svg]:shrink-0 rtfl-outline-none rtfl-focus-visible:border-ring rtfl-focus-visible:ring-ring/50 rtfl-focus-visible:ring-[3px] rtfl-aria-invalid:ring-destructive/20 rtfl-dark:aria-invalid:ring-destructive/40 rtfl-aria-invalid:border-destructive",{variants:{variant:{default:"rtfl-bg-primary rtfl-text-primary-foreground rtfl-hover:bg-primary/90",destructive:"rtfl-bg-destructive rtfl-text-white rtfl-hover:bg-destructive/90 rtfl-focus-visible:ring-destructive/20 rtfl-dark:focus-visible:ring-destructive/40 rtfl-dark:bg-destructive/60",outline:"rtfl-border rtfl-bg-background rtfl-shadow-xs rtfl-hover:bg-accent rtfl-hover:text-accent-foreground rtfl-dark:bg-input/30 rtfl-dark:border-input rtfl-dark:hover:bg-input/50",secondary:"rtfl-bg-secondary rtfl-text-secondary-foreground rtfl-hover:bg-secondary/80",ghost:"rtfl-hover:bg-accent rtfl-hover:text-accent-foreground rtfl-dark:hover:bg-accent/50",link:"rtfl-text-primary rtfl-underline-offset-4 rtfl-hover:underline"},size:{default:"rtfl-h-9 rtfl-px-4 rtfl-py-2 rtfl-has-[>svg]:px-3",sm:"rtfl-h-8 rtfl-rounded-md rtfl-gap-1.5 rtfl-px-3 rtfl-has-[>svg]:px-2.5",lg:"rtfl-h-10 rtfl-rounded-md rtfl-px-6 rtfl-has-[>svg]:px-4",icon:"rtfl-size-9","icon-sm":"rtfl-size-8","icon-lg":"rtfl-size-10"}},defaultVariants:{variant:"default",size:"default"}});function c({className:e,variant:t,size:r,asChild:s=!1,...a}){const i=s?n.DX:"button";return(0,l.jsx)(i,{"data-slot":"button",className:(0,f.cn)(o({variant:t,size:r,className:e})),...a})}function d({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card",className:(0,f.cn)("rtfl-bg-card rtfl-text-card-foreground rtfl-flex rtfl-flex-col rtfl-gap-6 rtfl-rounded-xl rtfl-border rtfl-py-6 rtfl-shadow-sm",e),...t})}function m({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-header",className:(0,f.cn)("rtfl-@container/card-header rtfl-grid rtfl-auto-rows-min rtfl-grid-rows-[auto_auto] rtfl-items-start rtfl-gap-2 rtfl-px-6 rtfl-has-data-[slot=card-action]:grid-cols-[1fr_auto] rtfl-[.border-b]:pb-6",e),...t})}function g({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-title",className:(0,f.cn)("rtfl-leading-none rtfl-font-semibold",e),...t})}function u({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-description",className:(0,f.cn)("rtfl-text-muted-foreground rtfl-text-sm",e),...t})}function h({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"card-content",className:(0,f.cn)("rtfl-px-6",e),...t})}var x=r(7444);const p=(0,i.F)("rtfl-text-sm rtfl-font-medium rtfl-leading-none peer-disabled:rtfl-cursor-not-allowed peer-disabled:rtfl-opacity-70"),_=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(x.b,{ref:r,className:(0,f.cn)(p(),e),...t}));_.displayName=x.b.displayName;var b=r(9014);const j=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(b.bL,{className:(0,f.cn)("rtfl-peer rtfl-inline-flex rtfl-h-6 rtfl-w-11 rtfl-shrink-0 rtfl-cursor-pointer rtfl-items-center rtfl-rounded-full rtfl-border-2 rtfl-border-transparent rtfl-transition-colors focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-[#2456cc] focus-visible:rtfl-ring-offset-2 focus-visible:rtfl-ring-offset-background disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 data-[state=checked]:rtfl-bg-[#2456cc] data-[state=unchecked]:rtfl-bg-input",e),...t,ref:r,children:(0,l.jsx)(b.zi,{className:(0,f.cn)("rtfl-pointer-events-none rtfl-block rtfl-h-5 rtfl-w-5 rtfl-rounded-full rtfl-bg-background rtfl-shadow-lg rtfl-ring-0 rtfl-transition-transform data-[state=checked]:rtfl-translate-x-5 data-[state=unchecked]:rtfl-translate-x-0")})}));j.displayName=b.bL.displayName;const y=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)("textarea",{className:(0,f.cn)("rtfl-flex rtfl-min-h-[80px] rtfl-w-full rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-base rtfl-ring-offset-background placeholder:rtfl-text-muted-foreground focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-ring focus-visible:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 md:rtfl-text-sm",e),ref:r,...t}));y.displayName="Textarea";const v=(0,i.F)("rtfl-inline-flex rtfl-items-center rtfl-justify-center rtfl-rounded-full rtfl-border rtfl-px-2 rtfl-py-0.5 rtfl-text-xs rtfl-font-medium rtfl-w-fit rtfl-whitespace-nowrap rtfl-shrink-0 rtfl-[&>svg]:size-3 rtfl-gap-1 rtfl-[&>svg]:pointer-events-none rtfl-focus-visible:border-ring rtfl-focus-visible:ring-ring/50 rtfl-focus-visible:ring-[3px] rtfl-aria-invalid:ring-destructive/20 rtfl-dark:aria-invalid:ring-destructive/40 rtfl-aria-invalid:border-destructive rtfl-transition-[color,box-shadow] rtfl-overflow-hidden",{variants:{variant:{default:"rtfl-border-transparent rtfl-bg-primary rtfl-text-primary-foreground rtfl-[a&]:hover:bg-primary/90",secondary:"rtfl-border-transparent rtfl-bg-secondary rtfl-text-secondary-foreground rtfl-[a&]:hover:bg-secondary/90",destructive:"rtfl-border-transparent rtfl-bg-destructive rtfl-text-white rtfl-[a&]:hover:bg-destructive/90 rtfl-focus-visible:ring-destructive/20 rtfl-dark:focus-visible:ring-destructive/40 rtfl-dark:bg-destructive/60",outline:"rtfl-text-foreground rtfl-[a&]:hover:bg-accent rtfl-[a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function N({className:e,variant:t,asChild:r=!1,...s}){const a=r?n.DX:"span";return(0,l.jsx)(a,{"data-slot":"badge",className:(0,f.cn)(v({variant:t}),e),...s})}var w=r(5267),k=r(5107),C=r(2102),S=r(5773);const E=w.bL,A=(w.YJ,w.WT),P=s.forwardRef(({className:e,children:t,...r},s)=>(0,l.jsxs)(w.l9,{ref:s,className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-items-center rtfl-justify-between rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background data-[placeholder]:rtfl-text-muted-foreground focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-ring focus:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 [&>span]:rtfl-line-clamp-1",e),...r,children:[t,(0,l.jsx)(w.In,{asChild:!0,children:(0,l.jsx)(k.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-opacity-50"})})]}));P.displayName=w.l9.displayName;const I=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(w.PP,{ref:r,className:(0,f.cn)("rtfl-flex rtfl-cursor-default rtfl-items-center rtfl-justify-center rtfl-py-1",e),...t,children:(0,l.jsx)(C.A,{className:"rtfl-h-4 rtfl-w-4"})}));I.displayName=w.PP.displayName;const R=s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(w.wn,{ref:r,className:(0,f.cn)("rtfl-flex rtfl-cursor-default rtfl-items-center rtfl-justify-center rtfl-py-1",e),...t,children:(0,l.jsx)(k.A,{className:"rtfl-h-4 rtfl-w-4"})}));R.displayName=w.wn.displayName;const F=s.forwardRef(({className:e,children:t,position:r="popper",...s},a)=>(0,l.jsx)(w.ZL,{children:(0,l.jsxs)(w.UC,{ref:a,className:(0,f.cn)("rtfl-relative rtfl-z-50 rtfl-max-h-[--radix-select-content-available-height] rtfl-min-w-[8rem] rtfl-overflow-y-auto rtfl-overflow-x-hidden rtfl-rounded-md rtfl-border rtfl-bg-popover rtfl-text-popover-foreground rtfl-shadow-md data-[state=open]:rtfl-animate-in data-[state=closed]:rtfl-animate-out data-[state=closed]:rtfl-fade-out-0 data-[state=open]:rtfl-fade-in-0 data-[state=closed]:rtfl-zoom-out-95 data-[state=open]:rtfl-zoom-in-95 data-[side=bottom]:rtfl-slide-in-from-top-2 data-[side=left]:rtfl-slide-in-from-right-2 data-[side=right]:rtfl-slide-in-from-left-2 data-[side=top]:rtfl-slide-in-from-bottom-2 rtfl-origin-[--radix-select-content-transform-origin]","popper"===r&&"data-[side=bottom]:rtfl-translate-y-1 data-[side=left]:rtfl--translate-x-1 data-[side=right]:rtfl-translate-x-1 data-[side=top]:rtfl--translate-y-1",e),position:r,...s,children:[(0,l.jsx)(I,{}),(0,l.jsx)(w.LM,{className:(0,f.cn)("rtfl-p-1","popper"===r&&"rtfl-h-[var(--radix-select-trigger-height)] rtfl-w-full rtfl-min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,l.jsx)(R,{})]})}));F.displayName=w.UC.displayName,s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(w.JU,{ref:r,className:(0,f.cn)("rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-font-semibold",e),...t})).displayName=w.JU.displayName;const z=s.forwardRef(({className:e,children:t,...r},s)=>(0,l.jsxs)(w.q7,{ref:s,className:(0,f.cn)("rtfl-relative rtfl-flex rtfl-w-full rtfl-cursor-default rtfl-select-none rtfl-items-center rtfl-rounded-sm rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-outline-none focus:rtfl-bg-accent focus:rtfl-text-accent-foreground data-[disabled]:rtfl-pointer-events-none data-[disabled]:rtfl-opacity-50",e),...r,children:[(0,l.jsx)("span",{className:"rtfl-absolute rtfl-left-2 rtfl-flex rtfl-h-3.5 rtfl-w-3.5 rtfl-items-center rtfl-justify-center",children:(0,l.jsx)(w.VF,{children:(0,l.jsx)(S.A,{className:"rtfl-h-4 rtfl-w-4"})})}),(0,l.jsx)(w.p4,{children:t})]}));z.displayName=w.q7.displayName,s.forwardRef(({className:e,...t},r)=>(0,l.jsx)(w.wv,{ref:r,className:(0,f.cn)("rtfl--mx-1 rtfl-my-1 rtfl-h-px rtfl-bg-muted",e),...t})).displayName=w.wv.displayName;var W=r(8723),T=r(8697);function D({options:e,selected:t,onChange:r,placeholder:a="Select options...",className:n}){const[i,o]=s.useState(!1),c=s.useRef(null);s.useEffect(()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const d=(e,l)=>{l.stopPropagation(),r(t.filter(t=>t!==e))},m=e.filter(e=>t.includes(e.value)).map(e=>e.label);return(0,l.jsxs)("div",{ref:c,className:(0,f.cn)("rtfl-relative rtfl-w-full",n),children:[(0,l.jsxs)("button",{type:"button",onClick:()=>o(!i),className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-items-center rtfl-justify-between rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-ring focus:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50",t.length>0&&"rtfl-min-h-10 rtfl-h-auto rtfl-py-2"),children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-flex-wrap rtfl-gap-1 rtfl-flex-1",children:0===t.length?(0,l.jsx)("span",{className:"rtfl-text-muted-foreground",children:a}):m.map(t=>{const r=e.find(e=>e.label===t);return(0,l.jsxs)("span",{className:"rtfl-inline-flex rtfl-items-center rtfl-gap-1 rtfl-rounded-md rtfl-bg-[#3f4eae] rtfl-px-2 rtfl-py-0.5 rtfl-text-xs rtfl-text-white",children:[t,(0,l.jsx)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),r&&d(r.value,e)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),r&&d(r.value,e))},className:"rtfl-ml-1 rtfl-rounded-full hover:rtfl-bg-white/20 rtfl-transition-colors rtfl-cursor-pointer rtfl-focus:rtfl-outline-none rtfl-focus:rtfl-ring-2 rtfl-focus:rtfl-ring-white/50",children:(0,l.jsx)(T.A,{className:"rtfl-h-3 rtfl-w-3"})})]},r?.value||t)})}),(0,l.jsx)(k.A,{className:(0,f.cn)("rtfl-h-4 rtfl-w-4 rtfl-opacity-50 rtfl-transition-transform",i&&"rtfl-rotate-180")})]}),i&&(0,l.jsx)("div",{className:"rtfl-absolute rtfl-z-50 rtfl-mt-1 rtfl-w-full rtfl-rounded-md rtfl-border rtfl-bg-popover rtfl-text-popover-foreground rtfl-shadow-md rtfl-max-h-60 rtfl-overflow-auto",children:(0,l.jsx)("div",{className:"rtfl-p-1",children:e.map(e=>{const s=t.includes(e.value);return(0,l.jsxs)("div",{onClick:()=>(e=>{const l=t.includes(e)?t.filter(t=>t!==e):[...t,e];r(l)})(e.value),className:(0,f.cn)("rtfl-relative rtfl-flex rtfl-w-full rtfl-cursor-pointer rtfl-select-none rtfl-items-center rtfl-rounded-sm rtfl-py-1.5 rtfl-pl-8 rtfl-pr-2 rtfl-text-sm rtfl-outline-none hover:rtfl-bg-accent hover:rtfl-text-accent-foreground focus:rtfl-bg-accent focus:rtfl-text-accent-foreground"),children:[(0,l.jsx)("span",{className:"rtfl-absolute rtfl-left-2 rtfl-flex rtfl-h-3.5 rtfl-w-3.5 rtfl-items-center rtfl-justify-center",children:s&&(0,l.jsx)(S.A,{className:"rtfl-h-4 rtfl-w-4"})}),e.label]},e.value)})})})]})}var B=r(7009),K=r(4721);const U=(e,t)=>({style:{color:"white",backgroundColor:e},position:"top-right",actionButtonStyle:{background:"transparent",color:"white",boxShadow:"none",border:"none",padding:0,height:"auto",opacity:.85},action:{label:(0,l.jsx)(T.A,{className:"rtfl-w-4 rtfl-h-4","aria-label":"Dismiss"}),onClick:()=>K.oR.dismiss(t())}}),V=e=>{const t="string"==typeof e?e:e?.toString()||"Settings saved successfully";let r;r=K.oR.success(t,U("#1e7e34",()=>r))},q=e=>{const t="string"==typeof e&&e?e:e?.toString()||"An error occurred";let r;r=K.oR.error(t,{...U("#b32d2e",()=>r),duration:8e3})};var M=r(5923);function L({className:e,orientation:t="horizontal",decorative:r=!0,...s}){return(0,l.jsx)(M.b,{"data-slot":"separator",decorative:r,orientation:t,className:(0,f.cn)("rtfl-bg-border rtfl-shrink-0 rtfl-data-[orientation=horizontal]:h-px rtfl-data-[orientation=horizontal]:w-full rtfl-data-[orientation=vertical]:h-full rtfl-data-[orientation=vertical]:w-px",e),...s})}var O=r(9942),Q=r(8931);function $({name:e,version:t,isConnected:r,isWooCommerceInstalled:s=!0,connectUrl:a,apiKey:n=""}){const{labels:i}=(0,O.ov)(),f=()=>{a&&window.open(a,"_blank")};if(!s){const r=n&&""!==n.trim();return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-h-full rtfl-flex rtfl-flex-col",children:[(0,l.jsxs)(m,{children:[(0,l.jsx)(g,{children:i.dashboard_page?.plugin_information||"Plugin Information"}),(0,l.jsx)(u,{children:i.dashboard_page?.card_description||"Configure your Retainful connection"})]}),(0,l.jsxs)(h,{className:"rtfl-space-y-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_name||"Plugin Name"}),(0,l.jsx)("span",{children:e})]}),(0,l.jsx)(L,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_version||"Plugin Version"}),(0,l.jsx)("span",{children:t})]}),(0,l.jsx)(L,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.connected_with_rtfl||"Retainful API connection status"}),(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3",children:(0,l.jsx)(N,{variant:r?"default":"destructive",children:r?i.dashboard_page?.connect||"Connected":i.dashboard_page?.disconnect||"Disconnected"})})]}),!r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L,{}),(0,l.jsx)("div",{className:"rtfl-pt-2",children:(0,l.jsxs)(c,{onClick:f,className:"rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-w-full",children:[(0,l.jsx)(Q.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),i.dashboard_page?.connect_button||"Connect to Retainful"]})})]})]})]})}return(0,l.jsxs)(d,{className:"rtfl-w-full",children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:i.dashboard_page?.plugin_information||"Plugin Information"})}),(0,l.jsxs)(h,{className:"rtfl-space-y-4",children:[(0,l.jsx)(L,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.plugin_version||"Plugin Version"}),(0,l.jsx)("span",{children:t})]}),(0,l.jsx)(L,{}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)("span",{className:"rtfl-text-sm rtfl-font-medium",children:i.dashboard_page?.connected_with_rtfl||"Retainful API connection status"}),(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3",children:(0,l.jsx)(N,{variant:r?"default":"destructive",children:r?i.dashboard_page?.connect||"Connected":i.dashboard_page?.disconnect||"Disconnected"})})]}),!r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L,{}),(0,l.jsx)("div",{className:"rtfl-pt-2",children:(0,l.jsxs)(c,{onClick:f,className:"rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-w-full",children:[(0,l.jsx)(Q.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),i.dashboard_page?.connect_button||"Connect to Retainful"]})})]})]})]})}var G=r(2864);function J({url:e}){const{labels:t}=(0,O.ov)();return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-h-full rtfl-shadow-lg rtfl-bg-gradient-to-br rtfl-from-card rtfl-flex rtfl-flex-col",children:[(0,l.jsx)(m,{className:"rtfl-pb-4",children:(0,l.jsx)("div",{className:"rtfl-flex rtfl-flex-col sm:rtfl-flex-row rtfl-items-start sm:rtfl-items-center rtfl-justify-between rtfl-gap-4",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-flex-1",children:[(0,l.jsx)("div",{className:"rtfl-p-2 rtfl-rounded-lg rtfl-flex-shrink-0 rtfl-bg-retainful-light",children:(0,l.jsx)(G.A,{className:"rtfl-h-6 rtfl-w-6 rtfl-text-retainful"})}),(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1",children:[(0,l.jsx)(g,{className:"rtfl-text-base sm:rtfl-text-base rtfl-font-semibold",children:t?.yuko_dashboard_card?.title||"Email Marketing, Newsletters & Marketing Automation for WordPress & WooCommerce"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-muted-foreground rtfl-mt-1 rtfl-break-words",children:t?.yuko_dashboard_card?.description||"Grow your email lists. Automate cart recovery, order follow ups & lifecycle marketing with Retainful. Send beautiful email campaigns & newsletters."})]})]})})}),(0,l.jsx)(h,{children:(0,l.jsxs)(c,{onClick:()=>window.open(e,"_blank"),className:"rtfl-bg-retainful hover:rtfl-bg-retainful-hover rtfl-text-white rtfl-font-medium rtfl-h-11 rtfl-px-6 rtfl-w-full sm:rtfl-w-auto",children:[(0,l.jsx)(Q.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),t?.yuko_dashboard_card?.go_to_dashboard||"Go to Retainful Dashboard"]})})]})}function H({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"skeleton",className:(0,f.cn)("rtfl-bg-accent rtfl-animate-pulse rtfl-rounded-md",e),...t})}function Z(){return(0,l.jsxs)(d,{className:"rtfl-w-full",children:[(0,l.jsxs)(m,{children:[(0,l.jsx)(g,{children:(0,l.jsx)(H,{className:"rtfl-h-6 rtfl-w-48"})}),(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-64 rtfl-mt-2"})]}),(0,l.jsxs)(h,{className:"rtfl-space-y-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-32"}),(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-24"})]}),(0,l.jsx)(H,{className:"rtfl-h-px rtfl-w-full"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-32"}),(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-16"})]}),(0,l.jsx)(H,{className:"rtfl-h-px rtfl-w-full"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-justify-between rtfl-items-center",children:[(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-40"}),(0,l.jsx)(H,{className:"rtfl-h-6 rtfl-w-20 rtfl-rounded-full"})]})]})]})}function X(){return(0,l.jsx)(d,{className:"rtfl-w-full rtfl-shadow-lg rtfl-bg-gradient-to-br rtfl-from-card",children:(0,l.jsx)(m,{className:"rtfl-pb-4",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-col sm:rtfl-flex-row rtfl-items-start sm:rtfl-items-center rtfl-justify-between rtfl-gap-4",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-flex-1",children:[(0,l.jsx)(H,{className:"rtfl-h-10 rtfl-w-10 rtfl-rounded-lg"}),(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1",children:[(0,l.jsx)(H,{className:"rtfl-h-6 rtfl-w-40 rtfl-mb-2"}),(0,l.jsx)(H,{className:"rtfl-h-4 rtfl-w-64"})]})]}),(0,l.jsx)(H,{className:"rtfl-h-11 rtfl-w-48 rtfl-rounded-md"})]})})})}function Y({hideDashboardCards:e=!1,integrationName:t,onBack:r}){const{labels:a}=(0,O.ov)(),{localState:n}=(0,O.Ul)(),{settingsState:i,setSettingsState:f}=(0,O.sI)(),[o,u]=(0,s.useState)(!1),[x,p]=(0,s.useState)(O.Sz),[b,v]=(0,s.useState)({}),[w,k]=(0,s.useState)({}),[C,S]=(0,s.useState)(!0),[I,R]=(0,s.useState)({email:{hasError:!1,message:""},phone:{hasError:!1,message:""}}),[T,K]=(0,s.useState)("https://app.retainful.net"),[U,M]=(0,s.useState)({}),L="boolean"==typeof U?.isConnected?U.isConnected:"Connected"===U?.isConnected||"true"===U?.isConnected;(0,s.useEffect)(()=>{(async()=>{try{const e=await(0,B.Q)({action:"retainful_integration",method:"get_settings",nonce:n});if(200===e.status){const t=(e=>{const t={...e};return["rtfl_refresh_fragments_on_page_load","rtfl_enable_gdpr_compliance","rtfl_enable_sms_consent","rtfl_enable_ip_filter","rtfl_enable_debug_log"].forEach(e=>{"yes"===t[e]?t[e]="1":"no"===t[e]&&(t[e]="0")}),["rtfl_enable_background_order_sync","rtfl_track_zero_value_carts","rtfl_enable_dynamic_popup","rtfl_varnish_check"].forEach(e=>{"1"===t[e]?t[e]="yes":"0"===t[e]&&(t[e]="no")}),t})(e.data.data);p(t),f(t)}}catch(e){console.error("Error fetching settings:",e)}})()},[]);const Q=e=>{R(t=>({...t,[e]:{hasError:!1,message:""}}))},G=e=>{p(t=>{const r=t[e];return"yes"===r||"1"===r?{...t,[e]:"1"===r?"0":"no"}:{...t,[e]:"0"===r?"1":"yes"}})},H=(e,t)=>{p(r=>({...r,[e]:t})),k(t=>{if(!t[e])return t;const r={...t};return delete r[e],r})},Y=e=>"yes"===e||"1"===e;return(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(n){S(!0);try{const t=await(0,B.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:n}),r=t?.data?.data??{};M(r);const l=r.dashboardUrl||r.dashboard_url||a?.common?.dashboard_url||a?.yuko_dashboard_card?.dashboard_url;e&&l&&K(l)}catch(e){console.error("Failed to fetch plugin info:",e)}finally{e&&S(!1)}}})(),()=>{e=!1}},[n,a]),(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[!e&&!1!==a?.common?.isWooCommerceInstalled&&(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-mb-8 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:C?(0,l.jsx)(X,{}):(0,l.jsx)(J,{url:T})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:C?(0,l.jsx)(Z,{}):(0,l.jsx)($,{name:U?.name||a?.common?.plugin_name||"Retainful",version:U?.version||a?.common?.plugin_version||"2.0.0",isConnected:"boolean"==typeof U?.isConnected?U.isConnected:"Connected"===U?.isConnected||"true"===U?.isConnected,isWooCommerceInstalled:a?.common?.isWooCommerceInstalled??!0,connectUrl:a?.common?.connect_url,apiKey:U?.apiKey||U?.api_key||""})})]}),!1!==a?.common?.isWooCommerceInstalled&&L&&(0,l.jsxs)("div",{className:"rtfl-sticky rtfl-top-8 rtfl-z-30 rtfl-flex rtfl-items-center rtfl-justify-between rtfl-gap-4 rtfl-mb-8 rtfl-py-3 rtfl-bg-white rtfl-border-b rtfl-border-gray-200",children:[(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900 rtfl-truncate rtfl-min-w-0",children:t?`${t} ${a?.setting_page?.settings||"Settings"}`:a?.setting_page?.general_settings||a?.setting_page?.general_settings_title||"General Settings"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-gap-3 rtfl-shrink-0",children:[r&&(0,l.jsxs)(c,{onClick:r,variant:"outline",children:["← ",a?.addons_page?.back_to_addons||"Back to Addons"]}),(0,l.jsxs)(c,{onClick:async()=>{u(!0);try{const e=(e=>{const t={...e};return["rtfl_refresh_fragments_on_page_load","rtfl_enable_gdpr_compliance","rtfl_enable_sms_consent","rtfl_enable_ip_filter","rtfl_enable_debug_log"].forEach(e=>{"yes"===t[e]?t[e]="1":"no"===t[e]&&(t[e]="0")}),["rtfl_enable_background_order_sync","rtfl_track_zero_value_carts","rtfl_enable_dynamic_popup","rtfl_enable_afterpay_action","rtfl_varnish_check"].forEach(e=>{"1"===t[e]?t[e]="yes":"0"===t[e]&&(t[e]="no")}),t})(x);if(!(e=>{const t={email:{hasError:!1,message:""},phone:{hasError:!1,message:""}};let r=!1;if(""!==e.rtfl_cart_capture_msg&&""!==e.rtfl_cart_capture_msg.trim()||(t.email={hasError:!0,message:a?.setting_page?.marketing_consent_message_required||"Marketing consent message is required"},r=!0),""!==e.rtfl_sms_capture_msg&&""!==e.rtfl_sms_capture_msg.trim()||(t.phone={hasError:!0,message:a?.setting_page?.phone_consent_message_required||"Phone consent message is required"},r=!0),R(t),r){const e=[t.email.hasError?t.email.message:null,t.phone.hasError?t.phone.message:null].filter(Boolean);e.length>0&&q(e.join(" "))}return!r})(e))return void u(!1);const t=await(0,B.Q)({action:"retainful_integration",method:"save_settings",nonce:n,...e});console.log(t.status);const r=t?.data;if(200===t.status&&!1!==r?.success)k({}),f(x),V(r?.message||r?.data?.message||a?.setting_page?.settings_saved_successfully||"Settings saved successfully");else{const e=r?.data?.error_fields??{};k(e);const t=Object.values(e),l=t.length?t.join(" "):r?.message||r?.data?.message||a?.setting_page?.failed_to_save_settings||"Failed to save settings";q(l)}}catch(e){q(e?.response?.data?.message||e?.response?.data?.data?.message||e?.message||a?.setting_page?.failed_to_save_settings||"Failed to save settings")}finally{u(!1)}},disabled:o,className:"rtfl-shrink-0 rtfl-bg-[#3f4eae] hover:rtfl-bg-[#313f8a] rtfl-text-white rtfl-font-medium rtfl-px-6 rtfl-py-2",children:[o&&(0,l.jsx)(W.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-animate-spin rtfl-mr-2"}),a?.setting_page?.save_changes||a?.setting_page?.save||a?.setting_page?.save_changes_button||"Save Changes"]})]})]}),!e&&!1===a?.common?.isWooCommerceInstalled&&(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-mb-8 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:C?(0,l.jsx)(X,{}):(0,l.jsx)(J,{url:T})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:C?(0,l.jsx)(Z,{}):(0,l.jsx)($,{name:U?.name||a?.common?.plugin_name||"Retainful",version:U?.version||a?.common?.plugin_version||"2.0.0",isConnected:"boolean"==typeof U?.isConnected?U.isConnected:"Connected"===U?.isConnected||"true"===U?.isConnected,isWooCommerceInstalled:!1,connectUrl:a?.common?.connect_url,apiKey:U?.apiKey||U?.api_key||""})})]}),!1!==a?.common?.isWooCommerceInstalled&&L&&(0,l.jsxs)("div",{className:"rtfl-space-y-8",children:[(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6 ",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.webhook_order_status_settings||"Map Order Events To Corresponding Flow Triggers"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.webhook_order_status_settings_description||"Map the order events to the right flow triggers. Change these options only when necessary. "}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-font-normal rtfl-mt-2 rtfl-text-gray-400",children:a?.setting_page?.webhook_order_status_settings_note||"NOTE: Checkout started event to track abandoned carts / checkouts is handled automatically. No manual mapping is required."})]})})}),(0,l.jsx)(h,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:(()=>{const e=a?.setting_page?.order_status_options?.map(e=>({label:e.label,value:e.value}))||[{label:"Pending",value:"pending"},{label:"On Hold",value:"on-hold"},{label:"Processing",value:"processing"},{label:"Completed",value:"completed"},{label:"Refunded",value:"refunded"},{label:"Cancelled",value:"cancelled"},{label:"Failed",value:"failed"},{label:"Expired",value:"expired"}],t=e=>e?e.split(",").map(e=>e.trim()).filter(Boolean):[],r=e=>e.join(",");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_placed_webhook||"Placed order event triggers when order status changes to"}),(0,l.jsx)(D,{options:e,selected:t(x.rtfl_order_placed_statuses||""),onChange:e=>H("rtfl_order_placed_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_placed_webhook_description||"This event triggers the flow for Placed order NOTE: The customer may not have paid yet. See Order Paid trigger."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_paid_webhook||"Paid order event triggers when order status changes to"}),(0,l.jsx)(D,{options:e,selected:t(x.rtfl_order_paid_statuses||""),onChange:e=>H("rtfl_order_paid_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_paid_webhook_description||"This event triggers the flow for Paid order"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_fulfilled_webhook||"Fulfilled order event triggers when order status changes to"}),(0,l.jsx)(D,{options:e,selected:t(x.rtfl_order_fulfilled_statuses||""),onChange:e=>H("rtfl_order_fulfilled_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_fulfilled_webhook_description||"This event triggers the flow for Fulfilled order"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_refunded_webhook||"Refunded order event triggers when order status changes to"}),(0,l.jsx)(D,{options:e,selected:t(x.rtfl_order_refunded_statuses||""),onChange:e=>H("rtfl_order_refunded_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_refunded_webhook_description||"This event triggers the flow for Refunded order."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.order_canceled_webhook||"Cancelled order event triggers when order status changes to"}),(0,l.jsx)(D,{options:e,selected:t(x.rtfl_order_cancelled_statuses||""),onChange:e=>H("rtfl_order_cancelled_statuses",r(e)),placeholder:a?.setting_page?.select_order_statuses||"Select order statuses...",className:"rtfl-w-full"}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.order_canceled_webhook_description||"This event triggers the flow for Cancelled order."})]})]})})()})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.marketing_consent||"Email Marketing Consider"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_settings_description||"Configure email marketing consent options to ensure GDPR compliance"})]})})}),(0,l.jsx)(h,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.consent_type||"Consent Type"}),(0,l.jsxs)(E,{value:"1"===x.rtfl_enable_gdpr_compliance?"true":"false",onValueChange:e=>H("rtfl_enable_gdpr_compliance","true"===e?"1":"0"),children:[(0,l.jsx)(P,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(A,{})}),(0,l.jsx)(F,{children:a?.setting_page?.consent_option?.map((e,t)=>(0,l.jsx)(z,{value:String(e.value),children:e.label},t))||(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(z,{value:"true",children:"Explicit"}),(0,l.jsx)(z,{value:"false",children:"Implicit"})]})})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_description||'The "explicit" option will add an opt-in checkbox at the checkout to capture the consent from customers'})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.consent_position||'Consent field position (in case of "Explicit" content type):'}),(0,l.jsxs)(E,{value:x.rtfl_gdpr_display_position,onValueChange:e=>H("rtfl_gdpr_display_position",e),children:[(0,l.jsx)(P,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(A,{})}),(0,l.jsx)(F,{children:a?.setting_page?.marketing_consent_position_option.map(e=>(0,l.jsx)(z,{value:e.value,children:e.label},e.value))})]})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.marketing_consent_text||"Text for the opt-in checkbox"}),(0,l.jsx)(y,{value:x.rtfl_cart_capture_msg,onChange:e=>{H("rtfl_cart_capture_msg",e.target.value),I.email.hasError&&Q("email")},onBlur:()=>{x.rtfl_cart_capture_msg&&""!==x.rtfl_cart_capture_msg.trim()?Q("email"):R(e=>({...e,email:{hasError:!0,message:a?.setting_page?.marketing_consent_message_required||"Marketing consent message is required"}}))},className:`rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border ${I.email.hasError?"rtfl-border-red-500 focus:rtfl-ring-red-500":"rtfl-border-gray-300 focus:rtfl-ring-blue-500"} rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-offset-2`,placeholder:a?.setting_page?.enter_consent_text||"Enter consent text"}),I.email.hasError&&(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-red-500 rtfl-mt-1",children:I.email.message})]})]})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.phone_consent||"SMS / Text / WhatsApp Message Consent"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:a?.setting_page?.phone_consent_settings_description||"Configure marketing consent for sending SMS / Text / WhatsApp messages"})]})})}),(0,l.jsx)(h,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_type||"Consent type"}),(0,l.jsxs)(E,{value:"1"===x.rtfl_enable_sms_consent?"true":"false",onValueChange:e=>H("rtfl_enable_sms_consent","true"===e?"1":"0"),children:[(0,l.jsx)(P,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(A,{})}),(0,l.jsx)(F,{children:a?.setting_page?.consent_option?.map((e,t)=>(0,l.jsx)(z,{value:String(e.value),children:e.label},t))||(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(z,{value:"true",children:"Explicit"}),(0,l.jsx)(z,{value:"false",children:"Implicit"})]})})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.marketing_consent_description||'The "explicit" option will add an opt-in checkbox at the checkout to capture the consent from customers'})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_position||'Consent field position (in case of "Explicit" content type):'}),(0,l.jsxs)(E,{value:x.rtfl_sms_consent_display_position,onValueChange:e=>H("rtfl_sms_consent_display_position",e),children:[(0,l.jsx)(P,{className:"rtfl-w-full rtfl-max-w-xs",children:(0,l.jsx)(A,{placeholder:a?.setting_page?.select})}),(0,l.jsx)(F,{children:a?.setting_page?.phone_consent_position_option?.map(e=>(0,l.jsx)(z,{value:e.value,children:e.label},e.value))})]})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.phone_consent_text||"Phone Text for the opt-in checkbox"}),(0,l.jsx)(y,{value:x.rtfl_sms_capture_msg,onChange:e=>{H("rtfl_sms_capture_msg",e.target.value),I.phone.hasError&&Q("phone")},onBlur:()=>{x.rtfl_sms_capture_msg&&""!==x.rtfl_sms_capture_msg.trim()?Q("phone"):R(e=>({...e,phone:{hasError:!0,message:a?.setting_page?.phone_consent_message_required||"Phone consent message is required"}}))},className:`rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border ${I.phone.hasError?"rtfl-border-red-500 focus:rtfl-ring-red-500":"rtfl-border-gray-300 focus:rtfl-ring-blue-500"} rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-offset-2`,placeholder:a?.setting_page?.enter_phone_consent_text||"Enter phone consent text"}),I.phone.hasError&&(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-red-500 rtfl-mt-1",children:I.phone.message})]})]})})]})}),(0,l.jsx)("div",{className:"rtfl-space-y-4 rtfl-pt-6",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsx)("div",{children:(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:a?.setting_page?.system_configuration||a?.setting_page?.plugin_information||"Advanced Settings"})})})}),(0,l.jsx)(h,{children:(0,l.jsxs)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:[(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_product_view||"Track Product View (Optional)"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_enable_product_view),onCheckedChange:()=>G("rtfl_enable_product_view")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_product_view_description||"Enable this option to track product view events. This will help you trigger flows based on product views and understand customer behavior better."})]}),(0,l.jsx)("div",{className:"rtfl-space-y-2",children:(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-start rtfl-justify-between rtfl-gap-4",children:[(0,l.jsxs)("div",{className:"rtfl-min-w-0 rtfl-flex-1 rtfl-pr-2",children:[(0,l.jsx)(_,{id:"rtfl-popup-js-loading-method-label",className:"rtfl-block rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.popup_js_loading_method||"Popup JS Loading Method"}),(0,l.jsx)("p",{className:"rtfl-mt-1 rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.popup_js_loading_method_description||"Choose whether the storefront popup engine loads from Retainful’s CDN or from the plugin’s local copy."})]}),(0,l.jsxs)("div",{className:"rtfl-mt-0.5 rtfl-flex rtfl-shrink-0 rtfl-items-center rtfl-gap-3 rtfl-mr-10",children:[(0,l.jsx)(N,{variant:"outline",className:"local"===x.rtfl_popup_js_loading_method?"rtfl-bg-green-100 rtfl-text-green-700 rtfl-border-green-300 hover:rtfl-bg-green-100":"rtfl-bg-blue-100 rtfl-text-blue-700 rtfl-border-blue-300 hover:rtfl-bg-blue-100",children:"local"===x.rtfl_popup_js_loading_method?a?.setting_page?.popup_js_toggle_local||"Local":a?.setting_page?.popup_js_toggle_cdn||"CDN"}),(0,l.jsx)(j,{className:"rtfl-shrink-0",checked:"local"===x.rtfl_popup_js_loading_method,onCheckedChange:e=>H("rtfl_popup_js_loading_method",e?"local":"cdn"),"aria-labelledby":"rtfl-popup-js-loading-method-label"})]})]})}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_direct_sync||"Fallback to WordPress Cron Job (Optional)"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_enable_direct_sync),onCheckedChange:()=>G("rtfl_enable_direct_sync")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_direct_sync_description||"Turn on this option to use WordPress Cron for processing events instead of the default WooCommerce Scheduled Actions. Only do this if your flows are not triggering as expected."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.track_zero_value_cart||"Track zero value orders"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_track_zero_value_carts),onCheckedChange:()=>G("rtfl_track_zero_value_carts")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.track_zero_value_cart_description||"By default, orders with zero value (free) are not tracked. Turn this on only when your store needs it."})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_ipfilter||"IP Filters"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_enable_ip_filter),onCheckedChange:()=>G("rtfl_enable_ip_filter")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_ipfilter_description||"Exclude tracking events from select IP addresses"})]}),Y(x.rtfl_enable_ip_filter)&&(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.ip_addresses_label||"IP Addresses (comma separated)"}),(0,l.jsx)(y,{value:x.rtfl_ignored_ip_addresses,onChange:e=>H("rtfl_ignored_ip_addresses",e.target.value),className:"rtfl-flex rtfl-h-10 rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border rtfl-border-gray-300 rtfl-bg-white rtfl-px-3 rtfl-py-2 rtfl-text-sm rtfl-ring-offset-background focus:rtfl-outline-none focus:rtfl-ring-2 focus:rtfl-ring-blue-500 focus:rtfl-ring-offset-2",placeholder:a?.setting_page?.ip_addresses_placeholder||"192.168.1.1, 10.0.0.1"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.enable_debuglog||"Debug"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_enable_debug_log),onCheckedChange:()=>G("rtfl_enable_debug_log")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.enable_debuglog_description||"Do not enable this option unless you're troubleshooting"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.clear_cache||"Clear Cache"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_clear_cache),onCheckedChange:()=>G("rtfl_clear_cache")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.clear_cache_description||"Automatically clear cache when settings are saved"})]}),(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:a?.setting_page?.["varnish cache"]||"Varnish Cache Compatibility"}),(0,l.jsx)(j,{className:"rtfl-mr-10",checked:Y(x.rtfl_varnish_check),onCheckedChange:()=>G("rtfl_varnish_check")})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:a?.setting_page?.varnish_cache_description||"Enable this compatibility if you are using a Varnish caching features from SiteGround, WPEngine or other similar hosting providers."})]})]})})]})})]})]})}const ee=s.forwardRef(({className:e,type:t,...r},s)=>(0,l.jsx)("input",{type:t,className:(0,f.cn)("rtfl-flex rtfl-h-10 rtfl-w-full rtfl-rounded-md rtfl-border rtfl-border-input rtfl-bg-background rtfl-px-3 rtfl-py-2 rtfl-text-base rtfl-ring-offset-background file:rtfl-border-0 file:rtfl-bg-transparent file:rtfl-text-sm file:rtfl-font-medium placeholder:rtfl-text-muted-foreground focus-visible:rtfl-outline-none focus-visible:rtfl-ring-2 focus-visible:rtfl-ring-ring focus-visible:rtfl-ring-offset-2 disabled:rtfl-cursor-not-allowed disabled:rtfl-opacity-50 md:rtfl-text-sm",e),ref:s,...r}));ee.displayName="Input";var te=r(9804),re=r(3540),le=r(3160);function se({hideDashboardCards:e=!1}){const{labels:t}=(0,O.ov)(),{localState:r}=(0,O.Ul)(),[a,n]=(0,s.useState)(!0),[i,f]=(0,s.useState)(!1),[o,u]=(0,s.useState)(""),[x,p]=(0,s.useState)(""),[b,j]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(r){n(!0);try{const t=await(0,B.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:r}),l=t?.data?.data??{},s=l.apiKey||l.api_key||"";e&&(u(s),p(s))}catch(e){console.error("Failed to fetch plugin info:",e)}finally{e&&n(!1)}}})(),()=>{e=!1}},[r]),!a&&o&&""!==o.trim()?(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:t?.setting_page?.wordpress_settings||"WordPress Settings"})}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-col rtfl-items-center rtfl-justify-center rtfl-py-20",children:[(0,l.jsx)(te.A,{className:"rtfl-h-16 rtfl-w-16 rtfl-text-green-500 rtfl-mb-4"}),(0,l.jsx)("h2",{className:"rtfl-text-xl rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:t?.setting_page?.connected||"Connected"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-500",children:t?.setting_page?.wordpress_connected_message||"Your site is connected to Retainful."})]})]}):(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:t?.setting_page?.wordpress_settings||"WordPress Settings"})}),(0,l.jsx)("div",{className:"rtfl-space-y-4",children:(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:t?.setting_page?.api_key_settings||"API Key Settings"}),(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:t?.setting_page?.api_key_settings_description||"Enter your Retainful API key to connect your WordPress site"})]})})}),(0,l.jsx)(h,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:t?.setting_page?.api_key||t?.dashboard_page?.api_key||"API Key"}),(0,l.jsxs)("div",{className:"rtfl-flex rtfl-gap-2 rtfl-items-center",children:[(0,l.jsxs)("div",{className:"rtfl-relative rtfl-w-full rtfl-max-w-md",children:[(0,l.jsx)(ee,{type:b?"text":"password",value:x,onChange:e=>p(e.target.value),disabled:a||i,placeholder:t?.setting_page?.enter_api_key||t?.dashboard_page?.enter_api_key||"Enter your API key",className:"rtfl-pr-10"}),(0,l.jsx)("button",{type:"button",onClick:()=>j(!b),className:"rtfl-absolute rtfl-right-2 rtfl-top-1/2 rtfl--translate-y-1/2 rtfl-p-1 rtfl-text-gray-500 hover:rtfl-text-gray-700 focus:rtfl-outline-none",tabIndex:-1,"aria-label":b?"Hide API key":"Show API key",children:b?(0,l.jsx)(re.A,{className:"rtfl-h-4 rtfl-w-4"}):(0,l.jsx)(le.A,{className:"rtfl-h-4 rtfl-w-4"})})]}),(0,l.jsx)(c,{onClick:async()=>{if(!i&&!a)if(x.trim()){f(!0);try{const e=await(0,B.Q)({action:"retainful_integration",method:"wordpress_connect",api_key:x,nonce:r});e?.data?.success?(u(x),V(t?.setting_page?.connected_successfully||"Connected to Retainful successfully")):q(e?.data?.data?.message||t?.setting_page?.connection_failed||"Failed to connect")}catch(e){q(t?.setting_page?.connection_failed||"Failed to connect to Retainful")}finally{f(!1)}}else q(t?.setting_page?.api_key_required||"Please enter API key")},disabled:a||i,className:"rtfl-whitespace-nowrap "+(i?"rtfl-opacity-50 rtfl-cursor-not-allowed":""),children:i?t?.setting_page?.connecting||"Connecting...":t?.setting_page?.connect||"Connect"})]}),(0,l.jsx)("p",{className:"rtfl-text-xs rtfl-text-gray-600",children:t?.setting_page?.wordpress_disconnected_message||"Enter your API key and click Connect to connect to Retainful."})]})})})]})})]})}function ae({integrationKey:e}){const{labels:t}=(0,O.ov)(),{localState:r}=(0,O.Ul)(),[a,n]=(0,s.useState)(!0),[i,f]=(0,s.useState)(!1),[o,u]=(0,s.useState)(null),[x,p]=(0,s.useState)({}),[b,y]=(0,s.useState)({});(0,s.useEffect)(()=>{let t=!0;return(async()=>{if(r&&e){n(!0);try{const l=await(0,B.Q)({action:"retainful_integration",method:"get_integration_settings",nonce:r,integration_key:e}),s=l?.data?.data??{};if(t){u(s);const e=s?.settings??{},t={};(s?.schema??[]).forEach(r=>{t[r.key]=e[r.key]??("switch"!==r.type&&"")}),p(t)}}catch(e){console.error("Failed to fetch integration settings:",e)}finally{t&&n(!1)}}})(),()=>{t=!1}},[r,e]);const v=(e,t)=>{p(r=>({...r,[e]:t}))};if(a)return(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6 rtfl-flex rtfl-justify-center rtfl-items-center rtfl-min-h-[200px]",children:(0,l.jsx)(W.A,{className:"rtfl-h-8 rtfl-w-8 rtfl-animate-spin rtfl-text-gray-400"})});if(!o)return(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6",children:(0,l.jsx)("p",{className:"rtfl-text-gray-600",children:t?.addons_page?.settings_coming_soon||"Settings for this integration are coming soon."})});const N=o.schema??[];return 0===N.length?(0,l.jsx)("div",{className:"rtfl-bg-white rtfl-rounded-lg rtfl-p-6",children:(0,l.jsx)("p",{className:"rtfl-text-gray-600",children:t?.addons_page?.settings_coming_soon||"Settings for this integration are coming soon."})}):(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsx)("div",{className:"rtfl-flex rtfl-items-center rtfl-justify-between rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:(0,l.jsxs)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:[o.name," ",t?.setting_page?.settings||"Settings"]})}),(0,l.jsxs)("div",{className:"rtfl-space-y-4",children:[N.map(e=>(0,l.jsxs)(d,{children:[(0,l.jsx)(m,{children:(0,l.jsx)(g,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"rtfl-text-base rtfl-font-semibold rtfl-text-gray-900 rtfl-mb-2",children:e.label}),e.description&&(0,l.jsx)("p",{className:"rtfl-text-sm rtfl-text-gray-600",children:e.description})]})})}),(0,l.jsx)(h,{children:(0,l.jsx)("div",{className:"rtfl-space-y-5 rtfl-mt-4",children:"switch"===e.type?(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-center rtfl-space-x-2",children:[(0,l.jsx)(j,{id:`integration-${e.key}`,checked:Boolean(x[e.key]),onCheckedChange:t=>v(e.key,t),disabled:i}),(0,l.jsx)(_,{htmlFor:`integration-${e.key}`,className:"rtfl-text-sm rtfl-font-medium",children:Boolean(x[e.key])?t?.addons_page?.enabled||"Enabled":t?.addons_page?.disabled||"Disabled"})]}):"select"===e.type&&e.options?(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:e.label}),(0,l.jsx)("select",{value:String(x[e.key]??""),onChange:t=>v(e.key,t.target.value),disabled:i,className:"rtfl-w-full rtfl-max-w-md rtfl-rounded-md rtfl-border rtfl-border-gray-300 rtfl-px-3 rtfl-py-2 rtfl-text-sm",children:e.options.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))})]}):(0,l.jsxs)("div",{className:"rtfl-space-y-2",children:[(0,l.jsx)(_,{className:"rtfl-text-sm rtfl-font-medium rtfl-text-gray-900",children:e.label}),"password"===e.type?(0,l.jsxs)("div",{className:"rtfl-relative rtfl-max-w-md",children:[(0,l.jsx)(ee,{type:b[e.key]?"text":"password",value:String(x[e.key]??""),onChange:t=>v(e.key,t.target.value),disabled:i,placeholder:e.placeholder,className:"rtfl-pr-10"}),(0,l.jsx)("button",{type:"button",onClick:()=>y(t=>({...t,[e.key]:!t[e.key]})),className:"rtfl-absolute rtfl-right-2 rtfl-top-1/2 rtfl--translate-y-1/2 rtfl-p-1 rtfl-text-gray-500 hover:rtfl-text-gray-700 focus:rtfl-outline-none",tabIndex:-1,"aria-label":b[e.key]?"Hide API key":"Show API key",children:b[e.key]?(0,l.jsx)(re.A,{className:"rtfl-h-4 rtfl-w-4"}):(0,l.jsx)(le.A,{className:"rtfl-h-4 rtfl-w-4"})})]}):(0,l.jsx)(ee,{type:"text",value:String(x[e.key]??""),onChange:t=>v(e.key,t.target.value),disabled:i,placeholder:e.placeholder,className:"rtfl-w-full rtfl-max-w-md"})]})})})]},e.key)),(0,l.jsx)("div",{className:"rtfl-pt-4",children:(0,l.jsx)(c,{onClick:async()=>{if(r&&e){f(!0);try{const l={action:"retainful_integration",method:"save_integration_settings",nonce:r,integration_key:e,...x},s=await(0,B.Q)(l),a=s?.data?.data??{};!1!==a.success?V(a.message||t?.setting_page?.settings_saved_successfully||"Settings saved successfully"):q(a.message||t?.setting_page?.failed_to_save_settings||"Failed to save settings")}catch(e){const r=e;q(r?.response?.data?.data?.message||r?.message||t?.setting_page?.failed_to_save_settings||"Failed to save settings")}finally{f(!1)}}},disabled:i,className:"rtfl-bg-black rtfl-text-white hover:rtfl-bg-gray-900",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2 rtfl-animate-spin"}),"Saving..."]}):t?.setting_page?.save_changes_button||"Save Changes"})})]})]})}var ne=r(964);function ie({onIntegrationSettingsClick:e,isConnected:t=!1,isWooCommerceInstalled:r=!0}){const{labels:n}=(0,O.ov)(),{localState:i}=(0,O.Ul)(),f=(0,a.Zp)(),[o,x]=(0,s.useState)([]),[p,_]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(i){_(!0);try{const t=await(0,B.Q)({action:"retainful_integration",method:"get_integrations",nonce:i}),r=t?.data?.data??[];e&&Array.isArray(r)&&x(r)}catch(e){console.error("Failed to fetch integrations:",e)}finally{e&&_(!1)}}})(),()=>{e=!1}},[i]);const b=e=>"wordpress"===e.type||"woocommerce"!==e.type||Boolean(r&&e.is_connected);return(0,l.jsxs)("div",{className:"rtfl-bg-white rtfl-rounded-lg",children:[(0,l.jsxs)("div",{className:"rtfl-mb-8 rtfl-pb-4 rtfl-border-b rtfl-border-gray-200",children:[(0,l.jsx)("h1",{className:"rtfl-text-2xl rtfl-font-bold rtfl-text-gray-900",children:n?.addons_page?.title||"Available Integrations"}),(0,l.jsxs)("p",{className:"rtfl-text-sm rtfl-text-gray-600 rtfl-mt-2",children:[n?.addons_page?.description||"Turn on integrations for WooCommerce and any form plugins that you are using. Not seeing your Form plugin? ",(0,l.jsx)("a",{href:n?.addons_page?.contact_support_link||"https://www.retainful.com/support",target:"_blank",className:"rtfl-text-blue-500 rtfl-underline",children:n?.addons_page?.contact_support||"Contact our support"})]})]}),(0,l.jsx)("div",{className:"rtfl-grid rtfl-grid-cols-1 md:rtfl-grid-cols-2 lg:rtfl-grid-cols-3 rtfl-gap-6",children:p?(0,l.jsx)("div",{className:"rtfl-col-span-full rtfl-flex rtfl-justify-center rtfl-py-12",children:(0,l.jsx)(W.A,{className:"rtfl-h-8 rtfl-w-8 rtfl-animate-spin rtfl-text-gray-400"})}):o.map(t=>{const r=(e=>"woocommerce"===e.type||"wordpress"===e.type?e.is_connected||!1:e.is_active||!1)(t);return(0,l.jsxs)(d,{className:"rtfl-w-full rtfl-shadow-md hover:rtfl-shadow-lg rtfl-transition-shadow",children:[(0,l.jsxs)(m,{children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-items-start rtfl-justify-between rtfl-mb-2 rtfl-gap-2",children:[(0,l.jsx)(g,{className:"rtfl-text-lg rtfl-font-semibold rtfl-text-gray-900",children:t.name}),r&&(0,l.jsx)("span",{className:"rtfl-shrink-0 rtfl-inline-flex rtfl-items-center rtfl-px-2 rtfl-py-0.5 rtfl-rounded-full rtfl-text-xs rtfl-font-medium rtfl-bg-green-100 rtfl-text-green-800",children:n?.addons_page?.active_tag||"Active"})]}),(0,l.jsx)(u,{className:"rtfl-text-sm rtfl-text-gray-600 rtfl-mt-2",children:t.description})]}),(0,l.jsx)(h,{children:(0,l.jsx)("div",{className:"rtfl-space-y-4",children:b(t)&&(0,l.jsx)("div",{className:"rtfl-pt-2 rtfl-border-t rtfl-border-gray-200",children:(0,l.jsxs)(c,{onClick:()=>{return r=t.key,void(e?e(r):f(`/integration/${r}`));var r},variant:"outline",className:"rtfl-w-full rtfl-mt-2 rtfl-bg-black rtfl-text-white rtfl-border-black hover:rtfl-bg-gray-900 hover:rtfl-border-gray-900",children:[(0,l.jsx)(ne.A,{className:"rtfl-h-4 rtfl-w-4 rtfl-mr-2"}),n?.addons_page?.settings_button||"View Settings"]})})})})]},t.key)})})]})}function fe(){const{labels:e}=(0,O.ov)(),{localState:t}=(0,O.Ul)(),{integrationKey:r}=(0,a.g)(),n=(0,a.Zp)(),[i,f]=(0,s.useState)(!0),[o,d]=(0,s.useState)("https://app.retainful.com"),[m,g]=(0,s.useState)({});(0,s.useEffect)(()=>{let r=!0;return(async()=>{if(t){f(!0);try{const l=await(0,B.Q)({action:"retainful_integration",method:"get_plugin_info",nonce:t}),s=l?.data?.data??{};g(s);const a=s.dashboardUrl||s.dashboard_url||e?.common?.dashboard_url||e?.yuko_dashboard_card?.dashboard_url;r&&a&&d(a)}catch(e){console.error("Failed to fetch plugin info:",e)}finally{r&&f(!1)}}})(),()=>{r=!1}},[t,e]);const u=!1!==e?.common?.isWooCommerceInstalled,h="boolean"==typeof m?.isConnected&&u?m.isConnected:"Connected"===m?.isConnected||"true"===m?.isConnected,x=m?.apiKey||m?.api_key||"",p=!u&&Boolean(x&&""!==x.trim()),_=u?h:p;return r?"woocommerce"===r?(0,l.jsx)("div",{className:"rtfl-py-4",children:(0,l.jsx)(Y,{hideDashboardCards:!0,integrationName:"WooCommerce",onBack:()=>n("/")})}):"wordpress"===r?(0,l.jsxs)("div",{className:"rtfl-py-4",children:[(0,l.jsx)("div",{className:"rtfl-mb-6",children:(0,l.jsxs)(c,{onClick:()=>n("/"),variant:"outline",className:"rtfl-mb-4",children:["← ",e?.addons_page?.back_to_addons||"Back to Addons"]})}),(0,l.jsx)(se,{hideDashboardCards:!0})]}):(0,l.jsxs)("div",{className:"rtfl-py-4",children:[(0,l.jsx)("div",{className:"rtfl-mb-6",children:(0,l.jsxs)(c,{onClick:()=>n("/"),variant:"outline",className:"rtfl-mb-4",children:["← ",e?.addons_page?.back_to_addons||"Back to Addons"]})}),(0,l.jsx)(ae,{integrationKey:r})]}):(0,l.jsx)("div",{className:"rtfl-py-4",children:(0,l.jsxs)("div",{className:"rtfl-space-y-6",children:[(0,l.jsxs)("div",{className:"rtfl-flex rtfl-flex-row rtfl-gap-6 rtfl-items-stretch",children:[(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:i?(0,l.jsx)(X,{}):(0,l.jsx)(J,{url:o})}),(0,l.jsx)("div",{className:"rtfl-flex-1 rtfl-flex",children:i?(0,l.jsx)(Z,{}):(0,l.jsx)($,{name:m?.name||e?.common?.plugin_name||"Retainful",version:m?.version||e?.common?.plugin_version||"2.0.0",isConnected:_,isWooCommerceInstalled:u,connectUrl:e?.common?.connect_url||"https://app.retainful.com/connect",apiKey:m?.apiKey||m?.api_key||""})})]}),(0,l.jsx)(ie,{onIntegrationSettingsClick:e=>{n(`/integration/${e}`)},isConnected:h,isWooCommerceInstalled:u})]})})}}}]);
  • retainful/trunk/assets/store/js/retainful-store.js

    r3617993 r3705113  
    5959     * @param {string} email - User email
    6060     * @param {string} phone - User phone
    61      * @param {object} guestData - Guest data object
    62      */
    63     function updateCheckout(email, phone, guestData) {
     61     * @param {object} checkoutData - Checkout data object
     62     */
     63    function updateCheckout(email, phone, checkoutData) {
    6464        if (!Url) {
    6565            return;
    … …  
    8989        // Add nonce to the request data
    9090        if (typeof retainful_localize_data !== 'undefined' && retainful_localize_data.nonce) {
    91             guestData.nonce = retainful_localize_data.nonce;
     91            checkoutData.nonce = retainful_localize_data.nonce;
    9292        }
    9393
    … …  
    9696            type: "POST",
    9797            dataType: 'json',
    98             data: guestData,
     98            data: checkoutData,
    9999            success: function(response) {
    100100                // Cart tracking updated successfully
    … …  
    110110    }
    111111
    112     // Track cart when checkout email field updates (Traditional WooCommerce Checkout)
    113     // Support both old selector (rnoc_allow_gdpr) and new selector (rtfl_allow_gdpr) for backward compatibility
    114     rtfl_jquery(document).on('change', 'input#billing_email,input#billing_first_name,input#billing_last_name,input#billing_phone,input#rtfl_allow_gdpr,input#rnoc_allow_gdpr,input#rtfl_sms_consent', function () {
    115         var rnoc_phone = rtfl_jquery("#billing_phone").val();
    116         var rnoc_email = rtfl_jquery("#billing_email").val();
     112    /**
     113     * Merge extra fields into checkout_data and send it to admin-ajax. Shared
     114     * tail for every checkout-tracking source (core field watchers and the
     115     * public retainful-track-checkout-field trigger) — runs for guests and
     116     * logged-in customers alike (registered on both wp_ajax_ and
     117     * wp_ajax_nopriv_ hooks server-side).
     118     * @param {object} checkoutData - Base checkout data, already containing
     119     *                                billing_email/billing_phone.
     120     * @param {object} extraFields - Extra field name/value pairs to merge in.
     121     */
     122    function dispatchCheckoutData(checkoutData, extraFields) {
     123        rtfl_jquery.extend(checkoutData, extraFields || {});
     124
     125        updateCheckout(checkoutData.billing_email, checkoutData.billing_phone, checkoutData);
     126    }
     127
     128    /**
     129     * Build checkout data from the classic (shortcode) checkout form and send it.
     130     * @param {object} extraFields - Extra field name/value pairs to merge in, e.g. a
     131     *                               custom checkout field posted as billing_gift_note.
     132     */
     133    function trackClassicCheckoutData(extraFields) {
    117134        var ship_to_bill = rtfl_jquery("#ship-to-different-address-checkbox:checked").length;
    118135
    … …  
    127144        var sms_consent_checkbox = rtfl_jquery('input#rtfl_sms_consent');
    128145        var sms_consent = sms_consent_checkbox.is(':checked');
    129         var guest_data = {
     146        var checkout_data = {
    130147            billing_first_name: rtfl_jquery('#billing_first_name').val(),
    131148            billing_last_name: rtfl_jquery('#billing_last_name').val(),
    … …  
    156173        };
    157174
    158         updateCheckout(rnoc_email, rnoc_phone, guest_data);
    159     });
    160 
    161     // Track cart when checkout email field updates (WooCommerce Blocks Checkout)
    162     // Block Checkout uses name attributes with namespace format: rtfl--allow_gdpr or data attributes
    163     // We need to listen for multiple possible selectors to catch all cases
    164     rtfl_jquery(document).on('change', '.wp-block-woocommerce-checkout input[type="email"],.wp-block-woocommerce-checkout input[type="tel"],.wp-block-woocommerce-checkout input[name*="rtfl"],.wp-block-woocommerce-checkout input[name*="rnoc"],.wp-block-woocommerce-checkout input[id*="rtfl"],.wp-block-woocommerce-checkout input[id*="rnoc"]', function () {
    165        
     175        dispatchCheckoutData(checkout_data, extraFields);
     176    }
     177
     178    // Track cart when checkout email field updates (Traditional WooCommerce Checkout)
     179    // Support both old selector (rnoc_allow_gdpr) and new selector (rtfl_allow_gdpr) for backward compatibility
     180    rtfl_jquery(document).on('change', 'input#billing_email,input#billing_first_name,input#billing_last_name,input#billing_phone,input#rtfl_allow_gdpr,input#rnoc_allow_gdpr,input#rtfl_sms_consent', function () {
     181        trackClassicCheckoutData({});
     182    });
     183
     184    /**
     185     * Build checkout data from the WooCommerce Blocks checkout form and send it.
     186     * @param {object} extraFields - Extra field name/value pairs to merge in, e.g. a
     187     *                               custom checkout field posted as billing_gift_note.
     188     */
     189    function trackBlockCheckoutData(extraFields) {
    166190        var rnoc_email = rtfl_jquery(".wp-block-woocommerce-checkout input[type='email']").first().val();
    167191        var rnoc_phone = rtfl_jquery(".wp-block-woocommerce-checkout input[type='tel']").first().val();
    … …  
    173197            ? rtfl_jquery('.wp-block-woocommerce-checkout #contact-rtfl-allow_gdpr')
    174198            : rtfl_jquery('.wp-block-woocommerce-checkout #order-rtfl-allow_gdpr');
    175        
     199
    176200         var allow_gdpr = marketing_consent_checkbox.is(':checked');
    177201
    … …  
    186210
    187211
    188         var guest_data = {
     212        var checkout_data = {
    189213            billing_first_name: rtfl_jquery('.wp-block-woocommerce-checkout #billing-first_name').first().val() || '',
    190214            billing_last_name: rtfl_jquery('.wp-block-woocommerce-checkout #billing-last_name').first().val() || '',
    … …  
    193217            billing_city: rtfl_jquery('.wp-block-woocommerce-checkout #billing-city').first().val() || '',
    194218            billing_postcode: rtfl_jquery('.wp-block-woocommerce-checkout #billing-postcode').first().val() || '',
     219            billing_state: rtfl_jquery('.wp-block-woocommerce-checkout #billing-state').first().val() || '',
     220            billing_country: rtfl_jquery('.wp-block-woocommerce-checkout #billing-country').first().val() || '',
    195221            billing_phone: rnoc_phone || '',
    196222            billing_email: rnoc_email || '',
    … …  
    202228        };
    203229
    204         updateCheckout(rnoc_email, rnoc_phone, guest_data);
     230        dispatchCheckoutData(checkout_data, extraFields);
     231    }
     232
     233    // Track cart when checkout email field updates (WooCommerce Blocks Checkout)
     234    // Block Checkout uses name attributes with namespace format: rtfl--allow_gdpr or data attributes
     235    // We need to listen for multiple possible selectors to catch all cases
     236    rtfl_jquery(document).on('change', '.wp-block-woocommerce-checkout input[type="email"],.wp-block-woocommerce-checkout input[type="tel"],.wp-block-woocommerce-checkout input[name*="rtfl"],.wp-block-woocommerce-checkout input[name*="rnoc"],.wp-block-woocommerce-checkout input[id*="rtfl"],.wp-block-woocommerce-checkout input[id*="rnoc"]', function () {
     237        trackBlockCheckoutData({});
    205238    });
    206239
    … …  
    209242            return;
    210243        }
    211         var guest_data = {
     244        var checkout_data = {
    212245            action: 'rnoc_track_user_data',
    213246            billing_email: e.email
    214247        };
    215         updateCheckout(e.email, '', guest_data);
     248        updateCheckout(e.email, '', checkout_data);
     249    });
     250
     251    /**
     252     * Public integration hook: trigger this document event whenever a custom
     253     * checkout field changes, so its value gets tracked without core needing
     254     * to know the field's id or selector.
     255     */
     256    rtfl_jquery(document).on('retainful-track-checkout-fields', function (event, extraFields) {
     257        extraFields = extraFields || {};
     258        if (rtfl_jquery('.wp-block-woocommerce-checkout').length) {
     259            trackBlockCheckoutData(extraFields);
     260        } else {
     261            trackClassicCheckoutData(extraFields);
     262        }
    216263    });
    217264
  • retainful/trunk/i18n/languages/retainful.pot

    r3655829 r3705113  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Email Marketing for WordPress and WooCommerce - Retainful 1.0.9\n"
     5"Project-Id-Version: Email Marketing for WordPress and WooCommerce - Retainful 1.0.10\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/retainful\n"
    77"Last-Translator: retainful <support@retainful.com>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-08-20T05:19:58+00:00\n"
     12"POT-Creation-Date: 2026-09-18T10:34:13+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
    … …  
    6969msgstr ""
    7070
    71 #: App/Controllers/Admin/Common.php:193
     71#: App/Controllers/Admin/Common.php:190
    7272msgid "validation failed!"
    7373msgstr ""
    7474
    75 #: App/Controllers/Admin/Common.php:197
     75#: App/Controllers/Admin/Common.php:194
    7676msgid "This field"
    7777msgstr ""
    7878
    7979#. translators: 1. this field text 2. invalid status
    80 #: App/Controllers/Admin/Common.php:267
     80#: App/Controllers/Admin/Common.php:239
    8181msgid "%1$s contains invalid status(es): %2$s"
    8282msgstr ""
    … …  
    492492
    493493#: App/Controllers/Admin/Label.php:203
    494 msgid "Delete old Retainful coupons"
     494msgid "IP Addresses (comma separated)"
    495495msgstr ""
    496496
    497497#: App/Controllers/Admin/Label.php:204
    498 msgid "Adds a button to the Coupons screen that permanently deletes expired coupons Retainful created. Coupons you created yourself are never touched. Deleted coupons disappear from WooCommerce coupon reports, so leave this off unless the coupon table has grown too large."
     498msgid "192.168.1.1, 10.0.0.1"
    499499msgstr ""
    500500
    501501#: App/Controllers/Admin/Label.php:205
    502 msgid "Delete coupons that expired more than"
     502msgid "Enter consent text"
    503503msgstr ""
    504504
    505505#: App/Controllers/Admin/Label.php:206
    506 msgid "Anything that expired inside this window is kept. For example, 60 days keeps every coupon that expired in the last 60 days."
     506msgid "Enter phone consent text"
    507507msgstr ""
    508508
    509509#: App/Controllers/Admin/Label.php:207
    510 msgid "60"
     510msgid "Consent type"
    511511msgstr ""
    512512
    513513#: App/Controllers/Admin/Label.php:210
    514 msgid "Days ago"
     514msgid "Implicit"
    515515msgstr ""
    516516
    517517#: App/Controllers/Admin/Label.php:214
    518 msgid "Months ago"
    519 msgstr ""
    520 
    521 #: App/Controllers/Admin/Label.php:218
    522 msgid "Years ago"
    523 msgstr ""
    524 
    525 #: App/Controllers/Admin/Label.php:222
    526 msgid "IP Addresses (comma separated)"
    527 msgstr ""
    528 
    529 #: App/Controllers/Admin/Label.php:223
    530 msgid "192.168.1.1, 10.0.0.1"
     518msgid "Explicit"
     519msgstr ""
     520
     521#: App/Controllers/Admin/Label.php:220
     522msgid "After Billing Email"
    531523msgstr ""
    532524
    533525#: App/Controllers/Admin/Label.php:224
    534 msgid "Enter consent text"
    535 msgstr ""
    536 
    537 #: App/Controllers/Admin/Label.php:225
    538 msgid "Enter phone consent text"
    539 msgstr ""
    540 
    541 #: App/Controllers/Admin/Label.php:226
    542 msgid "Consent type"
    543 msgstr ""
    544 
    545 #: App/Controllers/Admin/Label.php:229
    546 msgid "Implicit"
    547 msgstr ""
    548 
    549 #: App/Controllers/Admin/Label.php:233
    550 msgid "Explicit"
    551 msgstr ""
    552 
    553 #: App/Controllers/Admin/Label.php:239
    554 msgid "After Billing Email"
    555 msgstr ""
    556 
    557 #: App/Controllers/Admin/Label.php:243
     526#: App/Controllers/Admin/Label.php:234
     527msgid "Checkout Terms and Conditions"
     528msgstr ""
     529
     530#: App/Controllers/Admin/Label.php:230
     531msgid "After Billing Phone"
     532msgstr ""
     533
     534#: App/Controllers/Admin/Label.php:240
     535msgid "WooCommerce Session ( Default)"
     536msgstr ""
     537
     538#: App/Controllers/Admin/Label.php:244
     539msgid "Cookie"
     540msgstr ""
     541
     542#: App/Controllers/Admin/Label.php:249
     543msgid "Marketing consent message is required"
     544msgstr ""
     545
     546#: App/Controllers/Admin/Label.php:250
     547msgid "Phone consent message is required"
     548msgstr ""
     549
     550#: App/Controllers/Admin/Label.php:251
     551msgid "Please enter API key"
     552msgstr ""
     553
     554#: App/Controllers/Admin/Label.php:252
     555msgid "Connected to Retainful successfully"
     556msgstr ""
     557
    558558#: App/Controllers/Admin/Label.php:253
    559 msgid "Checkout Terms and Conditions"
    560 msgstr ""
    561 
    562 #: App/Controllers/Admin/Label.php:249
    563 msgid "After Billing Phone"
    564 msgstr ""
    565 
     559msgid "Failed to connect"
     560msgstr ""
     561
     562#: App/Controllers/Admin/Label.php:254
    566563#: App/Controllers/Admin/Label.php:259
    567 msgid "WooCommerce Session ( Default)"
    568 msgstr ""
    569 
    570 #: App/Controllers/Admin/Label.php:263
    571 msgid "Cookie"
    572 msgstr ""
    573 
    574 #: App/Controllers/Admin/Label.php:268
    575 msgid "Marketing consent message is required"
    576 msgstr ""
    577 
    578 #: App/Controllers/Admin/Label.php:269
    579 msgid "Phone consent message is required"
    580 msgstr ""
    581 
    582 #: App/Controllers/Admin/Label.php:270
    583 msgid "Please enter API key"
    584 msgstr ""
    585 
    586 #: App/Controllers/Admin/Label.php:271
    587 msgid "Connected to Retainful successfully"
    588 msgstr ""
    589 
    590 #: App/Controllers/Admin/Label.php:272
    591 msgid "Failed to connect"
    592 msgstr ""
    593 
    594 #: App/Controllers/Admin/Label.php:273
    595 #: App/Controllers/Admin/Label.php:278
    596564msgid "WordPress Settings"
    597565msgstr ""
    598566
    599 #: App/Controllers/Admin/Label.php:274
     567#: App/Controllers/Admin/Label.php:255
    600568msgid "API Key Settings"
    601569msgstr ""
    602570
    603 #: App/Controllers/Admin/Label.php:275
     571#: App/Controllers/Admin/Label.php:256
    604572msgid "Enter your Retainful API key to connect your WordPress site"
    605573msgstr ""
    606574
    607 #: App/Controllers/Admin/Label.php:276
     575#: App/Controllers/Admin/Label.php:257
    608576msgid "Your site is connected to Retainful."
    609577msgstr ""
    610578
    611 #: App/Controllers/Admin/Label.php:277
     579#: App/Controllers/Admin/Label.php:258
    612580msgid "Enter your API key and click Connect to connect to Retainful."
    613581msgstr ""
    614582
    615 #: App/Controllers/Admin/Label.php:306
     583#: App/Controllers/Admin/Label.php:287
    616584msgid "Pending"
    617585msgstr ""
    618586
    619 #: App/Controllers/Admin/Label.php:307
     587#: App/Controllers/Admin/Label.php:288
    620588msgid "On Hold"
    621589msgstr ""
    622590
    623 #: App/Controllers/Admin/Label.php:308
     591#: App/Controllers/Admin/Label.php:289
    624592msgid "Processing"
    625593msgstr ""
    626594
    627 #: App/Controllers/Admin/Label.php:309
     595#: App/Controllers/Admin/Label.php:290
    628596msgid "Completed"
    629597msgstr ""
    630598
    631 #: App/Controllers/Admin/Label.php:310
     599#: App/Controllers/Admin/Label.php:291
    632600msgid "Refunded"
    633601msgstr ""
    634602
    635 #: App/Controllers/Admin/Label.php:311
     603#: App/Controllers/Admin/Label.php:292
    636604msgid "Cancelled"
    637605msgstr ""
    638606
    639 #: App/Controllers/Admin/Label.php:312
     607#: App/Controllers/Admin/Label.php:293
    640608msgid "Failed"
    641609msgstr ""
    642610
    643 #: App/Controllers/Admin/Label.php:313
    644 #: App/Controllers/CouponCleanup.php:1313
     611#: App/Controllers/Admin/Label.php:294
     612#: App/Controllers/CouponCleanup.php:1576
    645613msgid "Expired"
    646614msgstr ""
    … …  
    673641msgstr ""
    674642
    675 #: App/Controllers/CouponCleanup.php:238
     643#: App/Controllers/CouponCleanup.php:302
    676644msgid "Cleanup running…"
    677645msgstr ""
    678646
    679 #: App/Controllers/CouponCleanup.php:252
     647#: App/Controllers/CouponCleanup.php:320
    680648msgid "No expired Retainful coupons"
    681649msgstr ""
    682650
    683 #: App/Controllers/CouponCleanup.php:266
    684 #: App/Controllers/CouponCleanup.php:329
     651#: App/Controllers/CouponCleanup.php:334
     652#: App/Controllers/CouponCleanup.php:402
    685653msgid "Delete expired Retainful coupons"
    686654msgstr ""
    687655
    688656#. translators: the word a user types to confirm a destructive action. Keep it short; it is matched exactly, including case.
    689 #: App/Controllers/CouponCleanup.php:306
     657#: App/Controllers/CouponCleanup.php:383
    690658msgctxt "type-to-confirm keyword"
    691659msgid "DELETE"
    692660msgstr ""
    693661
     662#: App/Controllers/CouponCleanup.php:385
     663msgid "This cannot be undone. Continue?"
     664msgstr ""
     665
     666#: App/Controllers/CouponCleanup.php:406
     667msgid "Delete coupons that expired more than"
     668msgstr ""
     669
     670#: App/Controllers/CouponCleanup.php:419
     671msgid "Coupons you created yourself are not affected. This cannot be undone."
     672msgstr ""
     673
     674#. translators: %s: the word the user must type, e.g. "delete"
     675#: App/Controllers/CouponCleanup.php:425
     676msgid "Type %s to continue."
     677msgstr ""
     678
     679#: App/Controllers/CouponCleanup.php:435
     680msgid "Cancel"
     681msgstr ""
     682
     683#: App/Controllers/CouponCleanup.php:438
     684msgid "Delete coupons"
     685msgstr ""
     686
     687#: App/Controllers/CouponCleanup.php:465
     688#: App/Controllers/CouponCleanup.php:658
     689msgid "Enter a whole number of 1 or more."
     690msgstr ""
     691
     692#: App/Controllers/CouponCleanup.php:604
     693msgid "Days ago"
     694msgstr ""
     695
     696#: App/Controllers/CouponCleanup.php:605
     697msgid "Months ago"
     698msgstr ""
     699
     700#: App/Controllers/CouponCleanup.php:606
     701msgid "Years ago"
     702msgstr ""
     703
    694704#. translators: 1: number of coupons, 2: formatted cutoff date
    695 #: App/Controllers/CouponCleanup.php:310
     705#: App/Controllers/CouponCleanup.php:624
    696706msgid "This permanently deletes %1$d Retainful coupon that expired before %2$s."
    697707msgid_plural "This permanently deletes %1$d Retainful coupons that expired before %2$s."
    … …  
    699709msgstr[1] ""
    700710
    701 #: App/Controllers/CouponCleanup.php:320
    702 msgid "This cannot be undone. Continue?"
    703 msgstr ""
    704 
    705 #: App/Controllers/CouponCleanup.php:332
    706 msgid "Coupons you created yourself are not affected. This cannot be undone."
    707 msgstr ""
    708 
    709 #. translators: %s: the word the user must type, e.g. "delete"
    710 #: App/Controllers/CouponCleanup.php:338
    711 msgid "Type %s to continue."
    712 msgstr ""
    713 
    714 #: App/Controllers/CouponCleanup.php:348
    715 msgid "Cancel"
    716 msgstr ""
    717 
    718 #: App/Controllers/CouponCleanup.php:351
    719 msgid "Delete coupons"
    720 msgstr ""
    721 
    722 #: App/Controllers/CouponCleanup.php:429
     711#: App/Controllers/CouponCleanup.php:681
    723712msgid "You do not have permission to do that."
    724713msgstr ""
    725714
    726 #: App/Controllers/CouponCleanup.php:563
     715#: App/Controllers/CouponCleanup.php:819
    727716msgid "Coupon cleanup is turned off in Retainful settings."
    728717msgstr ""
    729718
    730 #: App/Controllers/CouponCleanup.php:564
    731 msgid "Coupon cleanup settings are incomplete. Check the age and unit."
    732 msgstr ""
    733 
    734 #: App/Controllers/CouponCleanup.php:565
     719#: App/Controllers/CouponCleanup.php:820
     720msgid "Enter a valid number and unit before deleting."
     721msgstr ""
     722
     723#: App/Controllers/CouponCleanup.php:821
    735724msgid "Action Scheduler is unavailable, so the cleanup cannot be queued."
    736725msgstr ""
    737726
    738727#. translators: 1: coupons deleted so far, 2: total matched when the pass started
    739 #: App/Controllers/CouponCleanup.php:585
     728#: App/Controllers/CouponCleanup.php:841
    740729msgid "Coupon cleanup is running — %1$s of %2$s coupon deleted so far."
    741730msgid_plural "Coupon cleanup is running — %1$s of %2$s coupons deleted so far."
    … …  
    744733
    745734#. translators: %s: coupons deleted so far
    746 #: App/Controllers/CouponCleanup.php:596
     735#: App/Controllers/CouponCleanup.php:852
    747736msgid "Coupon cleanup is running — %s coupon deleted so far."
    748737msgid_plural "Coupon cleanup is running — %s coupons deleted so far."
    … …  
    750739msgstr[1] ""
    751740
    752 #: App/Controllers/CouponCleanup.php:608
     741#: App/Controllers/CouponCleanup.php:864
    753742msgid "Reload this page to update the count."
    754743msgstr ""
    755744
    756 #: App/Controllers/CouponCleanup.php:627
     745#: App/Controllers/CouponCleanup.php:883
    757746msgid "Coupon cleanup finished — there was nothing to delete."
    758747msgstr ""
    759748
    760749#. translators: 1: coupons deleted, 2: coupons that could not be deleted
    761 #: App/Controllers/CouponCleanup.php:631
     750#: App/Controllers/CouponCleanup.php:887
    762751msgid "Coupon cleanup finished — %1$s coupon deleted, %2$s could not be deleted. Run it again to retry those."
    763752msgid_plural "Coupon cleanup finished — %1$s coupons deleted, %2$s could not be deleted. Run it again to retry those."
    … …  
    766755
    767756#. translators: %s: coupons deleted
    768 #: App/Controllers/CouponCleanup.php:643
     757#: App/Controllers/CouponCleanup.php:899
    769758msgid "Coupon cleanup finished — %s coupon deleted."
    770759msgid_plural "Coupon cleanup finished — %s coupons deleted."
    … …  
    772761msgstr[1] ""
    773762
    774 #: App/Controllers/CouponCleanup.php:1265
     763#: App/Controllers/CouponCleanup.php:1529
    775764msgid "Retainful coupon cleanup — dry run"
    776765msgstr ""
    777766
    778 #: App/Controllers/CouponCleanup.php:1266
     767#: App/Controllers/CouponCleanup.php:1530
    779768msgid "(nothing has been deleted)"
    780769msgstr ""
    781770
    782 #. translators: 1: enabled/disabled, 2: period, 3: unit
    783 #: App/Controllers/CouponCleanup.php:1271
    784 msgid "Setting: %1$s · delete coupons that expired more than %2$d %3$s ago"
    785 msgstr ""
    786 
    787 #: App/Controllers/CouponCleanup.php:1272
    788 msgid "enabled"
    789 msgstr ""
    790 
    791 #: App/Controllers/CouponCleanup.php:1272
    792 msgid "disabled"
    793 msgstr ""
    794 
    795 #: App/Controllers/CouponCleanup.php:1279
    796 msgid "No usable cutoff — check the period setting."
     771#. translators: 1: period, 2: unit
     772#: App/Controllers/CouponCleanup.php:1535
     773msgid "delete coupons that expired more than %1$d %2$s ago"
     774msgstr ""
     775
     776#: App/Controllers/CouponCleanup.php:1542
     777msgid "No usable cutoff."
    797778msgstr ""
    798779
    799780#. translators: 1: formatted cutoff date, 2: comma separated mode list
    800 #: App/Controllers/CouponCleanup.php:1286
     781#: App/Controllers/CouponCleanup.php:1549
    801782msgid "Cutoff: %1$s · modes: %2$s"
    802783msgstr ""
    803784
    804 #: App/Controllers/CouponCleanup.php:1288
     785#: App/Controllers/CouponCleanup.php:1551
    805786msgid "none"
    806787msgstr ""
    807788
    808789#. translators: 1: matching count, 2: total Retainful coupon count
    809 #: App/Controllers/CouponCleanup.php:1299
     790#: App/Controllers/CouponCleanup.php:1562
    810791msgid "%1$d of %2$d Retainful coupons match."
    811792msgstr ""
    812793
    813 #: App/Controllers/CouponCleanup.php:1312
     794#: App/Controllers/CouponCleanup.php:1575
    814795msgid "Code"
    815796msgstr ""
    816797
    817 #: App/Controllers/CouponCleanup.php:1314
     798#: App/Controllers/CouponCleanup.php:1577
    818799msgid "Used"
    819800msgstr ""
    820801
    821 #: App/Controllers/CouponCleanup.php:1315
     802#: App/Controllers/CouponCleanup.php:1578
    822803msgid "Last used"
    823804msgstr ""
    824805
    825 #: App/Controllers/CouponCleanup.php:1316
     806#: App/Controllers/CouponCleanup.php:1579
    826807msgid "Matched by"
    827808msgstr ""
    828809
    829810#. translators: 1: number of sampled rows, 2: total matching
    830 #: App/Controllers/CouponCleanup.php:1348
     811#: App/Controllers/CouponCleanup.php:1611
    831812msgid "Showing the first %1$d of %2$d matches."
    832813msgstr ""
    … …  
    10301011msgstr ""
    10311012
    1032 #: App/Controllers/Webhook.php:945
     1013#: App/Controllers/Webhook.php:984
    10331014msgid "Cart is not valid to track"
    10341015msgstr ""
    10351016
    1036 #: App/Controllers/Webhook.php:954
     1017#: App/Controllers/Webhook.php:993
    10371018msgid "Email is not valid"
    10381019msgstr ""
    10391020
    1040 #: App/Controllers/Webhook.php:966
     1021#: App/Controllers/Webhook.php:1005
    10411022msgid "Track ID or header ID is not valid"
    10421023msgstr ""
    10431024
    1044 #: App/Controllers/Webhook.php:1008
     1025#: App/Controllers/Webhook.php:1047
    10451026msgid "Cart sync completed successfully"
    10461027msgstr ""
    … …  
    10501031msgstr ""
    10511032
    1052 #: App/Helpers/Customer.php:612
     1033#: App/Helpers/Customer.php:645
    10531034msgid "Note: Auto-login disabled when recreating cart for WordPress Admin account. Checking out as guest."
    10541035msgstr ""
  • retainful/trunk/readme.txt

    r3655829 r3705113  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    213213
    214214== Changelog ==
     215= 1.0.10 =
     216- Improved: Expired coupon workflow.
     217- Improved: Completed Webhook action cleanup.
     218
    215219= 1.0.9 =
    216220- Added: Expired coupon deletion functionality.
  • retainful/trunk/retainful.php

    r3655829 r3705113  
    55 * Description: Email marketing, newsletters for WordPress and WooCommerce. Send newsletters and campaigns, recover  abandoned carts, signup forms, and more
    66 * Author: Retainful
    7  * Version: 1.0.9
     7 * Version: 1.0.10
    88 * Slug: retainful
    99 * Text Domain: retainful
    … …  
    2929
    3030defined( 'RTFL_PLUGIN_NAME' ) or define( 'RTFL_PLUGIN_NAME', 'Retainful' );
    31 defined( 'RTFL_VERSION' ) or define( 'RTFL_VERSION', "1.0.9" );
     31defined( 'RTFL_VERSION' ) or define( 'RTFL_VERSION', "1.0.10" );
    3232defined( 'RTFL_PLUGIN_SLUG' ) or define( 'RTFL_PLUGIN_SLUG', "retainful" );
    3333defined( 'RTFL_PLUGIN_PATH' ) or define( 'RTFL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
  • retainful/trunk/vendor/autoload.php

    r3655829 r3705113  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit0906ab52e9d5dfd2263c302fb14d81c6::getLoader();
     7return ComposerAutoloaderInit87cb603030b339d62aeb00ee9c3ada38::getLoader();
  • retainful/trunk/vendor/composer/autoload_real.php

    r3655829 r3705113  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit0906ab52e9d5dfd2263c302fb14d81c6
     5class ComposerAutoloaderInit87cb603030b339d62aeb00ee9c3ada38
    66{
    77    private static $loader;
    … …  
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit0906ab52e9d5dfd2263c302fb14d81c6', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit87cb603030b339d62aeb00ee9c3ada38', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit0906ab52e9d5dfd2263c302fb14d81c6', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit87cb603030b339d62aeb00ee9c3ada38', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    … …  
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit0906ab52e9d5dfd2263c302fb14d81c6::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit87cb603030b339d62aeb00ee9c3ada38::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • retainful/trunk/vendor/composer/autoload_static.php

    r3655829 r3705113  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit0906ab52e9d5dfd2263c302fb14d81c6
     7class ComposerStaticInit87cb603030b339d62aeb00ee9c3ada38
    88{
    99    public static $prefixLengthsPsr4 = array (
    … …  
    4444    {
    4545        return \Closure::bind(function () use ($loader) {
    46             $loader->prefixLengthsPsr4 = ComposerStaticInit0906ab52e9d5dfd2263c302fb14d81c6::$prefixLengthsPsr4;
    47             $loader->prefixDirsPsr4 = ComposerStaticInit0906ab52e9d5dfd2263c302fb14d81c6::$prefixDirsPsr4;
    48             $loader->classMap = ComposerStaticInit0906ab52e9d5dfd2263c302fb14d81c6::$classMap;
     46            $loader->prefixLengthsPsr4 = ComposerStaticInit87cb603030b339d62aeb00ee9c3ada38::$prefixLengthsPsr4;
     47            $loader->prefixDirsPsr4 = ComposerStaticInit87cb603030b339d62aeb00ee9c3ada38::$prefixDirsPsr4;
     48            $loader->classMap = ComposerStaticInit87cb603030b339d62aeb00ee9c3ada38::$classMap;
    4949
    5050        }, null, ClassLoader::class);
  • retainful/trunk/vendor/composer/installed.php

    r3655829 r3705113  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'dfa048fa20df819fb0b540b3943e7db41d4c3874',
     8        'reference' => '2f52301a3db47ec011ba98d3f130a9ab6de97c02',
    99        'name' => 'retainful/woocommerce',
    1010        'dev' => false,
    … …  
    2626            'install_path' => __DIR__ . '/../../',
    2727            'aliases' => array(),
    28             'reference' => 'dfa048fa20df819fb0b540b3943e7db41d4c3874',
     28            'reference' => '2f52301a3db47ec011ba98d3f130a9ab6de97c02',
    2929            'dev_requirement' => false,
    3030        ),
Note: See TracChangeset for help on using the changeset viewer.