Plugin Directory

Changeset 3038864

Timestamp:
02/21/2024 02:52:02 AM (5 months ago)
Author:
devsabbirahmed
Message:

2.9.1 released

Location:
simple-form
Files:
287 added
8 edited

Legend:

Unmodified
Added
Removed
  • simple-form/trunk/app/Ajax/Tables.php

    r3038119 r3038864  
    392392        $siteKey     = isset( $_POST['siteKey'] ) ? sanitize_text_field( wp_unslash($_POST['siteKey'] ) ) : '';
    393393        $secretKey = isset( $_POST['secretKey'] ) ? sanitize_text_field( $_POST['secretKey'] ) : '';
    394         /**
    395          * Pro feature.
    396          */
    397        
    398         if ( SIMPLEFORM()->database->table->is_pro_active() ) {
    399             /* $pro_instance = new DB();
    400             $pro_instance->store_captcha_credentials( $captchaEnable, $siteKey, $secretKey ); */
    401 
    402             if ($siteKey !== '' && $secretKey !== '') {
    403                 $cloudflareData = [
    404                     'captchaEnable' => $captchaEnable,
    405                     'siteKey' => $siteKey,
    406                     'secretKey' => $secretKey,
    407                     'validated' => true,
    408                 ];
    409        
    410                 update_option( 'simple_form_turnstile_credentials', $cloudflareData );
    411                 update_option('simple_form_turnstile_validated', true);
     394
     395        if ($siteKey !== '' && $secretKey !== '') {
     396            $cloudflareData = [
     397                'captchaEnable' => $captchaEnable,
     398                'siteKey' => $siteKey,
     399                'secretKey' => $secretKey,
     400                'validated' => true,
     401            ];
    412402   
    413                 wp_send_json_success([
    414                     'message'   => __( 'Settings saved.', 'simpleform' ),
    415                     'validated' => wp_validate_boolean( get_option( 'simple_form_turnstile_validated' ) ),
    416                 ]);
    417    
    418             }else{
    419                 update_option('simple_form_turnstile_validated', false);
    420                 wp_send_json_error([
    421                     'message' => __( 'Invalid settings to save', 'simpleform' ),
    422                 ]);
    423             }
     403            update_option( 'simple_form_turnstile_credentials', $cloudflareData );
     404            update_option('simple_form_turnstile_validated', true);
     405
     406            wp_send_json_success([
     407                'message'   => __( 'Settings saved.', 'simpleform' ),
     408                'validated' => wp_validate_boolean( get_option( 'simple_form_turnstile_validated' ) ),
     409            ]);
    424410
    425411        }else{
     
    447433        $siteKey = isset( $_POST['siteKey'] ) ? sanitize_text_field( $_POST['siteKey'] ) : '';
    448434
    449         if ( SIMPLEFORM()->database->table->is_pro_active() ) {
    450             /* $pro_instance = new DB();
    451             $pro_instance->validate_captcha( $token, $siteKey, $secretKey ); */
    452             if ($token !== '' && $secretKey !== '') {
    453 
    454                 $verification_url = 'https://challenges.cloudflare.com/turnstile/v0/siteverify';
    455    
    456                 $response = wp_remote_post(
    457                     $verification_url,
    458                     [
    459                         'body' => [
    460                             'secret'   => $secretKey,
    461                             'response' => $token,
    462                         ]
     435        if ($token !== '' && $secretKey !== '') {
     436
     437            $verification_url = 'https://challenges.cloudflare.com/turnstile/v0/siteverify';
     438
     439            $response = wp_remote_post(
     440                $verification_url,
     441                [
     442                    'body' => [
     443                        'secret'   => $secretKey,
     444                        'response' => $token,
    463445                    ]
    464                 );
    465    
    466                 $varification = json_decode( wp_remote_retrieve_body( $response ), true );
    467    
    468                 update_option( 'simple_form_turnstile_validated', wp_validate_boolean( $varification['success'] ) );
    469    
    470                 if ($varification['success']) {
    471                     wp_send_json_success([
    472                         'message'   => __( 'Connection verified & saved.', 'simpleform' ),
    473                         'validated' => get_option( 'simple_form_turnstile_validated' ),
    474                     ]);
    475                 } else {
    476                     wp_send_json_error([
    477                         'message'   => __( 'Validation error', 'simpleform' ),
    478                         'validated' => get_option( 'simple_form_turnstile_validated' ),
    479                     ]);
    480                 }
    481    
    482             }else {
     446                ]
     447            );
     448
     449            $varification = json_decode( wp_remote_retrieve_body( $response ), true );
     450
     451            update_option( 'simple_form_turnstile_validated', wp_validate_boolean( $varification['success'] ) );
     452
     453            if ($varification['success']) {
     454                wp_send_json_success([
     455                    'message'   => __( 'Connection verified & saved.', 'simpleform' ),
     456                    'validated' => get_option( 'simple_form_turnstile_validated' ),
     457                ]);
     458            } else {
    483459                wp_send_json_error([
    484460                    'message'   => __( 'Validation error', 'simpleform' ),
     
    557533            ) );
    558534        }
     535
    559536
    560537        $options = get_option('form_settings');
     
    662639
    663640        /**
    664          * WhatsApp redirection
     641         * WhatsApp redirection Old code with esignature that not send in whatsapp
     642         * Now send as a link by uploading in WP
    665643         */
    666644
    667         if ( in_array($id, $selectedWhatsapp) ) {
    668 
    669             // WhatsApp redirection
    670             if ( isset($options['whatsappRedirection']) && $options['whatsappRedirection'] === 'true' ) {
    671 
     645        if (in_array($id, $selectedWhatsapp)) {
     646            // WhatsApp redirection.
     647            if (isset($options['whatsappRedirection']) && $options['whatsappRedirection'] === 'true') {
    672648                $whatsappNumber = $options['whatsappNumber'];
    673649                $openInNewTab = $options['openInNewTab'];
    674 
    675                 $whatsappNumber = preg_replace( '/[^0-9\+]/', 'simpleform', $whatsappNumber );
    676                 if ( substr( $whatsappNumber, 0, 1 ) !== '+' ) {
     650       
     651                $whatsappNumber = preg_replace();
     652                if () {
    677653                    $whatsappNumber = '+' . $whatsappNumber;
    678654                }
    679 
    680                 if ( 'true' !== $openInNewTab ) {
    681                     // Ensure $form_data is a string by joining array elements
    682                     $form_data_str = is_array($form_data) ? implode(' ', $form_data) : $form_data;
     655       
     656                // Filter out fields starting with 'esignature-'
     657                $filtered_form_data = [];
     658                foreach ($form_data as $key => $value) {
     659                    if (strpos($key, 'esignature-') !== 0) {
     660                        $filtered_form_data[$key] = $value;
     661                    }
     662                }
     663   
     664                // Add uploaded image link to WhatsApp message
     665                foreach ($form_data as $field => $value) {
     666                    if (strpos($field, 'esignature-') === 0) {
     667                        $image_data = base64_decode(preg_replace('#^data:image/\w+;base64,#i', '', $value));
     668                        $filename = wp_unique_filename(wp_upload_dir()['path'], 'esignature', null, wp_get_mime_types()['png']);
     669                        $upload_path = wp_upload_dir()['path'] . '/' . $filename;
     670                        file_put_contents($upload_path, $image_data);
     671                        $attachment_id = wp_insert_attachment([
     672                            'guid'           => wp_upload_dir()['url'] . '/' . $filename,
     673                            'post_mime_type' => 'image/png',
     674                            'post_title'     => 'E-Signature',
     675                            'post_content'   => '',
     676                            'post_status'    => 'inherit',
     677                        ], $upload_path);
     678                        $image_url = wp_get_attachment_url($attachment_id);
     679                        $filtered_form_data[$field] = $image_url;
     680                    }
     681                }
     682   
     683                // Ensure $filtered_form_data is a string by joining array elements.
     684                $form_data_str = is_array($filtered_form_data) ? implode(' ', $filtered_form_data) : $filtered_form_data;
     685   
     686                if ('true' !== $openInNewTab) {
    683687                    $wh_url = 'https://wa.me/' . $whatsappNumber . '?text=' . urlencode(html_entity_decode($form_data_str));
    684688                } else {
    685                     // Ensure $form_data is a string by joining array elements
    686                     $form_data_str = is_array($form_data) ? implode(' ', $form_data) : $form_data;
    687689                    $wh_url = 'https://web.whatsapp.com/send?phone=' . $whatsappNumber . '&text=' . urlencode(html_entity_decode($form_data_str));
    688690                }
    689 
     691   
    690692                $simple_form_new_opt = [];
    691                 // Send to WhatsApp now it has no used as url set from JS with new update code.
     693                // Send to WhatsApp now it has no used as set from JS with new update code.
    692694                $simple_form_new_opt['simple_form_whatsapp_url'] = $wh_url;
    693695                $simple_form_new_opt['simple_form_whatsapp_number'] = $whatsappNumber;
    694                 $simple_form_new_opt['simple_form_whatsapp_data'] = $form_data;
     696                $simple_form_new_opt['simple_form_whatsapp_data'] = $form_data;
    695697                $simple_form_new_opt['simple_form_new_tab'] = $openInNewTab;
    696 
     698   
    697699                // Add nonce.
    698                 $nonce = wp_create_nonce( 'simple_form_submission' );
     700                $nonce = wp_create_nonce();
    699701                $simple_form_new_opt['nonce'] = $nonce;
    700 
     702   
    701703                $cookie_name = 'simple_form_whatsapp_data';
    702                 setcookie($cookie_name, json_encode($simple_form_new_opt), time() + ( 86400 * 30 ), '/');
    703             }
    704         }
    705 
     704                setcookie($cookie_name, json_encode($simple_form_new_opt), time() + (86400 * 30), '/');
     705            }
     706        }
     707       
     708       
     709       
    706710        wp_send_json_success([
    707711            'message' => __('Form data received and processed successfully.', 'simpleform'),
  • simple-form/trunk/react/build/index.asset.php

    r3038119 r3038864  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => 'e321acca73aa8de12615');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => '');
  • simple-form/trunk/react/build/index.css

    r3038119 r3038864  
    99.create-table-intro .simpleform-title{margin-bottom:15px}.table-header{align-items:center;display:flex;justify-content:space-between;margin-top:15px}.table-header .simpleform-title{margin-bottom:0;margin-right:10px}.table-header .table-search-box{display:flex;gap:10px;margin-left:30px;max-width:384px;position:relative;width:100%}.table-header .table-search-box .icon{height:17px;left:20px;max-width:17px;position:absolute;top:38%;transform:translateY(-50%);width:100%}.table-header .table-search-box .icon svg{width:100%}.simpleform-card.table-item-card{margin-bottom:30;padding:26px 30px 30px}.simpleform-card.table-item-card.manage-table-card{padding:26px 30px 30px;text-align:center}.simpleform-card.table-item-card.manage-table-card h2{color:#1e1e1e;font-size:15px;font-weight:600;line-height:27px;margin-bottom:6px;margin-top:0}.simpleform-card.table-item-card.manage-table-card h4{color:#666873;font-size:16px;font-weight:400;line-height:150%;margin-bottom:15px;margin-top:0}.simpleform-card.table-item-card .table-action-box .copy-shortcode.btn-success{color:#ff7e47}.simpleform-card.table-item-card .table-action-box .table-edit:hover svg path{fill:#84aeff}.add-new-wrapper{text-align:center}.no-tables-created-intro{align-items:center;display:flex;flex-direction:column;margin:auto;padding:100px 0}@media screen and (max-width:1199px){.no-tables-created-intro{padding:60px 0 40px}}@media screen and (max-width:992px){.no-tables-created-intro{padding:40px 0 20px}}@media screen and (max-width:575px){.no-tables-created-intro{padding:20px 0 0}}.no-tables-created-intro h2{color:#1e1e1e;font-size:15px;font-weight:600;line-height:27px;margin:0 0 6px;text-align:center}.no-tables-created-intro p{color:#666873;font-size:16px;font-weight:400;line-height:150%;margin:0 auto 15px}.no-tables-created-intro .no-tables-intro-img{margin-bottom:22px}.no-tables-created-intro .help{margin-bottom:0;margin-top:20px}.no-tables-created-intro .help a{color:#1786e3;font-weight:600;text-decoration:none;transition:all .3s ease}.no-tables-created-intro .help a:hover{text-decoration:underline}
    1010.form-fields{background-color:#f9f9f9;border:1px solid #ccc;padding:10px;width:25%}.form-container{background-color:#f5f5f5;border:1px solid #ddd;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,.1);margin:0 auto;max-width:400px;padding:20px}label{display:block;font-weight:700;margin-bottom:8px}input[type=text],select,textarea{border:1px solid #ccc;border-radius:5px;font-size:16px;margin-bottom:20px;outline:none;padding:10px;width:100%}.simple-form-select{align-items:center;margin-bottom:20px}.simple-form-select label{font-weight:700;margin-right:10px;margin-top:4px;vertical-align:middle}.simple-form-fields{align-items:center;display:flex;margin-right:20px}.simple-form-fields input[type=radio]{margin-right:5px;vertical-align:middle}.simple-form-checkbox-toggle{align-items:center;display:flex;justify-content:space-between;padding:10px}.switch-label{align-items:center;cursor:pointer;display:flex}.switch-input{height:0;opacity:0;position:absolute;width:0}.slider{background-color:#ccc;display:inline-block;height:20px;position:relative;transition:background-color .4s;width:40px}.slider,.slider.round{border-radius:20px}.slider:before{background-color:#fff;border-radius:50%;bottom:2px;content:"";height:16px;left:2px;position:absolute;transition:transform .4s;width:16px}.switch-input:checked+.slider{background-color:#2196f3}.switch-input:checked+.slider:before{transform:translateX(20px)}button[type=submit]{background-color:#4caf50;border:none;border-radius:5px;color:#fff;cursor:pointer;font-size:16px;padding:10px 20px;transition:background-color .3s}button[type=submit]:hover{background-color:#45a049}
    11 h2{gap:10px;justify-content:left;margin-left:25px;text-align:left}.checkbox-wrapper,h2{display:flex}.form-builder-container{margin-bottom:20px;margin-top:20px}.form-builder,.form-builder-container{display:flex;justify-content:space-between}.form-builder{background-color:#d6e1e9;border:1px solid #ccc;border-radius:5px;margin:10px 10px 0 20px;padding:10px;width:70%}.form-fields{background-color:#f9f9f9;border:1px solid #ccc;height:550px;overflow-y:scroll;padding:10px;position:sticky;scrollbar-color:#cfe0ee transparent;scrollbar-width:thin;top:65px;width:35%}.form-fields::-webkit-scrollbar{width:4px}.form-fields::-webkit-scrollbar-thumb{background-color:#cfe0ee;border-radius:2px}.form-fields::-webkit-scrollbar-track{background-color:transparent}.form-canvas{background-color:#f9f9f9;border:1px solid #ccc;overflow-y:auto;padding:10px;width:75%}.form-canvas h1{font-size:34px}.form-canvas h2{font-size:30px}.form-canvas h3{font-size:24px}.form-canvas h4{font-size:20px}.form-canvas h5{font-size:18px}.form-canvas h6{font-size:16px}.edit-field-form{background-color:#fff6ee;background-color:#f9f9f9;height:100%;margin:10px;padding:10px;position:sticky;top:65px;width:40%}.draggable-field-container{grid-gap:8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(35%,2fr));overflow:hidden;position:relative}@media(max-width:767px){.draggable-field-container{grid-template-columns:repeat(1,1fr)}}.draggable-field.locked{opacity:.5;pointer-events:none}.draggable-field-container .draggable-field{background:#d6e1e9;border-radius:5px;color:#010023;position:relative}.NEW_TAG{align-items:center;background:teal;bottom:8px;font-size:10px;height:18px;left:75px;width:29px}.NEW_TAG,.PRO_TAG{border-radius:8px;box-shadow:2px 4px 10px 1px hsla(0,0%,79%,.47);color:#fff;position:absolute;text-align:center}.PRO_TAG{background:#147ed3;font-size:8px;height:16px;left:0;top:0;width:24px}.form-btn-group{display:flex;flex-direction:row;margin-bottom:40px;margin-left:-10px}.edit-fields-section{height:550px;overflow-y:scroll;scrollbar-color:#fff transparent;scrollbar-width:thin}.edit-fields-section::-webkit-scrollbar{width:4px}.edit-fields-section::-webkit-scrollbar-thumb{background-color:#fff;border-radius:2px}.edit-fields-section::-webkit-scrollbar-track{background-color:transparent}.draggable-field{align-items:center;background-color:#fff;border:1px solid #ddd;border:1px solid #ccc;box-sizing:border-box;cursor:grab;display:flex;margin:8px 0;margin:4px;padding:8px;padding:15px;position:relative}.draggable-field button{background-color:#d6e1e9;border:none;color:#fff;cursor:pointer;margin-left:4px;padding:4px 8px}button.form-edit{background:#fff;position:absolute;right:51px;top:-9px}button.form-edit:hover{background-color:#e5e5e5}button.form-remove{background:#fff;position:absolute;right:20px;top:-9px}button.form-remove:hover{background-color:#e5e5e5}.form-canvas-container{background-color:#fff;border:2px dashed #d6e1e9;min-height:calc(85% + 7px);padding:10px}.edit-field-form{background-color:#d6e1e9;border:1px solid #ccc;border-radius:5px;padding:21px}button.form-edit.remove-background{background:#dbd4ff}.draggable-field.remove-background{border:2px dotted #cd5c5c}.simple-form-id-panel{align-items:center;display:flex;height:65px;position:relative}.simple-form-id-panel label{flex:1;margin-right:10px;white-space:nowrap}.simple-form-id-panel .select-type-class,.simple-form-id-panel input[type=checkbox],.simple-form-id-panel input[type=text]{flex:2;padding:5px}.simple-form-id-panel .select-type-class{width:90px}.simple-form-id-panel .select-type-class,.simple-form-id-panel input[type=checkbox]{border:none;left:calc(30% + 17px);position:absolute}.simple-form-id-panel input[type=checkbox],.simple-form-id-panel input[type=radio]{background:#fff;border:1px solid #8c8f94!important;border-radius:4px;clear:none;color:#50575e;cursor:pointer;display:inline-block;height:1rem;line-height:0;margin:-.25px .25rem 0 0;outline:0}.simple-form-text input[type=text],.simple-form-text input[type=textarea]{width:50vh}.simple-form-text input[type=date],.simple-form-text input[type=datetime-local],.simple-form-text input[type=datetime],.simple-form-text input[type=email],.simple-form-text input[type=month],.simple-form-text input[type=number],.simple-form-text input[type=password],.simple-form-text input[type=search],.simple-form-text input[type=tel],.simple-form-text input[type=text],.simple-form-text input[type=time],.simple-form-text input[type=url],.simple-form-text input[type=week]{background:#fff;border:1px solid #edeff1;border-radius:4px;color:#666873;font-size:14px;font-style:normal;font-weight:400;height:50px;line-height:21px;outline:none;padding:14px 20px 15px 45px;width:50vh}.simple-form-text input[type=text],.simple-form-text select,.simple-form-text textarea{width:50vh}.select-fields-panel{align-items:center;display:flex;position:relative}.select-fields-panel button.option-remover{align-items:center;bottom:17px;display:flex;font-size:10px;height:29px;justify-content:center;position:absolute;right:7px;width:68px}.select-fields-panel button.option-remover-multiple{background:none;border:none;cursor:pointer;position:absolute;right:20px;top:12px}.select-fields-panel button.option-remover-multiple:hover{background-color:#e5e5e5}.button-sub-group-simple-form{align-items:center;display:flex;justify-content:left;margin-left:11px}button#saveData,button.jsonbtn{background-color:#0d4c62;border:none;border-radius:3px;color:#fff;cursor:pointer;display:block;margin:0 -9px 20px 18px;padding:10px 20px}button#saveData:hover,button.jsonbtn:hover{background-color:#218f67;color:#fff}pre{word-wrap:break-word;background-color:#000;border:1px solid #ccc;color:#fff;font-family:monospace;font-size:14px;height:60vh;margin:20px;overflow-y:scroll;padding:10px;white-space:pre-wrap;width:60vh}pre::-webkit-scrollbar{width:8px}pre::-webkit-scrollbar-thumb{background-color:#fff}pre::-webkit-scrollbar-track{background-color:#000}span.formname input#formName{height:40px;margin-left:23px;width:285px}
     11h2{}button#saveData,button.jsonbtn{background-color:#0d4c62;border:none;border-radius:3px;color:#fff;cursor:pointer;display:block;margin:0 -9px 20px 18px;padding:10px 20px}button#saveData:hover,button.jsonbtn:hover{background-color:#218f67;color:#fff}pre{word-wrap:break-word;background-color:#000;border:1px solid #ccc;color:#fff;font-family:monospace;font-size:14px;height:60vh;margin:20px;overflow-y:scroll;padding:10px;white-space:pre-wrap;width:60vh}pre::-webkit-scrollbar{width:8px}pre::-webkit-scrollbar-thumb{background-color:#fff}pre::-webkit-scrollbar-track{background-color:#000}span.formname input#formName{height:40px;margin-left:23px;width:285px}
    1212.main-leads-container{margin:35px}.main-leads-container .leads-container input[type=checkbox],.main-leads-container .leads-container input[type=radio]{left:13px;top:17px}.main-leads-container .leads-container .search-select-panel,.main-leads-container .leads-container .search-select-panel .export-btn{display:flex;gap:10px}.main-leads-container .leads-container .search-select-panel .export-btn img.export-icon{cursor:pointer}.exports-action{position:relative}.exports-action p.PRO_TAG{align-items:center;background:#147ed3;border-radius:8px;bottom:21px;box-shadow:2px 4px 10px 1px hsla(0,0%,79%,.47);color:#fff;font-size:10px;height:15px;left:-4px;position:absolute;text-align:center;width:25px}.inactive{opacity:.5}p.NEW_TAG{align-items:center;background:teal;border-radius:8px;box-shadow:2px 4px 10px 1px hsla(0,0%,79%,.47);color:#fff;font-size:10px;height:15px;left:320px;position:absolute;text-align:center;width:27px}.table-container{margin:0 auto;max-width:800px;padding:20px}.action-button{display:flex;gap:20px}button.delete-button,button.view-button{background-color:unset;border:none;cursor:pointer;transition:all .3s ease}button.delete-button:hover,button.view-button:hover{color:#135e96;transform:scale(1.1)}button.delete-button:active,button.view-button:active{color:#135e96}.details-leads{background:#fff;max-height:90vh;overflow-y:scroll;padding:30px;scrollbar-color:#fff thin;scrollbar-width:thin;width:100vh}.details-leads::-webkit-scrollbar{width:8px}.details-leads::-webkit-scrollbar-thumb{background-color:#fff;border-radius:4px}.details-leads::-webkit-scrollbar-track{background-color:transparent}.details-leads .leads-title{text-align:left}.details-leads .datagrid-container input[type=checkbox],.details-leads .datagrid-container input[type=radio]{left:13px;top:17px}.datagrid-container{height:100%;width:100%}
    1313.simpleform-col{min-height:55vh}div#cf-turnstile{margin:auto auto 20px}.cache-panel{position:relative}.cache-panel p.pro.cache_settings{background:#147ed3;border-radius:8px;box-shadow:2px 8px 10px 1px hsla(0,0%,79%,.47);color:#fff;font-size:11px;height:17px;position:absolute;right:9px;text-align:center;top:-4px;width:31px}.cache-panel .ErrorMessage{color:#ff4040;text-align:center}.cache-panel .SuccessMessage{color:#06ba3c;text-align:center}.wpnts-switch-review p.PRO_TAG.Pro_settings{background:#147ed3;left:170px;top:-7px;width:25px}.wpnts-switch-review p.NEW_TAG,.wpnts-switch-review p.PRO_TAG.Pro_settings{align-items:center;border-radius:8px;box-shadow:2px 4px 10px 1px hsla(0,0%,79%,.47);color:#fff;font-size:10px;height:15px;position:absolute;text-align:center}.wpnts-switch-review p.NEW_TAG{background:teal;bottom:0;left:205px;width:27px}.acb_bottom{display:flex;flex-direction:row;font-family:system-ui;justify-content:space-between;margin:20px;padding:10px;width:85%}@media(max-width:768px){.acb_bottom{flex-direction:column}}.acb_bottom .acb_left .tab-headers{background-color:#f0f0f0;display:flex;justify-content:space-between;padding:10px}.acb_bottom .acb_left .tab-headers .tab-header{border:1px solid #ccc;border-radius:5px;cursor:pointer;margin-right:10px;padding:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.acb_bottom .acb_left .tab-headers .tab-header.active{background-color:#3498db;color:#fff}.acb_bottom .acb_left .captcha-tab,.acb_bottom .acb_left .form-tab,.acb_bottom .acb_left .general-tab,.acb_bottom .acb_left .settings-tab{display:none}.acb_bottom .acb_left .captcha-tab.active,.acb_bottom .acb_left .form-tab.active,.acb_bottom .acb_left .general-tab.active,.acb_bottom .acb_left .settings-tab.active{display:block}.acb_bottom .acb_left,.acb_bottom .acb_right{width:48%}@media(max-width:768px){.acb_bottom .acb_left,.acb_bottom .acb_right{width:100%}}.acb_bottom .acb_left{box-shadow:2px 4px 10px 1px hsla(0,0%,79%,.47);display:flex;flex-direction:column;margin:25px;padding:14px}.acb_bottom .acb_left h3.review-case-title{font-family:system-ui;font-size:20px}.acb_bottom .acb_left .wpnts-switch-customization,.acb_bottom .acb_left .wpnts-switch-floating,.acb_bottom .acb_left .wpnts-switch-review{align-items:center;display:flex;justify-content:space-between;margin-bottom:30px;position:relative}.acb_bottom .acb_left .wpnts-switch-customization label,.acb_bottom .acb_left .wpnts-switch-floating label,.acb_bottom .acb_left .wpnts-switch-review label{margin-right:10px}.acb_bottom .acb_left form{align-items:center;display:flex;flex-direction:column}.acb_bottom .acb_left form .save-webhook{margin-top:15px}.acb_bottom .acb_left .no-tables-intro-img img{height:40vh;width:40vh}.acb_bottom .acb_left .no-tables-intro-img{text-align:center}.acb_bottom .acb_left label.form-feature-heading{font-size:15px}.acb_bottom .acb_left label.form-feature-sub-heading{font-size:13px;font-weight:500}.acb_bottom .acb_left .formInput.open-new-tab{align-items:center;display:flex;gap:10px;margin-bottom:15px;margin-top:8px}.acb_bottom .acb_left .whatsApp-redirection{margin-bottom:30px;margin-top:30px}.acb_bottom .acb_left .formInput{margin:0 40px}.acb_bottom .acb_left input[type=color]{height:35px;margin-bottom:15px;width:45%}.acb_bottom .acb_left .cloudflare-get-key{align-items:center;display:flex;gap:10px;margin-bottom:15px}.acb_bottom .acb_left .ConnectCaptcha-btn{background-color:#4caf50;border:none;border-radius:5px;color:#fff;cursor:pointer;display:flex;font-size:16px;margin:auto auto 15px;padding:10px 20px;text-align:center;transition:background-color .3s}.acb_bottom .acb_right{margin-top:30px}.acb_bottom .acb_right .scf-form-preview{height:100%;left:125px;position:relative}.acb_bottom .acb_right .scf-form-preview .laptopscreen{position:fixed;width:600px}@media screen and (max-width:768px){.acb_bottom .acb_right .scf-form-preview .laptopscreen{display:none!important}}.acb_bottom .acb_right .whatsapp-icon{background:none;border:none;left:410px;position:relative;top:-85px}.acb_bottom .acb_right .whatsapp-icon span.cta-text{background-color:transparent;border-radius:1rem;border-width:-1px;bottom:6px;box-shadow:0 1px 3px 0 rgba(0,0,0,.102),0 1px 2px -1px rgba(0,0,0,.102);color:#000;font-size:9px;margin-top:5px;padding:6px;position:absolute;right:44px;text-align:center;white-space:nowrap}@media screen and (max-width:768px){.acb_bottom .acb_right .whatsapp-icon{display:none!important}}.acb_bottom .acb_right .form-content{background-color:#fff;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,.5);left:276px;position:relative;top:-247px;transition:height .3s ease-in-out;width:185px}.acb_bottom .acb_right .form-content.active{height:476px}@media(max-width:768px){.acb_bottom .acb_right .form-content{display:none;right:25px;top:100px}}.acb_bottom .acb_right .clearfix:after{clear:both;content:"";display:table}.acb_bottom .acb_right header{align-items:center;background-color:#3498db;border-top-left-radius:5px;border-top-right-radius:5px;border-radius:5px 5px 0 0;color:#fff;cursor:pointer;display:flex;font-size:10px;height:30px;justify-content:center;padding:0 0 2px;position:relative;text-align:center}.acb_bottom .acb_right .sf-close{cursor:pointer;position:absolute;right:6px;top:20%;transform:translateY(-50%)}.acb_bottom .acb_right .simple_form_container{padding:0}.acb_bottom .acb_right .simple_form{display:flex;flex-direction:column}.acb_bottom .acb_right .simple_form_content{height:180px;padding:10px}.acb_bottom .acb_right .simple_form_loader{animation:loading 1s infinite;background-color:#3498db;height:10px}.acb_bottom .acb_right .text-fields{font-size:10px;margin-bottom:1px}.acb_bottom .acb_right .text-fields label{display:block;font-weight:700;margin-bottom:5px}.acb_bottom .acb_right .text-fields input{border:1px solid #ccc;border-radius:4px;box-sizing:border-box;font-size:10px;height:20px;padding:8px;width:100%}.acb_bottom .acb_right .text-fields input[type=text],.acb_bottom .acb_right .text-fields select,.acb_bottom .acb_right .text-fields textarea{font-size:10px;height:35px;margin:0;width:100%}.acb_bottom .acb_right .text-fields textarea#number-input-1704554234877{height:43px}.acb_bottom .acb_right .submit-button{background-color:orange;border:none;border-radius:4px;color:#fff;cursor:pointer;padding:8px;transition:background-color .3s;width:100%}.acb_bottom .acb_right .submit-button:hover{background-color:#45a049}.acb_bottom .acb_right .error-message{color:red}
  • simple-form/trunk/react/build/index.js

    r3038119 r3038864  
    1 !function(){var e,t,n,r,o={5839:function(e,t,n){"use strict";var r=n(2097),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},4173:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||x(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},2097:function(e,t,n){"use strict";e.exports=n(4173)},5174:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,s=60110,u=60112,c=60113,d=60120,p=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),i=h("react.strict_mode"),a=h("react.profiler"),l=h("react.provider"),s=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),p=h("react.memo"),f=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case l:return e;default:return t}}case r:return t}}}(e)===s}},3910:function(e,t,n){"use strict";e.exports=n(5174)},6751:function(e,t,n){"use strict";n.d(t,{Z:function(){return re}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function l(e){return e.trim()}function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,v=0,b=0,y=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?c(w,--b):0,g--,10===y&&(g=1,m--),y}function E(){return y=b<v?c(w,b++):0,g++,10===y&&(g=1,m++),y}function N(){return c(w,b)}function M(){return b}function I(e,t){return d(w,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return m=g=1,v=p(w=e),b=0,[]}function P(e){return w="",e}function L(e){return l(I(b-1,D(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(y=N())&&y<33;)E();return A(e)>2||A(y)>3?"":" "}function T(e,t){for(;--t&&E()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return I(e,M()+(t<6&&32==N()&&32==E()))}function D(e){for(;E();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&D(y);break;case 40:41===e&&D(e);break;case 92:E()}return b}function O(e,t){for(;E()&&e+y!==57&&(e+y!==84||47!==N()););return"/*"+I(t,b-1)+"*"+i(47===e?e:E())}function j(e){for(;!A(N());)E();return I(e,b)}var F="-ms-",_="-moz-",Z="-webkit-",B="comm",z="rule",H="decl",$="@keyframes";function q(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case B:return"";case $:return e.return=e.value+"{"+q(e.children,r)+"}";case z:e.value=e.props.join(",")}return p(n=q(e.children,r))?e.return=e.value+"{"+n+"}":""}function U(e){return P(V("",null,null,null,[""],e=k(e),0,[0],e))}function V(e,t,n,r,o,a,l,d,f){for(var m=0,g=0,v=l,b=0,y=0,w=0,x=1,C=1,I=1,A=0,k="",P=o,D=a,F=r,_=k;C;)switch(w=A,A=E()){case 40:if(108!=w&&58==c(_,v-1)){-1!=u(_+=s(L(A),"&","&\f"),"&\f")&&(I=-1);break}case 34:case 39:case 91:_+=L(A);break;case 9:case 10:case 13:case 32:_+=R(w);break;case 92:_+=T(M()-1,7);continue;case 47:switch(N()){case 42:case 47:h(Y(O(E(),M()),t,n),f);break;default:_+="/"}break;case 123*x:d[m++]=p(_)*I;case 125*x:case 59:case 0:switch(A){case 0:case 125:C=0;case 59+g:-1==I&&(_=s(_,/\f/g,"")),y>0&&p(_)-v&&h(y>32?K(_+";",r,n,v-1):K(s(_," ","")+";",r,n,v-2),f);break;case 59:_+=";";default:if(h(F=G(_,t,n,m,g,o,d,k,P=[],D=[],v),a),123===A)if(0===g)V(_,t,F,F,P,a,v,d,D);else switch(99===b&&110===c(_,3)?100:b){case 100:case 108:case 109:case 115:V(e,F,F,r&&h(G(e,F,F,0,0,o,d,k,o,P=[],v),D),o,D,v,d,r?P:D);break;default:V(_,F,F,F,[""],D,0,d,D)}}m=g=y=0,x=I=1,k=_="",v=l;break;case 58:v=1+p(_),y=w;default:if(x<1)if(123==A)--x;else if(125==A&&0==x++&&125==S())continue;switch(_+=i(A),A*x){case 38:I=g>0?1:(_+="\f",-1);break;case 44:d[m++]=(p(_)-1)*I,I=1;break;case 64:45===N()&&(_+=L(E())),b=N(),g=v=p(k=_+=j(M())),A++;break;case 45:45===w&&2==p(_)&&(x=0)}}return a}function G(e,t,n,r,i,a,u,c,p,h,m){for(var g=i-1,v=0===i?a:[""],b=f(v),y=0,w=0,C=0;y<r;++y)for(var S=0,E=d(e,g+1,g=o(w=u[y])),N=e;S<b;++S)(N=l(w>0?v[S]+" "+E:s(E,/&\f/g,v[S])))&&(p[C++]=N);return x(e,t,n,0===i?z:c,p,h,m)}function Y(e,t,n){return x(e,t,n,B,i(y),d(e,2,-2),0)}function K(e,t,n,r){return x(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,o=0;r=o,o=N(),38===r&&12===o&&(t[n]=1),!A(o);)E();return I(e,b)},X=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var o=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=Q(b-1,t,n);break;case 2:e[n]+=L(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=E());return e}(k(e),t))}(t,o),l=n.props,s=0,u=0;s<a.length;s++)for(var c=0;c<l.length;c++,u++)e.props[u]=o[s]?a[s].replace(/&\f/g,l[c]):l[c]+" "+a[s]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return Z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+_+e+F+e+e;case 6828:case 4268:return Z+e+F+e+e;case 6165:return Z+e+F+"flex-"+e+e;case 5187:return Z+e+s(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return Z+e+F+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return Z+e+F+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+F+s(e,"shrink","negative")+e;case 5292:return Z+e+F+s(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+s(e,"-grow","")+Z+e+F+s(e,"grow","positive")+e;case 4554:return Z+s(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+_+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,p(e)-3-(~u(e,"!important")&&10))){case 107:return s(e,":",":"+Z)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===c(e,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return Z+e+F+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+F+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+F+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+F+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case $:return q([C(e,{value:s(e.value,"@","@"+Z)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return q([C(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return q([C(e,{props:[s(t,/:(plac\w+)/,":"+Z+"input-$1")]}),C(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[s(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;s.push(e)}));var u,c,d,p,h=[W,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(c=[J,ee].concat(a,h),d=f(c),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,q(U(e?e+"{"+t.styles+"}":t.styles),m),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return g.sheet.hydrate(s),g}},5042:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},5260:function(e,t,n){"use strict";n.d(t,{T:function(){return s},i:function(){return i},w:function(){return l}});var r=n(9196),o=n(6751),i=(n(6797),n(7278),!0),a=r.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);a.Provider;var l=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(a);return e(t,o,n)}))};i||(l=function(e){return function(t){var n=(0,r.useContext)(a);return null===n?(n=(0,o.Z)({key:"css"}),r.createElement(a.Provider,{value:n},e(t,n))):e(t,n)}});var s=r.createContext({})},6797:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(5042),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":s(a)&&(r+=u(i)+":"+c(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=d(e,t,a);switch(i){case"animation":case"animationName":r+=u(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var p=0;p<a.length;p++)s(a[p])&&(r+=u(i)+":"+c(i,a[p])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,i=n(e);return p=o,d(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=d(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=d(n,t,e[a]),r&&(o+=i[a]);f.lastIndex=0;for(var l,s="";null!==(l=f.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:p}}},7278:function(e,t,n){"use strict";n.d(t,{L:function(){return i},j:function(){return a}});var r=n(9196),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()},a=o||r.useLayoutEffect},444:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},594:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},6907:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");t.Z=a},2800:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)([(0,i.jsx)("path",{d:"M20 3H4c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 14H4V5h16v12z"},"0"),(0,i.jsx)("path",{d:"M6 8.25h8v1.5H6zm10.5 1.5H18v-1.5h-1.5V7H15v4h1.5zm-6.5 2.5h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},"1")],"DisplaySettings");t.Z=a},2894:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M17 20v-9h-2V4h7l-2 5h2l-5 11zm-2-7v7H4c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h11zm-8.75 2.75h-1.5v1.5h1.5v-1.5zM13 4v7H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h9zM6.25 6.75h-1.5v1.5h1.5v-1.5z"}),"DynamicForm");t.Z=a},940:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"}),"EditNote");t.Z=a},3592:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");t.Z=a},9469:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");t.Z=a},5863:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm0 16H5V7h14v12zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM12 9c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4zm0 6.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Preview");t.Z=a},3591:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M5.77 7.15 7.2 4.78l1.03-1.71c.39-.65 1.33-.65 1.72 0l1.48 2.46-1.23 2.06-1 1.62-3.43-2.06zm15.95 5.82-1.6-2.66-3.46 2L18.87 16H20c.76 0 1.45-.43 1.79-1.11.14-.28.21-.58.21-.89 0-.36-.1-.71-.28-1.03zM16 21h1.5c.76 0 1.45-.43 1.79-1.11L20.74 17H16v-2l-4 4 4 4v-2zm-6-4H5.7l-.84 1.41c-.3.5-.32 1.12-.06 1.65.28.57.87.94 1.52.94H10v-4zm-3.88-2.65 1.73 1.04L6.48 9.9 1 11.27l1.7 1.02-.41.69c-.35.59-.38 1.31-.07 1.92l1.63 3.26 2.27-3.81zm10.9-9.21-1.3-2.17C15.35 2.37 14.7 2 14 2h-3.53l3.12 5.2-1.72 1.03 5.49 1.37 1.37-5.49-1.71 1.03z"}),"Recycling");t.Z=a},4938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1699)},3023:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},6607:function(e,t,n){"use strict";n(3023)},8794:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(7462),o=n(3366),i=n(6535),a=n(9766),l=n(6268),s=n(8010),u=n(6523),c=n(1796),d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.$n)(e.main,o):"dark"===t&&(e.dark=(0,c._j)(e.main,i)))}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],E={textTransform:"uppercase"},N='"Roboto", "Helvetica", "Arial", sans-serif';function M(e,t){const n="function"==typeof t?t(e):t,{fontFamily:i=N,fontSize:l=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=n,m=(0,o.Z)(n,S),g=l/14,v=h||(e=>e/p*g+"rem"),b=(e,t,n,o,a)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===N?{letterSpacing:(l=o/t,Math.round(1e5*l)/1e5+"em")}:{},a,f);var l},y={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(u,48,1.167,0),h4:b(u,34,1.235,.25),h5:b(u,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(u,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(u,16,1.5,.15),body2:b(u,14,1.43,.15),button:b(c,14,1.75,.4,E),caption:b(u,12,1.66,.4),overline:b(u,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:p,pxToRem:v,fontFamily:i,fontSize:l,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},y),m,{clone:!1})}function I(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var A=["none",I(0,2,1,-1,0,1,1,0,0,1,3,0),I(0,3,1,-2,0,2,2,0,0,1,5,0),I(0,3,3,-2,0,3,4,0,0,1,8,0),I(0,2,4,-1,0,4,5,0,0,1,10,0),I(0,3,5,-1,0,5,8,0,0,1,14,0),I(0,3,5,-1,0,6,10,0,0,1,18,0),I(0,4,5,-2,0,7,10,1,0,2,16,1),I(0,5,5,-3,0,8,10,1,0,3,14,2),I(0,5,6,-3,0,9,12,1,0,3,16,2),I(0,6,6,-3,0,10,14,1,0,4,18,3),I(0,6,7,-4,0,11,15,1,0,4,20,3),I(0,7,8,-4,0,12,17,2,0,5,22,4),I(0,7,8,-4,0,13,19,2,0,5,24,4),I(0,7,9,-4,0,14,21,2,0,5,26,4),I(0,8,9,-5,0,15,22,2,0,6,28,5),I(0,8,10,-5,0,16,24,2,0,6,30,5),I(0,8,11,-5,0,17,26,2,0,6,32,5),I(0,9,11,-5,0,18,28,2,0,7,34,6),I(0,9,12,-6,0,19,29,2,0,7,36,6),I(0,10,13,-6,0,20,31,3,0,8,38,7),I(0,10,13,-6,0,21,33,3,0,8,40,7),I(0,10,14,-6,0,22,35,3,0,8,42,7),I(0,11,14,-7,0,23,36,3,0,9,44,8),I(0,11,15,-7,0,24,38,3,0,9,46,8)];const k=["duration","easing","delay"],P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R(e){return`${Math.round(e)}ms`}function T(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function D(e){const t=(0,r.Z)({},P,e.easing),n=(0,r.Z)({},L,e.duration);return(0,r.Z)({getAutoHeightDuration:T,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0}=r;return(0,o.Z)(r,k),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:R(i)} ${a} ${"string"==typeof l?l:R(l)}`)).join(",")}},e,{easing:t,duration:n})}var O={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var F=function(e={},...t){const{mixins:n={},palette:S={},transitions:E={},typography:N={}}=e,I=(0,o.Z)(e,j);if(e.vars)throw new Error((0,i.Z)(18));const k=function(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:l=.2}=e,s=(0,o.Z)(e,y),u=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),E=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),N=e.info||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),M=e.success||function(e="light"){return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),I=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function A(e){return(0,c.mi)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const k=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,i.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,i.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return C(e,"light",o,l),C(e,"dark",a,l),e.contrastText||(e.contrastText=A(e.main)),e},P={dark:x,light:w};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:t,primary:k({color:u,name:"primary"}),secondary:k({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:E,name:"error"}),warning:k({color:I,name:"warning"}),info:k({color:N,name:"info"}),success:k({color:M,name:"success"}),grey:p,contrastThreshold:n,getContrastText:A,augmentColor:k,tonalOffset:l},P[t]),s)}(S),P=(0,l.Z)(e);let L=(0,a.Z)(P,{mixins:(R=P.breakpoints,T=n,(0,r.Z)({toolbar:{minHeight:56,[R.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[R.up("sm")]:{minHeight:64}}},T)),palette:k,shadows:A.slice(),typography:M(k,N),transitions:D(E),zIndex:(0,r.Z)({},O)});var R,T;return L=(0,a.Z)(L,I),L=t.reduce(((e,t)=>(0,a.Z)(e,t)),L),L.unstable_sxConfig=(0,r.Z)({},s.Z,null==I?void 0:I.unstable_sxConfig),L.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},L}()},606:function(e,t){"use strict";t.Z="$$material"},948:function(e,t,n){"use strict";n.d(t,{Dz:function(){return l},FO:function(){return a}});var r=n(2360),o=n(8794),i=n(606);const a=e=>(0,r.x9)(e)&&"classes"!==e,l=r.x9,s=(0,r.ZP)({themeId:i.Z,defaultTheme:o.Z,rootShouldForwardProp:a});t.ZP=s},1657:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7333),o=n(8794),i=n(606);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:o.Z,themeId:i.Z})}},8216:function(e,t,n){"use strict";var r=n(4142);t.Z=r.Z},5949:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(7462),o=n(9196),i=n(3366),a=n(3961),l=n(4780),s=n(8216),u=n(1657),c=n(948),d=n(1588),p=n(4867);function f(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(5893);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,s.Z)(n.color)}`],t[`fontSize${(0,s.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),{children:c,className:d,color:p="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:w=!1,titleAccess:x,viewBox:C="0 0 24 24"}=n,S=(0,i.Z)(n,m),E=o.isValidElement(c)&&"svg"===c.type,N=(0,r.Z)({},n,{color:p,component:v,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:C,hasSvgAsChild:E}),M={};w||(M.viewBox=C);const I=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,s.Z)(t)}`,`fontSize${(0,s.Z)(n)}`]};return(0,l.Z)(o,f,r)})(N);return(0,h.jsxs)(g,(0,r.Z)({as:v,className:(0,a.Z)(I.root,d),focusable:"false",color:y,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},M,S,E&&c.props,{ownerState:N,children:[E?c.props.children:c,x?(0,h.jsx)("title",{children:x}):null]}))}));v.muiName="SvgIcon";var b=v;function y(e,t){function n(n,o){return(0,h.jsx)(b,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return n.muiName=b.muiName,o.memo(o.forwardRef(n))}},7144:function(e,t,n){"use strict";var r=n(9336);t.Z=r.Z},1699:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return i},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return x},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return g},useControlled:function(){return v.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return w.Z}});var r=n(7078),o=n(8216),i=n(9064).Z,a=n(5949),l=n(7144),s=function(e,t){return()=>null},u=n(8502),c=n(8038),d=n(5340);n(7462);var p=function(e,t){return()=>null},f=n(7960).Z,h=n(8974),m=n(7909),g=function(e,t,n,r,o){return null},v=n(9299),b=n(2068),y=n(1705),w=n(3511);const x={configure:e=>{r.Z.configure(e)}}},8502:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196),o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},8038:function(e,t,n){"use strict";var r=n(2690);t.Z=r.Z},5340:function(e,t,n){"use strict";var r=n(4161);t.Z=r.Z},9299:function(e,t,n){"use strict";var r=n(9032);t.Z=r.Z},8974:function(e,t,n){"use strict";var r=n(3546);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(9948);t.Z=r.Z},1705:function(e,t,n){"use strict";var r=n(3703);t.Z=r.Z},7909:function(e,t,n){"use strict";var r=n(2996);t.Z=r.Z},3511:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(9196);let o,i=!0,a=!1;const l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function c(){"hidden"===this.visibilityState&&a&&(i=!0)}var d=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},5408:function(e,t,n){"use strict";n.d(t,{L7:function(){return s},P$:function(){return c},VO:function(){return o},W8:function(){return l},dt:function(){return u},k9:function(){return a}});var r=n(9766);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i))r[e.up(i)]=n(t[i],i);else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function l(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e,...t){const n=l(e),o=[n,...t].reduce(((e,t)=>(0,r.Z)(e,t)),{});return s(Object.keys(n),o)}function c({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}},1796:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return u},_j:function(){return c},mi:function(){return s}});var r=n(6535);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-l*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){const n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function c(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}},2360:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Z},x9:function(){return T}});var r=n(3366),o=n(7462),i=n(9196),a=n(5042),l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,a.Z)((function(e){return l.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(5260),c=n(444),d=n(6797),p=n(7278),f=s,h=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:h},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,p.L)((function(){return(0,c.My)(t,n,r)})),null},b=function e(t,n){var r,a,l=t.__emotion_real===t,s=l&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var p=g(t,n,l),f=p||m(s),h=!f("as");return function(){var b=arguments,y=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&y.push("label:"+r+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{y.push(b[0][0]);for(var w=b.length,x=1;x<w;x++)y.push(b[x],b[0][x])}var C=(0,u.w)((function(e,t,n){var r=h&&e.as||s,o="",l=[],g=e;if(null==e.theme){for(var b in g={},e)g[b]=e[b];g.theme=i.useContext(u.T)}"string"==typeof e.className?o=(0,c.fp)(t.registered,l,e.className):null!=e.className&&(o=e.className+" ");var w=(0,d.O)(y.concat(l),t.registered,g);o+=t.key+"-"+w.name,void 0!==a&&(o+=" "+a);var x=h&&void 0===p?m(r):f,C={};for(var S in e)h&&"as"===S||x(S)&&(C[S]=e[S]);return C.className=o,C.ref=n,i.createElement(i.Fragment,null,i.createElement(v,{cache:t,serialized:w,isStringTag:"string"==typeof r}),i.createElement(r,C))}));return C.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=s,C.__emotion_styles=y,C.__emotion_forwardProp=p,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,r){return e(t,(0,o.Z)({},n,r,{shouldForwardProp:g(C,r,!0)})).apply(void 0,y)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){b[e]=b(e)}));const y=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var w=n(9766),x=n(6268),C=n(4142);const S=["variant"];function E(e){return 0===e.length}function N(e){const{variant:t}=e,n=(0,r.Z)(e,S);let o=t||"";return Object.keys(n).sort().forEach((t=>{o+="color"===t?E(o)?e[t]:(0,C.Z)(e[t]):`${E(o)?t:(0,C.Z)(t)}${(0,C.Z)(e[t].toString())}`})),o}var M=n(6523);const I=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],A=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,k=e=>{let t=0;const n={};return e&&e.forEach((e=>{let r="";"function"==typeof e.props?(r=`callback${t}`,t+=1):r=N(e.props),n[r]=e.style})),n},P=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),k(n)},L=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach((n=>{let l=!0;if("function"==typeof n.props){const t=(0,o.Z)({},e,r);l=n.props(t)}else Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(l=!1)}));l&&("function"==typeof n.props?i.push(t[`callback${a}`]):i.push(t[N(n.props)])),"function"==typeof n.props&&(a+=1)})),i},R=(e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return L(e,t,i)};function T(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const D=(0,x.Z)(),O=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function j({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function F(e){return e?(t,n)=>n[e]:null}const _=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e((0,o.Z)({},t,{theme:j((0,o.Z)({},t,{defaultTheme:n,themeId:r}))}));let a;return i&&i.variants&&(a=i.variants,delete i.variants),a?[i,...L(t,k(a),a)]:i};function Z(e={}){const{themeId:t,defaultTheme:n=D,rootShouldForwardProp:i=T,slotShouldForwardProp:a=T}=e,l=e=>(0,M.Z)((0,o.Z)({},e,{theme:j((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(e,s={})=>{y(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:c,skipVariantsResolver:d,skipSx:p,overridesResolver:f=F(O(c))}=s,h=(0,r.Z)(s,I),m=void 0!==d?d:c&&"Root"!==c&&"root"!==c||!1,g=p||!1;let v=T;"Root"===c||"root"===c?v=i:c?v=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const x=function(e,t){return b(e,t)}(e,(0,o.Z)({shouldForwardProp:v,label:void 0},h)),C=(r,...i)=>{const a=i?i.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>_({styledArg:e,props:r,defaultTheme:n,themeId:t});if((0,w.P)(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return L(n,k(t),t).forEach((e=>{r=(0,w.Z)(r,e)})),r}),n}return e})):[];let s=r;if((0,w.P)(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return L(t,k(e),e).forEach((e=>{n=(0,w.Z)(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>_({styledArg:r,props:e,defaultTheme:n,themeId:t}));u&&f&&a.push((e=>{const r=j((0,o.Z)({},e,{defaultTheme:n,themeId:t})),i=A(u,r);if(i){const t={};return Object.entries(i).forEach((([n,i])=>{t[n]="function"==typeof i?i((0,o.Z)({},e,{theme:r})):i})),f(e,t)}return null})),u&&!m&&a.push((e=>{const r=j((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return R(e,P(u,r),r,u)})),g||a.push(l);const c=a.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const d=x(s,...a);return e.muiName&&(d.muiName=e.muiName),d};return x.withConfig&&(C.withConfig=x.withConfig),C}}},6268:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7462),o=n(3366),i=n(9766);const a=["values","unit","step"];var l={borderRadius:4},s=n(2605),u=n(6523),c=n(8010);const d=["breakpoints","palette","spacing","shape"];var p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:h={}}=e,m=(0,o.Z)(e,d),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,l=(0,o.Z)(e,a),s=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),u=Object.keys(s);function c(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${n})`}function p(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-i/100}${n})`}return(0,r.Z)({keys:u,values:s,up:c,down:d,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):c(e)},not:function(e){const t=u.indexOf(e);return 0===t?c(u[1]):t===u.length-1?d(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}(n),v=function(e=8){if(e.mui)return e;const t=(0,s.hB)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},p),spacing:v,shape:(0,r.Z)({},l,h)},m);return b=t.reduce(((e,t)=>(0,i.Z)(e,t)),b),b.unstable_sxConfig=(0,r.Z)({},c.Z,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},7730:function(e,t,n){"use strict";var r=n(9766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},2605:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return f},NA:function(){return m},e6:function(){return v},o3:function(){return b}});var r=n(5408),o=n(4844),i=n(7730);const a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}const[t,n]=e.split(""),r=a[t],o=l[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})(e)),t[e])}(),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...c,...d];function f(e,t,n,r){var i;const a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return f(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){const n=h(e.theme);return Object.keys(e).map((o=>function(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(u(n),o),a=e[n];return(0,r.k9)(e,a,i)}(e,t,o,n))).reduce(i.Z,{})}function v(e){return g(e,c)}function b(e){return g(e,d)}function y(e){return g(e,p)}v.propTypes={},v.filterProps=c,b.propTypes={},b.filterProps=d,y.propTypes={},y.filterProps=p},4844:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return a}});var r=n(4142),o=n(5408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,u=e=>{if(null==e[t])return null;const u=e[t],c=i(e.theme,l)||{};return(0,o.k9)(e,u,(e=>{let o=a(c,s,e);return e===o&&"string"==typeof e&&(o=a(c,s,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?o:{[n]:o}}))};return u.propTypes={},u.filterProps=[t],u}},8010:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(2605),o=n(4844),i=n(7730),a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},l=n(5408);function s(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}const c=u("border",s),d=u("borderTop",s),p=u("borderRight",s),f=u("borderBottom",s),h=u("borderLeft",s),m=u("borderColor"),g=u("borderTopColor"),v=u("borderRightColor"),b=u("borderBottomColor"),y=u("borderLeftColor"),w=u("outline",s),x=u("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,l.k9)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"],a(c,d,p,f,h,m,g,v,b,y,C,w,x);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,l.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,l.k9)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const N=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,l.k9)(e,e.rowGap,n)}return null};function M(e,t){return"grey"===t?t:e}function I(e){return e<=1&&0!==e?100*e+"%":e}N.propTypes={},N.filterProps=["rowGap"],a(S,E,N,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"})),a((0,o.ZP)({prop:"color",themeKey:"palette",transform:M}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:M}));const A=(0,o.ZP)({prop:"width",transform:I}),k=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.VO[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:I(t)}};return(0,l.k9)(e,e.maxWidth,t)}return null};k.filterProps=["maxWidth"];const P=(0,o.ZP)({prop:"minWidth",transform:I}),L=(0,o.ZP)({prop:"height",transform:I}),R=(0,o.ZP)({prop:"maxHeight",transform:I}),T=(0,o.ZP)({prop:"minHeight",transform:I});(0,o.ZP)({prop:"size",cssProperty:"width",transform:I}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:I}),a(A,k,P,L,R,T,(0,o.ZP)({prop:"boxSizing"}));var D={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:N},columnGap:{style:E},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:I},maxWidth:{style:k},minWidth:{transform:I},height:{transform:I},maxHeight:{transform:I},minHeight:{transform:I},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},6523:function(e,t,n){"use strict";var r=n(4142),o=n(7730),i=n(4844),a=n(5408),l=n(8010);const s=function(){function e(e,t,n,o){const l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};const{cssProperty:u=e,themeKey:c,transform:d,style:p}=s;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};const f=(0,i.DW)(n,c)||{};return p?p(l):(0,a.k9)(l,t,(t=>{let n=(0,i.Jq)(f,d,t);return t===n&&"string"==typeof t&&(n=(0,i.Jq)(f,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===u?n:{[u]:n}}))}return function t(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const u=null!=(r=s.unstable_sxConfig)?r:l.Z;function c(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;const i=(0,a.W8)(s.breakpoints),l=Object.keys(i);let c=i;return Object.keys(r).forEach((n=>{const i="function"==typeof(l=r[n])?l(s):l;var l;if(null!=i)if("object"==typeof i)if(u[n])c=(0,o.Z)(c,e(n,i,s,u));else{const e=(0,a.k9)({theme:s},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?c=(0,o.Z)(c,e):c[n]=t({sx:i,theme:s})}else c=(0,o.Z)(c,e(n,i,s,u))})),(0,a.L7)(l,c)}return Array.isArray(i)?i.map(c):c(i)}}();s.filterProps=["sx"],t.Z=s},6682:function(e,t,n){"use strict";var r=n(6268),o=n(4168);const i=(0,r.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},7333:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7925),o=n(6682);function i({props:e,name:t,defaultTheme:n,themeId:i}){let a=(0,o.Z)(n);i&&(a=a[i]||a);const l=function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}({theme:a,name:t,props:e});return l}},4168:function(e,t,n){"use strict";var r=n(9196),o=n(5260);t.Z=function(e=null){const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},7078:function(e,t){"use strict";const n=e=>e,r=(()=>{let e=n;return{configure(t){e=t},generate(t){return e(t)},reset(){e=n}}})();t.Z=r},4142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6535);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4780:function(e,t,n){"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},9064:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},9336:function(e,t,n){"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:function(){return r}})},9766:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return a}});var r=n(7462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t,n={clone:!0}){const l=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?l[r]=a(e[r],t[r],n):n.clone?l[r]=o(t[r])?i(t[r]):t[r]:l[r]=t[r])})),l}},6535:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},4867:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7078);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,n="Mui"){const i=o[t];return i?`${n}-${i}`:`${r.Z.generate(e)}-${t}`}},1588:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4867);function o(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=(0,r.Z)(e,t,n)})),o}},2690:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},4161:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2690);function o(e){return(0,r.Z)(e).defaultView||window}},7925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},l=t[i];n[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(n[i]=(0,r.Z)({},l),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],l[e])}))):n[i]=l:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},9032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,l]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||l(e)}),[])]}},3546:function(e,t,n){"use strict";var r=n(9196);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},9948:function(e,t,n){"use strict";var r=n(9196),o=n(3546);t.Z=function(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},3703:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9196),o=n(7960);function i(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,o.Z)(e,t)}))}),e)}},2996:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9196);let o=0;const i=r["useId".toString()];function a(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),i=e||t;return r.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),i}(e)}},3162:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var l=i.URL||i.webkitURL,s=document.createElement("a");n=n||e.name||"download",s.download=n,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?o(s):r(s.href)?t(e,n,a):o(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout((function(){l.revokeObjectURL(s.href)}),4e4),setTimeout((function(){o(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(r(e))t(e,n,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var l="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&s||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,[]):r)||(e.exports=o)},8679:function(e,t,n){"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},6103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||x(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},1296:function(e,t,n){"use strict";e.exports=n(6103)},9465:function(e){e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError('Invalid param "textDelimiter", must be a string.');if("string"!=typeof t)throw new TypeError('Invalid param "rowDelimiter", must be a string.');if("string"!=typeof n)throw new TypeError('Invalid param "endOfLine", must be a string.');var r=new RegExp("\\"+e,"g"),o=e+e;return function(i){if(!i.replace)return i;var a=i.replace(r,o);return(a.indexOf(t)>=0||a.indexOf(n)>=0)&&(a=e+a+e),a}}},6547:function(e,t,n){var r=n(9050);e.exports=function(e){return function(t,n){var o=t.reduce((function(e,t){return t.forEach((function(t){e[t.item]=(e[t.item]||0)+1})),e}),{}),i=Object.keys(o);return n&&(i=i.map((function(e){return{name:e,count:o[e]}})),i=r.sortBy(i,"count").reverse().map((function(e){return e.name}))),i.map((function(t){return e(t)}))}}},4107:function(e,t,n){"use strict";var r,o,i,a=n(2970),l=n(9050),s=n(3585);function u(e,t){return t?e.map((function(e){return e.item=e.item?t+i.headerPathString+e.item:t,e})):e}function c(e,t){var n;if(l.isString(e))n=[{item:t,value:i.handleString(e,t)}];else if(l.isNumber(e))n=[{item:t,value:i.handleNumber(e,t)}];else if(l.isBoolean(e))n=[{item:t,value:i.handleBoolean(e,t)}];else if(l.isDate(e))n=[{item:t,value:i.handleDate(e,t)}];else if(l.isArray(e)){var r=function(e){var t,n=[];return e.forEach((function(e){var t=c(e);n=n.concat(t)})),n=n.filter((function(e,r){return e.item||void 0===t?(t||e.item||(t=r),!0):(n[t].value+=i.arrayPathString+e.value,!1)}))}(e);n=u(r,t)}else if(l.isObject(e)){var o=function(e){var t=[];for(var n in e){var r=c(e[n],n);t=t.concat(r)}return t}(e);n=u(o,t)}else n=[{item:t,value:""}];return n}function d(e){return e?i.booleanTrueString||"true":i.booleanFalseString||"false"}function p(e){return e}function f(e){return e}function h(e){return e.toLocaleDateString()}e.exports=function(e,t,u){u=u||function(){},l.isFunction(t)&&(u=t,t={}),i=function(e){var t={headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:a.EOL||"\n",mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,orderHeaders:!1,verticalOutput:!0,handleString:p,handleNumber:f,handleBoolean:d,handleDate:h};return l.extend(t,e)}(t),o=n(9465)(i.textDelimiter,i.rowDelimiter,i.endOfLine),r=n(6547)(o),function(e,t){l.isArray(e)?t(null,function(e){var t,n=[],a=[];e.forEach((function(e){var t=c(e,i.mainPathItem);a.push(t)}));var l=r(a,i.orderHeaders);return i.includeHeaders&&n.push(l.join(i.rowDelimiter)),t=function(e){var t=[Array(l.length).join(".").split(".")];e.forEach((function(e){var n=!1;if(t.forEach((function(t){n||""!==t[l.indexOf(e.item)]||(t[l.indexOf(e.item)]=o(e.value),n=!0)})),!n){var r=Array(l.length).join(".").split(".");r[l.indexOf(e.item)]=o(e.value),t.push(r)}})),t.forEach((function(e){n.push(e.join(i.rowDelimiter))}))},a.forEach(t),s(n,i.endOfLine)}(e)):l.isObject(e)?t(null,function(e){var t,n=[],r=[[],[]];for(var a in t=function(e){var t=e.value?e.value.toString():i.undefinedString;if(t=o(t),i.verticalOutput){var a=[e.item,t];n.push(a.join(i.rowDelimiter))}else r[0].push(e.item),r[1].push(t)},e){var l="";i.mainPathItem&&(l=i.mainPathItem+i.headerPathString),c(e[a],l+a).forEach(t)}return i.verticalOutput||(n.push(r[0].join(i.rowDelimiter)),n.push(r[1].join(i.rowDelimiter))),s(n,i.endOfLine)}(e)):t(new Error("Unable to parse the JSON object, its not an Array or Object."))}(e,u)}},3585:function(e,t,n){var r=n(2970),o=n(9050);e.exports=function(e,t){if(!e||!o.isArray(e))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');return e.join(t||r.EOL||"\n")}},8159:function(e,t,n){var r;"undefined"!=typeof globalThis?globalThis:void 0!==this||("undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g),r=function(e){return function(){"use strict";var t={662:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellHookData=t.HookData=void 0;var o=function(e,t,n){this.table=t,this.pageNumber=t.pageNumber,this.pageCount=this.pageNumber,this.settings=t.settings,this.cursor=n,this.doc=e.getDocument()};t.HookData=o;var i=function(e){function t(t,n,r,o,i,a){var l=e.call(this,t,n,a)||this;return l.cell=r,l.row=o,l.column=i,l.section=o.section,l}return r(t,e),t}(o);t.CellHookData=i},790:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(148),o=n(938),i=n(323),a=n(587),l=n(49),s=n(858);t.default=function(e){e.API.autoTable=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];1===t.length?e=t[0]:(console.error("Use of deprecated autoTable initiation"),(e=t[2]||{}).columns=t[0],e.body=t[1]);var r=(0,a.parseInput)(this,e),o=(0,s.createTable)(this,r);return(0,l.drawTable)(this,o),this},e.API.lastAutoTable=!1,e.API.previousAutoTable=!1,e.API.autoTable.previous=!1,e.API.autoTableText=function(e,t,n,r){(0,o.default)(e,t,n,r,this)},e.API.autoTableSetDefaults=function(e){return i.DocHandler.setDefaults(e,this),this},e.autoTableSetDefaults=function(e,t){i.DocHandler.setDefaults(e,t)},e.API.autoTableHtmlToJson=function(e,t){if(void 0===t&&(t=!1),"undefined"==typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var n=new i.DocHandler(this),o=(0,r.parseHtml)(n,e,window,t,!1),a=o.head,l=o.body;return{columns:a[0].map((function(e){return e.content})),rows:l,data:l}},e.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var e=this.lastAutoTable;return e&&e.finalY?e.finalY:0},e.API.autoTableAddPageContent=function(t){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),e.API.autoTable.globalDefaults||(e.API.autoTable.globalDefaults={}),e.API.autoTable.globalDefaults.addPageContent=t,this},e.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},938:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){r=r||{};var i=o.internal.scaleFactor,a=o.internal.getFontSize()/i,l=a*(o.getLineHeightFactor?o.getLineHeightFactor():1.15),s="",u=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(u=(s="string"==typeof e?e.split(/\r\n|\r|\n/g):e).length||1),n+=a*(2-1.15),"middle"===r.valign?n-=u/2*l:"bottom"===r.valign&&(n-=u*l),"center"===r.halign||"right"===r.halign){var c=a;if("center"===r.halign&&(c*=.5),s&&u>=1){for(var d=0;d<s.length;d++)o.text(s[d],t-o.getStringUnitWidth(s[d])*c,n),n+=l;return o}t-=o.getStringUnitWidth(e)*c}return"justify"===r.halign?o.text(e,t,n,{maxWidth:r.maxWidth||100,align:"justify"}):o.text(e,t,n),o}},200:function(e,t){function n(e,t){var n=e>0,r=t||0===t;return n&&r?"DF":n?"S":r?"F":null}function r(e,t){var n,r,o,i;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(3===e.length)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(2===e.length)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e=1===e.length?e[0]:t}return"object"==typeof e?("number"==typeof e.vertical&&(e.top=e.vertical,e.bottom=e.vertical),"number"==typeof e.horizontal&&(e.right=e.horizontal,e.left=e.horizontal),{left:null!==(n=e.left)&&void 0!==n?n:t,top:null!==(r=e.top)&&void 0!==r?r:t,right:null!==(o=e.right)&&void 0!==o?o:t,bottom:null!==(i=e.bottom)&&void 0!==i?i:t}):("number"!=typeof e&&(e=t),{top:e,right:e,bottom:e,left:e})}Object.defineProperty(t,"__esModule",{value:!0}),t.getPageAvailableWidth=t.parseSpacing=t.getFillStyle=t.addTableBorder=t.getStringWidth=void 0,t.getStringWidth=function(e,t,n){return n.applyStyles(t,!0),(Array.isArray(e)?e:[e]).map((function(e){return n.getTextWidth(e)})).reduce((function(e,t){return Math.max(e,t)}),0)},t.addTableBorder=function(e,t,r,o){var i=t.settings.tableLineWidth,a=t.settings.tableLineColor;e.applyStyles({lineWidth:i,lineColor:a});var l=n(i,!1);l&&e.rect(r.x,r.y,t.getWidth(e.pageSize().width),o.y-r.y,l)},t.getFillStyle=n,t.parseSpacing=r,t.getPageAvailableWidth=function(e,t){var n=r(t.settings.margin,0);return e.pageSize().width-(n.left+n.right)}},913:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0}),t.getTheme=t.defaultStyles=t.HtmlRowInput=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n._element=t,n}return r(t,e),t}(Array);t.HtmlRowInput=o,t.defaultStyles=function(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},t.getTheme=function(e){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[e]}},259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCss=void 0;var r=n(200);function o(e,t){var n=i(e,t);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var o=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(o[0])||isNaN(o[1])||isNaN(o[2])?null:o}function i(e,t){var n=t(e);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==e.parentElement?null:i(e.parentElement,t):n}t.parseCss=function(e,t,n,i,a){var l={},s=96/72,u=o(t,(function(e){return a.getComputedStyle(e).backgroundColor}));null!=u&&(l.fillColor=u);var c=o(t,(function(e){return a.getComputedStyle(e).color}));null!=c&&(l.textColor=c);var d=function(e,t){var n=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],o=96/(72/t),i=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,a=n.map((function(e){return parseInt(e||"0")/o})),l=(0,r.parseSpacing)(a,0);return i>l.top&&(l.top=i),i>l.bottom&&(l.bottom=i),l}(i,n);d&&(l.cellPadding=d);var p="borderTopColor",f=s*n,h=i.borderTopWidth;if(i.borderBottomWidth===h&&i.borderRightWidth===h&&i.borderLeftWidth===h){var m=(parseFloat(h)||0)/f;m&&(l.lineWidth=m)}else l.lineWidth={top:(parseFloat(i.borderTopWidth)||0)/f,right:(parseFloat(i.borderRightWidth)||0)/f,bottom:(parseFloat(i.borderBottomWidth)||0)/f,left:(parseFloat(i.borderLeftWidth)||0)/f},l.lineWidth.top||(l.lineWidth.right?p="borderRightColor":l.lineWidth.bottom?p="borderBottomColor":l.lineWidth.left&&(p="borderLeftColor"));console.log(l.lineWidth);var g=o(t,(function(e){return a.getComputedStyle(e)[p]}));null!=g&&(l.lineColor=g);var v=["left","right","center","justify"];-1!==v.indexOf(i.textAlign)&&(l.halign=i.textAlign),-1!==(v=["middle","bottom","top"]).indexOf(i.verticalAlign)&&(l.valign=i.verticalAlign);var b=parseInt(i.fontSize||"");isNaN(b)||(l.fontSize=b/s);var y=function(e){var t="";return("bold"===e.fontWeight||"bolder"===e.fontWeight||parseInt(e.fontWeight)>=700)&&(t="bold"),"italic"!==e.fontStyle&&"oblique"!==e.fontStyle||(t+="italic"),t}(i);y&&(l.fontStyle=y);var w=(i.fontFamily||"").toLowerCase();return-1!==e.indexOf(w)&&(l.font=w),l}},323:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocHandler=void 0;var n={},r=function(){function e(e){this.jsPDFDocument=e,this.userStyles={textColor:e.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:e.internal.getFontSize(),fontStyle:e.internal.getFont().fontStyle,font:e.internal.getFont().fontName,lineWidth:e.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:e.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(e,t){void 0===t&&(t=null),t?t.__autoTableDocumentDefaults=e:n=e},e.unifyColor=function(e){return Array.isArray(e)?e:"number"==typeof e?[e,e,e]:"string"==typeof e?[e]:null},e.prototype.applyStyles=function(t,n){var r,o,i;void 0===n&&(n=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var a=this.jsPDFDocument.internal.getFont(),l=a.fontStyle,s=a.fontName;if(t.font&&(s=t.font),t.fontStyle){l=t.fontStyle;var u=this.getFontList()[s];u&&-1===u.indexOf(l)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),l=u[0])}if(this.jsPDFDocument.setFont(s,l),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!n){var c=e.unifyColor(t.fillColor);c&&(r=this.jsPDFDocument).setFillColor.apply(r,c),(c=e.unifyColor(t.textColor))&&(o=this.jsPDFDocument).setTextColor.apply(o,c),(c=e.unifyColor(t.lineColor))&&(i=this.jsPDFDocument).setDrawColor.apply(i,c),"number"==typeof t.lineWidth&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(e,t,n){return this.jsPDFDocument.splitTextToSize(e,t,n)},e.prototype.rect=function(e,t,n,r,o){return this.jsPDFDocument.rect(e,t,n,r,o)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(e){return this.jsPDFDocument.getTextWidth(e)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(e){this.jsPDFDocument.setPage(e)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return n||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var e=this.jsPDFDocument.internal.pageSize;return null==e.width&&(e={width:e.getWidth(),height:e.getHeight()}),e},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var e=this.jsPDFDocument;return e.getLineHeightFactor?e.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(e){return e/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var e=this.jsPDFDocument.internal.getCurrentPageInfo();return e?e.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e}();t.DocHandler=r},148:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseHtml=void 0;var r=n(259),o=n(913);function i(e,t,n,i,l,s){for(var u=new o.HtmlRowInput(i),c=0;c<i.cells.length;c++){var d=i.cells[c],p=n.getComputedStyle(d);if(l||"none"!==p.display){var f=void 0;s&&(f=(0,r.parseCss)(e,d,t,p,n)),u.push({rowSpan:d.rowSpan,colSpan:d.colSpan,styles:f,_element:d,content:a(d)})}}var h=n.getComputedStyle(i);if(u.length>0&&(l||"none"!==h.display))return u}function a(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map((function(e){return e.trim()})).join("\n"),t.innerText||t.textContent||""}t.parseHtml=function(e,t,n,r,o){var a,l,s;void 0===r&&(r=!1),void 0===o&&(o=!1),s="string"==typeof t?n.document.querySelector(t):t;var u=Object.keys(e.getFontList()),c=e.scaleFactor(),d=[],p=[],f=[];if(!s)return console.error("Html table could not be found with input: ",t),{head:d,body:p,foot:f};for(var h=0;h<s.rows.length;h++){var m=s.rows[h],g=null===(l=null===(a=null==m?void 0:m.parentElement)||void 0===a?void 0:a.tagName)||void 0===l?void 0:l.toLowerCase(),v=i(u,c,n,m,r,o);v&&("thead"===g?d.push(v):"tfoot"===g?f.push(v):p.push(v))}return{head:d,body:p,foot:f}}},587:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseInput=void 0;var r=n(148),o=n(360),i=n(200),a=n(323),l=n(291);t.parseInput=function(e,t){var n=new a.DocHandler(e),s=n.getDocumentOptions(),u=n.getGlobalOptions();(0,l.default)(n,u,s,t);var c,d=(0,o.assign)({},u,s,t);"undefined"!=typeof window&&(c=window);var p=function(e,t,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(i){if("columnStyles"===i){var a=e[i],l=t[i],s=n[i];r.columnStyles=(0,o.assign)({},a,l,s)}else{var u=[e,t,n].map((function(e){return e[i]||{}}));r[i]=(0,o.assign)({},u[0],u[1],u[2])}},a=0,l=Object.keys(r);a<l.length;a++)i(l[a]);return r}(u,s,t),f=function(e,t,n){for(var r={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},o=0,i=[e,t,n];o<i.length;o++){var a=i[o];a.didParseCell&&r.didParseCell.push(a.didParseCell),a.willDrawCell&&r.willDrawCell.push(a.willDrawCell),a.didDrawCell&&r.didDrawCell.push(a.didDrawCell),a.willDrawPage&&r.willDrawPage.push(a.willDrawPage),a.didDrawPage&&r.didDrawPage.push(a.didDrawPage)}return r}(u,s,t),h=function(e,t){var n,r,o,a,l,s,u,c,d,p,f,h,m,g,v=(0,i.parseSpacing)(t.margin,40/e.scaleFactor()),b=null!==(n=function(e,t){var n=e.getLastAutoTable(),r=e.scaleFactor(),o=e.pageNumber(),i=!1;return n&&n.startPageNumber&&(i=n.startPageNumber+n.pageNumber-1===o),"number"==typeof t?t:null!=t&&!1!==t||!i||null==(null==n?void 0:n.finalY)?null:n.finalY+20/r}(e,t.startY))&&void 0!==n?n:v.top;m=!0===t.showFoot?"everyPage":!1===t.showFoot?"never":null!==(r=t.showFoot)&&void 0!==r?r:"everyPage",g=!0===t.showHead?"everyPage":!1===t.showHead?"never":null!==(o=t.showHead)&&void 0!==o?o:"everyPage";var y=null!==(a=t.useCss)&&void 0!==a&&a,w=t.theme||(y?"plain":"striped"),x=!!t.horizontalPageBreak,C=null!==(l=t.horizontalPageBreakRepeat)&&void 0!==l?l:null;return{includeHiddenHtml:null!==(s=t.includeHiddenHtml)&&void 0!==s&&s,useCss:y,theme:w,startY:b,margin:v,pageBreak:null!==(u=t.pageBreak)&&void 0!==u?u:"auto",rowPageBreak:null!==(c=t.rowPageBreak)&&void 0!==c?c:"auto",tableWidth:null!==(d=t.tableWidth)&&void 0!==d?d:"auto",showHead:g,showFoot:m,tableLineWidth:null!==(p=t.tableLineWidth)&&void 0!==p?p:0,tableLineColor:null!==(f=t.tableLineColor)&&void 0!==f?f:200,horizontalPageBreak:x,horizontalPageBreakRepeat:C,horizontalPageBreakBehaviour:null!==(h=t.horizontalPageBreakBehaviour)&&void 0!==h?h:"afterAllRows"}}(n,d),m=function(e,t,n){var o=t.head||[],i=t.body||[],a=t.foot||[];if(t.html){var l=t.includeHiddenHtml;if(n){var s=(0,r.parseHtml)(e,t.html,n,l,t.useCss)||{};o=s.head||o,i=s.body||o,a=s.foot||o}else console.error("Cannot parse html in non browser environment")}var u=t.columns||function(e,t,n){var r=e[0]||t[0]||n[0]||[],o=[];return Object.keys(r).filter((function(e){return"_element"!==e})).forEach((function(e){var t,n=1;"object"!=typeof(t=Array.isArray(r)?r[parseInt(e)]:r[e])||Array.isArray(t)||(n=(null==t?void 0:t.colSpan)||1);for(var i=0;i<n;i++){var a={dataKey:Array.isArray(r)?o.length:e+(i>0?"_".concat(i):"")};o.push(a)}})),o}(o,i,a);return{columns:u,head:o,body:i,foot:a}}(n,d,c);return{id:t.tableId,content:m,hooks:f,styles:p,settings:h}}},291:function(e,t){function n(e){e.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),e.minCellHeight||(e.minCellHeight=e.rowHeight)):e.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),e.cellWidth||(e.cellWidth=e.columnWidth))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,o){for(var i=function(t){t&&"object"!=typeof t&&console.error("The options parameter should be of type object, is: "+typeof t),void 0!==t.extendWidth&&(t.tableWidth=t.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==t.margins&&(void 0===t.margin&&(t.margin=t.margins),console.error("Use of deprecated option: margins, use margin instead.")),t.startY&&"number"!=typeof t.startY&&(console.error("Invalid value for startY option",t.startY),delete t.startY),!t.didDrawPage&&(t.afterPageContent||t.beforePageContent||t.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),t.didDrawPage=function(n){e.applyStyles(e.userStyles),t.beforePageContent&&t.beforePageContent(n),e.applyStyles(e.userStyles),t.afterPageContent&&t.afterPageContent(n),e.applyStyles(e.userStyles),t.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),e.applyStyles(e.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(e){t[e]&&console.error('The "'.concat(e,'" hook has changed in version 3.0, check the changelog for how to migrate.'))})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(e){var n=e[0],r=e[1];t[r]&&(console.error("Use of deprecated option ".concat(r,". Use ").concat(n," instead")),t[n]=t[r])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(e){var n="string"==typeof e?e:e[0],r="string"==typeof e?e:e[1];void 0!==t[n]&&(void 0===t.styles[r]&&(t.styles[r]=t[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))}));for(var r=0,o=["styles","bodyStyles","headStyles","footStyles"];r<o.length;r++)n(t[o[r]]||{});for(var i=t.columnStyles||{},a=0,l=Object.keys(i);a<l.length;a++)n(i[l[a]]||{})},a=0,l=[t,r,o];a<l.length;a++)i(l[a])}},287:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Column=t.Cell=t.Row=t.Table=void 0;var r=n(913),o=n(662),i=n(200),a=function(){function e(e,t){this.pageNumber=1,this.pageCount=1,this.id=e.id,this.settings=e.settings,this.styles=e.styles,this.hooks=e.hooks,this.columns=t.columns,this.head=t.head,this.body=t.body,this.foot=t.foot}return e.prototype.getHeadHeight=function(e){return this.head.reduce((function(t,n){return t+n.getMaxCellHeight(e)}),0)},e.prototype.getFootHeight=function(e){return this.foot.reduce((function(t,n){return t+n.getMaxCellHeight(e)}),0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(e,t,n,r,i,a){for(var l=0,s=t;l<s.length;l++){var u=!1===(0,s[l])(new o.CellHookData(e,this,n,r,i,a));if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},e.prototype.callEndPageHooks=function(e,t){e.applyStyles(e.userStyles);for(var n=0,r=this.hooks.didDrawPage;n<r.length;n++)(0,r[n])(new o.HookData(e,this,t))},e.prototype.callWillDrawPageHooks=function(e,t){for(var n=0,r=this.hooks.willDrawPage;n<r.length;n++)(0,r[n])(new o.HookData(e,this,t))},e.prototype.getWidth=function(e){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(e,t){return e+t.wrappedWidth}),0);var t=this.settings.margin;return e-t.left-t.right},e}();t.Table=a;var l=function(){function e(e,t,n,o,i){void 0===i&&(i=!1),this.height=0,this.raw=e,e instanceof r.HtmlRowInput&&(this.raw=e._element,this.element=e._element),this.index=t,this.section=n,this.cells=o,this.spansMultiplePages=i}return e.prototype.getMaxCellHeight=function(e){var t=this;return e.reduce((function(e,n){var r;return Math.max(e,(null===(r=t.cells[n.index])||void 0===r?void 0:r.height)||0)}),0)},e.prototype.hasRowSpan=function(e){var t=this;return e.filter((function(e){var n=t.cells[e.index];return!!n&&n.rowSpan>1})).length>0},e.prototype.canEntireRowFit=function(e,t){return this.getMaxCellHeight(t)<=e},e.prototype.getMinimumRowHeight=function(e,t){var n=this;return e.reduce((function(e,r){var o=n.cells[r.index];if(!o)return 0;var i=t.getLineHeight(o.styles.fontSize),a=o.padding("vertical")+i;return a>e?a:e}),0)},e}();t.Row=l;var s=function(){function e(e,t,n){var r,o;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=t,this.section=n,this.raw=e;var i=e;null==e||"object"!=typeof e||Array.isArray(e)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=e.rowSpan||1,this.colSpan=e.colSpan||1,i=null!==(o=null!==(r=e.content)&&void 0!==r?r:e.title)&&void 0!==o?o:e,e._element&&(this.raw=e._element));var a=null!=i?""+i:"";this.text=a.split(/\r\n|\r|\n/g)}return e.prototype.getTextPos=function(){var e,t;if("top"===this.styles.valign)e=this.y+this.padding("top");else if("bottom"===this.styles.valign)e=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");e=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)t=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var r=this.width-this.padding("horizontal");t=this.x+r/2+this.padding("left")}else t=this.x+this.padding("left");return{x:t,y:e}},e.prototype.getContentHeight=function(e,t){void 0===t&&(t=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/e*t)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},e.prototype.padding=function(e){var t=(0,i.parseSpacing)(this.styles.cellPadding,0);return"vertical"===e?t.top+t.bottom:"horizontal"===e?t.left+t.right:t[e]},e}();t.Cell=s;var u=function(){function e(e,t,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=e,this.raw=t,this.index=n}return e.prototype.getMaxCustomCellWidth=function(e){for(var t=0,n=0,r=e.allRows();n<r.length;n++){var o=r[n].cells[this.index];o&&"number"==typeof o.styles.cellWidth&&(t=Math.max(t,o.styles.cellWidth))}return t},e}();t.Column=u},360:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assign=void 0,t.assign=function(e,t,n,r,o){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),a=1;a<arguments.length;a++){var l=arguments[a];if(null!=l)for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(i[s]=l[s])}return i}},858:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=void 0;var r=n(323),o=n(287),i=n(189),a=n(913),l=n(360);function s(e,t,n,r,i,a){var l={};return t.map((function(t,s){for(var u=0,d={},p=0,f=0,h=0,m=n;h<m.length;h++){var g=m[h];if(null==l[g.index]||0===l[g.index].left)if(0===f){var v,b={};"object"!=typeof(v=Array.isArray(t)?t[g.index-p-u]:t[g.dataKey])||Array.isArray(v)||(b=(null==v?void 0:v.styles)||{});var y=c(e,g,s,i,r,a,b),w=new o.Cell(v,y,e);d[g.dataKey]=w,d[g.index]=w,f=w.colSpan-1,l[g.index]={left:w.rowSpan-1,times:f}}else f--,p++;else l[g.index].left--,f=l[g.index].times,u++}return new o.Row(t,s,e,d)}))}function u(e,t){var n={};return e.forEach((function(e){if(null!=e.raw){var r=function(e,t){if("head"===e){if("object"==typeof t)return t.header||t.title||null;if("string"==typeof t||"number"==typeof t)return t}else if("foot"===e&&"object"==typeof t)return t.footer;return null}(t,e.raw);null!=r&&(n[e.dataKey]=r)}})),Object.keys(n).length>0?n:null}function c(e,t,n,r,o,i,s){var u,c=(0,a.getTheme)(r);"head"===e?u=o.headStyles:"body"===e?u=o.bodyStyles:"foot"===e&&(u=o.footStyles);var d=(0,l.assign)({},c.table,c[e],o.styles,u),p=o.columnStyles[t.dataKey]||o.columnStyles[t.index]||{},f="body"===e?p:{},h="body"===e&&n%2==0?(0,l.assign)({},c.alternateRow,o.alternateRowStyles):{},m=(0,a.defaultStyles)(i),g=(0,l.assign)({},m,d,h,f);return(0,l.assign)(g,s)}t.createTable=function(e,t){var n=new r.DocHandler(e),a=function(e,t){var n,r=e.content,i=function(e){return e.map((function(e,t){var n,r,i;return i="object"==typeof e&&null!==(r=null!==(n=e.dataKey)&&void 0!==n?n:e.key)&&void 0!==r?r:t,new o.Column(i,e,t)}))}(r.columns);0===r.head.length&&(n=u(i,"head"))&&r.head.push(n),0===r.foot.length&&(n=u(i,"foot"))&&r.foot.push(n);var a=e.settings.theme,l=e.styles;return{columns:i,head:s("head",r.head,i,l,a,t),body:s("body",r.body,i,l,a,t),foot:s("foot",r.foot,i,l,a,t)}}(t,n.scaleFactor()),l=new o.Table(t,a);return(0,i.calculateWidths)(n,l),n.applyStyles(n.userStyles),l}},49:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addPage=t.drawTable=void 0;var r=n(200),o=n(287),i=n(323),a=n(360),l=n(938),s=n(435);function u(e,t,n,r){var o=t.settings;e.applyStyles(e.userStyles),"firstPage"!==o.showHead&&"everyPage"!==o.showHead||t.head.forEach((function(o){return h(e,t,o,n,r)}))}function c(e,t,n,r,o,i){e.applyStyles(e.userStyles),i=null!=i?i:t.body.length;var a=Math.min(n+i,t.body.length),l=-1;return t.body.slice(n,a).forEach((function(i,a){var s=n+a===t.body.length-1,u=g(e,t,s,r);i.canEntireRowFit(u,o)&&(h(e,t,i,r,o),l=n+a)})),l}function d(e,t,n,r){var o=t.settings;e.applyStyles(e.userStyles),"lastPage"!==o.showFoot&&"everyPage"!==o.showFoot||t.foot.forEach((function(o){return h(e,t,o,n,r)}))}function p(e,t,n){var r=n.getLineHeight(e.styles.fontSize),o=e.padding("vertical"),i=Math.floor((t-o)/r);return Math.max(0,i)}function f(e,t,n,r,i,l,s){var u=g(e,t,r,l);if(n.canEntireRowFit(u,s))h(e,t,n,l,s);else if(function(e,t,n,r){var o=e.pageSize().height,i=r.settings.margin,a=o-(i.top+i.bottom);"body"===t.section&&(a-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var l=t.getMinimumRowHeight(r.columns,e),s=l<n;if(l>a)return console.error("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!s)return!1;var u=t.hasRowSpan(r.columns);return t.getMaxCellHeight(r.columns)>a?(u&&console.error("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!u&&"avoid"!==r.settings.rowPageBreak}(e,n,u,t)){var c=function(e,t,n,r){var i={};e.spansMultiplePages=!0,e.height=0;for(var l=0,s=0,u=n.columns;s<u.length;s++){var c=u[s];if(y=e.cells[c.index]){Array.isArray(y.text)||(y.text=[y.text]);var d=new o.Cell(y.raw,y.styles,y.section);(d=(0,a.assign)(d,y)).text=[];var f=p(y,t,r);y.text.length>f&&(d.text=y.text.splice(f,y.text.length));var h=r.scaleFactor(),m=r.getLineHeightFactor();y.contentHeight=y.getContentHeight(h,m),y.contentHeight>=t&&(y.contentHeight=t,d.styles.minCellHeight-=t),y.contentHeight>e.height&&(e.height=y.contentHeight),d.contentHeight=d.getContentHeight(h,m),d.contentHeight>l&&(l=d.contentHeight),i[c.index]=d}}var g=new o.Row(e.raw,-1,e.section,i,!0);g.height=l;for(var v=0,b=n.columns;v<b.length;v++){var y;c=b[v],(d=g.cells[c.index])&&(d.height=g.height),(y=e.cells[c.index])&&(y.height=e.height)}return g}(n,u,t,e);h(e,t,n,l,s),v(e,t,i,l,s),f(e,t,c,r,i,l,s)}else v(e,t,i,l,s),f(e,t,n,r,i,l,s)}function h(e,t,n,r,o){r.x=t.settings.margin.left;for(var i=0,a=o;i<a.length;i++){var s=a[i],u=n.cells[s.index];if(u)if(e.applyStyles(u.styles),u.x=r.x,u.y=r.y,!1!==t.callCellHooks(e,t.hooks.willDrawCell,u,n,s,r)){m(e,u,r);var c=u.getTextPos();(0,l.default)(u.text,c.x,c.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,u,n,s,r),r.x+=s.width}else r.x+=s.width;else r.x+=s.width}r.y+=n.height}function m(e,t,n){var o=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),"number"==typeof o.lineWidth){var i=(0,r.getFillStyle)(o.lineWidth,o.fillColor);i&&e.rect(t.x,n.y,t.width,t.height,i)}else"object"==typeof o.lineWidth&&(o.fillColor&&e.rect(t.x,n.y,t.width,t.height,"F"),function(e,t,n,r){var o,i,a,l;function s(t,n,r,o,i){e.getDocument().setLineWidth(t),e.getDocument().line(n,r,o,i,"S")}r.top&&(o=n.x,i=n.y,a=n.x+t.width,l=n.y,r.right&&(a+=.5*r.right),r.left&&(o-=.5*r.left),s(r.top,o,i,a,l)),r.bottom&&(o=n.x,i=n.y+t.height,a=n.x+t.width,l=n.y+t.height,r.right&&(a+=.5*r.right),r.left&&(o-=.5*r.left),s(r.bottom,o,i,a,l)),r.left&&(o=n.x,i=n.y,a=n.x,l=n.y+t.height,r.top&&(i-=.5*r.top),r.bottom&&(l+=.5*r.bottom),s(r.left,o,i,a,l)),r.right&&(o=n.x+t.width,i=n.y,a=n.x+t.width,l=n.y+t.height,r.top&&(i-=.5*r.top),r.bottom&&(l+=.5*r.bottom),s(r.right,o,i,a,l))}(e,t,n,o.lineWidth))}function g(e,t,n,r){var o=t.settings.margin.bottom,i=t.settings.showFoot;return("everyPage"===i||"lastPage"===i&&n)&&(o+=t.getFootHeight(t.columns)),e.pageSize().height-r.y-o}function v(e,t,n,o,i,a){void 0===i&&(i=[]),void 0===a&&(a=!1),e.applyStyles(e.userStyles),"everyPage"!==t.settings.showFoot||a||t.foot.forEach((function(n){return h(e,t,n,o,i)})),t.callEndPageHooks(e,o);var l=t.settings.margin;(0,r.addTableBorder)(e,t,n,o),b(e),t.pageNumber++,t.pageCount++,o.x=l.left,o.y=l.top,n.y=l.top,t.callWillDrawPageHooks(e,o),"everyPage"===t.settings.showHead&&(t.head.forEach((function(n){return h(e,t,n,o,i)})),e.applyStyles(e.userStyles))}function b(e){var t=e.pageNumber();return e.setPage(t+1),e.pageNumber()===t&&(e.addPage(),!0)}t.drawTable=function(e,t){var n=t.settings,o=n.startY,l=n.margin,p={x:l.left,y:o},m=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),g=o+l.bottom+m;"avoid"===n.pageBreak&&(g+=t.body.reduce((function(e,t){return e+t.height}),0));var y=new i.DocHandler(e);("always"===n.pageBreak||null!=n.startY&&g>y.pageSize().height)&&(b(y),p.y=l.top),t.callWillDrawPageHooks(y,p);var w=(0,a.assign)({},p);t.startPageNumber=y.pageNumber(),n.horizontalPageBreak?function(e,t,n,r){var o=(0,s.calculateAllColumnsCanFitInPage)(e,t);if("afterAllRows"===t.settings.horizontalPageBreakBehaviour)o.forEach((function(o,i){e.applyStyles(e.userStyles),i>0?v(e,t,n,r,o.columns,!0):u(e,t,r,o.columns),function(e,t,n,r,o){e.applyStyles(e.userStyles),t.body.forEach((function(i,a){var l=a===t.body.length-1;f(e,t,i,l,n,r,o)}))}(e,t,n,r,o.columns),d(e,t,r,o.columns)}));else for(var i=-1,a=o[0],l=function(){var l=i;if(a){e.applyStyles(e.userStyles);var s=a.columns;i>=0?v(e,t,n,r,s,!0):u(e,t,r,s),l=c(e,t,i+1,r,s),d(e,t,r,s)}var p=l-i;o.slice(1).forEach((function(o){e.applyStyles(e.userStyles),v(e,t,n,r,o.columns,!0),c(e,t,i+1,r,o.columns,p),d(e,t,r,o.columns)})),i=l};i<t.body.length-1;)l()}(y,t,w,p):(y.applyStyles(y.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||t.head.forEach((function(e){return h(y,t,e,p,t.columns)})),y.applyStyles(y.userStyles),t.body.forEach((function(e,n){var r=n===t.body.length-1;f(y,t,e,r,w,p,t.columns)})),y.applyStyles(y.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||t.foot.forEach((function(e){return h(y,t,e,p,t.columns)}))),(0,r.addTableBorder)(y,t,w,p),t.callEndPageHooks(y,p),t.finalY=p.y,e.lastAutoTable=t,e.previousAutoTable=t,e.autoTable&&(e.autoTable.previous=t),y.applyStyles(y.userStyles)},t.addPage=v},435:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateAllColumnsCanFitInPage=void 0;var r=n(200);function o(e,t,n){var o;void 0===n&&(n={});var i=(0,r.getPageAvailableWidth)(e,t),a=new Map,l=[],s=[],u=[];t.settings.horizontalPageBreakRepeat,Array.isArray(t.settings.horizontalPageBreakRepeat)?u=t.settings.horizontalPageBreakRepeat:"string"!=typeof t.settings.horizontalPageBreakRepeat&&"number"!=typeof t.settings.horizontalPageBreakRepeat||(u=[t.settings.horizontalPageBreakRepeat]),u.forEach((function(e){var n=t.columns.find((function(t){return t.dataKey===e||t.index===e}));n&&!a.has(n.index)&&(a.set(n.index,!0),l.push(n.index),s.push(t.columns[n.index]),i-=n.wrappedWidth)}));for(var c=!0,d=null!==(o=null==n?void 0:n.start)&&void 0!==o?o:0;d<t.columns.length;)if(a.has(d))d++;else{var p=t.columns[d].wrappedWidth;if(!(c||i>=p))break;c=!1,l.push(d),s.push(t.columns[d]),i-=p,d++}return{colIndexes:l,columns:s,lastIndex:d-1}}t.calculateAllColumnsCanFitInPage=function(e,t){for(var n=[],r=0;r<t.columns.length;r++){var i=o(e,t,{start:r});i.columns.length&&(n.push(i),r=i.lastIndex)}return n}},189:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ellipsize=t.resizeColumns=t.calculateWidths=void 0;var r=n(200);function o(e,t,n){for(var r=t,i=e.reduce((function(e,t){return e+t.wrappedWidth}),0),a=0;a<e.length;a++){var l=e[a],s=r*(l.wrappedWidth/i),u=l.width+s,c=n(l),d=u<c?c:u;t-=d-l.width,l.width=d}if(t=Math.round(1e10*t)/1e10){var p=e.filter((function(e){return!(t<0)||e.width>n(e)}));p.length&&(t=o(p,t,n))}return t}function i(e,t,n,o,i){return e.map((function(e){return function(e,t,n,o,i){var a=1e4*o.scaleFactor();if((t=Math.ceil(t*a)/a)>=(0,r.getStringWidth)(e,n,o))return e;for(;t<(0,r.getStringWidth)(e+i,n,o)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+i}(e,t,n,o,i)}))}t.calculateWidths=function(e,t){!function(e,t){var n=e.scaleFactor(),o=t.settings.horizontalPageBreak,i=(0,r.getPageAvailableWidth)(e,t);t.allRows().forEach((function(a){for(var l=0,s=t.columns;l<s.length;l++){var u=s[l],c=a.cells[u.index];if(c){var d=t.hooks.didParseCell;t.callCellHooks(e,d,c,a,u,null);var p=c.padding("horizontal");c.contentWidth=(0,r.getStringWidth)(c.text,c.styles,e)+p;var f=(0,r.getStringWidth)(c.text.join(" ").split(/\s+/),c.styles,e);if(c.minReadableWidth=f+c.padding("horizontal"),"number"==typeof c.styles.cellWidth)c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if("wrap"===c.styles.cellWidth||!0===o)c.contentWidth>i?(c.minWidth=i,c.wrappedWidth=i):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var h=10/n;c.minWidth=c.styles.minCellWidth||h,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),t.allRows().forEach((function(e){for(var n=0,r=t.columns;n<r.length;n++){var o=r[n],i=e.cells[o.index];if(i&&1===i.colSpan)o.wrappedWidth=Math.max(o.wrappedWidth,i.wrappedWidth),o.minWidth=Math.max(o.minWidth,i.minWidth),o.minReadableWidth=Math.max(o.minReadableWidth,i.minReadableWidth);else{var a=t.styles.columnStyles[o.dataKey]||t.styles.columnStyles[o.index]||{},l=a.cellWidth||a.minCellWidth;l&&"number"==typeof l&&(o.minWidth=l,o.wrappedWidth=l)}i&&(i.colSpan>1&&!o.minWidth&&(o.minWidth=i.minWidth),i.colSpan>1&&!o.wrappedWidth&&(o.wrappedWidth=i.minWidth))}}))}(e,t);var n=[],a=0;t.columns.forEach((function(e){var r=e.getMaxCustomCellWidth(t);r?e.width=r:(e.width=e.wrappedWidth,n.push(e)),a+=e.width}));var l=t.getWidth(e.pageSize().width)-a;l&&(l=o(n,l,(function(e){return Math.max(e.minReadableWidth,e.minWidth)}))),l&&(l=o(n,l,(function(e){return e.minWidth}))),l=Math.abs(l),!t.settings.horizontalPageBreak&&l>.1/e.scaleFactor()&&(l=l<1?l:Math.round(l),console.warn("Of the table content, ".concat(l," units width could not fit page"))),function(e){for(var t=e.allRows(),n=0;n<t.length;n++)for(var r=t[n],o=null,i=0,a=0,l=0;l<e.columns.length;l++){var s=e.columns[l];if((a-=1)>1&&e.columns[l+1])i+=s.width,delete r.cells[s.index];else if(o){var u=o;delete r.cells[s.index],o=null,u.width=s.width+i}else{if(!(u=r.cells[s.index]))continue;if(a=u.colSpan,i=0,u.colSpan>1){o=u,i+=s.width;continue}u.width=s.width+i}}}(t),function(e,t){for(var n={count:0,height:0},r=0,o=e.allRows();r<o.length;r++){for(var a=o[r],l=0,s=e.columns;l<s.length;l++){var u=s[l],c=a.cells[u.index];if(c){t.applyStyles(c.styles,!0);var d=c.width-c.padding("horizontal");if("linebreak"===c.styles.overflow)c.text=t.splitTextToSize(c.text,d+1/t.scaleFactor(),{fontSize:c.styles.fontSize});else if("ellipsize"===c.styles.overflow)c.text=i(c.text,d,c.styles,t,"...");else if("hidden"===c.styles.overflow)c.text=i(c.text,d,c.styles,t,"");else if("function"==typeof c.styles.overflow){var p=c.styles.overflow(c.text,d);c.text="string"==typeof p?[p]:p}c.contentHeight=c.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var f=c.contentHeight/c.rowSpan;c.rowSpan>1&&n.count*n.height<f*c.rowSpan?n={height:f,count:c.rowSpan}:n&&n.count>0&&n.height>f&&(f=n.height),f>a.height&&(a.height=f)}}n.count--}}(t,e),function(e){for(var t={},n=1,r=e.allRows(),o=0;o<r.length;o++)for(var i=r[o],a=0,l=e.columns;a<l.length;a++){var s=l[a],u=t[s.index];if(n>1)n--,delete i.cells[s.index];else if(u)u.cell.height+=i.height,n=u.cell.colSpan,delete i.cells[s.index],u.left--,u.left<=1&&delete t[s.index];else{var c=i.cells[s.index];if(!c)continue;if(c.height=i.height,c.rowSpan>1){var d=r.length-o,p=c.rowSpan>d?d:c.rowSpan;t[s.index]={cell:c,left:p,row:i}}}}}(t)},t.resizeColumns=o,t.ellipsize=i},84:function(t){if(void 0===e){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}var o={};return function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=e.Column=e.Row=e.Table=e.CellHookData=e.__drawTable=e.__createTable=e.applyPlugin=void 0;var t=r(790),n=r(587),i=r(49),a=r(858),l=r(287);Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return l.Table}});var s=r(662);Object.defineProperty(e,"CellHookData",{enumerable:!0,get:function(){return s.CellHookData}});var u=r(287);function c(e){(0,t.default)(e)}Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return u.Row}}),e.applyPlugin=c,e.__createTable=function(e,t){var r=(0,n.parseInput)(e,t);return(0,a.createTable)(e,r)},e.__drawTable=function(e,t){(0,i.drawTable)(e,t)};try{var d=r(84);d.jsPDF&&(d=d.jsPDF),c(d)}catch(e){}e.default=function(e,t){var r=(0,n.parseInput)(e,t),o=(0,a.createTable)(e,r);(0,i.drawTable)(e,o)}}(),o}()},e.exports=r(function(){try{return n(1168)}catch(e){}}())},1168:function(e,t,n){"use strict";n.r(t),n.d(t,{AcroForm:function(){return ft},AcroFormAppearance:function(){return ut},AcroFormButton:function(){return nt},AcroFormCheckBox:function(){return at},AcroFormChoiceField:function(){return Xe},AcroFormComboBox:function(){return et},AcroFormEditBox:function(){return tt},AcroFormListBox:function(){return Je},AcroFormPasswordField:function(){return st},AcroFormPushButton:function(){return rt},AcroFormRadioButton:function(){return ot},AcroFormTextField:function(){return lt},GState:function(){return we},ShadingPattern:function(){return Ce},TilingPattern:function(){return Se},default:function(){return dn},jsPDF:function(){return Ee}});var r=n(1002),o=Uint8Array,i=Uint16Array,a=Uint32Array,l=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new a(n[30]);for(r=1;r<30;++r)for(var l=n[r];l<n[r+1];++l)o[l]=l-n[r]<<5|r;return[n,o]},d=c(l,2),p=d[0],f=d[1];p[28]=258,f[258]=28;for(var h=c(s,0),m=h[0],g=h[1],v=new i(32768),b=0;b<32768;++b){var y=(43690&b)>>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(e,t,n){for(var r=e.length,o=0,a=new i(t);o<r;++o)++a[e[o]-1];var l,s=new i(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){l=new i(1<<t);var u=15-t;for(o=0;o<r;++o)if(e[o])for(var c=o<<4|e[o],d=t-e[o],p=s[e[o]-1]++<<d,f=p|(1<<d)-1;p<=f;++p)l[v[p]>>>u]=c}else for(l=new i(r),o=0;o<r;++o)l[o]=v[s[e[o]-1]++]>>>15-e[o];return l},x=new o(288);for(b=0;b<144;++b)x[b]=8;for(b=144;b<256;++b)x[b]=9;for(b=256;b<280;++b)x[b]=7;for(b=280;b<288;++b)x[b]=8;var C=new o(32);for(b=0;b<32;++b)C[b]=5;var S=w(x,9,0),E=w(x,9,1),N=w(C,5,0),M=w(C,5,1),I=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},A=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},k=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},P=function(e){return(e/8>>0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof i?i:e instanceof a?a:o)(n-t);return r.set(e.subarray(t,n)),r},R=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},T=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},D=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,l=n.slice();if(!a)return[new o(0),0];if(1==a){var s=new o(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],d=0,p=1,f=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};p!=a-1;)u=n[n[d].f<n[f].f?d++:f++],c=n[d!=p&&n[d].f<n[f].f?d++:f++],n[p++]={s:-1,f:u.f+c.f,l:u,r:c};var h=l[0].s;for(r=1;r<a;++r)l[r].s>h&&(h=l[r].s);var m=new i(h+1),g=O(n[p-1],m,0);if(g>t){r=0;var v=0,b=g-t,y=1<<b;for(l.sort((function(e,t){return m[t.s]-m[e.s]||e.f-t.f}));r<a;++r){var w=l[r].s;if(!(m[w]>t))break;v+=y-(1<<g-m[w]),m[w]=t}for(v>>>=b;v>0;){var x=l[r].s;m[x]<t?v-=1<<t-m[x]++-1:++r}for(;r>=0&&v;--r){var C=l[r].s;m[C]==t&&(--m[C],++v)}g=t}return[new o(m),g]},O=function(e,t,n){return-1==e.s?Math.max(O(e.l,t,n+1),O(e.r,t,n+1)):t[e.s]=n},j=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new i(++t),r=0,o=e[0],a=1,l=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==o&&s!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)l(32754);a>2&&(l(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(l(o),--a;a>6;a-=6)l(8304);a>2&&(l(a-3<<5|8208),a=0)}for(;a--;)l(o);a=1,o=e[s]}return[n.subarray(0,r),t]},F=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},_=function(e,t,n){var r=n.length,o=P(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<r;++i)e[o+i+4]=n[i];return 8*(o+4+r)},Z=function(e,t,n,r,o,a,c,d,p,f,h){R(t,h++,n),++o[256];for(var m=D(o,15),g=m[0],v=m[1],b=D(a,15),y=b[0],E=b[1],M=j(g),I=M[0],A=M[1],k=j(y),P=k[0],L=k[1],O=new i(19),Z=0;Z<I.length;++Z)O[31&I[Z]]++;for(Z=0;Z<P.length;++Z)O[31&P[Z]]++;for(var B=D(O,7),z=B[0],H=B[1],$=19;$>4&&!z[u[$-1]];--$);var q,W,U,V,G=f+5<<3,Y=F(o,x)+F(a,C)+c,K=F(o,g)+F(a,y)+c+14+3*$+F(O,z)+(2*O[16]+3*O[17]+7*O[18]);if(G<=Y&&G<=K)return _(t,h,e.subarray(p,p+f));if(R(t,h,1+(K<Y)),h+=2,K<Y){q=w(g,v,0),W=g,U=w(y,E,0),V=y;var Q=w(z,H,0);for(R(t,h,A-257),R(t,h+5,L-1),R(t,h+10,$-4),h+=14,Z=0;Z<$;++Z)R(t,h+3*Z,z[u[Z]]);h+=3*$;for(var X=[I,P],J=0;J<2;++J){var ee=X[J];for(Z=0;Z<ee.length;++Z){var te=31&ee[Z];R(t,h,Q[te]),h+=z[te],te>15&&(R(t,h,ee[Z]>>>5&127),h+=ee[Z]>>>12)}}}else q=S,W=x,U=N,V=C;for(Z=0;Z<d;++Z)if(r[Z]>255){te=r[Z]>>>18&31,T(t,h,q[te+257]),h+=W[te+257],te>7&&(R(t,h,r[Z]>>>23&31),h+=l[te]);var ne=31&r[Z];T(t,h,U[ne]),h+=V[ne],ne>3&&(T(t,h,r[Z]>>>5&8191),h+=s[ne])}else T(t,h,q[r[Z]]),h+=W[r[Z]];return T(t,h,q[256]),h+W[256]},B=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new o(0),H=function(e,t,n,r,u){return function(e,t,n,r,u,c){var d=e.length,p=new o(r+d+5*(1+Math.floor(d/7e3))+u),h=p.subarray(r,p.length-u),m=0;if(!t||d<8)for(var v=0;v<=d;v+=65535){var b=v+65535;b<d?m=_(h,m,e.subarray(v,b)):(h[v]=c,m=_(h,m,e.subarray(v,d)))}else{for(var y=B[t-1],w=y>>>13,x=8191&y,C=(1<<n)-1,S=new i(32768),E=new i(C+1),N=Math.ceil(n/3),M=2*N,I=function(t){return(e[t]^e[t+1]<<N^e[t+2]<<M)&C},A=new a(25e3),k=new i(288),R=new i(32),T=0,D=0,O=(v=0,0),j=0,F=0;v<d;++v){var H=I(v),$=32767&v,q=E[H];if(S[$]=q,E[H]=$,j<=v){var W=d-v;if((T>7e3||O>24576)&&W>423){m=Z(e,h,0,A,k,R,D,O,F,v-F,m),O=T=D=0,F=v;for(var U=0;U<286;++U)k[U]=0;for(U=0;U<30;++U)R[U]=0}var V=2,G=0,Y=x,K=$-q&32767;if(W>2&&H==I(v-K))for(var Q=Math.min(w,W)-1,X=Math.min(32767,v),J=Math.min(258,W);K<=X&&--Y&&$!=q;){if(e[v+V]==e[v+V-K]){for(var ee=0;ee<J&&e[v+ee]==e[v+ee-K];++ee);if(ee>V){if(V=ee,G=K,ee>Q)break;var te=Math.min(K,ee-2),ne=0;for(U=0;U<te;++U){var re=v-K+U+32768&32767,oe=re-S[re]+32768&32767;oe>ne&&(ne=oe,q=re)}}}K+=($=q)-(q=S[$])+32768&32767}if(G){A[O++]=268435456|f[V]<<18|g[G];var ie=31&f[V],ae=31&g[G];D+=l[ie]+s[ae],++k[257+ie],++R[ae],j=v+V,++T}else A[O++]=e[v],++k[e[v]]}}m=Z(e,h,c,A,k,R,D,O,F,v-F,m),c||(m=_(h,m,z))}return L(p,0,r+P(m)+u)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!u)};function $(e,t){void 0===t&&(t={});var n=function(){var e=1,t=0;return{p:function(n){for(var r=e,o=t,i=n.length,a=0;a!=i;){for(var l=Math.min(a+5552,i);a<l;++a)o+=r+=n[a];r%=65521,o%=65521}e=r,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();n.p(e);var r=H(e,t,2,4);return function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)}(r,t),function(e,t,n){for(;n;++t)e[t]=n,n>>>=8}(r,r.length-4,n.d()),r}function q(e,t){return function(e,t,n){var r=e.length,i=!t||n,a=!n||n.i;n||(n={}),t||(t=new o(3*r));var c=function(e){var n=t.length;if(e>n){var r=new o(Math.max(2*n,e));r.set(t),t=r}},d=n.f||0,f=n.p||0,h=n.b||0,g=n.l,v=n.d,b=n.m,y=n.n,x=8*r;do{if(!g){n.f=d=A(e,f,1);var C=A(e,f+1,3);if(f+=3,!C){var S=e[(z=P(f)+4)-4]|e[z-3]<<8,N=z+S;if(N>r){if(a)throw"unexpected EOF";break}i&&c(h+S),t.set(e.subarray(z,N),h),n.b=h+=S,n.p=f=8*N;continue}if(1==C)g=E,v=M,b=9,y=5;else{if(2!=C)throw"invalid block type";var R=A(e,f,31)+257,T=A(e,f+10,15)+4,D=R+A(e,f+5,31)+1;f+=14;for(var O=new o(D),j=new o(19),F=0;F<T;++F)j[u[F]]=A(e,f+3*F,7);f+=3*T;var _=I(j),Z=(1<<_)-1;if(!a&&f+D*(_+7)>x)break;var B=w(j,_,1);for(F=0;F<D;){var z,H=B[A(e,f,Z)];if(f+=15&H,(z=H>>>4)<16)O[F++]=z;else{var $=0,q=0;for(16==z?(q=3+A(e,f,3),f+=2,$=O[F-1]):17==z?(q=3+A(e,f,7),f+=3):18==z&&(q=11+A(e,f,127),f+=7);q--;)O[F++]=$}}var W=O.subarray(0,R),U=O.subarray(R);b=I(W),y=I(U),g=w(W,b,1),v=w(U,y,1)}if(f>x)throw"unexpected EOF"}i&&c(h+131072);for(var V=(1<<b)-1,G=(1<<y)-1,Y=b+y+18;a||f+Y<x;){var K=($=g[k(e,f)&V])>>>4;if((f+=15&$)>x)throw"unexpected EOF";if(!$)throw"invalid length/literal";if(K<256)t[h++]=K;else{if(256==K){g=null;break}var Q=K-254;if(K>264){var X=l[F=K-257];Q=A(e,f,(1<<X)-1)+p[F],f+=X}var J=v[k(e,f)&G],ee=J>>>4;if(!J)throw"invalid distance";if(f+=15&J,U=m[ee],ee>3&&(X=s[ee],U+=k(e,f)&(1<<X)-1,f+=X),f>x)throw"unexpected EOF";i&&c(h+131072);for(var te=h+Q;h<te;h+=4)t[h]=t[h-U],t[h+1]=t[h+1-U],t[h+2]=t[h+2-U],t[h+3]=t[h+3-U];h=te}}n.l=g,n.p=f,n.b=h,g&&(d=1,n.m=b,n.d=v,n.n=y)}while(!d);return h==t.length?t:L(t,0,h)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}var W=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function U(){W.console&&"function"==typeof W.console.log&&W.console.log.apply(W.console,arguments)}var V={log:U,warn:function(e){W.console&&("function"==typeof W.console.warn?W.console.warn.apply(W.console,arguments):U.call(null,arguments))},error:function(e){W.console&&("function"==typeof W.console.error?W.console.error.apply(W.console,arguments):U(e))}};function G(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){J(r.response,t,n)},r.onerror=function(){V.error("could not download file")},r.send()}function Y(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function K(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Q,X,J=W.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.Z)(window))||window!==W?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=W.URL||W.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener","string"==typeof e?(o.href=e,o.origin!==location.origin?Y(o.href)?G(e,t,n):K(o,o.target="_blank"):K(o)):(o.href=r.createObjectURL(e),setTimeout((function(){r.revokeObjectURL(o.href)}),4e4),setTimeout((function(){K(o)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(Y(e))G(e,t,n);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){K(o)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.Z)(t)&&(V.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return G(e,t,n);var i="application/octet-stream"===e.type,a=/constructor/i.test(W.HTMLElement)||W.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&a)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.Z)(FileReader))){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},s.readAsDataURL(e)}else{var u=W.URL||W.webkitURL,c=u.createObjectURL(e);o?o.location=c:location.href=c,o=null,setTimeout((function(){u.revokeObjectURL(c)}),4e4)}});function ee(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var o=n[r].re,i=n[r].process,a=o.exec(e);a&&(t=i(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}function te(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=re(n,r,o,i,t[0],7,-680876936),i=re(i,n,r,o,t[1],12,-389564586),o=re(o,i,n,r,t[2],17,606105819),r=re(r,o,i,n,t[3],22,-1044525330),n=re(n,r,o,i,t[4],7,-176418897),i=re(i,n,r,o,t[5],12,1200080426),o=re(o,i,n,r,t[6],17,-1473231341),r=re(r,o,i,n,t[7],22,-45705983),n=re(n,r,o,i,t[8],7,1770035416),i=re(i,n,r,o,t[9],12,-1958414417),o=re(o,i,n,r,t[10],17,-42063),r=re(r,o,i,n,t[11],22,-1990404162),n=re(n,r,o,i,t[12],7,1804603682),i=re(i,n,r,o,t[13],12,-40341101),o=re(o,i,n,r,t[14],17,-1502002290),n=oe(n,r=re(r,o,i,n,t[15],22,1236535329),o,i,t[1],5,-165796510),i=oe(i,n,r,o,t[6],9,-1069501632),o=oe(o,i,n,r,t[11],14,643717713),r=oe(r,o,i,n,t[0],20,-373897302),n=oe(n,r,o,i,t[5],5,-701558691),i=oe(i,n,r,o,t[10],9,38016083),o=oe(o,i,n,r,t[15],14,-660478335),r=oe(r,o,i,n,t[4],20,-405537848),n=oe(n,r,o,i,t[9],5,568446438),i=oe(i,n,r,o,t[14],9,-1019803690),o=oe(o,i,n,r,t[3],14,-187363961),r=oe(r,o,i,n,t[8],20,1163531501),n=oe(n,r,o,i,t[13],5,-1444681467),i=oe(i,n,r,o,t[2],9,-51403784),o=oe(o,i,n,r,t[7],14,1735328473),n=ie(n,r=oe(r,o,i,n,t[12],20,-1926607734),o,i,t[5],4,-378558),i=ie(i,n,r,o,t[8],11,-2022574463),o=ie(o,i,n,r,t[11],16,1839030562),r=ie(r,o,i,n,t[14],23,-35309556),n=ie(n,r,o,i,t[1],4,-1530992060),i=ie(i,n,r,o,t[4],11,1272893353),o=ie(o,i,n,r,t[7],16,-155497632),r=ie(r,o,i,n,t[10],23,-1094730640),n=ie(n,r,o,i,t[13],4,681279174),i=ie(i,n,r,o,t[0],11,-358537222),o=ie(o,i,n,r,t[3],16,-722521979),r=ie(r,o,i,n,t[6],23,76029189),n=ie(n,r,o,i,t[9],4,-640364487),i=ie(i,n,r,o,t[12],11,-421815835),o=ie(o,i,n,r,t[15],16,530742520),n=ae(n,r=ie(r,o,i,n,t[2],23,-995338651),o,i,t[0],6,-198630844),i=ae(i,n,r,o,t[7],10,1126891415),o=ae(o,i,n,r,t[14],15,-1416354905),r=ae(r,o,i,n,t[5],21,-57434055),n=ae(n,r,o,i,t[12],6,1700485571),i=ae(i,n,r,o,t[3],10,-1894986606),o=ae(o,i,n,r,t[10],15,-1051523),r=ae(r,o,i,n,t[1],21,-2054922799),n=ae(n,r,o,i,t[8],6,1873313359),i=ae(i,n,r,o,t[15],10,-30611744),o=ae(o,i,n,r,t[6],15,-1560198380),r=ae(r,o,i,n,t[13],21,1309151649),n=ae(n,r,o,i,t[4],6,-145523070),i=ae(i,n,r,o,t[11],10,-1120210379),o=ae(o,i,n,r,t[2],15,718787259),r=ae(r,o,i,n,t[9],21,-343485551),e[0]=he(n,e[0]),e[1]=he(r,e[1]),e[2]=he(o,e[2]),e[3]=he(i,e[3])}function ne(e,t,n,r,o,i){return t=he(he(t,e),he(r,i)),he(t<<o|t>>>32-o,n)}function re(e,t,n,r,o,i,a){return ne(t&n|~t&r,e,t,o,i,a)}function oe(e,t,n,r,o,i,a){return ne(t&r|n&~r,e,t,o,i,a)}function ie(e,t,n,r,o,i,a){return ne(t^n^r,e,t,o,i,a)}function ae(e,t,n,r,o,i,a){return ne(n^(t|~r),e,t,o,i,a)}function le(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)te(r,se(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(te(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,te(r,o),r}function se(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}Q=W.atob.bind(W),X=W.btoa.bind(W);var ue="0123456789abcdef".split("");function ce(e){for(var t="",n=0;n<4;n++)t+=ue[e>>8*n+4&15]+ue[e>>8*n&15];return t}function de(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function pe(e){return le(e).map(de).join("")}var fe="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=ce(e[t]);return e.join("")}(le("hello"));function he(e,t){if(fe){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function me(e,t){var n,r,o,i;if(e!==n){for(var a=(o=e,i=1+(256/e.length>>0),new Array(i+1).join(o)),l=[],s=0;s<256;s++)l[s]=s;var u=0;for(s=0;s<256;s++){var c=l[s];u=(u+c+a.charCodeAt(s))%256,l[s]=l[u],l[u]=c}n=e,r=l}else l=r;var d=t.length,p=0,f=0,h="";for(s=0;s<d;s++)f=(f+(c=l[p=(p+1)%256]))%256,l[p]=l[f],l[f]=c,a=l[(l[p]+l[f])%256],h+=String.fromCharCode(t.charCodeAt(s)^a);return h}var ge={print:4,modify:8,copy:16,"annot-forms":32};function ve(e,t,n,r){this.v=1,this.r=2;var o=192;e.forEach((function(e){if(void 0!==ge.perm)throw new Error("Invalid permission: "+e);o+=ge[e]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^o)),this.encryptionKey=pe(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=me(this.encryptionKey,this.padding)}function be(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);t+=o<33||35===o||37===o||40===o||41===o||47===o||60===o||62===o||91===o||93===o||123===o||125===o||o>126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return t}function ye(e){if("object"!==(0,r.Z)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[n,!!r],o},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var i in t[n]){var a=t[n][i];try{a[0].apply(e,r)}catch(n){W.console&&V.error("jsPDF PubSub Error",n.message,n)}a[1]&&o.push(i)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function we(e){if(!(this instanceof we))return new we(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function xe(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ce(e,t,n,r,o){if(!(this instanceof Ce))return new Ce(e,t,n,r,o);this.type="axial"===e?2:3,this.coords=t,this.colors=n,xe.call(this,r,o)}function Se(e,t,n,r,o){if(!(this instanceof Se))return new Se(e,t,n,r,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,xe.call(this,r,o)}function Ee(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],i=arguments[2],a=arguments[3],l=[],s=1,u=16,c="S",d=null;"object"===(0,r.Z)(e=e||{})&&(n=e.orientation,o=e.unit||o,i=e.format||i,a=e.compress||e.compressPdf||a,null!==(d=e.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(u=e.floatPrecision),c=e.defaultPathOperation||"S"),l=e.filters||(!0===a?["FlateEncode"]:l),o=o||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,f={},h={internal:{},__private__:{}};h.__private__.PubSub=ye;var m="1.3",g=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(e){m=e};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var b=h.__private__.getPageFormat=function(e){return v[e]};i=i||"a4";var y="compat",w="advanced",x=y;function C(){this.saveGraphicsState(),re(new qe(Ne,0,0,-Ne,0,Cn()*Ne).toString()+" cm"),this.setFontSize(this.getFontSize()/Ne),c="n",x=w}function S(){this.restoreGraphicsState(),c="S",x=y}var E=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=x===y;return t&&C.call(this),"function"!=typeof e||(e(this),t&&S.call(this)),this},h.compatAPI=function(e){var t=x===w;return t&&S.call(this),"function"!=typeof e||(e(this),t&&C.call(this)),this},h.isAdvancedAPI=function(){return x===w};var N,M=function(e){if(x!==w)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};N=h.hpf=h.__private__.hpf="number"==typeof u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,u)}:"smart"===u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var A=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},k=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},P=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return x===y?e*Ne:x===w?e:void 0},L=function(e){return P(function(e){return x===y?Cn()-e:x===w?e:void 0}(e))};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var R,T="00000000000000000000000000000000",D=h.__private__.getFileId=function(){return T},O=h.__private__.setFileId=function(e){return T=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():T.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(Lt=new ve(d.userPermissions,d.userPassword,d.ownerPassword,T)),T};h.setFileId=function(e){return O(e),this},h.getFileId=function(){return D()};var j=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),i=[n,z(r),"'",z(o),"'"].join("");return["D:",e.getFullYear(),z(e.getMonth()+1),z(e.getDate()),z(e.getHours()),z(e.getMinutes()),z(e.getSeconds()),i].join("")},F=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),a=parseInt(e.substr(14,2),10);return new Date(t,n,r,o,i,a,0)},_=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=j(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return R=t},Z=h.__private__.getCreationDate=function(e){var t=R;return"jsDate"===e&&(t=F(R)),t};h.setCreationDate=function(e){return _(e),this},h.getCreationDate=function(e){return Z(e)};var B,z=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},H=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},$=0,q=[],U=[],G=0,Y=[],K=[],Q=!1,te=U;h.__private__.setCustomOutputDestination=function(e){Q=!0,te=e};var ne=function(e){Q||(te=e)};h.__private__.resetCustomOutputDestination=function(){Q=!1,te=U};var re=h.__private__.out=function(e){return e=e.toString(),G+=e.length+1,te.push(e),te},oe=h.__private__.write=function(e){return re(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ie=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},ae=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return ae};var le=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return le=x===w?e/Ne:e,this};var se,ue=h.__private__.getFontSize=h.getFontSize=function(){return x===y?le:le*Ne},ce=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return ce=e,this},h.__private__.getR2L=h.getR2L=function(){return ce};var de,pe=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))se=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');se=e}else se=parseInt(e,10)};h.__private__.getZoomMode=function(){return se};var fe,he=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');de=e};h.__private__.getPageMode=function(){return de};var me=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');fe=e};h.__private__.getLayoutMode=function(){return fe},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return pe(e),me(t),he(n),this};var ge={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ge).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ge[e]},h.__private__.getDocumentProperties=function(){return ge},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ge)ge.hasOwnProperty(t)&&e[t]&&(ge[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ge).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ge[e]=t};var xe,Ne,Me,Ie,Ae,ke={},Pe={},Le=[],Re={},Te={},De={},Oe={},je=null,Fe=0,_e=[],Ze=new ye(h),Be=e.hotfixes||[],ze={},He={},$e=[],qe=function e(t,n,r,o,i,a){if(!(this instanceof e))return new e(t,n,r,o,i,a);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(o)&&(o=1),isNaN(i)&&(i=0),isNaN(a)&&(a=0),this._matrix=[t,n,r,o,i,a]};Object.defineProperty(qe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(qe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(qe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(qe.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),qe.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(e)},qe.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,a=e.tx*this.shy+e.ty*this.sy+this.ty;return new qe(t,n,r,o,i,a)},qe.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=Math.sqrt(e*e+t*t),l=(e/=a)*n+(t/=a)*r;n-=e*l,r-=t*l;var s=Math.sqrt(n*n+r*r);return l/=s,e*(r/=s)<t*(n/=s)&&(e=-e,t=-t,l=-l,a=-a),{scale:new qe(a,0,0,s,0,0),translate:new qe(1,0,0,1,o,i),rotate:new qe(e,t,-t,e,0,0),skew:new qe(1,0,l,1,0,0)}},qe.prototype.toString=function(e){return this.join(" ")},qe.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=1/(e*r-t*n),l=r*a,s=-t*a,u=-n*a,c=e*a;return new qe(l,s,u,c,-l*o-u*i,-s*o-c*i)},qe.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new mn(t,n)},qe.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new mn(e.x+e.w,e.y+e.h));return new gn(t.x,t.y,n.x-t.x,n.y-t.y)},qe.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty;return new qe(e,t,n,r,o,i)},h.Matrix=qe;var We=h.matrixMult=function(e,t){return t.multiply(e)},Ue=new qe(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Ue;var Ve=function(e,t){if(!Te[e]){var n=(t instanceof Ce?"Sh":"P")+(Object.keys(Re).length+1).toString(10);t.id=n,Te[e]=n,Re[n]=t,Ze.publish("addPattern",t)}};h.ShadingPattern=Ce,h.TilingPattern=Se,h.addShadingPattern=function(e,t){return M("addShadingPattern()"),Ve(e,t),this},h.beginTilingPattern=function(e){M("beginTilingPattern()"),bn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},h.endTilingPattern=function(e,t){M("endTilingPattern()"),t.stream=K[B].join("\n"),Ve(e,t),Ze.publish("endTilingPattern",t),$e.pop().restore()};var Ge,Ye=h.__private__.newObject=function(){var e=Ke();return Qe(e,!0),e},Ke=h.__private__.newObjectDeferred=function(){return $++,q[$]=function(){return G},$},Qe=function(e,t){return t="boolean"==typeof t&&t,q[e]=G,t&&re(e+" 0 obj"),e},Xe=h.__private__.newAdditionalObject=function(){var e={objId:Ke(),content:""};return Y.push(e),e},Je=Ke(),et=Ke(),tt=h.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",o=0;o<3;o++)r+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return r},nt=h.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,o=e.ch2,i=e.ch3,a=e.ch4,l="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new ee(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,o=u>>8&255,i=255&u}if(void 0===o||void 0===a&&n===o&&o===i)t="string"==typeof n?n+" "+l[0]:2===e.precision?A(n/255)+" "+l[0]:k(n/255)+" "+l[0];else if(void 0===a||"object"===(0,r.Z)(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",l[1]].join(" ");t="string"==typeof n?[n,o,i,l[1]].join(" "):2===e.precision?[A(n/255),A(o/255),A(i/255),l[1]].join(" "):[k(n/255),k(o/255),k(i/255),l[1]].join(" ")}else t="string"==typeof n?[n,o,i,a,l[2]].join(" "):2===e.precision?[A(n),A(o),A(i),A(a),l[2]].join(" "):[k(n),k(o),k(i),k(a),l[2]].join(" ");return t},rt=h.__private__.getFilters=function(){return l},ot=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=t.length,a=e.objectId,l=function(e){return e};if(null!==d&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(l=Lt.encryptor(a,0));var s={};!0===n&&(n=["FlateEncode"]);var u=e.additionalKeyValues||[],c=(s=void 0!==Ee.API.processDataByFilters?Ee.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==s.data.length&&(u.push({key:"Length",value:s.data.length}),!0===o&&u.push({key:"Length1",value:i})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var p=0;p<u.length;p+=1)if("DecodeParms"===u[p].key){for(var f=[],h=0;h<s.reverseChain.split("/").length-1;h+=1)f.push("null");f.push(u[p].value),u[p].value="["+f.join(" ")+"]"}}re("<<");for(var m=0;m<u.length;m++)re("/"+u[m].key+" "+u[m].value);re(">>"),0!==s.data.length&&(re("stream"),re(l(s.data)),re("endstream"))},it=h.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,o=e.contentsObjId;Qe(r,!0),re("<</Type /Page"),re("/Parent "+e.rootDictionaryObjId+" 0 R"),re("/Resources "+e.resourceDictionaryObjId+" 0 R"),re("/MediaBox ["+parseFloat(N(e.mediaBox.bottomLeftX))+" "+parseFloat(N(e.mediaBox.bottomLeftY))+" "+N(e.mediaBox.topRightX)+" "+N(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&re("/CropBox ["+N(e.cropBox.bottomLeftX)+" "+N(e.cropBox.bottomLeftY)+" "+N(e.cropBox.topRightX)+" "+N(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&re("/BleedBox ["+N(e.bleedBox.bottomLeftX)+" "+N(e.bleedBox.bottomLeftY)+" "+N(e.bleedBox.topRightX)+" "+N(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&re("/TrimBox ["+N(e.trimBox.bottomLeftX)+" "+N(e.trimBox.bottomLeftY)+" "+N(e.trimBox.topRightX)+" "+N(e.trimBox.topRightY)+"]"),null!==e.artBox&&re("/ArtBox ["+N(e.artBox.bottomLeftX)+" "+N(e.artBox.bottomLeftY)+" "+N(e.artBox.topRightX)+" "+N(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&re("/UserUnit "+e.userUnit),Ze.publish("putPage",{objId:r,pageContext:_e[t],pageNumber:t,page:n}),re("/Contents "+o+" 0 R"),re(">>"),re("endobj");var i=n.join("\n");return x===w&&(i+="\nQ"),Qe(o,!0),ot({data:i,filters:rt(),objectId:o}),re("endobj"),r},at=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)_e[e].objId=Ke(),_e[e].contentsObjId=Ke();for(e=1;e<=Fe;e++)n.push(it({number:e,data:K[e],objId:_e[e].objId,contentsObjId:_e[e].contentsObjId,mediaBox:_e[e].mediaBox,cropBox:_e[e].cropBox,bleedBox:_e[e].bleedBox,trimBox:_e[e].trimBox,artBox:_e[e].artBox,userUnit:_e[e].userUnit,rootDictionaryObjId:Je,resourceDictionaryObjId:et}));Qe(Je,!0),re("<</Type /Pages");var r="/Kids [";for(t=0;t<Fe;t++)r+=n[t]+" 0 R ";re(r+"]"),re("/Count "+Fe),re(">>"),re("endobj"),Ze.publish("postPutPages")},lt=function(e){Ze.publish("putFont",{font:e,out:re,newObject:Ye,putStream:ot}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),re("<<"),re("/Type /Font"),re("/BaseFont /"+be(e.postScriptName)),re("/Subtype /Type1"),"string"==typeof e.encoding&&re("/Encoding /"+e.encoding),re("/FirstChar 32"),re("/LastChar 255"),re(">>"),re("endobj"))},st=function(e){e.objectNumber=Ye();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[N(e.x),N(e.y),N(e.x+e.width),N(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");ot({data:n,additionalKeyValues:t,objectId:e.objectNumber}),re("endobj")},ut=function(e,t){t||(t=21);var n=Ye(),r=function(e,t){var n,r=[],o=1/(t-1);for(n=0;n<1;n+=o)r.push(n);if(r.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var a={offset:1,color:e[e.length-1].color};e.push(a)}for(var l="",s=0,u=0;u<r.length;u++){for(n=r[u];n>e[s+1].offset;)s++;var c=e[s].offset,d=(n-c)/(e[s+1].offset-c),p=e[s].color,f=e[s+1].color;l+=H(Math.round((1-d)*p[0]+d*f[0]).toString(16))+H(Math.round((1-d)*p[1]+d*f[1]).toString(16))+H(Math.round((1-d)*p[2]+d*f[2]).toString(16))}return l.trim()}(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ot({data:r,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),re("endobj"),e.objectNumber=Ye(),re("<< /ShadingType "+e.type),re("/ColorSpace /DeviceRGB");var i="/Coords ["+N(parseFloat(e.coords[0]))+" "+N(parseFloat(e.coords[1]))+" ";2===e.type?i+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3])):i+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3]))+" "+N(parseFloat(e.coords[4]))+" "+N(parseFloat(e.coords[5])),re(i+="]"),e.matrix&&re("/Matrix ["+e.matrix.toString()+"]"),re("/Function "+n+" 0 R"),re("/Extend [true true]"),re(">>"),re("endobj")},ct=function(e,t){var n=Ke(),r=Ye();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(N).join(" ")+"]"}),o.push({key:"XStep",value:N(e.xStep)}),o.push({key:"YStep",value:N(e.yStep)}),o.push({key:"Resources",value:n+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),ot({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),re("endobj")},dt=function(e){for(var t in e.objectNumber=Ye(),re("<<"),e)switch(t){case"opacity":re("/ca "+A(e[t]));break;case"stroke-opacity":re("/CA "+A(e[t]))}re(">>"),re("endobj")},pt=function(e){Qe(e.resourcesOid,!0),re("<<"),re("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in re("/Font <<"),ke)ke.hasOwnProperty(e)&&(!1===p||!0===p&&f.hasOwnProperty(e))&&re("/"+e+" "+ke[e].objectNumber+" 0 R");re(">>")}(),function(){if(Object.keys(Re).length>0){for(var e in re("/Shading <<"),Re)Re.hasOwnProperty(e)&&Re[e]instanceof Ce&&Re[e].objectNumber>=0&&re("/"+e+" "+Re[e].objectNumber+" 0 R");Ze.publish("putShadingPatternDict"),re(">>")}}(),function(e){if(Object.keys(Re).length>0){for(var t in re("/Pattern <<"),Re)Re.hasOwnProperty(t)&&Re[t]instanceof h.TilingPattern&&Re[t].objectNumber>=0&&Re[t].objectNumber<e&&re("/"+t+" "+Re[t].objectNumber+" 0 R");Ze.publish("putTilingPatternDict"),re(">>")}}(e.objectOid),function(){if(Object.keys(De).length>0){var e;for(e in re("/ExtGState <<"),De)De.hasOwnProperty(e)&&De[e].objectNumber>=0&&re("/"+e+" "+De[e].objectNumber+" 0 R");Ze.publish("putGStateDict"),re(">>")}}(),function(){for(var e in re("/XObject <<"),ze)ze.hasOwnProperty(e)&&ze[e].objectNumber>=0&&re("/"+e+" "+ze[e].objectNumber+" 0 R");Ze.publish("putXobjectDict"),re(">>")}(),re(">>"),re("endobj")},ft=function(e){Pe[e.fontName]=Pe[e.fontName]||{},Pe[e.fontName][e.fontStyle]=e.id},ht=function(e,t,n,r,o){var i={id:"F"+(Object.keys(ke).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:o||!1,metadata:{}};return Ze.publish("addFont",{font:i,instance:this}),ke[i.id]=i,ft(i),i.id},mt=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,r,o,i,a,l,s,u,c;if(o=(t=t||{}).sourceEncoding||"Unicode",a=t.outputEncoding,(t.autoencode||a)&&ke[xe].metadata&&ke[xe].metadata[o]&&ke[xe].metadata[o].encoding&&(i=ke[xe].metadata[o].encoding,!a&&ke[xe].encoding&&(a=ke[xe].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(s=!1,l=[],n=0,r=e.length;n<r;n++)(u=a[e.charCodeAt(n)])?l.push(String.fromCharCode(u)):l.push(e[n]),l[n].charCodeAt(0)>>8&&(s=!0);e=l.join("")}for(n=e.length;void 0===s&&0!==n;)e.charCodeAt(n-1)>>8&&(s=!0),n--;if(!s)return e;for(l=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((c=(u=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");l.push(c),l.push(u-(c<<8))}return String.fromCharCode.apply(void 0,l)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=h.__private__.beginPage=function(e){K[++Fe]=[],_e[Fe]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},yt(Fe),ne(K[B])},vt=function(e,t){var r,o,a;switch(n=t||n,"string"==typeof e&&(r=b(e.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(e)&&(o=e[0]*Ne,a=e[1]*Ne),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(V.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}gt(i),Qt(Yt),re(an),0!==pn&&re(pn+" J"),0!==fn&&re(fn+" j"),Ze.publish("addPage",{pageNumber:Fe})},bt=function(e){e>0&&e<=Fe&&(K.splice(e,1),_e.splice(e,1),Fe--,B>Fe&&(B=Fe),this.setPage(B))},yt=function(e){e>0&&e<=Fe&&(B=e)},wt=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return K.length-1},xt=function(e,t,n){var r,o=void 0;return n=n||{},e=void 0!==e?e:ke[xe].fontName,t=void 0!==t?t:ke[xe].fontStyle,r=e.toLowerCase(),void 0!==Pe[r]&&void 0!==Pe[r][t]?o=Pe[r][t]:void 0!==Pe[e]&&void 0!==Pe[e][t]?o=Pe[e][t]:!1===n.disableWarning&&V.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),o||n.noFallback||null==(o=Pe.times[t])&&(o=Pe.times.normal),o},Ct=h.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var n in null!==d&&(t=Lt.encryptor(e,0)),re("<<"),re("/Producer ("+mt(t("jsPDF "+Ee.version))+")"),ge)ge.hasOwnProperty(n)&&ge[n]&&re("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+mt(t(ge[n]))+")");re("/CreationDate ("+mt(t(R))+")"),re(">>"),re("endobj")},St=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Je;switch(Ye(),re("<<"),re("/Type /Catalog"),re("/Pages "+t+" 0 R"),se||(se="fullwidth"),se){case"fullwidth":re("/OpenAction [3 0 R /FitH null]");break;case"fullheight":re("/OpenAction [3 0 R /FitV null]");break;case"fullpage":re("/OpenAction [3 0 R /Fit]");break;case"original":re("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+se;"%"===n.substr(n.length-1)&&(se=parseInt(se)/100),"number"==typeof se&&re("/OpenAction [3 0 R /XYZ null null "+A(se)+"]")}switch(fe||(fe="continuous"),fe){case"continuous":re("/PageLayout /OneColumn");break;case"single":re("/PageLayout /SinglePage");break;case"two":case"twoleft":re("/PageLayout /TwoColumnLeft");break;case"tworight":re("/PageLayout /TwoColumnRight")}de&&re("/PageMode /"+de),Ze.publish("putCatalog"),re(">>"),re("endobj")},Et=h.__private__.putTrailer=function(){re("trailer"),re("<<"),re("/Size "+($+1)),re("/Root "+$+" 0 R"),re("/Info "+($-1)+" 0 R"),null!==d&&re("/Encrypt "+Lt.oid+" 0 R"),re("/ID [ <"+T+"> <"+T+"> ]"),re(">>")},Nt=h.__private__.putHeader=function(){re("%PDF-"+m),re("%ºß¬à")},Mt=h.__private__.putXRef=function(){var e="0000000000";re("xref"),re("0 "+($+1)),re("0000000000 65535 f ");for(var t=1;t<=$;t++)"function"==typeof q[t]?re((e+q[t]()).slice(-10)+" 00000 n "):void 0!==q[t]?re((e+q[t]).slice(-10)+" 00000 n "):re("0000000000 00000 n ")},It=h.__private__.buildDocument=function(){$=0,G=0,U=[],q=[],Y=[],Je=Ke(),et=Ke(),ne(U),Ze.publish("buildDocument"),Nt(),at(),function(){Ze.publish("putAdditionalObjects");for(var e=0;e<Y.length;e++){var t=Y[e];Qe(t.objId,!0),re(t.content),re("endobj")}Ze.publish("postPutAdditionalObjects")}(),function(){var e=[];(function(){for(var e in ke)ke.hasOwnProperty(e)&&(!1===p||!0===p&&f.hasOwnProperty(e))&&lt(ke[e])})(),function(){var e;for(e in De)De.hasOwnProperty(e)&&dt(De[e])}(),function(){for(var e in ze)ze.hasOwnProperty(e)&&st(ze[e])}(),function(e){var t;for(t in Re)Re.hasOwnProperty(t)&&(Re[t]instanceof Ce?ut(Re[t]):Re[t]instanceof Se&&ct(Re[t],e))}(e),Ze.publish("putResources"),e.forEach(pt),pt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Ze.publish("postPutResources")}(),null!==d&&(Lt.oid=Ye(),re("<<"),re("/Filter /Standard"),re("/V "+Lt.v),re("/R "+Lt.r),re("/U <"+Lt.toHexString(Lt.U)+">"),re("/O <"+Lt.toHexString(Lt.O)+">"),re("/P "+Lt.P),re(">>"),re("endobj")),Ct(),St();var e=G;return Mt(),Et(),re("startxref"),re(""+e),re("%%EOF"),ne(K[B]),U.join("\n")},At=h.__private__.getBlob=function(e){return new Blob([ie(e)],{type:"application/pdf"})},kt=h.output=h.__private__.output=(Ge=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return It();case"save":h.save(t.filename);break;case"arraybuffer":return ie(It());case"blob":return At(It());case"bloburi":case"bloburl":if(void 0!==W.URL&&"function"==typeof W.URL.createObjectURL)return W.URL&&W.URL.createObjectURL(At(It()))||void 0;V.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=It();try{n=X(r)}catch(e){n=X(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(W)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(o=t.pdfObjectUrl,i="");var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+o+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=W.open();return null!==l&&l.document.write(a),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(W)){var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',u=W.open();if(null!==u){u.document.write(s);var c=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=t.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(W))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var d='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=W.open();if(null!==p&&(p.document.write(d),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return W.document.location.href=this.output("datauristring",t);default:return null}},Ge.foo=function(){try{return Ge.apply(this,arguments)}catch(n){var e=n.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+n.message;if(!W.console)throw new Error(t);W.console.error(t,n),W.alert&&alert(t)}},Ge.foo.bar=Ge,Ge.foo),Pt=function(e){return!0===Array.isArray(Be)&&Be.indexOf(e)>-1};switch(o){case"pt":Ne=1;break;case"mm":Ne=72/25.4;break;case"cm":Ne=72/2.54;break;case"in":Ne=72;break;case"px":Ne=1==Pt("px_scaling")?.75:96/72;break;case"pc":case"em":Ne=12;break;case"ex":Ne=6;break;default:if("number"!=typeof o)throw new Error("Invalid unit: "+o);Ne=o}var Lt=null;_(),O();var Rt=h.__private__.getPageInfo=h.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:_e[e].objId,pageNumber:e,pageContext:_e[e]}},Tt=h.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in _e)if(_e[t].objId===e)break;return Rt(t)},Dt=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:_e[B].objId,pageNumber:B,pageContext:_e[B]}};h.addPage=function(){return vt.apply(this,arguments),this},h.setPage=function(){return yt.apply(this,arguments),ne.call(this,K[B]),this},h.insertPage=function(e){return this.addPage(),this.movePage(B,e),this},h.movePage=function(e,t){var n,r;if(e>t){n=K[e],r=_e[e];for(var o=e;o>t;o--)K[o]=K[o-1],_e[o]=_e[o-1];K[t]=n,_e[t]=r,this.setPage(t)}else if(e<t){n=K[e],r=_e[e];for(var i=e;i<t;i++)K[i]=K[i+1],_e[i]=_e[i+1];K[t]=n,_e[t]=r,this.setPage(t)}return this},h.deletePage=function(){return bt.apply(this,arguments),this},h.__private__.text=h.text=function(e,t,n,o,i){var a,l,s,u,c,d,p,h,m,g=(o=o||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var v=n;n=t,t=e,e=v}if(arguments[3]instanceof qe==0?(s=arguments[4],u=arguments[5],"object"===(0,r.Z)(p=arguments[3])&&null!==p||("string"==typeof s&&(u=s,s=null),"string"==typeof p&&(u=p,p=null),"number"==typeof p&&(s=p,p=null),o={flags:p,angle:s,align:u})):(M("The transform parameter of text() with a Matrix value"),m=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var b,y="",C="number"==typeof o.lineHeightFactor?o.lineHeightFactor:Gt,S=g.internal.scaleFactor;function E(e){return e=e.split("\t").join(Array(o.TabLen||9).join(" ")),mt(e,p)}function I(e){for(var t,n=e.concat(),r=[],o=n.length;o--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function A(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,o,i=e.concat(),a=[],l=i.length;l--;)"string"==typeof(r=i.shift())?a.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(o=t(r[0],r[1],r[2]),a.push([o[0],o[1],o[2]]));n=a}return n}var k=!1,L=!0;if("string"==typeof e)k=!0;else if(Array.isArray(e)){var R=e.concat();l=[];for(var T,D=R.length;D--;)("string"!=typeof(T=R.shift())||Array.isArray(T)&&"string"!=typeof T[0])&&(L=!1);k=L}if(!1===k)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var O=le/g.internal.scaleFactor,j=O*(C-1);switch(o.baseline){case"bottom":n-=j;break;case"top":n+=O-j;break;case"hanging":n+=O-2*j;break;case"middle":n+=O/2-j}if((d=o.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,d):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(g.splitTextToSize(t,d))}),[]))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:ke,activeFontSize:le}},Ze.publish("preProcessText",a),e=a.text,s=(o=a.options).angle,m instanceof qe==0&&s&&"number"==typeof s){s*=Math.PI/180,0===o.rotationDirection&&(s=-s),x===w&&(s=-s);var F=Math.cos(s),_=Math.sin(s);m=new qe(F,_,-_,F,0,0)}else s&&s instanceof qe&&(m=s);x!==w||m||(m=Ue),void 0!==(c=o.charSpace||cn)&&(y+=N(P(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=o.horizontalScale)&&(y+=N(100*h)+" Tz\n"),o.lang;var Z=-1,B=void 0!==o.renderingMode?o.renderingMode:o.stroke,z=g.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":Z=0;break;case 1:case!0:case"stroke":Z=1;break;case 2:case"fillThenStroke":Z=2;break;case 3:case"invisible":Z=3;break;case 4:case"fillAndAddForClipping":Z=4;break;case 5:case"strokeAndAddPathForClipping":Z=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Z=6;break;case 7:case"addToPathForClipping":Z=7}var H=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==Z?y+=Z+" Tr\n":-1!==H&&(y+="0 Tr\n"),-1!==Z&&(z.usedRenderingMode=Z),u=o.align||"left";var $,q=le*C,W=g.internal.pageSize.getWidth(),U=ke[xe];c=o.charSpace||cn,d=o.maxWidth||0,p=Object.assign({autoencode:!0,noBOM:!0},o.flags);var V=[];if("[object Array]"===Object.prototype.toString.call(e)){var G;l=I(e),"left"!==u&&($=l.map((function(e){return g.getStringUnitWidth(e,{font:U,charSpace:c,fontSize:le,doKerning:!1})*le/S})));var Y,K=0;if("right"===u){t-=$[0],e=[],D=l.length;for(var Q=0;Q<D;Q++)0===Q?(Y=tn(t),G=nn(n)):(Y=P(K-$[Q]),G=-q),e.push([l[Q],Y,G]),K=$[Q]}else if("center"===u){t-=$[0]/2,e=[],D=l.length;for(var X=0;X<D;X++)0===X?(Y=tn(t),G=nn(n)):(Y=P((K-$[X])/2),G=-q),e.push([l[X],Y,G]),K=$[X]}else if("left"===u){e=[],D=l.length;for(var J=0;J<D;J++)e.push(l[J])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],D=l.length,d=0!==d?d:W;for(var ee=0;ee<D;ee++)G=0===ee?nn(n):-q,Y=0===ee?tn(t):0,ee<D-1?V.push(N(P((d-$[ee])/(l[ee].split(" ").length-1)))):V.push(0),e.push([l[ee],Y,G])}}!0===("boolean"==typeof o.R2L?o.R2L:ce)&&(e=A(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:ke,activeFontSize:le}},Ze.publish("postProcessText",a),e=a.text,b=a.mutex.isHex||!1;var te=ke[xe].encoding;"WinAnsiEncoding"!==te&&"StandardEncoding"!==te||(e=A(e,(function(e,t,n){return[E(e),t,n]}))),l=I(e),e=[];for(var ne,oe,ie,ae=Array.isArray(l[0])?1:0,se="",ue=function(e,t,n){var r="";return n instanceof qe?(n="number"==typeof o.angle?We(n,new qe(1,0,0,1,e,t)):We(new qe(1,0,0,1,e,t),n),x===w&&(n=We(new qe(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=N(e)+" "+N(t)+" Td\n",r},de=0;de<l.length;de++){switch(se="",ae){case 1:ie=(b?"<":"(")+l[de][0]+(b?">":")"),ne=parseFloat(l[de][1]),oe=parseFloat(l[de][2]);break;case 0:ie=(b?"<":"(")+l[de]+(b?">":")"),ne=tn(t),oe=nn(n)}void 0!==V&&void 0!==V[de]&&(se=V[de]+" Tw\n"),0===de?e.push(se+ue(ne,oe,m)+ie):0===ae?e.push(se+ie):1===ae&&e.push(se+ue(ne,oe,m)+ie)}e=0===ae?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var pe="BT\n/";return pe+=xe+" "+le+" Tf\n",pe+=N(le*C)+" TL\n",pe+=sn+"\n",pe+=y,pe+=e,re(pe+="ET"),f[xe]=!0,g};var Ot=h.__private__.clip=h.clip=function(e){return re("evenodd"===e?"W*":"W"),this};h.clipEvenOdd=function(){return Ot("evenodd")},h.__private__.discardPath=h.discardPath=function(){return re("n"),this};var jt=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(e){return jt(e)&&(c=e),this};var Ft=h.__private__.getStyle=h.getStyle=function(e){var t=c;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},_t=h.close=function(){return re("h"),this};h.stroke=function(){return re("S"),this},h.fill=function(e){return Zt("f",e),this},h.fillEvenOdd=function(e){return Zt("f*",e),this},h.fillStroke=function(e){return Zt("B",e),this},h.fillStrokeEvenOdd=function(e){return Zt("B*",e),this};var Zt=function(e,t){"object"===(0,r.Z)(t)?Ht(t,e):re(e)},Bt=function(e){null===e||x===w&&void 0===e||(e=Ft(e),re(e))};function zt(e,t,n,r,o){var i=new Se(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,o||this.matrix);i.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return Ve(a,i),i}var Ht=function(e,t){var n=Te[e.key],r=Re[n];if(r instanceof Ce)re("q"),re($t(t)),r.gState&&h.setGState(r.gState),re(e.matrix.toString()+" cm"),re("/"+n+" sh"),re("Q");else if(r instanceof Se){var o=new qe(1,0,0,-1,0,Cn());e.matrix&&(o=o.multiply(e.matrix||Ue),n=zt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,o).id),re("q"),re("/Pattern cs"),re("/"+n+" scn"),r.gState&&h.setGState(r.gState),re(t),re("Q")}},$t=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},qt=h.moveTo=function(e,t){return re(N(P(e))+" "+N(L(t))+" m"),this},Wt=h.lineTo=function(e,t){return re(N(P(e))+" "+N(L(t))+" l"),this},Ut=h.curveTo=function(e,t,n,r,o,i){return re([N(P(e)),N(L(t)),N(P(n)),N(L(r)),N(P(o)),N(L(i)),"c"].join(" ")),this};h.__private__.line=h.line=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.line");return x===y?this.lines([[n-e,r-t]],e,t,[1,1],o||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},h.__private__.lines=h.lines=function(e,t,n,r,o,i){var a,l,s,u,c,d,p,f,h,m,g,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!jt(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(qt(t,n),a=r[0],l=r[1],u=e.length,m=t,g=n,s=0;s<u;s++)2===(c=e[s]).length?(m=c[0]*a+m,g=c[1]*l+g,Wt(m,g)):(d=c[0]*a+m,p=c[1]*l+g,f=c[2]*a+m,h=c[3]*l+g,m=c[4]*a+m,g=c[5]*l+g,Ut(d,p,f,h,m,g));return i&&_t(),Bt(o),this},h.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":qt(r[0],r[1]);break;case"l":Wt(r[0],r[1]);break;case"c":Ut.apply(this,r);break;case"h":_t()}}return this},h.__private__.rect=h.rect=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.rect");return x===y&&(r=-r),re([N(P(e)),N(L(t)),N(P(n)),N(P(r)),"re"].join(" ")),Bt(o),this},h.__private__.triangle=h.triangle=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[o-n,i-r],[e-o,t-i]],e,t,[1,1],a,!0),this},h.__private__.roundedRect=h.roundedRect=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var l=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*n),i=Math.min(i,.5*r),this.lines([[n-2*o,0],[o*l,0,o,i-i*l,o,i],[0,r-2*i],[0,i*l,-o*l,i,-o,i],[2*o-n,0],[-o*l,0,-o,-i*l,-o,-i],[0,2*i-r],[0,-i*l,o*l,-i,o,-i]],e+o,t,[1,1],a,!0),this},h.__private__.ellipse=h.ellipse=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return qt(e+n,t),Ut(e+n,t-a,e+i,t-r,e,t-r),Ut(e-i,t-r,e-n,t-a,e-n,t),Ut(e-n,t+a,e-i,t+r,e,t+r),Ut(e+i,t+r,e+n,t+a,e+n,t),Bt(o),this},h.__private__.circle=h.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!jt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},h.setFont=function(e,t,n){return n&&(t=E(t,n)),xe=xt(e,t,{disableWarning:!1}),this};var Vt=h.__private__.getFont=h.getFont=function(){return ke[xt.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var e,t,n={};for(e in Pe)if(Pe.hasOwnProperty(e))for(t in n[e]=[],Pe[e])Pe[e].hasOwnProperty(t)&&n[e].push(t);return n},h.addFont=function(e,t,n,r,o){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=E(n,r)),ht.call(this,e,t,n,o=o||"Identity-H")};var Gt,Yt=e.lineWidth||.200025,Kt=h.__private__.getLineWidth=h.getLineWidth=function(){return Yt},Qt=h.__private__.setLineWidth=h.setLineWidth=function(e){return Yt=e,re(N(P(e))+" w"),this};h.__private__.setLineDash=Ee.API.setLineDash=Ee.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return N(P(e))})).join(" "),t=N(P(t)),re("["+e+"] "+t+" d"),this};var Xt=h.__private__.getLineHeight=h.getLineHeight=function(){return le*Gt};h.__private__.getLineHeight=h.getLineHeight=function(){return le*Gt};var Jt=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Gt=e),this},en=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Gt};Jt(e.lineHeight);var tn=h.__private__.getHorizontalCoordinate=function(e){return P(e)},nn=h.__private__.getVerticalCoordinate=function(e){return x===w?e:_e[B].mediaBox.topRightY-_e[B].mediaBox.bottomLeftY-P(e)},rn=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(e){return N(tn(e))},on=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(e){return N(nn(e))},an=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return tt(an)},h.__private__.setStrokeColor=h.setDrawColor=function(e,t,n,r){return an=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),re(an),this};var ln=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return tt(ln)},h.__private__.setFillColor=h.setFillColor=function(e,t,n,r){return ln=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),re(ln),this};var sn=e.textColor||"0 g",un=h.__private__.getTextColor=h.getTextColor=function(){return tt(sn)};h.__private__.setTextColor=h.setTextColor=function(e,t,n,r){return sn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var cn=e.charSpace,dn=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(cn||0)};h.__private__.setCharSpace=h.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=e,this};var pn=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pn=t,re(t+" J"),this};var fn=0;h.__private__.setLineJoin=h.setLineJoin=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fn=t,re(t+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return re(N(P(e))+" M"),this},h.GState=we,h.setGState=function(e){(e="string"==typeof e?De[Oe[e]]:hn(null,e)).equals(je)||(re("/"+e.id+" gs"),je=e)};var hn=function(e,t){if(!e||!Oe[e]){var n=!1;for(var r in De)if(De.hasOwnProperty(r)&&De[r].equals(t)){n=!0;break}if(n)t=De[r];else{var o="GS"+(Object.keys(De).length+1).toString(10);De[o]=t,t.id=o}return e&&(Oe[e]=t.id),Ze.publish("addGState",t),t}};h.addGState=function(e,t){return hn(e,t),this},h.saveGraphicsState=function(){return re("q"),Le.push({key:xe,size:le,color:sn}),this},h.restoreGraphicsState=function(){re("Q");var e=Le.pop();return xe=e.key,le=e.size,sn=e.color,je=null,this},h.setCurrentTransformationMatrix=function(e){return re(e.toString()+" cm"),this},h.comment=function(e){return re("#"+e),this};var mn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},gn=function(e,t,n,r){mn.call(this,e,t),this.type="rect";var o=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},vn=function(){this.page=Fe,this.currentPage=B,this.pages=K.slice(0),this.pagesContext=_e.slice(0),this.x=Me,this.y=Ie,this.matrix=Ae,this.width=wn(B),this.height=Cn(B),this.outputDestination=te,this.id="",this.objectNumber=-1};vn.prototype.restore=function(){Fe=this.page,B=this.currentPage,_e=this.pagesContext,K=this.pages,Me=this.x,Ie=this.y,Ae=this.matrix,xn(B,this.width),Sn(B,this.height),te=this.outputDestination};var bn=function(e,t,n,r,o){$e.push(new vn),Fe=B=0,K=[],Me=e,Ie=t,Ae=o,gt([n,r])};for(var yn in h.beginFormObject=function(e,t,n,r,o){return bn(e,t,n,r,o),this},h.endFormObject=function(e){return function(e){if(He[e])$e.pop().restore();else{var t=new vn,n="Xo"+(Object.keys(ze).length+1).toString(10);t.id=n,He[e]=n,ze[n]=t,Ze.publish("addFormObject",t),$e.pop().restore()}}(e),this},h.doFormObject=function(e,t){var n=ze[He[e]];return re("q"),re(t.toString()+" cm"),re("/"+n.id+" Do"),re("Q"),this},h.getFormObject=function(e){var t=ze[He[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},h.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(J(At(It()),e),"function"==typeof J.unload&&W.setTimeout&&setTimeout(J.unload,911),this):new Promise((function(t,n){try{var r=J(At(It()),e);"function"==typeof J.unload&&W.setTimeout&&setTimeout(J.unload,911),t(r)}catch(e){n(e.message)}}))},Ee.API)Ee.API.hasOwnProperty(yn)&&("events"===yn&&Ee.API.events.length?function(e,t){var n,r,o;for(o=t.length-1;-1!==o;o--)n=t[o][0],r=t[o][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(Ze,Ee.API.events):h[yn]=Ee.API[yn]);var wn=h.getPageWidth=function(e){return(_e[e=e||B].mediaBox.topRightX-_e[e].mediaBox.bottomLeftX)/Ne},xn=h.setPageWidth=function(e,t){_e[e].mediaBox.topRightX=t*Ne+_e[e].mediaBox.bottomLeftX},Cn=h.getPageHeight=function(e){return(_e[e=e||B].mediaBox.topRightY-_e[e].mediaBox.bottomLeftY)/Ne},Sn=h.setPageHeight=function(e,t){_e[e].mediaBox.topRightY=t*Ne+_e[e].mediaBox.bottomLeftY};return h.internal={pdfEscape:mt,getStyle:Ft,getFont:Vt,getFontSize:ue,getCharSpace:dn,getTextColor:un,getLineHeight:Xt,getLineHeightFactor:en,getLineWidth:Kt,write:oe,getHorizontalCoordinate:tn,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:on,collections:{},newObject:Ye,newAdditionalObject:Xe,newObjectDeferred:Ke,newObjectDeferredBegin:Qe,getFilters:rt,putStream:ot,events:Ze,scaleFactor:Ne,pageSize:{getWidth:function(){return wn(B)},setWidth:function(e){xn(B,e)},getHeight:function(){return Cn(B)},setHeight:function(e){Sn(B,e)}},encryptionOptions:d,encryption:Lt,getEncryptor:function(e){return null!==d?Lt.encryptor(e,0):function(e){return e}},output:kt,getNumberOfPages:wt,pages:K,out:re,f2:A,f3:k,getPageInfo:Rt,getPageInfoByObjId:Tt,getCurrentPageInfo:Dt,getPDFVersion:g,Point:mn,Rectangle:gn,Matrix:qe,hasHotfix:Pt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return wn(B)},set:function(e){xn(B,e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Cn(B)},set:function(e){Sn(B,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=ae.length;t<n;t++){var r=ht.call(this,e[t][0],e[t][1],e[t][2],ae[t][3],!0);!1===p&&(f[r]=!0);var o=e[t][0].split("-");ft({id:r,fontName:o[0],fontStyle:o[1]||""})}Ze.publish("addFonts",{fonts:ke,dictionary:Pe})}.call(h,ae),xe="F1",vt(i,n),Ze.publish("initialized"),h}ve.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},ve.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},ve.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},ve.prototype.processOwnerPassword=function(e,t){return me(pe(t).substr(0,5),e)},ve.prototype.encryptor=function(e,t){var n=pe(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return me(n,e)}},we.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,r.Z)(e)!==(0,r.Z)(this))return!1;var o=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;o++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&o--;return 0===o},Ee.API={events:[]},Ee.version="2.5.1";var Ne=Ee.API,Me=1,Ie=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ae=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ke=function(e){return e.toFixed(2)},Pe=function(e){return e.toFixed(5)};Ne.__acroform__={};var Le=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Re=function(e){return e*Me},Te=function(e){var t=new Ye,n=ut.internal.getHeight(e)||0,r=ut.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ke(r)),Number(ke(n))],t},De=Ne.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},Oe=Ne.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},je=Ne.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},Fe=Ne.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return je(e,t-1)},_e=Ne.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return De(e,t-1)},Ze=Ne.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Oe(e,t-1)},Be=Ne.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,o=e[0],i=e[1],a=e[2],l=e[3],s={};return s.lowerLeft_X=n(o)||0,s.lowerLeft_Y=r(i+l)||0,s.upperRight_X=n(o+a)||0,s.upperRight_Y=r(i)||0,[Number(ke(s.lowerLeft_X)),Number(ke(s.lowerLeft_Y)),Number(ke(s.upperRight_X)),Number(ke(s.upperRight_Y))]},ze=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=He(e,n),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+ke(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Te(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},He=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map((function(e){return e.split("\n")})):o.map((function(e){return[e]}));var i=n,a=ut.internal.getHeight(e)||0;a=a<0?-a:a;var l=ut.internal.getWidth(e)||0;l=l<0?-l:l;var s=function(t,n,r){if(t+1<o.length){var i=n+" "+o[t+1][0];return $e(i,e,r).width<=l-4}return!1};i++;e:for(;i>0;){t="",i--;var u,c,d=$e("3",e,i).height,p=e.multiline?a-i:(a-d)/2,f=p+=2,h=0,m=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+$e(t,e,i=12).width+", FieldWidth:"+l+"\n";break}for(var v="",b=0,y=0;y<o.length;y++)if(o.hasOwnProperty(y)){var w=!1;if(1!==o[y].length&&g!==o[y].length-1){if((d+2)*(b+2)+2>a)continue e;v+=o[y][g],w=!0,m=y,y--}else{v=" "==(v+=o[y][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),C=s(x,v,i),S=y>=o.length-1;if(C&&!S){v+=" ",g=0;continue}if(C||S){if(S)m=x;else if(e.multiline&&(d+2)*(b+2)+2>a)continue e}else{if(!e.multiline)continue e;if((d+2)*(b+2)+2>a)continue e;m=x}}for(var E="",N=h;N<=m;N++){var M=o[N];if(e.multiline){if(N===m){E+=M[g]+" ",g=(g+1)%M.length;continue}if(N===h){E+=M[M.length-1]+" ";continue}}E+=M[0]+" "}switch(E=" "==E.substr(E.length-1)?E.substr(0,E.length-1):E,c=$e(E,e,i).width,e.textAlign){case"right":u=l-c-2;break;case"center":u=(l-c)/2;break;default:u=2}t+=ke(u)+" "+ke(f)+" Td\n",t+="("+Ie(E)+") Tj\n",t+=-ke(u)+" 0 Td\n",f=-(i+2),c=0,h=w?m:m+1,b++,v=""}break}return r.text=t,r.fontSize=i,r},$e=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},qe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},We=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Ue=Ne.__acroform__.arrayToPdfArray=function(e,t,n){var o=function(e){return e};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(0!==a&&(i+=" "),(0,r.Z)(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":"/"!==e[a].substr(0,1)?(void 0!==t&&n&&(o=n.internal.getEncryptor(t)),i+="("+Ie(o(e[a].toString()))+")"):i+=e[a].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ve=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Ie(r(e))+")"},Ge=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ge.prototype.toString=function(){return this.objId+" 0 R"},Ge.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ge.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],o=this[r];o&&(Array.isArray(o)?e.push({key:r,value:Ue(o,this.objId,this.scope)}):o instanceof Ge?(o.scope=this.scope,e.push({key:r,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:r,value:o}))}return e};var Ye=function(){Ge.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Le(Ye,Ge);var Ke=function(){Ge.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ie(t(e))+")"}},set:function(t){e=t}})};Le(Ke,Ge);var Qe=function e(){Ge.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(t,3))},set:function(e){!0===Boolean(e)?this.F=_e(t,3):this.F=Ze(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof it)return;i="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ie(t(i))+")"},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/Me:u},set:function(e){u=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof it||this instanceof lt))return Ve(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof nt==0?Ve(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof nt==0?"("===e.substr(0,1)?Ae(e.substr(1,e.length-2)):Ae(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==1?Ae(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof nt==1?"/"+e:e}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof nt==0?Ve(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof nt==0?"("===e.substr(0,1)?Ae(e.substr(1,e.length-2)):Ae(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==1?Ae(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof nt==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(e){e=Boolean(e),m=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(e){h=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,1):this.Ff=Ze(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,2):this.Ff=Ze(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,3):this.Ff=Ze(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};Le(Qe,Ge);var Xe=function(){Qe.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ue(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,o=[];r=t.exec(e);)o.push(r[n]);return o}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,18):this.Ff=Ze(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=_e(this.Ff,19):this.Ff=Ze(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=_e(this.Ff,20),t.sort()):this.Ff=Ze(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,22):this.Ff=Ze(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,23):this.Ff=Ze(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,27):this.Ff=Ze(this.Ff,27)}}),this.hasAppearanceStream=!1};Le(Xe,Qe);var Je=function(){Xe.call(this),this.fontName="helvetica",this.combo=!1};Le(Je,Xe);var et=function(){Je.call(this),this.combo=!0};Le(et,Je);var tt=function(){et.call(this),this.edit=!0};Le(tt,et);var nt=function(){Qe.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,15):this.Ff=Ze(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,16):this.Ff=Ze(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,17):this.Ff=Ze(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,26):this.Ff=Ze(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+Ie(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,r.Z)(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Le(nt,Qe);var rt=function(){nt.call(this),this.pushButton=!0};Le(rt,nt);var ot=function(){nt.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};Le(ot,nt);var it=function(){var e,t;Qe.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),o)n.push("/"+t+" ("+Ie(e(o[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,r.Z)(e)&&(o=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(e){"string"==typeof e&&(o.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ut.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Le(it,Qe),ot.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},ot.prototype.createOption=function(e){var t=new it;return t.Parent=this,t.optionName=e,this.Kids.push(t),ct.call(this.scope,t),t};var at=function(){nt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ut.CheckBox.createAppearanceStream()};Le(at,nt);var lt=function(){Qe.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,13):this.Ff=Ze(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,21):this.Ff=Ze(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,23):this.Ff=Ze(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,24):this.Ff=Ze(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,25):this.Ff=Ze(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,26):this.Ff=Ze(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Le(lt,Qe);var st=function(){lt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,14):this.Ff=Ze(this.Ff,14)}}),this.password=!0};Le(st,lt);var ut={CheckBox:{createAppearanceStream:function(){return{N:{On:ut.CheckBox.YesNormal},D:{On:ut.CheckBox.YesPushDown,Off:ut.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),i=He(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ke(ut.internal.getWidth(e))+" "+ke(ut.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ke(i.fontSize)+" Tf "+o),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=[],i=ut.internal.getHeight(e),a=ut.internal.getWidth(e),l=He(e,e.caption);return o.push("1 g"),o.push("0 0 "+ke(a)+" "+ke(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+ke(a-1)+" "+ke(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+ke(l.fontSize)+" Tf "+r),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ke(ut.internal.getWidth(e))+" "+ke(ut.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ut.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ut.RadioButton.Circle.YesNormal,t.D[e]=ut.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ut.internal.getWidth(e)<=ut.internal.getHeight(e)?ut.internal.getWidth(e)/4:ut.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=ut.internal.Bezier_C,i=Number((r*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Pe(ut.internal.getWidth(e)/2)+" "+Pe(ut.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ut.internal.getWidth(e)<=ut.internal.getHeight(e)?ut.internal.getWidth(e)/4:ut.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*ut.internal.Bezier_C).toFixed(5)),a=Number((r*ut.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ut.internal.getWidth(e)/2)+" "+Pe(ut.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ut.internal.getWidth(e)/2)+" "+Pe(ut.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ut.internal.getWidth(e)<=ut.internal.getHeight(e)?ut.internal.getWidth(e)/4:ut.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*ut.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ut.internal.getWidth(e)/2)+" "+Pe(ut.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ut.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ut.RadioButton.Cross.YesNormal,t.D[e]=ut.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ut.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ke(ut.internal.getWidth(e)-2)+" "+ke(ut.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ke(r.x1.x)+" "+ke(r.x1.y)+" m"),n.push(ke(r.x2.x)+" "+ke(r.x2.y)+" l"),n.push(ke(r.x4.x)+" "+ke(r.x4.y)+" m"),n.push(ke(r.x3.x)+" "+ke(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=ut.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ke(ut.internal.getWidth(e))+" "+ke(ut.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ke(ut.internal.getWidth(e)-2)+" "+ke(ut.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ke(n.x1.x)+" "+ke(n.x1.y)+" m"),r.push(ke(n.x2.x)+" "+ke(n.x2.y)+" l"),r.push(ke(n.x4.x)+" "+ke(n.x4.y)+" m"),r.push(ke(n.x3.x)+" "+ke(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ke(ut.internal.getWidth(e))+" "+ke(ut.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};ut.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ut.internal.getWidth(e),n=ut.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},ut.internal.getWidth=function(e){var t=0;return"object"===(0,r.Z)(e)&&(t=Re(e.Rect[2])),t},ut.internal.getHeight=function(e){var t=0;return"object"===(0,r.Z)(e)&&(t=Re(e.Rect[3])),t};var ct=Ne.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(Qe.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(qe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Me=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Ke,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&We(r,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var o in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(o)){var i=e[o],a=[],l=i.Rect;if(i.Rect&&(i.Rect=Be(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=ut.createDefaultAppearanceStream(i),"object"===(0,r.Z)(i)&&"function"==typeof i.getKeyValueListForStream&&(a=i.getKeyValueListForStream()),i.Rect=l,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=ze(i);a.push({key:"AP",value:"<</N "+s+">>"}),t.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var u="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var d=i.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var o in d)if(d.hasOwnProperty(o)){var p=d[o];"function"==typeof p&&(p=p.call(t,i)),u+="/"+o+" "+p+" ",t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p)}}else"function"==typeof(p=d)&&(p=p.call(t,i)),u+="/"+o+" "+p,t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}t.internal.putStream({additionalKeyValues:a,objectId:i.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,r.Z)(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[o]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof Qe))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ne.AcroFormChoiceField=Xe,Ne.AcroFormListBox=Je,Ne.AcroFormComboBox=et,Ne.AcroFormEditBox=tt,Ne.AcroFormButton=nt,Ne.AcroFormPushButton=rt,Ne.AcroFormRadioButton=ot,Ne.AcroFormCheckBox=at,Ne.AcroFormTextField=lt,Ne.AcroFormPasswordField=st,Ne.AcroFormAppearance=ut,Ne.AcroForm={ChoiceField:Xe,ListBox:Je,ComboBox:et,EditBox:tt,Button:nt,PushButton:rt,RadioButton:ot,CheckBox:at,TextField:lt,PasswordField:st,Appearance:ut},Ee.AcroForm={ChoiceField:Xe,ListBox:Je,ComboBox:et,EditBox:tt,Button:nt,PushButton:rt,RadioButton:ot,CheckBox:at,TextField:lt,PasswordField:st,Appearance:ut};var dt,pt,ft=Ee.AcroForm;function ht(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,r){var o,i,a,l,s,u=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(S(e))for(s in n)for(a=n[s],o=0;o<a.length;o+=1){for(l=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e[i]){l=!1;break}if(!0===l){u=s;break}}else for(s in n)for(a=n[s],o=0;o<a.length;o+=1){for(l=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e.charCodeAt(i)){l=!1;break}if(!0===l){u=s;break}}return u===t&&r!==t&&(u=r),u},i=function e(t){for(var n=this.internal.write,r=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===v.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===v.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",l=0,s=t.transparency.length;l<s;l++)a+=t.transparency[l]+" "+t.transparency[l]+" ";i.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:u,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,d={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:c,data:t.sMask};"filter"in t&&(d.filter=t.filter),e.call(this,d)}if(t.colorSpace===v.INDEXED){var p=this.internal.newObject();r({data:N(new Uint8Array(t.palette)),objectId:p}),n("endobj")}},a=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},l=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var r in t)n("/I"+(e=t[r]).index,e.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var e=this.internal.collections.addImage_images;return s.call(this),e},c=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},p=function(e){return"object"===(0,r.Z)(e)&&1===e.nodeType},f=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return Q(unescape(r).split("base64,").pop());var o=e.loadFile(r,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return Q(t.toDataURL(i,1).split("base64,").pop())}},h=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},m=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},g=function(e,t,n,r,o,i){var a=m.call(this,n,r,o),l=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=a[0],r=a[1],c[o.index]=o,i){i*=Math.PI/180;var d=Math.cos(i),p=Math.sin(i),f=function(e){return e.toFixed(4)},h=[f(d),f(p),f(-1*p),f(d),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,l(e),s(t+r),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([l(n),"0","0",l(r),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(r),l(e),s(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(S(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},x=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:t[1]})}return n},C=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return C()&&e instanceof ArrayBuffer};var S=e.__addimage__.isArrayBufferView=function(e){return C()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},E=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},N=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=S(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,n,o,i,a,l,u,c,d;if("number"==typeof arguments[1]?(n=t,o=arguments[1],i=arguments[2],a=arguments[3],l=arguments[4],u=arguments[5],c=arguments[6],d=arguments[7]):(n=arguments[1],o=arguments[2],i=arguments[3],a=arguments[4],l=arguments[5],u=arguments[6],c=arguments[7],d=arguments[8]),"object"===(0,r.Z)(e=arguments[0])&&!p(e)&&"imageData"in e){var f=e;e=f.imageData,n=f.format||n||t,o=f.x||o||0,i=f.y||i||0,a=f.w||f.width||a,l=f.h||f.height||l,u=f.alias||u,c=f.compression||c,d=f.rotation||f.angle||d}var h=this.internal.getFilters();if(void 0===c&&-1!==h.indexOf("FlateEncode")&&(c="SLOW"),isNaN(o)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var m=M.call(this,e,n,u,c);return g.call(this,o,i,a,l,m,d),this};var M=function(n,r,i,a){var l,s,u;if("string"==typeof n&&o(n)===t){n=unescape(n);var m=I(n,!1);(""!==m||void 0!==(m=e.loadFile(n,!0)))&&(n=m)}if(p(n)&&(n=f(n,r)),r=o(n,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=i)||0===u.length)&&(i=function(e){return"string"==typeof e||S(e)?y(e):S(e.data)?y(e.data):null}(n)),(l=h.call(this,i))||(C()&&(n instanceof Uint8Array||"RGBA"===r||(s=n,n=E(n))),l=this["process"+r.toUpperCase()](n,c.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:b.NONE}(a),s)),!l)throw new Error("An unknown error occurred whilst processing the image.");return l},I=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var r,o="";if("string"==typeof e){r=null!==(n=x(e))?n.data:e;try{o=Q(r)}catch(e){if(t)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return o};e.getImageProperties=function(n){var r,i,a="";if(p(n)&&(n=f(n)),"string"==typeof n&&o(n)===t&&(""===(a=I(n,!1))&&(a=e.loadFile(n)||""),n=a),i=o(n),!d(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!C()||n instanceof Uint8Array||(n=E(n)),!(r=this["process"+i.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(Ee.API),dt=Ee.API,pt=function(e){if(void 0!==e&&""!=e)return!0},Ee.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),dt.events.push(["putPage",function(e){for(var t,n,r,o=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,s=!1,u=0;u<l.length&&!s;u++)switch((t=l[u]).type){case"link":(pt(t.options.url)||pt(t.options.pageNumber))&&(s=!0);break;case"reference":case"text":case"freetext":s=!0}if(0!=s){this.internal.write("/Annots [");for(var c=0;c<l.length;c++){t=l[c];var d=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(f.objId),g=t.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+o(t.bounds.x)+" "+i(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y)+"] ")+"/Contents ("+d(m(t.contents))+")",r+=" /Popup "+h.objId+" 0 R",r+=" /P "+a.objId+" 0 R",r+=" /T ("+d(m(g))+") >>",f.content=r;var v=f.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+o(t.bounds.x+30)+" "+i(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w+30)+" "+i(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(r+=" /Open true"),r+=" >>",h.content=r,this.internal.write(f.objId,"0 R",h.objId,"0 R");break;case"freetext":n="/Rect ["+o(t.bounds.x)+" "+i(t.bounds.y)+" "+o(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y+t.bounds.h)+"] ";var b=t.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+d(p(t.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(t.options.name){var y=this.annotations._nameMap[t.options.name];t.options.pageNumber=y.page,t.options.top=y.y}else t.options.top||(t.options.top=0);if(n="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",r="",t.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+d(p(t.options.url))+") >>";else if(t.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,r+=" /FitV "+t.options.left+"]";break;default:var w=i(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),r+=" /XYZ "+t.options.left+" "+w+" "+t.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),dt.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},dt.link=function(e,t,n,r,o){var i=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:a(e),y:l(t),w:a(e+n),h:l(t+r)},options:o,type:"link"})},dt.textWithLink=function(e,t,n,r){var o,i,a=this.getTextWidth(e),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var s=this.splitTextToSize(e,i).length;o=Math.ceil(l*s)}else i=a,o=l;return this.text(e,t,n,r),n+=.2*l,"center"===r.align&&(t-=a/2),"right"===r.align&&(t-=a),this.link(t,n-l,i,o,r),a},dt.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},l=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},s=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&i(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(o+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,o+=e.charAt(t-i),t-=i,i=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var p=e.__arabicParser__.getCorrectForm=function(e,t,n){return a(e)?!1===i(e)?-1:!u(e)||!a(t)&&!a(n)||!a(n)&&l(t)||l(e)&&!a(t)||l(e)&&s(t)||l(e)&&l(t)?0:c(e)&&a(t)&&!l(t)&&a(n)&&u(n)?3:l(e)||!a(n)?1:2:-1},f=function(e){var n=0,r=0,o=0,i="",l="",s="",u=(e=e||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)i=u[n][r],l=u[n][r-1],s=u[n][r+1],a(i)?(o=p(i,l,s),c[n]+=-1!==o?String.fromCharCode(t[i.charCodeAt(0)][o]):i):c[n]+=i;c[n]=d(c[n])}return c.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([f(t[r][0]),t[r][1],t[r][2]]):n.push([f(t[r])]);e=n}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",h])}(Ee.API),Ee.API.autoPrint=function(e){var t;return"javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ee.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,o=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return o.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){o.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,a=0,l=0,s=0,u=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(u.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)a<(s=this.getStringUnitWidth(e[d],{font:r})*n)&&(a=s);return 0!==a&&(l=e.length),{w:a/=i,h:Math.max((l*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){o.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=e.cell=function(){var e;e=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),o.call(this);var r=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,l=this.internal.__cell__.margins||t,s=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+l.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=l.top,u&&s&&(this.printHeaderRow(e.lineNumber,!0),e.y+=s[0].height)):e.y=r.y+r.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,u,c,d){if(o.call(this),!u)throw new Error("No data for PDF table.");var p,f,h,m,g=[],v=[],b=[],y={},w={},x=[],C=[],S=(d=d||{}).autoSize||!1,E=!1!==d.printHeaders,N=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,M=d.margins||Object.assign({width:this.getPageWidth()},t),I="number"==typeof d.padding?d.padding:3,A=d.headerBackgroundColor||"#c8c8c8",k=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=E,this.internal.__cell__.margins=M,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=A,this.internal.__cell__.headerTextColor=k,this.setFontSize(N),null==c)v=g=Object.keys(u[0]),b=g.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===(0,r.Z)(c[0]))for(g=c.map((function(e){return e.name})),v=c.map((function(e){return e.prompt||e.name||""})),b=c.map((function(e){return e.align||"left"})),p=0;p<c.length;p+=1)w[c[p].name]=c[p].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(v=g=c,b=g.map((function(){return"left"})));if(S||Array.isArray(c)&&"string"==typeof c[0])for(p=0;p<g.length;p+=1){for(y[m=g[p]]=u.map((function(e){return e[m]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=y[m],this.setFont(void 0,"normal"),h=0;h<f.length;h+=1)x.push(this.getTextDimensions(f[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[m]=Math.max.apply(null,x)+I+I,x=[]}if(E){var P={};for(p=0;p<g.length;p+=1)P[g[p]]={},P[g[p]].text=v[p],P[g[p]].align=b[p];var L=s.call(this,P,w);C=g.map((function(t){return new a(e,n,w[t],L,P[t].text,void 0,P[t].align)})),this.setTableHeaderRow(C),this.printHeaderRow(1,!1)}var R=c.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(p=0;p<u.length;p+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:p,data:u[p]},this);var T=s.call(this,u[p],w);for(h=0;h<g.length;h+=1){var D=u[p][g[h]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:p,col:h,data:D},this),l.call(this,new a(e,n,w[g[h]],T,D,p+2,R[g[h]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var s=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map((function(r){var o=e[r];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[r]-n-n)}),this).map((function(e){return this.getLineHeightFactor()*e.length*r/o+n+n}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){o.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(o.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var s=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,s.push(r)),r.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,r),this.setTextColor(c)}s.length>0&&this.setTableHeaderRow(s),this.setFont(void 0,"normal"),n=!1}}(Ee.API);var mt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},gt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vt=ht(gt),bt=[100,200,300,400,500,600,700,800,900],yt=ht(bt);function wt(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return mt[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),o=function(e){return"number"==typeof vt[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,r].join(" ")}}}function xt(e,t,n,r){var o;for(o=n;o>=0&&o<t.length;o+=r)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=r)if(e[t[o]])return e[t[o]]}var Ct={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},St={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Nt(e){return e.trimLeft()}function Mt(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function It(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var At,kt,Pt,Lt=["times"];!function(e){var t,n,o,i,a,l,s,u,c,d=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new l,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new l,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,l=this.internal.Point,s=this.internal.Rectangle,u=this.internal.Matrix,c=new d}]);var p=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),c.margin=t}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=e}});var l=0;Object.defineProperty(this,"lastBreak",{get:function(){return l},set:function(e){l=e}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(e){s=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof d&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=f(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=f(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var p=null;function h(e,t){if(null===p){var n=function(e){var t=[];return Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))}))})),t}(e.getFontList());p=function(e){for(var t={},n=0;n<e.length;++n){var r=wt(e[n]),o=r.family,i=r.stretch,a=r.style,l=r.weight;t[o]=t[o]||{},t[o][i]=t[o][i]||{},t[o][i][a]=t[o][i][a]||{},t[o][i][a][l]=r}return t}(n.concat(t))}return p}var m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(e){p=null,m=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],r=(t[2],t[3]),o=t[4],i=(t[5],t[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===a?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var l=function(e){var t,n,r=[],o=e.trim();if(""===o)return Lt;if(o in St)return[St[o]];for(;""!==o;){switch(n=null,t=(o=Nt(o)).charAt(0)){case'"':case"'":n=Mt(o.substring(1),t);break;default:n=It(o)}if(null===n)return Lt;if(r.push(n[0]),""!==(o=Nt(n[1]))&&","!==o.charAt(0))return Lt;o=o.replace(/^,/,"")}return r}(i);if(this.fontFaces){var s=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},Ct,n.genericFontFamilies||{}),i=null,a=null,l=0;l<t.length;++l)if(o[(i=wt(t[l])).family]&&(i.family=o[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+Et(i)+"' and default family '"+r+"'.");if(a=function(e,t){if(t[e])return t[e];var n=vt[e],r=n<=vt.normal?-1:1,o=xt(t,gt,n,r);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(i.stretch,a),a=function(e,t){if(t[e])return t[e];for(var n=mt[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(i.style,a),!(a=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=yt[e],r=xt(t,bt,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Et(i)+"'.");return a}(h(this.pdf,this.fontFaces),l.map((function(e){return{family:e,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(s.ref.name,s.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var c="",d={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},p=0;p<l.length;p++){if(void 0!==this.pdf.internal.getFont(l[p],u,{noFallback:!0,disableWarning:!0})){c=l[p];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(l[p],"bold",{noFallback:!0,disableWarning:!0}))c=l[p],u="bold";else if(void 0!==this.pdf.internal.getFont(l[p],"normal",{noFallback:!0,disableWarning:!0})){c=l[p],u="normal";break}}if(""===c)for(var f=0;f<l.length;f++)if(d[l[f]]){c=d[l[f]];break}c=""===c?"Times":c,this.pdf.setFont(c,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,_.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,_.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};p.prototype.setLineDash=function(e){this.lineDash=e},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){x.call(this,"fill",!1)},p.prototype.stroke=function(){x.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw V.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new l(e,t)},p.prototype.closePath=function(){var e=new l(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,r.Z)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new l(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(e.x,e.y)},p.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw V.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new l(n.x,n.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},p.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw V.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var o=this.ctx.transform.applyToPoint(new l(n,r)),i=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:o.x,y:o.y}),this.ctx.lastPoint=new l(o.x,o.y)},p.prototype.bezierCurveTo=function(e,t,n,r,o,i){if(isNaN(o)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw V.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new l(o,i)),s=this.ctx.transform.applyToPoint(new l(e,t)),u=this.ctx.transform.applyToPoint(new l(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:u.x,y2:u.y,x:a.x,y:a.y}),this.ctx.lastPoint=new l(a.x,a.y)},p.prototype.arc=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o))throw V.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new l(e,t));e=a.x,t=a.y;var s=this.ctx.transform.applyToPoint(new l(0,n)),u=this.ctx.transform.applyToPoint(new l(0,0));n=Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2))}Math.abs(o-r)>=2*Math.PI&&(r=0,o=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:o,counterclockwise:i})},p.prototype.arcTo=function(e,t,n,r,o){throw new Error("arcTo not implemented.")},p.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw V.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},p.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw V.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},p.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw V.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},p.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw V.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},p.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},p.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(e){var t,n,r,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,o=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=parseFloat(i[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var a=new ee(e);e=a.ok?a.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:o,style:e}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw V.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!h.call(this)){var o=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:i,angle:o,align:this.textAlign,maxWidth:r})}},p.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw V.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){r=isNaN(r)?void 0:r;var o=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:i,renderingMode:"stroke",angle:o,align:this.textAlign,maxWidth:r})}},p.prototype.measureText=function(e){if("string"!=typeof e)throw V.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),o=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:o*=Math.round(96*n/72*1e4)/1e4})},p.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw V.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.rotate=function(e){if(isNaN(e))throw V.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},p.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw V.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.transform=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i))throw V.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new u(e,t,n,r,o,i);this.ctx.transform=this.ctx.transform.multiply(a)},p.prototype.setTransform=function(e,t,n,r,o,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,i=isNaN(i)?0:i,this.ctx.transform=new u(e,t,n,r,o,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(e,t,n,r,o,i,a,l,c){var d=this.pdf.getImageProperties(e),p=1,f=1,h=1,m=1;void 0!==r&&void 0!==l&&(h=l/r,m=c/o,p=d.width/r*l/r,f=d.height/o*c/o),void 0===i&&(i=t,a=n,t=0,n=0),void 0!==r&&void 0===l&&(l=r,c=o),void 0===r&&void 0===l&&(l=d.width,c=d.height);for(var b,x=this.ctx.transform.decompose(),S=O(x.rotate.shx),E=new u,N=(E=(E=(E=E.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new s(i-t*h,a-n*m,r*p,o*f)),M=v.call(this,N),I=[],A=0;A<M.length;A+=1)-1===I.indexOf(M[A])&&I.push(M[A]);if(w(I),this.autoPaging)for(var k=I[0],P=I[I.length-1],L=k;L<P+1;L++){this.pdf.setPage(L);var R=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],T=1===L?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],F=1===L?0:D+(L-2)*j;if(0!==this.ctx.clip_path.length){var _=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(b,this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=_}var Z=JSON.parse(JSON.stringify(N));Z=y([Z],this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset)[0];var B=(L>k||L<P)&&g.call(this);B&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],R,j,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",Z.x,Z.y,Z.w,Z.h,null,null,S),B&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",N.x,N.y,N.w,N.h,null,null,S)};var v=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var o=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+o)/n)+1);break;case"arc":r.push(Math.floor((e.y+o-e.radius)/n)+1),r.push(Math.floor((e.y+o+e.radius)/n)+1);break;case"qct":var i=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((i.y+o)/n)+1),r.push(Math.floor((i.y+i.h+o)/n)+1);break;case"bct":var a=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((a.y+o)/n)+1),r.push(Math.floor((a.y+a.h+o)/n)+1);break;case"rect":r.push(Math.floor((e.y+o)/n)+1),r.push(Math.floor((e.y+e.h+o)/n)+1)}for(var l=0;l<r.length;l+=1)for(;this.pdf.internal.getNumberOfPages()<r[l];)b.call(this);return r},b=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,o=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=o,this.lineJoin=i},y=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},w=function(e){return e.sort((function(e,t){return e-t}))},x=function(e,t){for(var n,r,o=this.fillStyle,i=this.strokeStyle,a=this.lineCap,l=this.lineWidth,s=Math.abs(l*this.ctx.transform.scaleX),u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),p=[],f=0;f<d.length;f++)if(void 0!==d[f].x)for(var h=v.call(this,d[f]),m=0;m<h.length;m+=1)-1===p.indexOf(h[m])&&p.push(h[m]);for(var x=0;x<p.length;x++)for(;this.pdf.internal.getNumberOfPages()<p[x];)b.call(this);if(w(p),this.autoPaging)for(var S=p[0],E=p[p.length-1],N=S;N<E+1;N++){this.pdf.setPage(N),this.fillStyle=o,this.strokeStyle=i,this.lineCap=a,this.lineWidth=s,this.lineJoin=u;var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===N?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===N?0:A+(N-2)*k;if(0!==this.ctx.clip_path.length){var L=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),C.call(this,e,!0),this.path=L}if(r=JSON.parse(JSON.stringify(c)),this.path=y(r,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),!1===t||0===N){var R=(N>S||N<E)&&g.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,k,null).clip().discardPath()),C.call(this,e,t),R&&this.pdf.restoreGraphicsState()}this.lineWidth=l}else this.lineWidth=s,C.call(this,e,t),this.lineWidth=l;this.path=c},C=function(e,t){if(("stroke"!==e||t||!m.call(this))&&("stroke"===e||t||!h.call(this))){for(var n,r,o=[],i=this.path,a=0;a<i.length;a++){var l=i[a];switch(l.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:l,deltas:[],abs:[]});break;case"lt":var s=o.length;if(i[a-1]&&!isNaN(i[a-1].x)&&(n=[l.x-i[a-1].x,l.y-i[a-1].y],s>0))for(;s>=0;s--)if(!0!==o[s-1].close&&!0!==o[s-1].begin){o[s-1].deltas.push(n),o[s-1].abs.push(l);break}break;case"bct":n=[l.x1-i[a-1].x,l.y1-i[a-1].y,l.x2-i[a-1].x,l.y2-i[a-1].y,l.x-i[a-1].x,l.y-i[a-1].y],o[o.length-1].deltas.push(n);break;case"qct":var u=i[a-1].x+2/3*(l.x1-i[a-1].x),c=i[a-1].y+2/3*(l.y1-i[a-1].y),d=l.x+2/3*(l.x1-l.x),p=l.y+2/3*(l.y1-l.y),f=l.x,g=l.y;n=[u-i[a-1].x,c-i[a-1].y,d-i[a-1].x,p-i[a-1].y,f-i[a-1].x,g-i[a-1].y],o[o.length-1].deltas.push(n);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(l)}}r=t?null:"stroke"===e?"stroke":"fill";for(var v=!1,b=0;b<o.length;b++)if(o[b].arc)for(var y=o[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?N.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!v):P.call(this,x.x,x.y),v=!0}else if(!0===o[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==o[b].begin){var C=o[b].start.x,S=o[b].start.y;L.call(this,o[b].deltas,C,S),v=!0}r&&M.call(this,r),t&&I.call(this)}},S=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},E=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(e,t,n,r,o,i,a,l,s){for(var u=T.call(this,n,r,o,i),c=0;c<u.length;c++){var d=u[c];0===c&&(s?A.call(this,d.x1+e,d.y1+t):P.call(this,d.x1+e,d.y1+t)),R.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}l?I.call(this):M.call(this,a)},M=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(e,t){this.pdf.internal.out(n(e)+" "+o(t)+" m")},k=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.pdf.getTextDimensions(e.text),r=S.call(this,e.y),o=E.call(this,r)-n.h,i=this.ctx.transform.applyToPoint(new l(e.x,r)),a=this.ctx.transform.decompose(),c=new u;c=(c=(c=c.multiply(a.translate)).multiply(a.skew)).multiply(a.scale);for(var d,p,f,h=this.ctx.transform.applyToRectangle(new s(e.x,r,n.w,n.h)),m=c.applyToRectangle(new s(e.x,o,n.w,n.h)),b=v.call(this,m),x=[],N=0;N<b.length;N+=1)-1===x.indexOf(b[N])&&x.push(b[N]);if(w(x),this.autoPaging)for(var M=x[0],I=x[x.length-1],A=M;A<I+1;A++){this.pdf.setPage(A);var k=1===A?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],R=L-this.margin[0],T=this.pdf.internal.pageSize.width-this.margin[1],D=T-this.margin[3],O=1===A?0:P+(A-2)*R;if(0!==this.ctx.clip_path.length){var j=this.path;d=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(d,this.posX+this.margin[3],-1*O+k),C.call(this,"fill",!0),this.path=j}var F=y([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-O+k+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale);var _="text"!==this.autoPaging;if(_||F.y+F.h<=L){if(_||F.y>=k&&F.x<=T){var Z=_?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||T-F.x)[0],B=y([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-O+k+this.ctx.prevPageLastElemOffset)[0],z=_&&(A>M||A<I)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,R,null).clip().discardPath()),this.pdf.text(Z,B.x,B.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else F.y<L&&(this.ctx.prevPageLastElemOffset+=L-F.y);e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=f)}else e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale),this.pdf.text(e.text,i.x+this.posX,i.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=f)},P=function(e,t,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(e+r)+" "+o(t+i)+" l")},L=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},R=function(e,n,r,o,l,s,u,c){this.pdf.internal.out([t(i(r+e)),t(a(o+n)),t(i(l+e)),t(a(s+n)),t(i(u+e)),t(a(c+n)),"c"].join(" "))},T=function(e,t,n,r){for(var o=2*Math.PI,i=Math.PI/2;t>n;)t-=o;var a=Math.abs(n-t);a<o&&r&&(a=o-a);for(var l=[],s=r?-1:1,u=t;a>1e-5;){var c=u+s*Math.min(a,i);l.push(D.call(this,e,u,c)),a-=Math.abs(c-u),u=c}return l},D=function(e,t,n){var r=(n-t)/2,o=e*Math.cos(r),i=e*Math.sin(r),a=o,l=-i,s=a*a+l*l,u=s+a*o+l*i,c=4/3*(Math.sqrt(2*s*u)-u)/(a*i-l*o),d=a-c*l,p=l+c*a,f=d,h=-p,m=r+t,g=Math.cos(m),v=Math.sin(m);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*g-p*v,y2:d*v+p*g,x3:f*g-h*v,y3:f*v+h*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},O=function(e){return 180*e/Math.PI},j=function(e,t,n,r,o,i){var a=e+.5*(n-e),l=t+.5*(r-t),u=o+.5*(n-o),c=i+.5*(r-i),d=Math.min(e,o,a,u),p=Math.max(e,o,a,u),f=Math.min(t,i,l,c),h=Math.max(t,i,l,c);return new s(d,f,p-d,h-f)},F=function(e,t,n,r,o,i,a,l){var u,c,d,p,f,h,m,g,v,b,y,w,x,C,S=n-e,E=r-t,N=o-n,M=i-r,I=a-o,A=l-i;for(c=0;c<41;c++)v=(m=(d=e+(u=c/40)*S)+u*((f=n+u*N)-d))+u*(f+u*(o+u*I-f)-m),b=(g=(p=t+u*E)+u*((h=r+u*M)-p))+u*(h+u*(i+u*A-h)-g),0==c?(y=v,w=b,x=v,C=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),C=Math.max(C,b));return new s(Math.round(y),Math.round(w),Math.round(x-y),Math.round(C-w))},_=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Ee.API),function(e){var t=function(e){var t,n,r,o,i,a,l,s,u,c;for(/[^\x00-\xFF]/.test(e),n=[],r=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>r;r+=4)0!==(i=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(a=(i=((i=((i=((i=(i-(c=i%85))/85)-(u=i%85))/85)-(s=i%85))/85)-(l=i%85))/85)%85,n.push(a+33,l+33,s+33,u+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,o,i,a=String,l="length",s=255,u="charCodeAt",c="slice",d="replace";for(e[c](-2),e=e[c](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),r=[],o=0,i=(e+=t="uuuuu"[c](e[l]%5||5))[l];i>o;o+=5)n=52200625*(e[u](o)-33)+614125*(e[u](o+1)-33)+7225*(e[u](o+2)-33)+85*(e[u](o+3)-33)+(e[u](o+4)-33),r.push(s&n>>24,s&n>>16,s&n>>8,s&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[l]),a.fromCharCode.apply(a,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=$(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var a=0,l=e||"",s=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),s.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),s.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),s.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",s.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=o(l),s.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:l,reverseChain:s.reverse().join(" ")}}}(Ee.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,o=0,i=function(e){var t=e.length,n=[],r=String.fromCharCode;for(o=0;o<t;o+=1)n.push(r(255&e.charCodeAt(o)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(i(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.loadImageFile=e.loadFile}(Ee.API),function(e){function t(){return(W.html2canvas?Promise.resolve(W.html2canvas):n.e(120).then(n.t.bind(n,1120,23))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function o(){return(W.DOMPurify?Promise.resolve(W.DOMPurify):n.e(856).then(n.t.bind(n,7856,23))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=(0,r.Z)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},l=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(o).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;o=o.nextSibling)!0!==n&&1===o.nodeType&&"SCRIPT"===o.nodeName||r.appendChild(e(o,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,o=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete o.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var a=n[i],l=a.src.find((function(e){return"truetype"===e.format}));l&&t.addFont(l.url,a.ref.name,a.ref.style)}return o.windowHeight=o.windowHeight||0,o.windowHeight=0==o.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):o.windowHeight,t.context2d.save(!0),e(this.prop.container,o)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},l.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in l.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},l.prototype.get=function(e,t){return this.then((function(){var n=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},l.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},l.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||Ee.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},l.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},l.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},l.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:l.convert(Object.assign({},this),Promise.prototype),o=n.call(r,e,t);return l.convert(o,this.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},l.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},l.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Ee.getPageSize=function(e,t,n){if("object"===(0,r.Z)(e)){var o=e;e=o.orientation,t=o.unit||t,n=o.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,a=(""+n).toLowerCase(),l={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var s,u=0,c=0;if(l.hasOwnProperty(a))u=l[a][1]/i,c=l[a][0]/i;else try{u=n[1],c=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>u&&(s=c,c=u,u=s);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",u>c&&(s=c,c=u,u=s)}return{width:c,height:u,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(wt):null;var n=new l(t);return t.worker?n:n.from(e).doCallback()}}(Ee.API),Ee.API.addJS=function(e){return Pt=e,this.internal.events.subscribe("postPutResources",(function(){At=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(At+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),kt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Pt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==At&&void 0!==kt&&this.internal.out("/Names <</JavaScript "+At+" 0 R>>")})),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),o=0;o<r.length;o++){var i=r[o],a=n.exec(i);if(null!=a){var l=a[1];e.internal.newObjectDeferredBegin(l,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,u=[];for(o=0;o<s;o++){var c=e.internal.newObject();u.push(c);var d=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<u.length;o++)e.internal.write("(page_"+(o+1)+")"+u[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var o=t.children[r];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var i=this.count=this.count_r({count:0},o);if(i>0&&this.line("/Count "+i),o.options&&o.options.pageNumber){var a=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<t.children.length;l++)this.renderItems(t.children[l])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(Ee.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,o,i,a){var l,s=this.decode.DCT_DECODE,u=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(l=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,i={width:0,height:0,numcomponents:1},a=4;a<o;a+=2){if(a+=r,-1!==t.indexOf(e.charCodeAt(a+1))){n=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),i={width:256*e.charCodeAt(a+7)+e.charCodeAt(a+8),height:n,numcomponents:e.charCodeAt(a+9)};break}r=256*e.charCodeAt(a+2)+e.charCodeAt(a+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:e,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:s,index:n,alias:r}}return u}}(Ee.API);var Rt,Tt,Dt,Ot,jt,Ft=function(){var e,t,n;function r(e){var t,n,r,o,i,a,l,s,u,c,d,p,f,h;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(t=this.readUInt32(),u=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,t-=4),e=(null!=a?a.data:void 0)||this.imgData,p=0;0<=t?p<t:p>t;0<=t?++p:--p)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":l=(d=this.read(t)).indexOf(0),s=String.fromCharCode.apply(String,d.slice(0,l)),this.text[s]=String.fromCharCode.apply(String,d.slice(l+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(h=this.colorType)||6===h,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,o=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function i(i,a,l,s){var u,c,d,p,f,h,m,g,v,b,y,w,x,C,S,E,N,M,I,A,k,P=Math.ceil((o.width-i)/l),L=Math.ceil((o.height-a)/s),R=o.width==P&&o.height==L;for(C=t*P,w=R?n:new Uint8Array(C*L),h=e.length,x=0,c=0;x<L&&r<h;){switch(e[r++]){case 0:for(p=N=0;N<C;p=N+=1)w[c++]=e[r++];break;case 1:for(p=M=0;M<C;p=M+=1)u=e[r++],f=p<t?0:w[c-t],w[c++]=(u+f)%256;break;case 2:for(p=I=0;I<C;p=I+=1)u=e[r++],d=(p-p%t)/t,S=x&&w[(x-1)*C+d*t+p%t],w[c++]=(S+u)%256;break;case 3:for(p=A=0;A<C;p=A+=1)u=e[r++],d=(p-p%t)/t,f=p<t?0:w[c-t],S=x&&w[(x-1)*C+d*t+p%t],w[c++]=(u+Math.floor((f+S)/2))%256;break;case 4:for(p=k=0;k<C;p=k+=1)u=e[r++],d=(p-p%t)/t,f=p<t?0:w[c-t],0===x?S=E=0:(S=w[(x-1)*C+d*t+p%t],E=d&&w[(x-1)*C+(d-1)*t+p%t]),m=f+S-E,g=Math.abs(m-f),b=Math.abs(m-S),y=Math.abs(m-E),v=g<=b&&g<=y?f:b<=y?S:E,w[c++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+e[r-1])}if(!R){var T=((a+x*s)*o.width+i)*t,D=x*C;for(p=0;p<P;p+=1){for(var O=0;O<t;O+=1)n[T++]=w[D++];T+=(l-1)*t}}x++}}return e=q(e),1==o.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),n},r.prototype.decodePalette=function(){var e,t,n,r,o,i,a,l,s;for(n=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+n.length),r=0,e=0,t=a=0,l=n.length;a<l;t=a+=3)o[r++]=n[t],o[r++]=n[t+1],o[r++]=n[t+2],o[r++]=null!=(s=i[e++])?s:255;return o},r.prototype.copyToImageData=function(e,t){var n,r,o,i,a,l,s,u,c,d,p;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(p=this._decodedPalette)?p:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(o=e.data||e).length,a=c||t,i=l=0,1===r)for(;i<u;)s=c?4*t[i/4]:l,d=a[s++],o[i++]=d,o[i++]=d,o[i++]=d,o[i++]=n?a[s++]:255,l=s;else for(;i<u;)s=c?4*t[i/4]:l,o[i++]=a[s++],o[i++]=a[s++],o[i++]=a[s++],o[i++]=n?a[s++]:255,l=s},r.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var o=function(){if("[object Window]"===Object.prototype.toString.call(W)){try{t=W.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return o(),e=function(e){var r;if(!0===o())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(r=new Image).src=t.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(t){var n,r,o,i,a,l,s,u;if(this.animation){for(u=[],r=a=0,l=(s=this.animation.frames).length;a<l;r=++a)n=s[r],o=t.createImageData(n.width,n.height),i=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(o,i),n.imageData=o,u.push(n.image=e(o));return u}},r.prototype.renderFrame=function(e,t){var n,r,o;return n=(r=this.animation.frames)[t],o=r[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(e){var t,n,r,o,i,a,l=this;return n=0,a=this.animation,o=a.numFrames,r=a.frames,i=a.numPlays,(t=function(){var a,s;if(a=n++%o,s=r[a],l.renderFrame(e,a),o>1&&n/o<i)return l.animation._timeout=setTimeout(t,s.delay)})()},r.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},r.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},r}();function _t(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,o=e[t++],i=o>>7,a=1<<1+(7&o);e[t++],e[t++];var l=null,s=null;i&&(l=t,s=a,t+=3*a);var u=!0,c=[],d=0,p=null,f=0,h=null;for(this.width=n,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var m=e[t++];d=e[t++]|e[t++]<<8,p=e[t++],0==(1&m)&&(p=null),f=m>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++],x=w>>6&1,C=1<<1+(7&w),S=l,E=s,N=!1;w>>7&&(N=!0,S=t,E=C,t+=3*C);var M=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}c.push({x:g,y:v,width:b,height:y,has_local_palette:N,palette_offset:S,palette_size:E,data_offset:M,data_length:t-M,transparent_index:p,interlaced:!!x,delay:d,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Zt(e,o.data_offset,a,i);var l=o.palette_offset,s=o.transparent_index;null===s&&(s=256);var u=o.width,c=n-u,d=u,p=4*(o.y*n+o.x),f=4*((o.y+o.height)*n+o.x),h=p,m=4*c;!0===o.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===d&&(d=u,(h+=m)>=f&&(m=4*c+4*n*(g-1),h=p+(u+c)*(g<<1),g>>=1)),y===s)h+=4;else{var w=e[l+3*y],x=e[l+3*y+1],C=e[l+3*y+2];r[h++]=C,r[h++]=x,r[h++]=w,r[h++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Zt(e,o.data_offset,a,i);var l=o.palette_offset,s=o.transparent_index;null===s&&(s=256);var u=o.width,c=n-u,d=u,p=4*(o.y*n+o.x),f=4*((o.y+o.height)*n+o.x),h=p,m=4*c;!0===o.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===d&&(d=u,(h+=m)>=f&&(m=4*c+4*n*(g-1),h=p+(u+c)*(g<<1),g>>=1)),y===s)h+=4;else{var w=e[l+3*y],x=e[l+3*y+1],C=e[l+3*y+2];r[h++]=w,r[h++]=x,r[h++]=C,r[h++]=255}--d}}}function Zt(e,t,n,r){for(var o=e[t++],i=1<<o,a=i+1,l=a+1,s=o+1,u=(1<<s)-1,c=0,d=0,p=0,f=e[t++],h=new Int32Array(4096),m=null;;){for(;c<16&&0!==f;)d|=e[t++]<<c,c+=8,1===f?f=e[t++]:--f;if(c<s)break;var g=d&u;if(d>>=s,c-=s,g!==i){if(g===a)break;for(var v=g<l?g:m,b=0,y=v;y>i;)y=h[y]>>8,++b;var w=y;if(p+b+(v!==g?1:0)>r)return void V.log("Warning, gif stream longer than expected.");n[p++]=w;var x=p+=b;for(v!==g&&(n[p++]=w),y=v;b--;)y=h[y],n[--x]=255&y,y>>=8;null!==m&&l<4096&&(h[l++]=m<<8|w,l>=u+1&&s<12&&(++s,u=u<<1|1)),m=g}else l=a+1,u=(1<<(s=o+1))-1,m=null}return p!==r&&V.log("Warning, gif stream shorter than expected."),n}function Bt(e){var t,n,r,o,i,a=Math.floor,l=new Array(64),s=new Array(64),u=new Array(64),c=new Array(64),d=new Array(65535),p=new Array(65535),f=new Array(64),h=new Array(64),m=[],g=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),C=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function R(e,t){for(var n=0,r=0,o=new Array,i=1;i<=16;i++){for(var a=1;a<=e[i];a++)o[t[r]]=[],o[t[r]][0]=n,o[t[r]][1]=i,r++,n++;n*=2}return o}function T(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<v),n--,--v<0&&(255==g?(D(255),D(0)):D(g),v=7,g=0)}function D(e){m.push(e)}function O(e){D(e>>8&255),D(255&e)}function j(e,t,n,r,o){for(var i,a=o[0],l=o[240],s=function(e,t){var n,r,o,i,a,l,s,u,c,d,p=0;for(c=0;c<8;++c){n=e[p],r=e[p+1],o=e[p+2],i=e[p+3],a=e[p+4],l=e[p+5],s=e[p+6];var h=n+(u=e[p+7]),m=n-u,g=r+s,v=r-s,b=o+l,y=o-l,w=i+a,x=i-a,C=h+w,S=h-w,E=g+b,N=g-b;e[p]=C+E,e[p+4]=C-E;var M=.707106781*(N+S);e[p+2]=S+M,e[p+6]=S-M;var I=.382683433*((C=x+y)-(N=v+m)),A=.5411961*C+I,k=1.306562965*N+I,P=.707106781*(E=y+v),L=m+P,R=m-P;e[p+5]=R+A,e[p+3]=R-A,e[p+1]=L+k,e[p+7]=L-k,p+=8}for(p=0,c=0;c<8;++c){n=e[p],r=e[p+8],o=e[p+16],i=e[p+24],a=e[p+32],l=e[p+40],s=e[p+48];var T=n+(u=e[p+56]),D=n-u,O=r+s,j=r-s,F=o+l,_=o-l,Z=i+a,B=i-a,z=T+Z,H=T-Z,$=O+F,q=O-F;e[p]=z+$,e[p+32]=z-$;var W=.707106781*(q+H);e[p+16]=H+W,e[p+48]=H-W;var U=.382683433*((z=B+_)-(q=j+D)),V=.5411961*z+U,G=1.306562965*q+U,Y=.707106781*($=_+j),K=D+Y,Q=D-Y;e[p+40]=Q+V,e[p+24]=Q-V,e[p+8]=K+G,e[p+56]=K-G,p++}for(c=0;c<64;++c)d=e[c]*t[c],f[c]=d>0?d+.5|0:d-.5|0;return f}(e,t),u=0;u<64;++u)h[S[u]]=s[u];var c=h[0]-n;n=h[0],0==c?T(r[0]):(T(r[p[i=32767+c]]),T(d[i]));for(var m=63;m>0&&0==h[m];)m--;if(0==m)return T(a),n;for(var g,v=1;v<=m;){for(var b=v;0==h[v]&&v<=m;)++v;var y=v-b;if(y>=16){g=y>>4;for(var w=1;w<=g;++w)T(l);y&=15}i=32767+h[v],T(o[(y<<4)+p[i]]),T(d[i]),v++}return 63!=m&&T(a),n}function F(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),l[S[n]]=r}for(var o=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var d=a((o[i]*e+50)/100);d=Math.min(Math.max(d,1),255),s[S[i]]=d}for(var p=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,h=0;h<8;h++)for(var m=0;m<8;m++)u[f]=1/(l[S[f]]*p[h]*p[m]*8),c[f]=1/(s[S[f]]*p[h]*p[m]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&F(i),m=new Array,g=0,v=7,O(65496),O(65504),O(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),O(1),O(1),D(0),D(0),function(){O(65499),O(132),D(0);for(var e=0;e<64;e++)D(l[e]);D(1);for(var t=0;t<64;t++)D(s[t])}(),function(e,t){O(65472),O(17),D(8),O(t),O(e),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1)}(e.width,e.height),function(){O(65476),O(418),D(0);for(var e=0;e<16;e++)D(E[e+1]);for(var t=0;t<=11;t++)D(N[t]);D(16);for(var n=0;n<16;n++)D(M[n+1]);for(var r=0;r<=161;r++)D(I[r]);D(1);for(var o=0;o<16;o++)D(A[o+1]);for(var i=0;i<=11;i++)D(k[i]);D(17);for(var a=0;a<16;a++)D(P[a+1]);for(var l=0;l<=161;l++)D(L[l])}(),O(65498),O(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var a=0,d=0,p=0;g=0,v=7,this.encode.displayName="_encode_";for(var f,h,x,S,R,_,Z,B,z,H=e.data,$=e.width,q=e.height,W=4*$,U=0;U<q;){for(f=0;f<W;){for(R=W*U+f,Z=-1,B=0,z=0;z<64;z++)_=R+(B=z>>3)*W+(Z=4*(7&z)),U+B>=q&&(_-=W*(U+1+B-q)),f+Z>=W&&(_-=f+Z-W+4),h=H[_++],x=H[_++],S=H[_++],b[z]=(C[h]+C[x+256>>0]+C[S+512>>0]>>16)-128,y[z]=(C[h+768>>0]+C[x+1024>>0]+C[S+1280>>0]>>16)-128,w[z]=(C[h+1280>>0]+C[x+1536>>0]+C[S+1792>>0]>>16)-128;a=j(b,u,a,t,r),d=j(y,c,d,n,o),p=j(w,c,p,n,o),f+=32}U+=8}if(v>=0){var V=[];V[1]=v+1,V[0]=(1<<v+1)-1,T(V)}return O(65497),new Uint8Array(m)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=R(E,N),n=R(A,k),r=R(M,I),o=R(P,L),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)p[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var o=-(t-1);o<=-e;o++)p[32767+o]=n,d[32767+o]=[],d[32767+o][1]=n,d[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)C[e]=19595*e,C[e+256>>0]=38470*e,C[e+512>>0]=7471*e+32768,C[e+768>>0]=-11059*e,C[e+1024>>0]=-21709*e,C[e+1280>>0]=32768*e+8421375,C[e+1536>>0]=-27439*e,C[e+1792>>0]=-5329*e}(),F(e)}function zt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ht(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,o){for(var i=0;i<o;i++)e[t+i]=n[r+i]}function o(e,t,n,r){for(var o=0;o<r;o++)e[t+o]=n}function i(e){return new Int32Array(e)}function a(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function l(e,t){var n=[];return function e(n,r,o){for(var i=o[r],a=0;a<i&&(n.push(o.length>r+1?[]:new t),!(o.length<r+1));a++)e(n[a],r+1,o)}(n,0,e),n}var s=function(){var e=this;function s(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function u(e,n,r,o,i){t(!(o%r));do{e[n+(o-=r)]=i}while(0<o)}function c(e,n,r,o,a){if(t(2328>=a),512>=a)var l=i(512);else if(null==(l=i(a)))return 0;return function(e,n,r,o,a,l){var c,p,f=n,h=1<<r,m=i(16),g=i(16);for(t(0!=a),t(null!=o),t(null!=e),t(0<r),p=0;p<a;++p){if(15<o[p])return 0;++m[o[p]]}if(m[0]==a)return 0;for(g[1]=0,c=1;15>c;++c){if(m[c]>1<<c)return 0;g[c+1]=g[c]+m[c]}for(p=0;p<a;++p)c=o[p],0<o[p]&&(l[g[c]++]=p);if(1==g[15])return(o=new d).g=0,o.value=l[0],u(e,f,1,h,o),h;var v,b=-1,y=h-1,w=0,x=1,C=1,S=1<<r;for(p=0,c=1,a=2;c<=r;++c,a<<=1){if(x+=C<<=1,0>(C-=m[c]))return 0;for(;0<m[c];--m[c])(o=new d).g=c,o.value=l[p++],u(e,f+w,a,S,o),w=s(w,c)}for(c=r+1,a=2;15>=c;++c,a<<=1){if(x+=C<<=1,0>(C-=m[c]))return 0;for(;0<m[c];--m[c]){if(o=new d,(w&y)!=b){for(f+=S,v=1<<(b=c)-r;15>b&&!(0>=(v-=m[b]));)++b,v<<=1;h+=S=1<<(v=b-r),e[n+(b=w&y)].g=v+r,e[n+b].value=f-n-b}o.g=c-r,o.value=l[p++],u(e,f+(w>>r),a,S,o),w=s(w,c)}}return x!=2*g[15]-1?0:h}(e,n,r,o,a,l)}function d(){this.value=this.g=0}function p(){this.value=this.g=0}function f(){this.G=a(5,d),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Bn,p)}function h(e,n,r,o){t(null!=e),t(null!=n),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+o,e.Zc=4<=o?r+o-4+1:r,M(e)}function m(e,t){for(var n=0;0<t--;)n|=A(e,128)<<t;return n}function g(e,t){var n=m(e,t);return I(e)?-n:n}function v(e,n,r,o){var i,a=0;for(t(null!=e),t(null!=n),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),i=0;i<o;++i)a+=n[r+i]<<8*i;e.Ra=a,e.bb=o,e.oa=n,e.pa=r}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<$n-8>>>0,++e.bb,e.u-=8;S(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Hn){var r=C(e)&zn[n];return e.u+=n,b(e),r}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function C(e){return e.Ra>>>(e.u&$n-1)>>>0}function S(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>$n}function E(e,t){e.u=t,e.h=S(e)}function N(e){e.u>=qn&&(t(e.u>=qn),b(e))}function M(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function I(e){return m(e,1)}function A(e,t){var n=e.Ca;0>e.b&&M(e);var r=e.b,o=n*t>>>8,i=(e.I>>>r>o)+0;for(i?(n-=o,e.I-=o+1<<r>>>0):n=o+1,r=n,o=0;256<=r;)o+=8,r>>=8;return r=7^o+Wn[r],e.b-=r,e.Ca=(n<<r)-1,i}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255}function P(e,t){return e[t+0]<<0|e[t+1]<<8}function L(e,t){return P(e,t)|e[t+2]<<16}function R(e,t){return P(e,t)|P(e,t+2)<<16}function T(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=i(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function D(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function j(e,n,r,o){t(null!=r),t(null!=o);var i=r[0],a=o[0];return 0==i&&(i=(e*a+n/2)/n),0==a&&(a=(n*i+e/2)/e),0>=i||0>=a?0:(r[0]=i,o[0]=a,1)}function F(e,t){return e+(1<<t)-1>>>t}function _(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function Z(t,n){e[n]=function(n,r,o,i,a,l,s){var u;for(u=0;u<a;++u){var c=e[t](l[s+u-1],o,i+u);l[s+u]=_(n[r+u],c)}}}function B(){this.ud=this.hd=this.jd=0}function z(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function $(e,t){return H(e+(e-t+.5>>1))}function q(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function W(e,t,n,r,o,i,a){for(r=i[a-1],n=0;n<o;++n)i[a+n]=r=_(e[t+n],r)}function U(e,t,n,r,o){var i;for(i=0;i<n;++i){var a=e[t+i],l=a>>8&255,s=16711935&(s=(s=16711935&a)+((l<<16)+l));r[o+i]=(4278255360&a)+s>>>0}}function V(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function G(e,t,n,r,o,i){var a;for(a=0;a<r;++a){var l=t[n+a],s=l>>>8,u=l,c=255&(c=(c=l>>>16)+((e.jd<<24>>24)*(s<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(s<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),o[i+a]=(4278255360&l)+(c<<16)+u}}function Y(t,n,r,o,i){e[n]=function(e,t,n,r,a,l,s,u,c){for(r=s;r<u;++r)for(s=0;s<c;++s)a[l++]=i(n[o(e[t++])])},e[t]=function(t,n,a,l,s,u,c){var d=8>>t.b,p=t.Ea,f=t.K[0],h=t.w;if(8>d)for(t=(1<<t.b)-1,h=(1<<d)-1;n<a;++n){var m,g=0;for(m=0;m<p;++m)m&t||(g=o(l[s++])),u[c++]=i(f[g&h]),g>>=d}else e["VP8LMapColor"+r](l,s,f,h,u,c,n,a,p)}}function K(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=i>>0&255}}function Q(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=i>>0&255,r[o++]=i>>24&255}}function X(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[o++]=i,r[o++]=a}}function J(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[o++]=i,r[o++]=a}}function ee(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>0&255,r[o++]=i>>8&255,r[o++]=i>>16&255}}function te(e,t,n,o,i,a){if(0==a)for(n=t+n;t<n;)k(o,((a=e[t++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),i+=32;else r(o,i,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==$r||e==qr||e==Wr||e==Ur}function oe(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new ie,this.sd=null}function le(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function se(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var n=e.T,o=t.ba.f.RGBA,i=o.eb,a=o.fb+e.ka*o.A,l=bo[t.ba.S],s=e.y,u=e.O,c=e.f,d=e.N,p=e.ea,f=e.W,h=t.cc,m=t.dc,g=t.Mc,v=t.Nc,b=e.ka,y=e.ka+e.T,w=e.U,x=w+1>>1;for(0==b?l(s,u,null,null,c,d,p,f,c,d,p,f,i,a,null,null,w):(l(t.ec,t.fc,s,u,h,m,g,v,c,d,p,f,i,a-o.A,i,a,w),++n);b+2<y;b+=2)h=c,m=d,g=p,v=f,d+=e.Rc,f+=e.Rc,a+=2*o.A,l(s,(u+=2*e.fa)-e.fa,s,u,h,m,g,v,c,d,p,f,i,a-o.A,i,a,w);return u+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,s,u,w),r(t.cc,t.dc,c,d,x),r(t.Mc,t.Nc,p,f,x),n--):1&y||l(s,u,null,null,c,d,p,f,c,d,p,f,i,a+o.A,null,null,w),n}function de(e,n,r){var o=e.F,i=[e.J];if(null!=o){var a=e.U,l=n.ba.S,s=l==Br||l==Wr;n=n.ba.f.RGBA;var u=[0],c=e.ka;u[0]=e.T,e.Kb&&(0==c?--u[0]:(--c,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(u[0]=e.o-e.j-c));var d=n.eb;c=n.fb+c*n.A,e=Mr(o,i[0],e.width,a,u,d,c+(s?0:3),n.A),t(r==u),e&&re(l)&&Er(d,c,s,a,u,n.A)}return 0}function pe(e){var t=e.ma,n=t.ba.S,r=11>n,o=n==Fr||n==Zr||n==Br||n==zr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!jn(t.Oa,e,o?11:12))return 0;if(o&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ue,e.Kb){if(n=e.U+1>>1,t.memory=i(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ce,yn()}}else alert("todo:EmitYUV");o&&(t.Jb=de,r&&vn())}if(r&&!Ro){for(e=0;256>e;++e)To[e]=89858*(e-128)+Io>>Mo,jo[e]=-22014*(e-128)+Io,Oo[e]=-45773*(e-128),Do[e]=113618*(e-128)+Io>>Mo;for(e=Ao;e<ko;++e)t=76283*(e-16)+Io>>Mo,Fo[e-Ao]=We(t,255),_o[e-Ao]=We(t+8>>4,15);Ro=1}return 1}function fe(e){var n=e.ma,r=e.U,o=e.T;return t(!(1&e.ka)),0>=r||0>=o?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function he(e){e.ma.memory=null}function me(e,t,n,r){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),0!=y(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ve(e,t){return 120<t?t-120:1<=(n=((n=Xr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function be(e,t,n){var r=C(n),o=e[t+=255&r].g-8;return 0<o&&(E(n,n.u+8),r=C(n),t+=e[t].value,t+=r&(1<<o)-1),E(n,n.u+e[t].g),e[t].value}function ye(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function we(e,n,r){var o=e.xc;return t((n=0==o?0:e.vc[e.md*(r>>o)+(n>>o)])<e.Wb),e.Ya[n]}function xe(e,n,o,i){var a=e.ab,l=e.c*n,s=e.C;n=s+n;var u=o,c=i;for(i=e.Ta,o=e.Ua;0<a--;){var d=e.gc[a],p=s,f=n,h=u,m=c,g=(c=i,u=o,d.Ea);switch(t(p<f),t(f<=d.nc),d.hc){case 2:Gn(h,m,(f-p)*g,c,u);break;case 0:var v=p,b=f,y=c,w=u,x=(M=d).Ea;0==v&&(Un(h,m,null,null,1,y,w),W(h,m+1,0,0,x-1,y,w+1),m+=x,w+=x,++v);for(var C=1<<M.b,S=C-1,E=F(x,M.b),N=M.K,M=M.w+(v>>M.b)*E;v<b;){var I=N,A=M,k=1;for(Vn(h,m,y,w-x,1,y,w);k<x;){var P=(k&~S)+C;P>x&&(P=x),(0,Jn[I[A++]>>8&15])(h,m+ +k,y,w+k-x,P-k,y,w+k),k=P}m+=x,w+=x,++v&S||(M+=E)}f!=d.nc&&r(c,u-g,c,u+(f-p-1)*g,g);break;case 1:for(g=h,b=m,x=(h=d.Ea)-(w=h&~(y=(m=1<<d.b)-1)),v=F(h,d.b),C=d.K,d=d.w+(p>>d.b)*v;p<f;){for(S=C,E=d,N=new B,M=b+w,I=b+h;b<M;)V(S[E++],N),er(N,g,b,m,c,u),b+=m,u+=m;b<I&&(V(S[E++],N),er(N,g,b,x,c,u),b+=x,u+=x),++p&y||(d+=v)}break;case 3:if(h==c&&m==u&&0<d.b){for(b=c,h=g=u+(f-p)*g-(w=(f-p)*F(d.Ea,d.b)),m=c,y=u,v=[],w=(x=w)-1;0<=w;--w)v[w]=m[y+w];for(w=x-1;0<=w;--w)b[h+w]=v[w];Yn(d,p,f,c,g,c,u)}else Yn(d,p,f,h,m,c,u)}u=i,c=o}c!=o&&r(i,o,u,c,l)}function Ce(e,n){var r=e.V,o=e.Ba+e.c*e.C,i=n-e.C;if(t(n<=e.l.o),t(16>=i),0<i){var a=e.l,l=e.Ta,s=e.Ua,u=a.width;if(xe(e,i,r,o),i=s=[s],t((r=e.C)<(o=n)),t(a.v<a.va),o>a.o&&(o=a.o),r<a.j){var c=a.j-r;r=a.j,i[0]+=c*u}if(r>=o?r=0:(i[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=o-r,r=1),r){if(s=s[0],11>(r=e.ca).S){var d=r.f.RGBA,p=(o=r.S,i=a.U,a=a.T,c=d.eb,d.A),f=a;for(d=d.fb+e.Ma*d.A;0<f--;){var h=l,m=s,g=i,v=c,b=d;switch(o){case jr:tr(h,m,g,v,b);break;case Fr:nr(h,m,g,v,b);break;case $r:nr(h,m,g,v,b),Er(v,b,0,g,1,0);break;case _r:ir(h,m,g,v,b);break;case Zr:te(h,m,g,v,b,1);break;case qr:te(h,m,g,v,b,1),Er(v,b,0,g,1,0);break;case Br:te(h,m,g,v,b,0);break;case Wr:te(h,m,g,v,b,0),Er(v,b,1,g,1,0);break;case zr:rr(h,m,g,v,b);break;case Ur:rr(h,m,g,v,b),Nr(v,b,g,1,0);break;case Hr:or(h,m,g,v,b);break;default:t(0)}s+=u,d+=p}e.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Se(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Ee(e,n,r,o,i,a){if(0!=e.Z){var l=e.qd,s=e.rd;for(t(null!=vo[e.Z]);n<r;++n)vo[e.Z](l,s,o,i,o,i,a),l=o,s=i,i+=a;e.qd=l,e.rd=s}}function Ne(e,n){var r=e.l.ma,o=0==r.Z||1==r.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(n<=e.l.o),n>o){var i=e.l.width,a=r.ca,l=r.tb+i*o,s=e.V,u=e.Ba+e.c*o,c=e.gc;t(1==e.ab),t(3==c[0].hc),Qn(c[0],o,n,s,u,a,l),Ee(r,o,n,a,l,i)}e.C=e.Ma=n}function Me(e,n,r,o,i,a,l){var s=e.$/o,u=e.$%o,c=e.m,d=e.s,p=r+e.$,f=p;i=r+o*i;var h=r+o*a,m=280+d.ua,g=e.Pb?s:16777216,v=0<d.ua?d.Wa:null,b=d.wc,y=p<h?we(d,u,s):null;t(e.C<a),t(h<=i);var w=!1;e:for(;;){for(;w||p<h;){var x=0;if(s>=g){var M=p-r;t((g=e).Pb),g.wd=g.m,g.xd=M,0<g.s.ua&&D(g.s.Wa,g.s.vb),g=s+eo}if(u&b||(y=we(d,u,s)),t(null!=y),y.Qb&&(n[p]=y.qb,w=!0),!w)if(N(c),y.jc){x=c,M=n;var I=p,A=y.pd[C(x)&Bn-1];t(y.jc),256>A.g?(E(x,x.u+A.g),M[I]=A.value,x=0):(E(x,x.u+A.g-256),t(256<=A.value),x=A.value),0==x&&(w=!0)}else x=be(y.G[0],y.H[0],c);if(c.h)break;if(w||256>x){if(!w)if(y.nd)n[p]=(y.qb|x<<8)>>>0;else{if(N(c),w=be(y.G[1],y.H[1],c),N(c),M=be(y.G[2],y.H[2],c),I=be(y.G[3],y.H[3],c),c.h)break;n[p]=(I<<24|w<<16|x<<8|M)>>>0}if(w=!1,++p,++u>=o&&(u=0,++s,null!=l&&s<=a&&!(s%16)&&l(e,s),null!=v))for(;f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=ge(x-256,c),M=be(y.G[4],y.H[4],c),N(c),M=ve(o,M=ge(M,c)),c.h)break;if(p-r<M||i-p<x)break e;for(I=0;I<x;++I)n[p+I]=n[p+I-M];for(p+=x,u+=x;u>=o;)u-=o,++s,null!=l&&s<=a&&!(s%16)&&l(e,s);if(t(p<=i),u&b&&(y=we(d,u,s)),null!=v)for(;f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<m))break e;for(w=x-280,t(null!=v);f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=p,t(!(w>>>(M=v).Xa)),n[x]=M.X[w],w=!0}w||t(c.h==S(c))}if(e.Pb&&c.h&&p<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&D(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=l&&l(e,s>a?a:s),e.a=0,e.$=p-r}return 1}return e.a=3,0}function Ie(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Ae(){var t=new ln;return null==t?null:(t.a=0,t.xb=go,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Gn=U,er=G,tr=K,nr=Q,rr=X,or=J,ir=ee,e.VP8LMapColor32b=Kn,e.VP8LMapColor8b=Xn,t)}function ke(e,n,r,l,s){var u=1,p=[e],h=[n],m=l.m,g=l.s,v=null,b=0;e:for(;;){if(r)for(;u&&y(m,1);){var w=p,x=h,S=l,M=1,I=S.m,A=S.gc[S.ab],k=y(I,2);if(S.Oc&1<<k)u=0;else{switch(S.Oc|=1<<k,A.hc=k,A.Ea=w[0],A.nc=x[0],A.K=[null],++S.ab,t(4>=S.ab),k){case 0:case 1:A.b=y(I,3)+2,M=ke(F(A.Ea,A.b),F(A.nc,A.b),0,S,A.K),A.K=A.K[0];break;case 3:var P,L=y(I,8)+1,R=16<L?0:4<L?1:2<L?2:3;if(w[0]=F(A.Ea,R),A.b=R,P=M=ke(L,1,0,S,A.K)){var D,O=L,j=A,Z=1<<(8>>j.b),B=i(Z);if(null==B)P=0;else{var z=j.K[0],H=j.w;for(B[0]=j.K[0][0],D=1;D<1*O;++D)B[D]=_(z[H+D],B[D-1]);for(;D<4*Z;++D)B[D]=0;j.K[0]=null,j.K[0]=B,P=1}}M=P;break;case 2:break;default:t(0)}u=M}}if(p=p[0],h=h[0],u&&y(m,1)&&!(u=1<=(b=y(m,4))&&11>=b)){l.a=3;break e}var $;if($=u)t:{var q,W,U,V=l,G=p,Y=h,K=b,Q=r,X=V.m,J=V.s,ee=[null],te=1,ne=0,re=Jr[K];n:for(;;){if(Q&&y(X,1)){var oe=y(X,3)+2,ie=F(G,oe),ae=F(Y,oe),le=ie*ae;if(!ke(ie,ae,0,V,ee))break n;for(ee=ee[0],J.xc=oe,q=0;q<le;++q){var se=ee[q]>>8&65535;ee[q]=se,se>=te&&(te=se+1)}}if(X.h)break n;for(W=0;5>W;++W){var ue=Yr[W];!W&&0<K&&(ue+=1<<K),ne<ue&&(ne=ue)}var ce=a(te*re,d),de=te,pe=a(de,f);if(null==pe)var fe=null;else t(65536>=de),fe=pe;var he=i(ne);if(null==fe||null==he||null==ce){V.a=1;break n}var me=ce;for(q=U=0;q<te;++q){var ge=fe[q],ve=ge.G,be=ge.H,we=0,xe=1,Ce=0;for(W=0;5>W;++W){ue=Yr[W],ve[W]=me,be[W]=U,!W&&0<K&&(ue+=1<<K);r:{var Se,Ee=ue,Ne=V,Ae=he,Pe=me,Le=U,Re=0,Te=Ne.m,De=y(Te,1);if(o(Ae,0,0,Ee),De){var Oe=y(Te,1)+1,je=y(Te,1),Fe=y(Te,0==je?1:8);Ae[Fe]=1,2==Oe&&(Ae[Fe=y(Te,8)]=1);var _e=1}else{var Ze=i(19),Be=y(Te,4)+4;if(19<Be){Ne.a=3;var ze=0;break r}for(Se=0;Se<Be;++Se)Ze[Qr[Se]]=y(Te,3);var He=void 0,$e=void 0,qe=Ne,We=Ze,Ue=Ee,Ve=Ae,Ge=0,Ye=qe.m,Ke=8,Qe=a(128,d);o:for(;c(Qe,0,7,We,19);){if(y(Ye,1)){var Xe=2+2*y(Ye,3);if((He=2+y(Ye,Xe))>Ue)break o}else He=Ue;for($e=0;$e<Ue&&He--;){N(Ye);var Je=Qe[0+(127&C(Ye))];E(Ye,Ye.u+Je.g);var et=Je.value;if(16>et)Ve[$e++]=et,0!=et&&(Ke=et);else{var tt=16==et,nt=et-16,rt=Gr[nt],ot=y(Ye,Vr[nt])+rt;if($e+ot>Ue)break o;for(var it=tt?Ke:0;0<ot--;)Ve[$e++]=it}}Ge=1;break o}Ge||(qe.a=3),_e=Ge}(_e=_e&&!Te.h)&&(Re=c(Pe,Le,8,Ae,Ee)),_e&&0!=Re?ze=Re:(Ne.a=3,ze=0)}if(0==ze)break n;if(xe&&1==Kr[W]&&(xe=0==me[U].g),we+=me[U].g,U+=ze,3>=W){var at,lt=he[0];for(at=1;at<ue;++at)he[at]>lt&&(lt=he[at]);Ce+=lt}}if(ge.nd=xe,ge.Qb=0,xe&&(ge.qb=(ve[3][be[3]+0].value<<24|ve[1][be[1]+0].value<<16|ve[2][be[2]+0].value)>>>0,0==we&&256>ve[0][be[0]+0].value&&(ge.Qb=1,ge.qb+=ve[0][be[0]+0].value<<8)),ge.jc=!ge.Qb&&6>Ce,ge.jc){var st,ut=ge;for(st=0;st<Bn;++st){var ct=st,dt=ut.pd[ct],pt=ut.G[0][ut.H[0]+ct];256<=pt.value?(dt.g=pt.g+256,dt.value=pt.value):(dt.g=0,dt.value=0,ct>>=ye(pt,8,dt),ct>>=ye(ut.G[1][ut.H[1]+ct],16,dt),ct>>=ye(ut.G[2][ut.H[2]+ct],0,dt),ye(ut.G[3][ut.H[3]+ct],24,dt))}}}J.vc=ee,J.Wb=te,J.Ya=fe,J.yc=ce,$=1;break t}$=0}if(!(u=$)){l.a=3;break e}if(0<b){if(g.ua=1<<b,!T(g.Wa,b)){l.a=1,u=0;break e}}else g.ua=0;var ft=l,ht=p,mt=h,gt=ft.s,vt=gt.xc;if(ft.c=ht,ft.i=mt,gt.md=F(ht,vt),gt.wc=0==vt?-1:(1<<vt)-1,r){l.xb=mo;break e}if(null==(v=i(p*h))){l.a=1,u=0;break e}u=(u=Me(l,v,0,p,h,h,null))&&!m.h;break e}return u?(null!=s?s[0]=v:(t(null==v),t(r)),l.$=0,r||Ie(g)):Ie(g),u}function Pe(e,n){var r=e.c*e.i,o=r+n+16*n;return t(e.c<=n),e.V=i(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Le(e,n){var r=e.C,o=n-r,i=e.V,a=e.Ba+e.c*r;for(t(n<=e.l.o);0<o;){var l=16<o?16:o,s=e.l.ma,u=e.l.width,c=u*l,d=s.ca,p=s.tb+u*r,f=e.Ta,h=e.Ua;xe(e,l,i,a),_n(f,h,d,p,c),Ee(s,r,r+l,d,p,u),o-=l,i+=l*e.c,r+=l}t(r==n),e.C=e.Ma=n}function Re(){this.ub=this.yd=this.td=this.Rb=0}function Te(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function De(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Oe(){this.Yb=function(){var e=[];return function e(t,n,r){for(var o=r[n],i=0;i<o&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));i++)e(t[i],n+1,r)}(e,0,[3,11]),e}()}function je(){this.jb=i(3),this.Wc=l([4,8],Oe),this.Xc=l([4,17],Oe)}function Fe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function _e(){this.ld=this.La=this.dd=this.tc=0}function Ze(){this.Na=this.la=0}function Be(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ze(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new _e),this.Y=0,this.ya=Array(new ze),this.aa=0,this.l=new Ue}function $e(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Re,this.Kc=new Te,this.ed=new Fe,this.Qa=new De,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,Be),this.Pa=new je,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new $e),this.Hd=0,this.rb=Array(new Ze),this.sb=0,this.wa=Array(new _e),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ze),this.L=this.aa=0,this.gd=l([4,2],_e),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function We(e,t){return 0>e?0:e>t?t:e}function Ue(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ve(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ro||(ro=Qe)),e}function Ge(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ye(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ke(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ge(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,i=n.w,a=n.ha;if(4>a)return Ge(e,7,"Truncated header.");var l=r[i+0]|r[i+1]<<8|r[i+2]<<16,s=e.Od;if(s.Rb=!(1&l),s.td=l>>1&7,s.yd=l>>4&1,s.ub=l>>5,3<s.td)return Ge(e,3,"Incorrect keyframe parameters.");if(!s.yd)return Ge(e,4,"Frame not displayable.");i+=3,a-=3;var u=e.Kc;if(s.Rb){if(7>a)return Ge(e,7,"cannot parse picture header");if(!Ye(r,i,a))return Ge(e,3,"Bad code word");u.c=16383&(r[i+4]<<8|r[i+3]),u.Td=r[i+4]>>6,u.i=16383&(r[i+6]<<8|r[i+5]),u.Ud=r[i+6]>>6,i+=7,a-=7,e.za=u.c+15>>4,e.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,o((l=e.Pa).jb,0,255,l.jb.length),t(null!=(l=e.Qa)),l.Cb=0,l.Bb=0,l.Fb=1,o(l.Zb,0,0,l.Zb.length),o(l.Lb,0,0,l.Lb)}if(s.ub>a)return Ge(e,7,"bad partition length");h(l=e.m,r,i,s.ub),i+=s.ub,a-=s.ub,s.Rb&&(u.Ld=I(l),u.Kd=I(l)),u=e.Qa;var c,d=e.Pa;if(t(null!=l),t(null!=u),u.Cb=I(l),u.Cb){if(u.Bb=I(l),I(l)){for(u.Fb=I(l),c=0;4>c;++c)u.Zb[c]=I(l)?g(l,7):0;for(c=0;4>c;++c)u.Lb[c]=I(l)?g(l,6):0}if(u.Bb)for(c=0;3>c;++c)d.jb[c]=I(l)?m(l,8):255}else u.Bb=0;if(l.Ka)return Ge(e,3,"cannot parse segment header");if((u=e.ed).zd=I(l),u.Tb=m(l,6),u.wb=m(l,3),u.Pc=I(l),u.Pc&&I(l)){for(d=0;4>d;++d)I(l)&&(u.vd[d]=g(l,6));for(d=0;4>d;++d)I(l)&&(u.od[d]=g(l,6))}if(e.L=0==u.Tb?0:u.zd?1:2,l.Ka)return Ge(e,3,"cannot parse filter header");var p=a;if(a=c=i,i=c+p,u=p,e.Xb=(1<<m(e.m,2))-1,p<3*(d=e.Xb))r=7;else{for(c+=3*d,u-=3*d,p=0;p<d;++p){var f=r[a+0]|r[a+1]<<8|r[a+2]<<16;f>u&&(f=u),h(e.Jc[+p],r,c,f),c+=f,u-=f,a+=3}h(e.Jc[+d],r,c,u),r=c<i?0:5}if(0!=r)return Ge(e,r,"cannot parse partitions");for(r=m(c=e.m,7),a=I(c)?g(c,4):0,i=I(c)?g(c,4):0,u=I(c)?g(c,4):0,d=I(c)?g(c,4):0,c=I(c)?g(c,4):0,p=e.Qa,f=0;4>f;++f){if(p.Cb){var v=p.Zb[f];p.Fb||(v+=r)}else{if(0<f){e.pb[f]=e.pb[0];continue}v=r}var b=e.pb[f];b.Sc[0]=to[We(v+a,127)],b.Sc[1]=no[We(v+0,127)],b.Eb[0]=2*to[We(v+i,127)],b.Eb[1]=101581*no[We(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=to[We(v+d,117)],b.Qc[1]=no[We(v+c,127)],b.lc=v+c}if(!s.Rb)return Ge(e,4,"Not a key frame.");for(I(l),s=e.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(i=0;3>i;++i)for(u=0;11>u;++u)d=A(l,uo[r][a][i][u])?m(l,8):lo[r][a][i][u],s.Wc[r][a].Yb[i][u]=d;for(a=0;17>a;++a)s.Xc[r][a]=s.Wc[r][co[a]]}return e.kc=I(l),e.kc&&(e.Bd=m(l,8)),e.cb=1}function Qe(e,t,n,r,o,i,a){var l=t[o].Yb[n];for(n=0;16>o;++o){if(!A(e,l[n+0]))return o;for(;!A(e,l[n+1]);)if(l=t[++o].Yb[0],n=0,16==o)return 16;var s=t[o+1].Yb;if(A(e,l[n+2])){var u=e,c=0;if(A(u,(p=l)[(d=n)+3]))if(A(u,p[d+6])){for(l=0,d=2*(c=A(u,p[d+8]))+(p=A(u,p[d+9+c])),c=0,p=oo[d];p[l];++l)c+=c+A(u,p[l]);c+=3+(8<<d)}else A(u,p[d+7])?(c=7+2*A(u,165),c+=A(u,145)):c=5+A(u,159);else c=A(u,p[d+4])?3+A(u,p[d+5]):2;l=s[2]}else c=1,l=s[1];s=a+io[o],0>(u=e).b&&M(u);var d,p=u.b,f=(d=u.Ca>>1)-(u.I>>p)>>31;--u.b,u.Ca+=f,u.Ca|=1,u.I-=(d+1&f)<<p,i[s]=((c^f)-f)*r[(0<o)+0]}return 16}function Xe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function Je(e,n){if(null==e)return 0;if(null==n)return Ge(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ke(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var l=Bo[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-l>>4,e.zb=n.j-l>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+l>>4,e.Hb=n.va+15+l>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var s=e.ed;for(l=0;4>l;++l){var u;if(e.Qa.Cb){var c=e.Qa.Lb[l];e.Qa.Fb||(c+=s.Tb)}else c=s.Tb;for(u=0;1>=u;++u){var d=e.gd[l][u],p=c;if(s.Pc&&(p+=s.vd[0],u&&(p+=s.od[0])),0<(p=0>p?0:63<p?63:p)){var f=p;0<s.wb&&(f=4<s.wb?f>>2:f>>1)>9-s.wb&&(f=9-s.wb),1>f&&(f=1),d.dd=f,d.tc=2*p+f,d.ld=40<=p?2:15<=p?1:0}else d.tc=0;d.La=u}}}l=0}else Ge(e,6,"Frame setup failed"),l=e.a;if(l=0==l){if(l){e.$c=0,0<e.Aa||(e.Ic=Ho);e:{l=e.Ic,s=4*(f=e.za);var h=32*f,m=f+1,g=0<e.L?f*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*f;if((d=s+832+(u=3*(16*l+Bo[e.L])/2*h)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)l=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=i(d),e.Fc=0,null==e.Ec){l=Ge(e,1,"no memory during frame initialization.");break e}e.Vb=d}d=e.Ec,p=e.Fc,e.Ac=d,e.Bc=p,p+=s,e.Gd=a(h,$e),e.Hd=0,e.rb=a(m+1,Ze),e.sb=1,e.wa=g?a(g,_e):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=d,e.pc=p,p+=832,e.ya=a(v,ze),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(h=Bo[e.L])*e.R,h=h/2*e.B,e.sa=d,e.ta=p+f,e.qa=e.sa,e.ra=e.ta+16*l*e.R+h,e.Ha=e.qa,e.Ia=e.ra+8*l*e.B+h,e.$c=0,p+=u,e.mb=c?d:null,e.nb=c?p:null,t(p+c<=e.Fc+e.Vb),Xe(e),o(e.Ac,e.Bc,0,s),l=1}}if(l){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Lr){for(l=-255;255>=l;++l)Ir[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)Ar[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)kr[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Pr[255+l]=0>l?0:255<l?255:l;Lr=1}ar=ut,lr=it,ur=at,cr=lt,dr=st,sr=ot,pr=Gt,fr=Yt,hr=Xt,mr=Jt,gr=Kt,vr=Qt,br=en,yr=tn,wr=Ht,xr=$t,Cr=qt,Sr=Wt,fo[0]=Et,fo[1]=dt,fo[2]=Ct,fo[3]=St,fo[4]=Nt,fo[5]=It,fo[6]=Mt,fo[7]=At,fo[8]=Pt,fo[9]=kt,po[0]=vt,po[1]=ft,po[2]=ht,po[3]=mt,po[4]=bt,po[5]=yt,po[6]=wt,ho[0]=Dt,ho[1]=pt,ho[2]=Lt,ho[3]=Rt,ho[4]=jt,ho[5]=Ot,ho[6]=Ft,l=1}else l=0}l&&(l=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var a,l=e.Jc[e.M&e.Xb],s=e.m,u=e;for(a=0;a<u.za;++a){var c=s,d=u,p=d.Ac,f=d.Bc+4*a,h=d.zc,m=d.ya[d.aa+a];if(d.Qa.Bb?m.$b=A(c,d.Pa.jb[0])?2+A(c,d.Pa.jb[2]):A(c,d.Pa.jb[1]):m.$b=0,d.kc&&(m.Ad=A(c,d.Bd)),m.Za=!A(c,145)+0,m.Za){var g=m.Ob,v=0;for(d=0;4>d;++d){var b,y=h[0+d];for(b=0;4>b;++b){y=so[p[f+b]][y];for(var w=ao[A(c,y[0])];0<w;)w=ao[2*w+A(c,y[w])];y=-w,p[f+b]=y}r(g,v,p,f,4),v+=4,h[0+d]=y}}else y=A(c,156)?A(c,128)?1:3:A(c,163)?2:0,m.Ob[0]=y,o(p,f,y,4),o(h,0,y,4);m.Dd=A(c,142)?A(c,114)?A(c,183)?1:3:2:0}if(u.m.Ka)return Ge(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(u=l,c=(s=e).rb[s.sb-1],p=s.rb[s.sb+s.ja],a=s.ya[s.aa+s.ja],f=s.kc?a.Ad:0)c.la=p.la=0,a.Za||(c.Na=p.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var x,C;if(c=p,p=u,f=s.Pa.Xc,h=s.ya[s.aa+s.ja],m=s.pb[h.$b],d=h.ad,g=0,v=s.rb[s.sb-1],y=b=0,o(d,g,0,384),h.Za)var S=0,E=f[3];else{w=i(16);var N=c.Na+v.Na;if(N=ro(p,f[1],N,m.Eb,0,w,0),c.Na=v.Na=(0<N)+0,1<N)ar(w,0,d,g);else{var M=w[0]+3>>3;for(w=0;256>w;w+=16)d[g+w]=M}S=1,E=f[0]}var I=15&c.la,k=15&v.la;for(w=0;4>w;++w){var P=1&k;for(M=C=0;4>M;++M)I=I>>1|(P=(N=ro(p,E,N=P+(1&I),m.Sc,S,d,g))>S)<<7,C=C<<2|(3<N?3:1<N?2:0!=d[g+0]),g+=16;I>>=4,k=k>>1|P<<7,b=(b<<8|C)>>>0}for(E=I,S=k>>4,x=0;4>x;x+=2){for(C=0,I=c.la>>4+x,k=v.la>>4+x,w=0;2>w;++w){for(P=1&k,M=0;2>M;++M)N=P+(1&I),I=I>>1|(P=0<(N=ro(p,f[2],N,m.Qc,0,d,g)))<<3,C=C<<2|(3<N?3:1<N?2:0!=d[g+0]),g+=16;I>>=2,k=k>>1|P<<5}y|=C<<4*x,E|=I<<4<<x,S|=(240&k)<<x}c.la=E,v.la=S,h.Hc=b,h.Gc=y,h.ia=43690&y?0:m.ia,f=!(b|y)}if(0<s.L&&(s.wa[s.Y+s.ja]=s.gd[a.$b][a.Za],s.wa[s.Y+s.ja].La|=!f),u.Ka)return Ge(e,7,"Premature end-of-file encountered.")}if(Xe(e),s=n,u=1,a=(l=e).D,c=0<l.L&&l.M>=l.zb&&l.M<=l.Va,0==l.Aa)e:{if(a.M=l.M,a.uc=c,Dn(l,a),u=1,a=(C=l.D).Nb,c=(y=Bo[l.L])*l.R,p=y/2*l.B,w=16*a*l.R,M=8*a*l.B,f=l.sa,h=l.ta-c+w,m=l.qa,d=l.ra-p+M,g=l.Ha,v=l.Ia-p+M,k=0==(I=C.M),b=I>=l.Va-1,2==l.Aa&&Dn(l,C),C.uc)for(P=(N=l).D.M,t(N.D.uc),C=N.yb;C<N.Hb;++C){S=C,E=P;var L=(R=(z=N).D).Nb;x=z.R;var R=R.wa[R.Y+S],T=z.sa,D=z.ta+16*L*x+16*S,O=R.dd,j=R.tc;if(0!=j)if(t(3<=j),1==z.L)0<S&&xr(T,D,x,j+4),R.La&&Sr(T,D,x,j),0<E&&wr(T,D,x,j+4),R.La&&Cr(T,D,x,j);else{var F=z.B,_=z.qa,Z=z.ra+8*L*F+8*S,B=z.Ha,z=z.Ia+8*L*F+8*S;L=R.ld,0<S&&(fr(T,D,x,j+4,O,L),mr(_,Z,B,z,F,j+4,O,L)),R.La&&(vr(T,D,x,j,O,L),yr(_,Z,B,z,F,j,O,L)),0<E&&(pr(T,D,x,j+4,O,L),hr(_,Z,B,z,F,j+4,O,L)),R.La&&(gr(T,D,x,j,O,L),br(_,Z,B,z,F,j,O,L))}}if(l.ia&&alert("todo:DitherRow"),null!=s.put){if(C=16*I,I=16*(I+1),k?(s.y=l.sa,s.O=l.ta+w,s.f=l.qa,s.N=l.ra+M,s.ea=l.Ha,s.W=l.Ia+M):(C-=y,s.y=f,s.O=h,s.f=m,s.N=d,s.ea=g,s.W=v),b||(I-=y),I>s.o&&(I=s.o),s.F=null,s.J=null,null!=l.Fa&&0<l.Fa.length&&C<I&&(s.J=pn(l,s,C,I-C),s.F=l.mb,null==s.F&&0==s.F.length)){u=Ge(l,3,"Could not decode alpha data.");break e}C<s.j&&(y=s.j-C,C=s.j,t(!(1&y)),s.O+=l.R*y,s.N+=l.B*(y>>1),s.W+=l.B*(y>>1),null!=s.F&&(s.J+=s.width*y)),C<I&&(s.O+=s.v,s.N+=s.v>>1,s.W+=s.v>>1,null!=s.F&&(s.J+=s.v),s.ka=C-s.j,s.U=s.va-s.v,s.T=I-C,u=s.put(s))}a+1!=l.Ic||b||(r(l.sa,l.ta-c,f,h+16*l.R,c),r(l.qa,l.ra-p,m,d+8*l.B,p),r(l.Ha,l.Ia-p,g,v+8*l.B,p))}if(!u)return Ge(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),l&=1}return l?(e.cb=0,l):0}function et(e,t,n,r,o){o=e[t+n+32*r]+(o>>3),e[t+n+32*r]=-256&o?0>o?0:255:o}function tt(e,t,n,r,o,i){et(e,t,0,n,r+o),et(e,t,1,n,r+i),et(e,t,2,n,r-i),et(e,t,3,n,r-o)}function nt(e){return(20091*e>>16)+e}function rt(e,t,n,r){var o,a=0,l=i(16);for(o=0;4>o;++o){var s=e[t+0]+e[t+8],u=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-nt(e[t+12]),d=nt(e[t+4])+(35468*e[t+12]>>16);l[a+0]=s+d,l[a+1]=u+c,l[a+2]=u-c,l[a+3]=s-d,a+=4,t++}for(o=a=0;4>o;++o)s=(e=l[a+0]+4)+l[a+8],u=e-l[a+8],c=(35468*l[a+4]>>16)-nt(l[a+12]),et(n,r,0,0,s+(d=nt(l[a+4])+(35468*l[a+12]>>16))),et(n,r,1,0,u+c),et(n,r,2,0,u-c),et(n,r,3,0,s-d),a++,r+=32}function ot(e,t,n,r){var o=e[t+0]+4,i=35468*e[t+4]>>16,a=nt(e[t+4]),l=35468*e[t+1]>>16;tt(n,r,0,o+a,e=nt(e[t+1]),l),tt(n,r,1,o+i,e,l),tt(n,r,2,o-i,e,l),tt(n,r,3,o-a,e,l)}function it(e,t,n,r,o){rt(e,t,n,r),o&&rt(e,t+16,n,r+4)}function at(e,t,n,r){lr(e,t+0,n,r,1),lr(e,t+32,n,r+128,1)}function lt(e,t,n,r){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)et(n,r,t,o,e)}function st(e,t,n,r){e[t+0]&&cr(e,t+0,n,r),e[t+16]&&cr(e,t+16,n,r+4),e[t+32]&&cr(e,t+32,n,r+128),e[t+48]&&cr(e,t+48,n,r+128+4)}function ut(e,t,n,r){var o,a=i(16);for(o=0;4>o;++o){var l=e[t+0+o]+e[t+12+o],s=e[t+4+o]+e[t+8+o],u=e[t+4+o]-e[t+8+o],c=e[t+0+o]-e[t+12+o];a[0+o]=l+s,a[8+o]=l-s,a[4+o]=c+u,a[12+o]=c-u}for(o=0;4>o;++o)l=(e=a[0+4*o]+3)+a[3+4*o],s=a[1+4*o]+a[2+4*o],u=a[1+4*o]-a[2+4*o],c=e-a[3+4*o],n[r+0]=l+s>>3,n[r+16]=c+u>>3,n[r+32]=l-s>>3,n[r+48]=c-u>>3,r+=64}function ct(e,t,n){var r,o=t-32,i=Dr,a=255-e[o-1];for(r=0;r<n;++r){var l,s=i,u=a+e[t-1];for(l=0;l<n;++l)e[t+l]=s[u+e[o+l]];t+=32}}function dt(e,t){ct(e,t,4)}function pt(e,t){ct(e,t,8)}function ft(e,t){ct(e,t,16)}function ht(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function mt(e,t){var n;for(n=16;0<n;--n)o(e,t,e[t-1],16),t+=32}function gt(e,t,n){var r;for(r=0;16>r;++r)o(t,n+32*r,e,16)}function vt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];gt(r>>5,e,t)}function bt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];gt(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];gt(r>>4,e,t)}function wt(e,t){gt(128,e,t)}function xt(e,t,n){return e+2*t+n+2>>2}function Ct(e,t){var n,o=t-32;for(o=new Uint8Array([xt(e[o-1],e[o+0],e[o+1]),xt(e[o+0],e[o+1],e[o+2]),xt(e[o+1],e[o+2],e[o+3]),xt(e[o+2],e[o+3],e[o+4])]),n=0;4>n;++n)r(e,t+32*n,o,0,o.length)}function St(e,t){var n=e[t-1],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];k(e,t+0,16843009*xt(e[t-1-32],n,r)),k(e,t+32,16843009*xt(n,r,o)),k(e,t+64,16843009*xt(r,o,i)),k(e,t+96,16843009*xt(o,i,i))}function Et(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)o(e,t+32*n,r,4)}function Nt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],l=e[t+1-32],s=e[t+2-32],u=e[t+3-32];e[t+0+96]=xt(r,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=xt(n,r,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=xt(i,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=xt(a,i,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=xt(l,a,i),e[t+3+32]=e[t+2+0]=xt(s,l,a),e[t+3+0]=xt(u,s,l)}function Mt(e,t){var n=e[t+1-32],r=e[t+2-32],o=e[t+3-32],i=e[t+4-32],a=e[t+5-32],l=e[t+6-32],s=e[t+7-32];e[t+0+0]=xt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=xt(n,r,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=xt(r,o,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=xt(o,i,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=xt(i,a,l),e[t+3+64]=e[t+2+96]=xt(a,l,s),e[t+3+96]=xt(l,s,s)}function It(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],l=e[t+1-32],s=e[t+2-32],u=e[t+3-32];e[t+0+0]=e[t+1+64]=i+a+1>>1,e[t+1+0]=e[t+2+64]=a+l+1>>1,e[t+2+0]=e[t+3+64]=l+s+1>>1,e[t+3+0]=s+u+1>>1,e[t+0+96]=xt(o,r,n),e[t+0+64]=xt(r,n,i),e[t+0+32]=e[t+1+96]=xt(n,i,a),e[t+1+32]=e[t+2+96]=xt(i,a,l),e[t+2+32]=e[t+3+96]=xt(a,l,s),e[t+3+32]=xt(l,s,u)}function At(e,t){var n=e[t+0-32],r=e[t+1-32],o=e[t+2-32],i=e[t+3-32],a=e[t+4-32],l=e[t+5-32],s=e[t+6-32],u=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+o+1>>1,e[t+2+0]=e[t+1+64]=o+i+1>>1,e[t+3+0]=e[t+2+64]=i+a+1>>1,e[t+0+32]=xt(n,r,o),e[t+1+32]=e[t+0+96]=xt(r,o,i),e[t+2+32]=e[t+1+96]=xt(o,i,a),e[t+3+32]=e[t+2+96]=xt(i,a,l),e[t+3+64]=xt(a,l,s),e[t+3+96]=xt(l,s,u)}function kt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+o+1>>1,e[t+2+32]=e[t+0+64]=o+i+1>>1,e[t+1+0]=xt(n,r,o),e[t+3+0]=e[t+1+32]=xt(r,o,i),e[t+3+32]=e[t+1+64]=xt(o,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Pt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96],a=e[t-1-32],l=e[t+0-32],s=e[t+1-32],u=e[t+2-32];e[t+0+0]=e[t+2+32]=n+a+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=o+r+1>>1,e[t+0+96]=i+o+1>>1,e[t+3+0]=xt(l,s,u),e[t+2+0]=xt(a,l,s),e[t+1+0]=e[t+3+32]=xt(n,a,l),e[t+1+32]=e[t+3+64]=xt(r,n,a),e[t+1+64]=e[t+3+96]=xt(o,r,n),e[t+1+96]=xt(i,o,r)}function Lt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Rt(e,t){var n;for(n=0;8>n;++n)o(e,t,e[t-1],8),t+=32}function Tt(e,t,n){var r;for(r=0;8>r;++r)o(t,n+32*r,e,8)}function Dt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Tt(r>>4,e,t)}function Ot(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Tt(r>>3,e,t)}function jt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Tt(r>>3,e,t)}function Ft(e,t){Tt(128,e,t)}function _t(e,t,n){var r=e[t-n],o=e[t+0],i=3*(o-r)+Rr[1020+e[t-2*n]-e[t+n]],a=Tr[112+(i+4>>3)];e[t-n]=Dr[255+r+Tr[112+(i+3>>3)]],e[t+0]=Dr[255+o-a]}function Zt(e,t,n,r){var o=e[t+0],i=e[t+n];return Or[255+e[t-2*n]-e[t-n]]>r||Or[255+i-o]>r}function Bt(e,t,n,r){return 4*Or[255+e[t-n]-e[t+0]]+Or[255+e[t-2*n]-e[t+n]]<=r}function zt(e,t,n,r,o){var i=e[t-3*n],a=e[t-2*n],l=e[t-n],s=e[t+0],u=e[t+n],c=e[t+2*n],d=e[t+3*n];return 4*Or[255+l-s]+Or[255+a-u]>r?0:Or[255+e[t-4*n]-i]<=o&&Or[255+i-a]<=o&&Or[255+a-l]<=o&&Or[255+d-c]<=o&&Or[255+c-u]<=o&&Or[255+u-s]<=o}function Ht(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Bt(e,t+r,n,o)&&_t(e,t+r,n)}function $t(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Bt(e,t+r*n,1,o)&&_t(e,t+r*n,1)}function qt(e,t,n,r){var o;for(o=3;0<o;--o)Ht(e,t+=4*n,n,r)}function Wt(e,t,n,r){var o;for(o=3;0<o;--o)$t(e,t+=4,n,r)}function Ut(e,t,n,r,o,i,a,l){for(i=2*i+1;0<o--;){if(zt(e,t,n,i,a))if(Zt(e,t,n,l))_t(e,t,n);else{var s=e,u=t,c=n,d=s[u-2*c],p=s[u-c],f=s[u+0],h=s[u+c],m=s[u+2*c],g=27*(b=Rr[1020+3*(f-p)+Rr[1020+d-h]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;s[u-3*c]=Dr[255+s[u-3*c]+b],s[u-2*c]=Dr[255+d+v],s[u-c]=Dr[255+p+g],s[u+0]=Dr[255+f-g],s[u+c]=Dr[255+h-v],s[u+2*c]=Dr[255+m-b]}t+=r}}function Vt(e,t,n,r,o,i,a,l){for(i=2*i+1;0<o--;){if(zt(e,t,n,i,a))if(Zt(e,t,n,l))_t(e,t,n);else{var s=e,u=t,c=n,d=s[u-c],p=s[u+0],f=s[u+c],h=Tr[112+(4+(m=3*(p-d))>>3)],m=Tr[112+(m+3>>3)],g=h+1>>1;s[u-2*c]=Dr[255+s[u-2*c]+g],s[u-c]=Dr[255+d+m],s[u+0]=Dr[255+p-h],s[u+c]=Dr[255+f-g]}t+=r}}function Gt(e,t,n,r,o,i){Ut(e,t,n,1,16,r,o,i)}function Yt(e,t,n,r,o,i){Ut(e,t,1,n,16,r,o,i)}function Kt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Vt(e,t+=4*n,n,1,16,r,o,i)}function Qt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Vt(e,t+=4,1,n,16,r,o,i)}function Xt(e,t,n,r,o,i,a,l){Ut(e,t,o,1,8,i,a,l),Ut(n,r,o,1,8,i,a,l)}function Jt(e,t,n,r,o,i,a,l){Ut(e,t,1,o,8,i,a,l),Ut(n,r,1,o,8,i,a,l)}function en(e,t,n,r,o,i,a,l){Vt(e,t+4*o,o,1,8,i,a,l),Vt(n,r+4*o,o,1,8,i,a,l)}function tn(e,t,n,r,o,i,a,l){Vt(e,t+4,1,o,8,i,a,l),Vt(n,r+4,1,o,8,i,a,l)}function nn(){this.ba=new ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new se,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new d}function ln(){this.xb=this.a=0,this.l=new Ue,this.ca=new ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,on),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ue,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(e,t,n,r,o,i,a){for(e=null==e?0:e[t+0],t=0;t<a;++t)o[i+t]=e+n[r+t]&255,e=o[i+t]}function cn(e,t,n,r,o,i,a){var l;if(null==e)un(null,null,n,r,o,i,a);else for(l=0;l<a;++l)o[i+l]=e[t+l]+n[r+l]&255}function dn(e,t,n,r,o,i,a){if(null==e)un(null,null,n,r,o,i,a);else{var l,s=e[t+0],u=s,c=s;for(l=0;l<a;++l)u=c+(s=e[t+l])-u,c=n[r+l]+(-256&u?0>u?0:255:u)&255,u=s,o[i+l]=c}}function pn(e,n,o,a){var l=n.width,s=n.o;if(t(null!=e&&null!=n),0>o||0>=a||o+a>s)return null;if(!e.Cc){if(null==e.ga){var u;if(e.ga=new sn,(u=null==e.ga)||(u=n.width*n.o,t(0==e.Gb.length),e.Gb=i(u),e.Uc=0,null==e.Gb?u=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,u=1),u=!u),!u){u=e.ga;var c=e.Fa,d=e.P,p=e.qc,f=e.mb,h=e.nb,m=d+1,g=p-1,b=u.l;if(t(null!=c&&null!=f&&null!=n),vo[0]=null,vo[1]=un,vo[2]=cn,vo[3]=dn,u.ca=f,u.tb=h,u.c=n.width,u.i=n.height,t(0<u.c&&0<u.i),1>=p)n=0;else if(u.$a=c[d+0]>>0&3,u.Z=c[d+0]>>2&3,u.Lc=c[d+0]>>4&3,d=c[d+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||d)n=0;else if(b.put=fe,b.ac=pe,b.bc=he,b.ma=u,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,u.$a)e:{t(1==u.$a),n=Ae();t:for(;;){if(null==n){n=0;break e}if(t(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,c,m,g),!ke(u.c,u.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&Se(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Pe(n,u.c)),!n)break t;n=1;break e}u.mc=null,n=0}else n=g>=u.c*u.i;u=!n}if(u)return null;1!=e.ga.Lc?e.Ga=0:a=s-o}t(null!=e.ga),t(o+a<=s);e:{if(n=(c=e.ga).c,s=c.l.o,0==c.$a){if(m=e.rc,g=e.Vc,b=e.Fa,d=e.P+1+o*n,p=e.mb,f=e.nb+o*n,t(d<=e.P+e.qc),0!=c.Z)for(t(null!=vo[c.Z]),u=0;u<a;++u)vo[c.Z](m,g,b,d,p,f,n),m=p,g=f,f+=n,d+=n;else for(u=0;u<a;++u)r(p,f,b,d,n),m=p,g=f,f+=n,d+=n;e.rc=m,e.Vc=g}else{if(t(null!=c.mc),n=o+a,t(null!=(u=c.mc)),t(n<=u.i),u.C>=n)n=1;else if(c.ic||vn(),c.ic){c=u.V,m=u.Ba,g=u.c;var y=u.i,w=(b=1,d=u.$/g,p=u.$%g,f=u.m,h=u.s,u.$),x=g*y,C=g*n,E=h.wc,M=w<C?we(h,p,d):null;t(w<=x),t(n<=y),t(Se(h));t:for(;;){for(;!f.h&&w<C;){if(p&E||(M=we(h,p,d)),t(null!=M),N(f),256>(y=be(M.G[0],M.H[0],f)))c[m+w]=y,++w,++p>=g&&(p=0,++d<=n&&!(d%16)&&Ne(u,d));else{if(!(280>y)){b=0;break t}y=ge(y-256,f);var I,A=be(M.G[4],M.H[4],f);if(N(f),!(w>=(A=ve(g,A=ge(A,f)))&&x-w>=y)){b=0;break t}for(I=0;I<y;++I)c[m+w+I]=c[m+w+I-A];for(w+=y,p+=y;p>=g;)p-=g,++d<=n&&!(d%16)&&Ne(u,d);w<C&&p&E&&(M=we(h,p,d))}t(f.h==S(f))}Ne(u,d>n?n:d);break t}!b||f.h&&w<x?(b=0,u.a=f.h?5:3):u.$=w,n=b}else n=Me(u,u.V,u.Ba,u.c,u.i,n,Le);if(!n){a=0;break e}}o+a>=s&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*l}function fn(e,t,n,r,o,i){for(;0<o--;){var a,l=e,s=t+(n?1:0),u=e,c=t+(n?0:3);for(a=0;a<r;++a){var d=u[c+4*a];255!=d&&(d*=32897,l[s+4*a+0]=l[s+4*a+0]*d>>23,l[s+4*a+1]=l[s+4*a+1]*d>>23,l[s+4*a+2]=l[s+4*a+2]*d>>23)}t+=i}}function hn(e,t,n,r,o){for(;0<r--;){var i;for(i=0;i<n;++i){var a=e[t+2*i+0],l=15&(u=e[t+2*i+1]),s=4369*l,u=(240&u|u>>4)*s>>16;e[t+2*i+0]=(240&a|a>>4)*s>>16&240|(15&a|a<<4)*s>>16>>4&15,e[t+2*i+1]=240&u|l}t+=o}}function mn(e,t,n,r,o,i,a,l){var s,u,c=255;for(u=0;u<o;++u){for(s=0;s<r;++s){var d=e[t+s];i[a+4*s]=d,c&=d}t+=n,a+=l}return 255!=c}function gn(e,t,n,r,o){var i;for(i=0;i<o;++i)n[r+i]=e[t+i]>>8}function vn(){Er=fn,Nr=hn,Mr=mn,_n=gn}function bn(n,r,o){e[n]=function(e,n,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y){var w,x=y-1>>1,C=l[s+0]|u[c+0]<<16,S=d[p+0]|f[h+0]<<16;t(null!=e);var E=3*C+S+131074>>2;for(r(e[n+0],255&E,E>>16,m,g),null!=i&&(E=3*S+C+131074>>2,r(i[a+0],255&E,E>>16,v,b)),w=1;w<=x;++w){var N=l[s+w]|u[c+w]<<16,M=d[p+w]|f[h+w]<<16,I=C+N+S+M+524296,A=I+2*(N+S)>>3;E=A+C>>1,C=(I=I+2*(C+M)>>3)+N>>1,r(e[n+2*w-1],255&E,E>>16,m,g+(2*w-1)*o),r(e[n+2*w-0],255&C,C>>16,m,g+(2*w-0)*o),null!=i&&(E=I+S>>1,C=A+M>>1,r(i[a+2*w-1],255&E,E>>16,v,b+(2*w-1)*o),r(i[a+2*w+0],255&C,C>>16,v,b+(2*w+0)*o)),C=N,S=M}1&y||(E=3*C+S+131074>>2,r(e[n+y-1],255&E,E>>16,m,g+(y-1)*o),null!=i&&(E=3*S+C+131074>>2,r(i[a+y-1],255&E,E>>16,v,b+(y-1)*o)))}}function yn(){bo[jr]=yo,bo[Fr]=xo,bo[_r]=wo,bo[Zr]=Co,bo[Br]=So,bo[zr]=Eo,bo[Hr]=No,bo[$r]=xo,bo[qr]=Co,bo[Wr]=So,bo[Ur]=Eo}function wn(e){return e&~Lo?0>e?0:255:e>>Po}function xn(e,t){return wn((19077*e>>8)+(26149*t>>8)-14234)}function Cn(e,t,n){return wn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Sn(e,t){return wn((19077*e>>8)+(33050*t>>8)-17685)}function En(e,t,n,r,o){r[o+0]=xn(e,n),r[o+1]=Cn(e,t,n),r[o+2]=Sn(e,t)}function Nn(e,t,n,r,o){r[o+0]=Sn(e,t),r[o+1]=Cn(e,t,n),r[o+2]=xn(e,n)}function Mn(e,t,n,r,o){var i=Cn(e,t,n);t=i<<3&224|Sn(e,t)>>3,r[o+0]=248&xn(e,n)|i>>5,r[o+1]=t}function In(e,t,n,r,o){var i=240&Sn(e,t)|15;r[o+0]=240&xn(e,n)|Cn(e,t,n)>>4,r[o+1]=i}function An(e,t,n,r,o){r[o+0]=255,En(e,t,n,r,o+1)}function kn(e,t,n,r,o){Nn(e,t,n,r,o),r[o+3]=255}function Pn(e,t,n,r,o){En(e,t,n,r,o),r[o+3]=255}function We(e,t){return 0>e?0:e>t?t:e}function Ln(t,n,r){e[t]=function(e,t,o,i,a,l,s,u,c){for(var d=u+(-2&c)*r;u!=d;)n(e[t+0],o[i+0],a[l+0],s,u),n(e[t+1],o[i+0],a[l+0],s,u+r),t+=2,++i,++l,u+=2*r;1&c&&n(e[t+0],o[i+0],a[l+0],s,u)}}function Rn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Tn(e,t,n,r,o){switch(e>>>30){case 3:lr(t,n,r,o,0);break;case 2:sr(t,n,r,o);break;case 1:cr(t,n,r,o)}}function Dn(e,t){var n,i,a=t.M,l=t.Nb,s=e.oc,u=e.pc+40,c=e.oc,d=e.pc+584,p=e.oc,f=e.pc+600;for(n=0;16>n;++n)s[u+32*n-1]=129;for(n=0;8>n;++n)c[d+32*n-1]=129,p[f+32*n-1]=129;for(0<a?s[u-1-32]=c[d-1-32]=p[f-1-32]=129:(o(s,u-32-1,127,21),o(c,d-32-1,127,9),o(p,f-32-1,127,9)),i=0;i<e.za;++i){var h=t.ya[t.aa+i];if(0<i){for(n=-1;16>n;++n)r(s,u+32*n-4,s,u+32*n+12,4);for(n=-1;8>n;++n)r(c,d+32*n-4,c,d+32*n+4,4),r(p,f+32*n-4,p,f+32*n+4,4)}var m=e.Gd,g=e.Hd+i,v=h.ad,b=h.Hc;if(0<a&&(r(s,u-32,m[g].y,0,16),r(c,d-32,m[g].f,0,8),r(p,f-32,m[g].ea,0,8)),h.Za){var y=s,w=u-32+16;for(0<a&&(i>=e.za-1?o(y,w,m[g].y[15],4):r(y,w,m[g+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=s,w=u+Zo[n],fo[h.Ob[n]](y,w),Tn(b,v,16*+n,y,w)}else if(y=Rn(i,a,h.Ob[0]),po[y](s,u),0!=b)for(n=0;16>n;++n,b<<=2)Tn(b,v,16*+n,s,u+Zo[n]);for(n=h.Gc,y=Rn(i,a,h.Dd),ho[y](c,d),ho[y](p,f),b=v,y=c,w=d,255&(h=n>>0)&&(170&h?ur(b,256,y,w):dr(b,256,y,w)),h=p,b=f,255&(n>>=8)&&(170&n?ur(v,320,h,b):dr(v,320,h,b)),a<e.Ub-1&&(r(m[g].y,0,s,u+480,16),r(m[g].f,0,c,d+224,8),r(m[g].ea,0,p,f+224,8)),n=8*l*e.B,m=e.sa,g=e.ta+16*i+16*l*e.R,v=e.qa,h=e.ra+8*i+n,b=e.Ha,y=e.Ia+8*i+n,n=0;16>n;++n)r(m,g+n*e.R,s,u+32*n,16);for(n=0;8>n;++n)r(v,h+n*e.B,c,d+32*n,8),r(b,y+n*e.B,p,f+32*n,8)}}function On(e,r,o,i,a,l,s,u,c){var d=[0],p=[0],f=0,h=null!=c?c.kd:0,m=null!=c?c:new rn;if(null==e||12>o)return 7;m.data=e,m.w=r,m.ha=o,r=[r],o=[o],m.gb=[m.gb];e:{var g=r,b=o,y=m.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){y=3;break e}var w=R(e,g[0]+4);if(12>w||4294967286<w){y=3;break e}if(h&&w>b[0]-8){y=7;break e}y[0]=w,g[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<m.gb[0],o=o[0];;){e:{var C=e;b=r,y=o;var S=d,E=p,N=g=[0];if((A=f=[f])[0]=0,8>y[0])y=7;else{if(!n(C,b[0],"VP8X")){if(10!=R(C,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var M=R(C,b[0]+8),I=1+L(C,b[0]+12);if(2147483648<=I*(C=1+L(C,b[0]+15))){y=3;break e}null!=N&&(N[0]=M),null!=S&&(S[0]=I),null!=E&&(E[0]=C),b[0]+=18,y[0]-=18,A[0]=1}y=0}}if(f=f[0],g=g[0],0!=y)return y;if(b=!!(2&g),!w&&f)return 3;if(null!=l&&(l[0]=!!(16&g)),null!=s&&(s[0]=b),null!=u&&(u[0]=0),s=d[0],g=p[0],f&&b&&null==c){y=0;break}if(4>o){y=7;break}if(w&&f||!w&&!f&&!n(e,r[0],"ALPH")){o=[o],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];e:{M=e,y=r,w=o;var A=m.gb;S=m.na,E=m.P,N=m.Sa,I=22,t(null!=M),t(null!=w),C=y[0];var k=w[0];for(t(null!=S),t(null!=N),S[0]=null,E[0]=null,N[0]=0;;){if(y[0]=C,w[0]=k,8>k){y=7;break e}var P=R(M,C+4);if(4294967286<P){y=3;break e}var T=8+P+1&-2;if(I+=T,0<A&&I>A){y=3;break e}if(!n(M,C,"VP8 ")||!n(M,C,"VP8L")){y=0;break e}if(k[0]<T){y=7;break e}n(M,C,"ALPH")||(S[0]=M,E[0]=C+8,N[0]=P),C+=T,k-=T}}if(o=o[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=y)break}o=[o],m.Ja=[m.Ja],m.xa=[m.xa];e:if(A=e,y=r,w=o,S=m.gb[0],E=m.Ja,N=m.xa,M=y[0],C=!n(A,M,"VP8 "),I=!n(A,M,"VP8L"),t(null!=A),t(null!=w),t(null!=E),t(null!=N),8>w[0])y=7;else{if(C||I){if(A=R(A,M+4),12<=S&&A>S-12){y=3;break e}if(h&&A>w[0]-8){y=7;break e}E[0]=A,y[0]+=8,w[0]-=8,N[0]=I}else N[0]=5<=w[0]&&47==A[M+0]&&!(A[M+4]>>5),E[0]=w[0];y=0}if(o=o[0],m.Ja=m.Ja[0],m.xa=m.xa[0],r=r[0],0!=y)break;if(4294967286<m.Ja)return 3;if(null==u||b||(u[0]=m.xa?2:1),s=[s],g=[g],m.xa){if(5>o){y=7;break}u=s,h=g,b=l,null==e||5>o?e=0:5<=o&&47==e[r+0]&&!(e[r+4]>>5)?(w=[0],A=[0],S=[0],v(E=new x,e,r,o),me(E,w,A,S)?(null!=u&&(u[0]=w[0]),null!=h&&(h[0]=A[0]),null!=b&&(b[0]=S[0]),e=1):e=0):e=0}else{if(10>o){y=7;break}u=g,null==e||10>o||!Ye(e,r+3,o-3)?e=0:(h=e[r+0]|e[r+1]<<8|e[r+2]<<16,b=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&h||3<(h>>1&7)||!(h>>4&1)||h>>5>=m.Ja||!b||!e?e=0:(s&&(s[0]=b),u&&(u[0]=e),e=1))}if(!e)return 3;if(s=s[0],g=g[0],f&&(d[0]!=s||p[0]!=g))return 3;null!=c&&(c[0]=m,c.offset=r-c.w,t(4294967286>r-c.w),t(c.offset==c.ha-o));break}return 0==y||7==y&&f&&null==c?(null!=l&&(l[0]|=null!=m.na&&0<m.na.length),null!=i&&(i[0]=s),null!=a&&(a[0]=g),0):y}function jn(e,t,n){var r=t.width,o=t.height,i=0,a=0,l=r,s=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(l=e.cd,s=e.bd,i=e.v,a=e.j,11>n||(i&=-2,a&=-2),0>i||0>a||0>=l||0>=s||i+l>r||a+s>o))return 0;if(t.v=i,t.j=a,t.va=i+l,t.o=a+s,t.U=l,t.T=s,t.da=null!=e&&0<e.da,t.da){if(!j(l,s,n=[e.ib],i=[e.hb]))return 0;t.ib=n[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*o/4,t.Kb=0),1}function Fn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Zn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var o=n.cd,a=n.bd,l=-2&n.v,s=-2&n.j;if(0>l||0>s||0>=o||0>=a||l+o>e||s+a>t)return 2;e=o,t=a}if(n.da){if(!j(e,t,o=[n.ib],a=[n.hb]))return 2;e=o[0],t=a[0]}}r.width=e,r.height=t;e:{var u=r.width,c=r.height;if(e=r.S,0>=u||0>=c||!(e>=jr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){l=a=o=t=0;var d=(s=u*$o[e])*c;if(11>e||(a=(c+1)/2*(t=(u+1)/2),12==e&&(l=(o=u)*c)),null==(c=i(d+2*a+l))){e=1;break e}r.sd=c,11>e?((u=r.f.RGBA).eb=c,u.fb=0,u.A=s,u.size=d):((u=r.f.kb).y=c,u.O=0,u.fa=s,u.Fd=d,u.f=c,u.N=0+d,u.Ab=t,u.Cd=a,u.ea=c,u.W=0+d+a,u.Db=t,u.Ed=a,12==e&&(u.F=c,u.J=0+d+2*a),u.Tc=l,u.lb=o)}if(t=1,o=r.S,a=r.width,l=r.height,o>=jr&&13>o)if(11>o)e=r.f.RGBA,t&=(s=Math.abs(e.A))*(l-1)+a<=e.size,t&=s>=a*$o[o],t&=null!=e.eb;else{e=r.f.kb,s=(a+1)/2,d=(l+1)/2,u=Math.abs(e.fa),c=Math.abs(e.Ab);var p=Math.abs(e.Db),f=Math.abs(e.lb),h=f*(l-1)+a;t&=u*(l-1)+a<=e.Fd,t&=c*(d-1)+s<=e.Cd,t=(t&=p*(d-1)+s<=e.Ed)&u>=a&c>=s&p>=s,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=f>=a,t&=h<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Fn(r)),e}var Bn=64,zn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Hn=24,$n=32,qn=8,Wn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Z("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return z(z(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return z(e,t[n-1])},e.Predictor7=function(e,t,n){return z(e,t[n+0])},e.Predictor8=function(e,t,n){return z(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return z(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return z(z(e,t[n-1]),z(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=q(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+q(r>>16&255,e>>16&255,t>>16&255)+q(r>>8&255,e>>8&255,t>>8&255)+q(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(H((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|H((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return($((e=z(e,t[n+0]))>>24&255,r>>24&255)<<24|$(e>>16&255,r>>16&255)<<16|$(e>>8&255,r>>8&255)<<8|$(e>>0&255,r>>0&255))>>>0};var Un=e.PredictorAdd0;e.PredictorAdd1=W,Z("Predictor2","PredictorAdd2"),Z("Predictor3","PredictorAdd3"),Z("Predictor4","PredictorAdd4"),Z("Predictor5","PredictorAdd5"),Z("Predictor6","PredictorAdd6"),Z("Predictor7","PredictorAdd7"),Z("Predictor8","PredictorAdd8"),Z("Predictor9","PredictorAdd9"),Z("Predictor10","PredictorAdd10"),Z("Predictor11","PredictorAdd11"),Z("Predictor12","PredictorAdd12"),Z("Predictor13","PredictorAdd13");var Vn=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Gn,Yn=e.ColorIndexInverseTransform,Kn=e.MapARGB,Qn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Jn=e.VP8LPredictorsAdd=[];Jn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var er,tr,nr,rr,or,ir,ar,lr,sr,ur,cr,dr,pr,fr,hr,mr,gr,vr,br,yr,wr,xr,Cr,Sr,Er,Nr,Mr,_n,Ir=i(511),Ar=i(2041),kr=i(225),Pr=i(767),Lr=0,Rr=Ar,Tr=kr,Dr=Pr,Or=Ir,jr=0,Fr=1,_r=2,Zr=3,Br=4,zr=5,Hr=6,$r=7,qr=8,Wr=9,Ur=10,Vr=[2,3,7],Gr=[3,3,11],Yr=[280,256,256,256,40],Kr=[0,1,1,1,0],Qr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Jr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],eo=8,to=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],no=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ro=null,oo=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],io=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ao=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],lo=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],so=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],uo=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],co=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],po=[],fo=[],ho=[],mo=1,go=2,vo=[],bo=[];bn("UpsampleRgbLinePair",En,3),bn("UpsampleBgrLinePair",Nn,3),bn("UpsampleRgbaLinePair",Pn,4),bn("UpsampleBgraLinePair",kn,4),bn("UpsampleArgbLinePair",An,4),bn("UpsampleRgba4444LinePair",In,2),bn("UpsampleRgb565LinePair",Mn,2);var yo=e.UpsampleRgbLinePair,wo=e.UpsampleBgrLinePair,xo=e.UpsampleRgbaLinePair,Co=e.UpsampleBgraLinePair,So=e.UpsampleArgbLinePair,Eo=e.UpsampleRgba4444LinePair,No=e.UpsampleRgb565LinePair,Mo=16,Io=1<<Mo-1,Ao=-227,ko=482,Po=6,Lo=(256<<Po)-1,Ro=0,To=i(256),Do=i(256),Oo=i(256),jo=i(256),Fo=i(ko-Ao),_o=i(ko-Ao);Ln("YuvToRgbRow",En,3),Ln("YuvToBgrRow",Nn,3),Ln("YuvToRgbaRow",Pn,4),Ln("YuvToBgraRow",kn,4),Ln("YuvToArgbRow",An,4),Ln("YuvToRgba4444Row",In,2),Ln("YuvToRgb565Row",Mn,2);var Zo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Bo=[0,2,8],zo=[8,7,6,4,4,2,2,2,1,1,1,1],Ho=1;this.WebPDecodeRGBA=function(e,n,r,o,i){var a=Fr,l=new nn,s=new ae;l.ba=s,s.S=a,s.width=[s.width],s.height=[s.height];var u=s.width,c=s.height,d=new le;if(null==d||null==e)var p=2;else t(null!=d),p=On(e,n,r,d.width,d.height,d.Pd,d.Qd,d.format,null);if(0!=p?u=0:(null!=u&&(u[0]=d.width[0]),null!=c&&(c[0]=d.height[0]),u=1),u){s.width=s.width[0],s.height=s.height[0],null!=o&&(o[0]=s.width),null!=i&&(i[0]=s.height);e:{if(o=new Ue,(i=new rn).data=e,i.w=n,i.ha=r,i.kd=1,n=[0],t(null!=i),(0==(e=On(i.data,i.w,i.ha,null,null,null,n,null,i))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=l),o.data=i.data,o.w=i.w+i.offset,o.ha=i.ha-i.offset,o.put=fe,o.ac=pe,o.bc=he,o.ma=l,i.xa){if(null==(e=Ae())){l=1;break e}if(function(e,n){var r=[0],o=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,v(e.m,n.data,n.w,n.ha),!me(e.m,r,o,i)){e.a=3;break t}if(e.xb=go,n.width=r[0],n.height=o[0],!ke(r[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(n=Zn(o.width,o.height,l.Oa,l.ba))){t:{o=e;n:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(r=o.l)),t(null!=(i=r.ma)),0!=o.xb){if(o.ca=i.ba,o.tb=i.tb,t(null!=o.ca),!jn(i.Oa,r,Zr)){o.a=2;break n}if(!Pe(o,r.width))break n;if(r.da)break n;if((r.da||re(o.ca.S))&&vn(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&vn()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!T(o.s.vb,o.s.Wa.Xa)){o.a=1;break n}o.xb=0}if(!Me(o,o.V,o.Ba,o.c,o.i,r.o,Ce))break n;i.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(n=e.a)}else n=e.a}else{if(null==(e=new Ve)){l=1;break e}if(e.Fa=i.na,e.P=i.P,e.qc=i.Sa,Ke(e,o)){if(0==(n=Zn(o.width,o.height,l.Oa,l.ba))){if(e.Aa=0,r=l.Oa,t(null!=(i=e)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(c=d=0;4>c;++c)12>(p=i.pb[c]).lc&&(p.ia=u*zo[0>p.lc?0:p.lc]>>3),d|=p.ia;d&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=r.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}Je(e,o)||(n=e.a)}}else n=e.a}0==n&&null!=l.Oa&&l.Oa.fd&&(n=Fn(l.ba))}l=n}a=0!=l?null:11>a?s.f.RGBA.eb:s.f.kb.y}else a=null;return a};var $o=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function c(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function d(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new s;var p=[0],f=[0],h=[],m=new s,g=e,v=function(e,t){var n={},r=0,o=!1,i=0,a=0;if(n.frames=[],!function(e,t,n,r){for(var o=0;o<4;o++)if(e[t+o]!="RIFF".charCodeAt(o))return!0;return!1}(e,t)){var l,s;for(d(e,t+=4),t+=8;t<e.length;){var p=u(e,t),f=d(e,t+=4);t+=4;var h=f+(1&f);switch(p){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=o?a:t-8,v.src_size=i+f+8,r++,o&&(o=!1,i=0,a=0);break;case"VP8X":(v=n.header={}).feature_flags=e[t];var m=t+4;v.canvas_width=1+c(e,m),m+=3,v.canvas_height=1+c(e,m),m+=3;break;case"ALPH":o=!0,i=h+8,a=t-8;break;case"ANIM":(v=n.header).bgcolor=d(e,t),m=t+4,v.loop_count=(l=e)[(s=m)+0]<<0|l[s+1]<<8,m+=2;break;case"ANMF":var g,v;(v=n.frames[r]={}).offset_x=2*c(e,t),t+=3,v.offset_y=2*c(e,t),t+=3,v.width=1+c(e,t),t+=3,v.height=1+c(e,t),t+=3,v.duration=c(e,t),t+=3,g=e[t++],v.dispose=1&g,v.blend=g>>1&1}"ANMF"!=p&&(t+=h)}return n}}(g,0);v.response=g,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,p=[b.canvas_height],f=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],C=m.WebPDecodeRGBA(g,x.src_off,x.src_size,f,p);x.rgba=C,x.imgwidth=f[0],x.imgheight=p[0];for(var S=0;S<f[0]*p[0]*4;S++)h[S]=C[S];return this.width=f,this.height=p,this.data=h,this}!function(e){var t=function(t,r,s,u){var c=4,d=i;switch(u){case e.image_compression.FAST:c=1,d=o;break;case e.image_compression.MEDIUM:c=6,d=a;break;case e.image_compression.SLOW:c=9,d=l}var p=$(t=n(t,r,s,d),{level:c});return e.__addimage__.arrayBufferToBinaryString(p)},n=function(e,t,n,r){for(var o,i,a,l=e.length/t,s=new Uint8Array(e.length+l),d=u(),p=0;p<l;p+=1){if(a=p*t,o=e.subarray(a,a+t),r)s.set(r(o,n,i),a+p);else{for(var f,h=d.length,m=[];f<h;f+=1)m[f]=d[f](o,n,i);var g=c(m.concat());s.set(m[g],a+p)}i=o}return s},r=function(e){var t=Array.apply([],e);return t.unshift(0),t},o=function(e,t){var n,r=[],o=e.length;r[0]=1;for(var i=0;i<o;i+=1)n=e[i-t]||0,r[i+1]=e[i]-n+256&255;return r},i=function(e,t,n){var r,o=[],i=e.length;o[0]=2;for(var a=0;a<i;a+=1)r=n&&n[a]||0,o[a+1]=e[a]-r+256&255;return o},a=function(e,t,n){var r,o,i=[],a=e.length;i[0]=3;for(var l=0;l<a;l+=1)r=e[l-t]||0,o=n&&n[l]||0,i[l+1]=e[l]+256-(r+o>>>1)&255;return i},l=function(e,t,n){var r,o,i,a,l=[],u=e.length;l[0]=4;for(var c=0;c<u;c+=1)r=e[c-t]||0,o=n&&n[c]||0,i=n&&n[c-t]||0,a=s(r,o,i),l[c+1]=e[c]-a+256&255;return l},s=function(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),o=Math.abs(e-n),i=Math.abs(e+t-n-n);return r<=o&&r<=i?e:o<=i?t:n},u=function(){return[r,o,i,a,l]},c=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(n,r,o,i){var a,l,s,u,c,d,p,f,h,m,g,v,b,y,w,x=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(s=new Ft(n)).imgData,l=s.bits,a=s.colorSpace,c=s.colors,-1!==[4,6].indexOf(s.colorType)){if(8===s.bits){h=(f=32==s.pixelBitlength?new Uint32Array(s.decodePixels().buffer):16==s.pixelBitlength?new Uint16Array(s.decodePixels().buffer):new Uint8Array(s.decodePixels().buffer)).length,g=new Uint8Array(h*s.colors),m=new Uint8Array(h);var S,E=s.pixelBitlength-s.bits;for(y=0,w=0;y<h;y++){for(b=f[y],S=0;S<E;)g[w++]=b>>>S&255,S+=s.bits;m[y]=b>>>S&255}}if(16===s.bits){h=(f=new Uint32Array(s.decodePixels().buffer)).length,g=new Uint8Array(h*(32/s.pixelBitlength)*s.colors),m=new Uint8Array(h*(32/s.pixelBitlength)),v=s.colors>1,y=0,w=0;for(var N=0;y<h;)b=f[y++],g[w++]=b>>>0&255,v&&(g[w++]=b>>>16&255,b=f[y++],g[w++]=b>>>0&255),m[N++]=b>>>16&255;l=8}i!==e.image_compression.NONE?(n=t(g,s.width*s.colors,s.colors,i),p=t(m,s.width,1,i)):(n=g,p=m,x=void 0)}if(3===s.colorType&&(a=this.color_spaces.INDEXED,d=s.palette,s.transparency.indexed)){var M=s.transparency.indexed,I=0;for(y=0,h=M.length;y<h;++y)I+=M[y];if((I/=255)==h-1&&-1!==M.indexOf(0))u=[M.indexOf(0)];else if(I!==h){for(f=s.decodePixels(),m=new Uint8Array(f.length),y=0,h=f.length;y<h;y++)m[y]=M[f[y]];p=t(m,s.width,1)}}var A=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(i);return x===this.decode.FLATE_DECODE&&(C="/Predictor "+A+" "),C+="/Colors "+c+" /BitsPerComponent "+l+" /Columns "+s.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:o,data:n,index:r,filter:x,decodeParameters:C,transparency:u,palette:d,sMask:p,predictor:A,width:s.width,height:s.height,bitsPerComponent:l,colorSpace:a}}}}(Ee.API),function(e){e.processGIF89A=function(t,n,r,o){var i=new _t(t),a=i.width,l=i.height,s=[];i.decodeAndBlitFrameRGBA(0,s);var u={data:s,width:a,height:l},c=new Bt(100).encode(u,100);return e.processJPEG.call(this,c,n,r,o)},e.processGIF87A=e.processGIF89A}(Ee.API),zt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:r,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zt.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){V.log("bit decode error:"+e)}},zt.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*o*4,l=0;l<8&&8*o+l<this.width;l++){var s=this.palette[i>>7-l&1];this.data[a+4*l]=s.blue,this.data[a+4*l+1]=s.green,this.data[a+4*l+2]=s.red,this.data[a+4*l+3]=255}0!==n&&(this.pos+=4-n)}},zt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*o*4,l=i>>4,s=15&i,u=this.palette[l];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*o+1>=this.width)break;u=this.palette[s],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},zt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*r;if(o<this.palette.length){var a=this.palette[o];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},zt.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,l=(i>>5&t)/t*255|0,s=(i>>10&t)/t*255|0,u=i>>15?255:0,c=r*this.width*4+4*o;this.data[c]=s,this.data[c+1]=l,this.data[c+2]=a,this.data[c+3]=u}this.pos+=e}},zt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(a&t)/t*255|0,s=(a>>5&n)/n*255|0,u=(a>>11)/t*255|0,c=o*this.width*4+4*i;this.data[c]=u,this.data[c+1]=s,this.data[c+2]=l,this.data[c+3]=255}this.pos+=e}},zt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=i,this.data[a+1]=o,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},zt.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=i,this.data[l+1]=o,this.data[l+2]=r,this.data[l+3]=a}},zt.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,o){var i=new zt(t,!1),a=i.width,l=i.height,s={data:i.getData(),width:a,height:l},u=new Bt(100).encode(s,100);return e.processJPEG.call(this,u,n,r,o)}}(Ee.API),Ht.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,o){var i=new Ht(t,!1),a=i.width,l=i.height,s={data:i.getData(),width:a,height:l},u=new Bt(100).encode(s,100);return e.processJPEG.call(this,u,n,r,o)}}(Ee.API),Ee.API.processRGBA=function(e,t,n){for(var r=e.data,o=r.length,i=new Uint8Array(o/4*3),a=new Uint8Array(o/4),l=0,s=0,u=0;u<o;u+=4){var c=r[u],d=r[u+1],p=r[u+2],f=r[u+3];i[l++]=c,i[l++]=d,i[l++]=p,a[s++]=f}var h=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:h,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ee.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Rt=Ee.API,Tt=Rt.getCharWidthsArray=function(e,t){var n,o,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),l=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,u=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,p=!1!==t.doKerning,f=0,h=e.length,m=0,g=s[0]||u,v=[];for(n=0;n<h;n++)o=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(o))+l*(1e3/a)||0)/1e3):(f=p&&"object"===(0,r.Z)(c[o])&&!isNaN(parseInt(c[o][m],10))?c[o][m]/d:0,v.push((s[o]||g)/u+f)),m=o;return v},Dt=Rt.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return Rt.processArabic&&(e=Rt.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,o)/n:Tt.apply(this,arguments).reduce((function(e,t){return e+t}),0)},Ot=function(e,t,n,r){for(var o=[],i=0,a=e.length,l=0;i!==a&&l+t[i]<n;)l+=t[i],i++;o.push(e.slice(0,i));var s=i;for(l=0;i!==a;)l+t[i]>r&&(o.push(e.slice(s,i)),l=0,s=i),l+=t[i],i++;return s!==i&&o.push(e.slice(s,i)),o},jt=function(e,t,n){n||(n={});var r,o,i,a,l,s,u,c=[],d=[c],p=n.textIndent||0,f=0,h=0,m=e.split(" "),g=Tt.apply(this,[" ",n])[0];if(s=-1===n.lineIndent?m[0].length+2:n.lineIndent||0){var v=Array(s).join(" "),b=[];m.map((function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):b.push(e[0])})),m=b,s=Dt.apply(this,[v,n])}for(i=0,a=m.length;i<a;i++){var y=0;if(r=m[i],s&&"\n"==r[0]&&(r=r.substr(1),y=1),p+f+(h=(o=Tt.apply(this,[r,n])).reduce((function(e,t){return e+t}),0))>t||y){if(h>t){for(l=Ot.apply(this,[r,o,t-(p+f),t]),c.push(l.shift()),c=[l.pop()];l.length;)d.push([l.shift()]);h=o.slice(r.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[r];d.push(c),p=h+s,f=g}else c.push(r),p+=f+h,f=g}return u=s?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},d.map(u)},Rt.splitTextToSize=function(e,t,n){var r,o=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/o;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,i.lineIndent=n.lineIndent;var l,s,u=[];for(l=0,s=r.length;l<s;l++)u=u.concat(jt.apply(this,[r[l],a,i]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},o={},i=0;i<16;i++)n[t[i]]="0123456789abcdef"[i],o["0123456789abcdef"[i]]=t[i];var a=function(e){return"0x"+parseInt(e,10).toString(16)},l=e.__fontmetrics__.compress=function(e){var t,n,i,s,u=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=a(c).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof t)t<0?(i=a(t).slice(3),s="-"):(i=a(t).slice(2),s=""),i=s+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==(0,r.Z)(t))throw new Error("Don't know what to do with value type "+(0,r.Z)(t)+".");i=l(t)}u.push(n+i)}return u.push("}"),u.join("")},s=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,o,i,a={},l=1,s=a,u=[],c="",d="",p=e.length-1,f=1;f<p;f+=1)"'"==(i=e[f])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(u.push([s,o]),s={},o=void 0):"}"==i?((r=u.pop())[0][r[1]]=s,o=void 0,s=r[0]):"-"==i?l=-1:void 0===o?n.hasOwnProperty(i)?(c+=n[i],o=parseInt(c,16)*l,l=1,c=""):c+=i:n.hasOwnProperty(i)?(d+=n[i],s[o]=parseInt(d,16)*l,l=1,o=void 0,d=""):d+=i;return a},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},d={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=c.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(Ee.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,o=n.font,i=n.instance;if(!o.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(o.postScriptName)?i.loadFile(o.postScriptName):i.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(Q(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(o,r)}}])}(Ee),function(e){function t(){return(W.canvg?Promise.resolve(W.canvg):n.e(820).then(n.bind(n,4820))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e}))}Ee.API.addSvgAsImage=function(e,n,r,o,i,a,l,s){if(isNaN(n)||isNaN(r))throw V.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(i))throw V.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=o,u.height=i;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return t().then((function(t){return t.fromString(c,e,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(d)})).then((function(){p.addImage(u.toDataURL("image/jpeg",1),n,r,o,i,l,s)}))}}(),Ee.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var o=0;o<this.internal.pages[r].length;o++)this.internal.pages[r][o]=this.internal.pages[r][o].replace(t,n);return this},Ee.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var o,i,a,l={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(l),u=[],c=0,d=0,p=0;function f(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var h=s.length;for(p=0;p<h;p+=1)n[s[p]].value=n[s[p]].defaultValue,n[s[p]].explicitSet=!1}if("object"===(0,r.Z)(e))for(i in e)if(a=e[i],f(s,i)&&void 0!==a){if("boolean"===n[i].type&&"boolean"==typeof a)n[i].value=a;else if("name"===n[i].type&&f(n[i].valueSet,a))n[i].value=a;else if("integer"===n[i].type&&Number.isInteger(a))n[i].value=a;else if("array"===n[i].type){for(c=0;c<a.length;c+=1)if(o=!0,1===a[c].length&&"number"==typeof a[c][0])u.push(String(a[c]-1));else if(a[c].length>1){for(d=0;d<a[c].length;d+=1)"number"!=typeof a[c][d]&&(o=!1);!0===o&&u.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+o.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+o+i),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(Ee.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],a=0,l=e.length;a<l;++a){if(n=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(o[4-n.length],n)}return i.join("")},r=function(e){var t,n,r,o,i,a,l;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,l=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;a<l;a++)t=n[a],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+o+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var l=n.metadata.Unicode.widths,s=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",c=0;c<s.length;c++)u+=String.fromCharCode(s[c]);var d=i();a({data:u,addLength1:!0,objectId:d}),o("endobj");var p=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:p}),o("endobj");var f=i();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+be(n.fontName)),o("/FontFile2 "+d+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/Flags "+n.metadata.flags),o("/StemV "+n.metadata.stemV),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o(">>"),o("endobj");var h=i();o("<<"),o("/Type /Font"),o("/BaseFont /"+be(n.fontName)),o("/FontDescriptor "+f+" 0 R"),o("/W "+e.API.PDFObject.convert(l)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+n.encoding+")"),o(">>"),o(">>"),o("endobj"),n.objectNumber=i(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+p+" 0 R"),o("/BaseFont /"+be(n.fontName)),o("/Encoding /"+n.encoding),o("/DescendantFonts ["+h+" 0 R]"),o(">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var l=n.metadata.rawData,s="",u=0;u<l.length;u++)s+=String.fromCharCode(l[u]);var c=i();a({data:s,addLength1:!0,objectId:c}),o("endobj");var d=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var p=i();o("<<"),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o("/StemV "+n.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+c+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/FontName /"+be(n.fontName)),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o(">>"),o("endobj"),n.objectNumber=i();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+be(n.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,r=e.text||"",o=e.x,i=e.y,a=e.options||{},l=e.mutex||{},s=l.pdfEscape,u=l.activeFontKey,c=l.fonts,d=u,p="",f=0,h="",m=c[d].encoding;if("Identity-H"!==c[d].encoding)return{text:r,x:o,y:i,options:a,mutex:l};for(h=r,d=u,Array.isArray(r)&&(h=r[0]),f=0;f<h.length;f+=1)c[d].metadata.hasOwnProperty("cmap")&&(t=c[d].metadata.cmap.unicode.codeMap[h[f].charCodeAt(0)]),t||h[f].charCodeAt(0)<256&&c[d].metadata.hasOwnProperty("Unicode")?p+=h[f]:p+="";var g="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===m?g=s(p,d).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===m&&(g=n(p,c[d])),l.isHex=!0,{text:g,x:o,y:i,options:a,mutex:l}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?n.push([o(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):n.push(o(Object.assign({},r,{text:t[i]})).text);e.text=n}else e.text=o(Object.assign({},r,{text:t})).text}])}(Ee),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(Ee.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,o,i,a,l,s,u=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,v=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),n=t>>8,r=f[n];return void 0!==r?u[256*r+(255&t)]:252===n||253===n?"AL":m.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=b(e.charAt(n))))return!1;if("R"===t)return!0}return!1},w=function(e,t,a,l){var s,u,c,d,p=t[l];switch(p){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(p="AN");break;case"AL":g=!0,p="R";break;case"WS":case"BN":p="N";break;case"CS":l<1||l+1>=t.length||"EN"!==(s=a[l-1])&&"AN"!==s||"EN"!==(u=t[l+1])&&"AN"!==u?p="N":g&&(u="AN"),p=u===s?u:"N";break;case"ES":p="EN"===(s=l>0?a[l-1]:"B")&&l+1<t.length&&"EN"===t[l+1]?"EN":"N";break;case"ET":if(l>0&&"EN"===a[l-1]){p="EN";break}if(g){p="N";break}for(c=l+1,d=t.length;c<d&&"ET"===t[c];)c++;p=c<d&&"EN"===t[c]?"EN":"N";break;case"NSM":if(o&&!i){for(d=t.length,c=l+1;c<d&&"NSM"===t[c];)c++;if(c<d){var f=e[l],h=f>=1425&&f<=2303||64286===f;if(s=t[c],h&&("R"===s||"AL"===s)){p="R";break}}}p=l<1||"B"===(s=t[l-1])?"N":a[l-1];break;case"B":g=!1,n=!0,p=v;break;case"S":r=!0,p="N"}return p},x=function(e,t,n){var r=e.split("");return n&&C(r,n,{hiLevel:v}),r.reverse(),t&&t.reverse(),r.join("")},C=function(e,t,o){var i,a,l,s,u,f=-1,h=e.length,m=0,y=[],x=v?d:c,C=[];for(g=!1,n=!1,r=!1,a=0;a<h;a++)C[a]=b(e[a]);for(l=0;l<h;l++){if(u=m,y[l]=w(e,C,y,l),i=240&(m=x[u][p[y[l]]]),m&=15,t[l]=s=x[m][5],i>0)if(16===i){for(a=f;a<l;a++)t[a]=1;f=-1}else f=-1;if(x[m][6])-1===f&&(f=l);else if(f>-1){for(a=f;a<l;a++)t[a]=s;f=-1}"B"===C[l]&&(t[l]=0),o.hiLevel|=s}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=v;for(var o=r-1;o>=0&&"WS"===e[o];o--)t[o]=v}}(C,t,h)},S=function(e,t,r,o,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!n)return t.reverse(),void(r&&r.reverse());for(var a,l,s,u,c=t.length,d=0;d<c;){if(o[d]>=e){for(s=d+1;s<c&&o[s]>=e;)s++;for(u=d,l=s-1;u<l;u++,l--)a=t[u],t[u]=t[l],t[l]=a,r&&(a=r[u],r[u]=r[l],r[l]=a);d=s}d++}}},E=function(e,t,n){var r=e.split(""),o={hiLevel:v};return n||(n=[]),C(r,n,o),function(e,t,n){if(0!==n.hiLevel&&s)for(var r,o=0;o<e.length;o++)1===t[o]&&(r=h.indexOf(e[o]))>=0&&(e[o]=h[r+1])}(r,n,o),S(2,r,t,n,o),S(1,r,t,n,o),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===i&&(i=y(e)),void 0===l&&(l=y(e))}(e,t),o||!a||l)if(o&&a&&i^l)v=i?1:0,e=x(e,t,n);else if(!o&&a&&l)v=i?1:0,e=E(e,t,n),e=x(e,t);else if(!o||i||a||l){if(o&&!a&&i^l)e=x(e,t),i?(v=0,e=E(e,t,n)):(v=1,e=E(e,t,n),e=x(e,t));else if(o&&i&&!a&&l)v=1,e=E(e,t,n),e=x(e,t);else if(!o&&!a&&i^l){var r=s;i?(v=1,e=E(e,t,n),v=0,s=!1,e=E(e,t,n),s=r):(v=0,e=E(e,t,n),e=x(e,t),v=1,s=!1,e=E(e,t,n),s=r,e=x(e,t))}}else v=0,e=E(e,t,n);else v=i?1:0,e=E(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,a=e.isOutputVisual,i=e.isInputRtl,l=e.isOutputRtl,s=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,r=(e.x,e.y,e.options||{}),o=(e.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(o=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?o.push([n.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):o.push([n.doBidiReorder(t[i])]);e.text=o}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(Ee),Ee.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new qt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new cn(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Wt(this.contents),this.head=new Gt(this),this.name=new tn(this),this.cmap=new Kt(this),this.toUnicode={},this.hhea=new Qt(this),this.maxp=new nn(this),this.hmtx=new rn(this),this.post=new Jt(this),this.os2=new Xt(this),this.loca=new un(this),this.glyf=new an(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,o;for(o=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(t=r>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,o,i,a;for(i=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)r=e.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var $t,qt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,o,i,a,l;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),i=this.readByte(),a=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^i)+256*(255^a)+(255^l)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*o+65536*i+256*a+l},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,o;for(o=[],n=0,r=e.length;n<r;n++)t=e[n],o.push(this.writeByte(t));return o},e}(),Wt=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,o,i,a,l,s,u,c,d,p,f,h;for(h in p=Object.keys(t).length,l=Math.log(2),c=16*Math.floor(Math.log(p)/l),i=Math.floor(c/l),u=16*p-c,(r=new qt).writeInt(this.scalarType),r.writeShort(p),r.writeShort(c),r.writeShort(i),r.writeShort(u),o=16*p,s=r.pos+o,a=null,f=[],t)for(d=t[h],r.writeString(h),r.writeInt(e(d)),r.writeInt(s),r.writeInt(d.length),f=f.concat(d),"head"===h&&(a=s),s+=d.length;s%4;)f.push(0),s++;return r.write(f),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,o;for(e=on.call(e);e.length%4;)e.push(0);for(r=new qt(e),n=0,t=0,o=e.length;t<o;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Ut={}.hasOwnProperty,Vt=function(e,t){for(var n in t)Ut.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};$t=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Gt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new qt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),Yt=function(){function e(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(p=e.readUInt16(),d=p/2,e.pos+=6,o=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,h=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),s=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),u=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,a=function(){var t,n;for(n=[],l=t=0;0<=r?t<r:t>r;l=0<=r?++t:--t)n.push(e.readUInt16());return n}(),l=g=0,b=o.length;g<b;l=++g)for(m=o[l],n=v=f=h[l];f<=m?v<=m:v>=m;n=f<=m?++v:--v)0===u[l]?i=n+s[l]:0!==(i=a[u[l]/2+(n-f)-(d-l)]||0)&&(i+=s[l]),this.codeMap[n]=65535&i}e.pos=c}return e.encode=function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,w,x,C,S,E,N,M,I,A,k,P,L,R,T,D,O,j,F,_,Z,B,z,H,$,q,W,U,V;switch(k=new qt,i=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(h=0,m=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),v={0:0},o={},P=0,D=i.length;P<D;P++)null==v[q=e[r=i[P]]]&&(v[q]=++h),o[r]={old:e[r],new:v[e[r]]},m[r]=v[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(m),{charMap:o,subtable:k.data,maxGlyphID:h+1};case"unicode":for(I=[],c=[],b=0,v={},n={},g=s=null,L=0,O=i.length;L<O;L++)null==v[w=e[r=i[L]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},a=v[w]-r,null!=g&&a===s||(g&&c.push(g),I.push(r),s=a),g=r;for(g&&c.push(g),c.push(65535),I.push(65535),N=2*(E=I.length),S=2*Math.pow(Math.log(E)/Math.LN2,2),d=Math.log(S/2)/Math.LN2,C=2*E-S,l=[],x=[],p=[],f=R=0,j=I.length;R<j;f=++R){if(M=I[f],u=c[f],65535===M){l.push(0),x.push(0);break}if(M-(A=n[M].new)>=32768)for(l.push(0),x.push(2*(p.length+E-f)),r=T=M;M<=u?T<=u:T>=u;r=M<=u?++T:--T)p.push(n[r].new);else l.push(A-M),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*E+2*p.length),k.writeUInt16(0),k.writeUInt16(N),k.writeUInt16(S),k.writeUInt16(d),k.writeUInt16(C),H=0,F=c.length;H<F;H++)r=c[H],k.writeUInt16(r);for(k.writeUInt16(0),$=0,_=I.length;$<_;$++)r=I[$],k.writeUInt16(r);for(W=0,Z=l.length;W<Z;W++)a=l[W],k.writeUInt16(a);for(U=0,B=x.length;U<B;U++)y=x[U],k.writeUInt16(y);for(V=0,z=p.length;V<z;V++)h=p[V],k.writeUInt16(h);return{charMap:n,subtable:k.data,maxGlyphID:b+1}}},e}(),Kt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new Yt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=Yt.encode(e,t),(r=new qt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),Qt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),Xt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),Jt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="post",t.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(n=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],o=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;o=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},t}(),en=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},tn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="name",t.prototype.parse=function(e){var t,n,r,o,i,a,l,s,u,c,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),n=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(l={},o=u=0,c=n.length;u<c;o=++u)r=n[o],e.pos=r.offset,s=e.readString(r.length),i=new en(s,r),null==l[d=r.nameID]&&(l[d]=[]),l[r.nameID].push(i);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},t}(),nn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),rn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,n,r,o,i,a,l;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,o;for(o=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)o=n[e],r.push(o.advance);return r}.call(this),n=this.widths[this.widths.length-1],l=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)l.push(this.widths.push(n));return l},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),on=[].slice,an=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,n,r,o,i,a,l,s,u,c;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,n=o.indexOf(e),0===(r=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,i=(a=new qt(t.read(r))).readShort(),s=a.readShort(),c=a.readShort(),l=a.readShort(),u=a.readShort(),this.cache[e]=-1===i?new sn(a,s,c,l,u):new ln(a,i,s,c,l,u),this.cache[e]))},t.prototype.encode=function(e,t,n){var r,o,i,a,l;for(i=[],o=[],a=0,l=t.length;a<l;a++)r=e[t[a]],o.push(i.length),r&&(i=i.concat(r.encode(n)));return o.push(i.length),{table:i,offsets:o}},t}(),ln=function(){function e(e,t,n,r,o,i){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),sn=function(){function e(e,t,n,r,o){var i,a;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;a=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&a;)i.pos+=1&a?4:2,128&a?i.pos+=8:64&a?i.pos+=4:8&a&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new qt(on.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),un=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vt(t,$t),t.prototype.tag="loca",t.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,o=0,i=0;i<n.length;++i)if(n[i]=r,o<t.length&&t[o]==i){++o,n[i]=r;var a=this.offsets[i],l=this.offsets[i+1]-a;l>0&&(r+=l)}for(var s=new Array(4*n.length),u=0;u<n.length;++u)s[4*u+3]=255&n[u],s[4*u+2]=(65280&n[u])>>8,s[4*u+1]=(16711680&n[u])>>16,s[4*u]=(4278190080&n[u])>>24;return s},t}(),cn=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,o;for(t in r=this.font.cmap.tables[0].codeMap,e={},o=this.subset)n=o[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,o,i,a,l;for(r={},i=0,a=e.length;i<a;i++)r[o=e[i]]=this.font.glyf.glyphFor(o);for(o in t=[],r)(null!=(n=r[o])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(o in l=this.glyphsFor(t))n=l[o],r[o]=n;return r},e.prototype.encode=function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g;for(r in n=Kt.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),p={0:0},g=n.charMap)p[(l=g[r]).old]=l.new;for(f in d=n.maxGlyphID,i)f in p||(p[f]=d++);return u=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(p),c=Object.keys(u).sort((function(e,t){return e-t})),h=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)a=c[e],n.push(u[a]);return n}(),o=this.font.glyf.encode(i,h,p),s=this.font.loca.encode(o.offsets,h),m={cmap:this.font.cmap.raw(),glyf:o.table,loca:s,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e}();Ee.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,o,i,a;if(Array.isArray(n))return"["+function(){var e,o,i;for(i=[],e=0,o=n.length;e<o;e++)r=n[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(o in i=["<<"],n)a=n[o],i.push("/"+o+" "+t.convert(a));return i.push(">>"),i.join("\n")}return""+n},t}();var dn=Ee},2970:function(e,t,n){e.exports=n(2970)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5251:function(e,t,n){"use strict";var r=n(9196),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5893:function(e,t,n){"use strict";e.exports=n(5251)},5475:function(e,t,n){"use strict";e.exports=n.p+"images/No-form.e2774f90.gif"},5704:function(e,t,n){"use strict";e.exports=n.p+"images/Settings.4cc21716.gif"},2773:function(e,t,n){"use strict";e.exports=n.p+"images/laptop.2d1f5b9c.png"},9196:function(e){"use strict";e.exports=window.React},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},3961:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.Z=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},9050:function(e,t,n){"use strict";n.r(t),n.d(t,{VERSION:function(){return o},after:function(){return Dt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return De},before:function(){return Ot},bind:function(){return Ct},bindAll:function(){return Nt},chain:function(){return bt},chunk:function(){return Zn},clone:function(){return _e},collect:function(){return Gt},compact:function(){return In},compose:function(){return Tt},constant:function(){return X},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return Pt},default:function(){return qn},defaults:function(){return Oe},defer:function(){return At},delay:function(){return It},detect:function(){return Wt},difference:function(){return kn},drop:function(){return Nn},each:function(){return Vt},escape:function(){return at},every:function(){return en},extend:function(){return Te},extendOwn:function(){return De},filter:function(){return Xt},find:function(){return Wt},findIndex:function(){return Zt},findKey:function(){return Ft},findLastIndex:function(){return Bt},findWhere:function(){return Ut},first:function(){return En},flatten:function(){return An},foldl:function(){return Kt},foldr:function(){return Qt},forEach:function(){return Vt},functions:function(){return Le},get:function(){return $e},groupBy:function(){return mn},has:function(){return qe},head:function(){return En},identity:function(){return We},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return $t},initial:function(){return Sn},inject:function(){return Kt},intersection:function(){return Tn},invert:function(){return Pe},invoke:function(){return rn},isArguments:function(){return Y},isArray:function(){return U},isArrayBuffer:function(){return F},isBoolean:function(){return A},isDataView:function(){return W},isDate:function(){return T},isElement:function(){return k},isEmpty:function(){return se},isEqual:function(){return me},isError:function(){return O},isFinite:function(){return K},isFunction:function(){return B},isMap:function(){return Ee},isMatch:function(){return ue},isNaN:function(){return Q},isNull:function(){return M},isNumber:function(){return R},isObject:function(){return N},isRegExp:function(){return D},isSet:function(){return Me},isString:function(){return L},isSymbol:function(){return j},isTypedArray:function(){return oe},isUndefined:function(){return I},isWeakMap:function(){return Ne},isWeakSet:function(){return Ie},iteratee:function(){return Ke},keys:function(){return le},last:function(){return Mn},lastIndexOf:function(){return qt},map:function(){return Gt},mapObject:function(){return Xe},matcher:function(){return Ue},matches:function(){return Ue},max:function(){return ln},memoize:function(){return Mt},methods:function(){return Le},min:function(){return sn},mixin:function(){return zn},negate:function(){return Rt},noop:function(){return Je},now:function(){return rt},object:function(){return jn},omit:function(){return Cn},once:function(){return jt},pairs:function(){return ke},partial:function(){return xt},partition:function(){return bn},pick:function(){return xn},pluck:function(){return on},property:function(){return Ve},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Kt},reduceRight:function(){return Qt},reject:function(){return Jt},rest:function(){return Nn},restArguments:function(){return E},result:function(){return mt},sample:function(){return dn},select:function(){return Xt},shuffle:function(){return pn},size:function(){return yn},some:function(){return tn},sortBy:function(){return fn},sortedIndex:function(){return zt},tail:function(){return Nn},take:function(){return En},tap:function(){return Ze},template:function(){return ht},templateSettings:function(){return st},throttle:function(){return kt},times:function(){return tt},toArray:function(){return cn},toPath:function(){return Be},transpose:function(){return Dn},unescape:function(){return lt},union:function(){return Rn},uniq:function(){return Ln},unique:function(){return Ln},uniqueId:function(){return vt},unzip:function(){return Dn},values:function(){return Ae},where:function(){return an},without:function(){return Pn},wrap:function(){return Lt},zip:function(){return On}});var r={};n.r(r),n.d(r,{VERSION:function(){return o},after:function(){return Dt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return De},before:function(){return Ot},bind:function(){return Ct},bindAll:function(){return Nt},chain:function(){return bt},chunk:function(){return Zn},clone:function(){return _e},collect:function(){return Gt},compact:function(){return In},compose:function(){return Tt},constant:function(){return X},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return Pt},default:function(){return Hn},defaults:function(){return Oe},defer:function(){return At},delay:function(){return It},detect:function(){return Wt},difference:function(){return kn},drop:function(){return Nn},each:function(){return Vt},escape:function(){return at},every:function(){return en},extend:function(){return Te},extendOwn:function(){return De},filter:function(){return Xt},find:function(){return Wt},findIndex:function(){return Zt},findKey:function(){return Ft},findLastIndex:function(){return Bt},findWhere:function(){return Ut},first:function(){return En},flatten:function(){return An},foldl:function(){return Kt},foldr:function(){return Qt},forEach:function(){return Vt},functions:function(){return Le},get:function(){return $e},groupBy:function(){return mn},has:function(){return qe},head:function(){return En},identity:function(){return We},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return $t},initial:function(){return Sn},inject:function(){return Kt},intersection:function(){return Tn},invert:function(){return Pe},invoke:function(){return rn},isArguments:function(){return Y},isArray:function(){return U},isArrayBuffer:function(){return F},isBoolean:function(){return A},isDataView:function(){return W},isDate:function(){return T},isElement:function(){return k},isEmpty:function(){return se},isEqual:function(){return me},isError:function(){return O},isFinite:function(){return K},isFunction:function(){return B},isMap:function(){return Ee},isMatch:function(){return ue},isNaN:function(){return Q},isNull:function(){return M},isNumber:function(){return R},isObject:function(){return N},isRegExp:function(){return D},isSet:function(){return Me},isString:function(){return L},isSymbol:function(){return j},isTypedArray:function(){return oe},isUndefined:function(){return I},isWeakMap:function(){return Ne},isWeakSet:function(){return Ie},iteratee:function(){return Ke},keys:function(){return le},last:function(){return Mn},lastIndexOf:function(){return qt},map:function(){return Gt},mapObject:function(){return Xe},matcher:function(){return Ue},matches:function(){return Ue},max:function(){return ln},memoize:function(){return Mt},methods:function(){return Le},min:function(){return sn},mixin:function(){return zn},negate:function(){return Rt},noop:function(){return Je},now:function(){return rt},object:function(){return jn},omit:function(){return Cn},once:function(){return jt},pairs:function(){return ke},partial:function(){return xt},partition:function(){return bn},pick:function(){return xn},pluck:function(){return on},property:function(){return Ve},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Kt},reduceRight:function(){return Qt},reject:function(){return Jt},rest:function(){return Nn},restArguments:function(){return E},result:function(){return mt},sample:function(){return dn},select:function(){return Xt},shuffle:function(){return pn},size:function(){return yn},some:function(){return tn},sortBy:function(){return fn},sortedIndex:function(){return zt},tail:function(){return Nn},take:function(){return En},tap:function(){return Ze},template:function(){return ht},templateSettings:function(){return st},throttle:function(){return kt},times:function(){return tt},toArray:function(){return cn},toPath:function(){return Be},transpose:function(){return Dn},unescape:function(){return lt},union:function(){return Rn},uniq:function(){return Ln},unique:function(){return Ln},uniqueId:function(){return vt},unzip:function(){return Dn},values:function(){return Ae},where:function(){return an},without:function(){return Pn},wrap:function(){return Lt},zip:function(){return On}});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,l=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,u=a.push,c=a.slice,d=l.toString,p=l.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,b=f&&ArrayBuffer.isView,y=isNaN,w=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function E(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function N(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function M(e){return null===e}function I(e){return void 0===e}function A(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function k(e){return!(!e||1!==e.nodeType)}function P(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}var L=P("String"),R=P("Number"),T=P("Date"),D=P("RegExp"),O=P("Error"),j=P("Symbol"),F=P("ArrayBuffer"),_=P("Function"),Z=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof Z&&(_=function(e){return"function"==typeof e||!1});var B=_,z=P("Object"),H=h&&z(new DataView(new ArrayBuffer(8))),$="undefined"!=typeof Map&&z(new Map),q=P("DataView"),W=H?function(e){return null!=e&&B(e.getInt8)&&F(e.buffer)}:q,U=m||P("Array");function V(e,t){return null!=e&&p.call(e,t)}var G=P("Arguments");!function(){G(arguments)||(G=function(e){return V(e,"callee")})}();var Y=G;function K(e){return!j(e)&&w(e)&&!isNaN(parseFloat(e))}function Q(e){return R(e)&&y(e)}function X(e){return function(){return e}}function J(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=S}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=J(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,oe=f?function(e){return b?b(e)&&!W(e):ne(e)&&re.test(d.call(e))}:X(!1),ie=ee("length");function ae(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=C.length,r=e.constructor,o=B(r)&&r.prototype||l,i="constructor";for(V(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=C[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function le(e){if(!N(e))return[];if(g)return g(e);var t=[];for(var n in e)V(e,n)&&t.push(n);return x&&ae(e,t),t}function se(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(U(e)||L(e)||Y(e))?0===t:0===ie(le(e))}function ue(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function ce(e){return e instanceof ce?e:this instanceof ce?void(this._wrapped=e):new ce(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ce.VERSION=o,ce.prototype.value=function(){return this._wrapped},ce.prototype.valueOf=ce.prototype.toJSON=ce.prototype.value,ce.prototype.toString=function(){return String(this._wrapped)};var pe="[object DataView]";function fe(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ce&&(e=e._wrapped),t instanceof ce&&(t=t._wrapped);var o=d.call(e);if(o!==d.call(t))return!1;if(H&&"[object Object]"==o&&W(e)){if(!W(t))return!1;o=pe}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case pe:return he(de(e),de(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,l=t.constructor;if(a!==l&&!(B(a)&&a instanceof a&&B(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!fe(e[u],t[u],n,r))return!1}else{var c,p=le(e);if(u=p.length,le(t).length!==u)return!1;for(;u--;)if(!V(t,c=p[u])||!fe(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return fe(e,t)}function ge(e){if(!N(e))return[];var t=[];for(var n in e)t.push(n);return x&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!B(n[e[o]]))return!1;return e!==Ce||!B(n[be])}}var be="forEach",ye=["clear","delete"],we=["get","has","set"],xe=ye.concat(be,we),Ce=ye.concat(we),Se=["add"].concat(ye,be,"has"),Ee=$?ve(xe):P("Map"),Ne=$?ve(Ce):P("WeakMap"),Me=$?ve(Se):P("Set"),Ie=P("WeakSet");function Ae(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function ke(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Pe(e){for(var t={},n=le(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function Le(e){var t=[];for(var n in e)B(e[n])&&t.push(n);return t.sort()}function Re(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),l=a.length,s=0;s<l;s++){var u=a[s];t&&void 0!==n[u]||(n[u]=i[u])}return n}}var Te=Re(ge),De=Re(le),Oe=Re(ge,!0);function je(e){if(!N(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=je(e);return t&&De(n,t),n}function _e(e){return N(e)?U(e)?e.slice():Te({},e):e}function Ze(e,t){return t(e),e}function Be(e){return U(e)?e:[e]}function ze(e){return ce.toPath(e)}function He(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function $e(e,t,n){var r=He(e,ze(t));return I(r)?n:r}function qe(e,t){for(var n=(t=ze(t)).length,r=0;r<n;r++){var o=t[r];if(!V(e,o))return!1;e=e[o]}return!!n}function We(e){return e}function Ue(e){return e=De({},e),function(t){return ue(t,e)}}function Ve(e){return e=ze(e),function(t){return He(t,e)}}function Ge(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function Ye(e,t,n){return null==e?We:B(e)?Ge(e,t,n):N(e)&&!U(e)?Ue(e):Ve(e)}function Ke(e,t){return Ye(e,t,1/0)}function Qe(e,t,n){return ce.iteratee!==Ke?ce.iteratee(e,t):Ye(e,t,n)}function Xe(e,t,n){t=Qe(t,n);for(var r=le(e),o=r.length,i={},a=0;a<o;a++){var l=r[a];i[l]=t(e[l],l,e)}return i}function Je(){}function et(e){return null==e?Je:function(t){return $e(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=Ge(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ce.toPath=Be,ce.iteratee=Ke;var rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}var it={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},at=ot(it),lt=ot(Pe(it)),st=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ut=/(.)^/,ct={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+ct[e]}var ft=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=Oe({},t,ce.templateSettings);var r=RegExp([(t.escape||ut).source,(t.interpolate||ut).source,(t.evaluate||ut).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,a,l){return i+=e.slice(o,l).replace(dt,pt),o=l+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t})),i+="';\n";var a,l=t.variable;if(l){if(!ft.test(l))throw new Error("variable is not a bare identifier: "+l)}else i="with(obj||{}){\n"+i+"}\n",l="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(l,"_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,ce)};return s.source="function("+l+"){\n"+i+"}",s}function mt(e,t,n){var r=(t=ze(t)).length;if(!r)return B(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=B(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function bt(e){var t=ce(e);return t._chain=!0,t}function yt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=je(e.prototype),a=e.apply(i,o);return N(a)?a:i}var wt=E((function(e,t){var n=wt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),l=0;l<i;l++)a[l]=t[l]===n?arguments[o++]:t[l];for(;o<arguments.length;)a.push(arguments[o++]);return yt(e,r,this,this,a)};return r}));wt.placeholder=ce;var xt=wt,Ct=E((function(e,t,n){if(!B(e))throw new TypeError("Bind must be called on a function");var r=E((function(o){return yt(e,r,t,this,n.concat(o))}));return r})),St=J(ie);function Et(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,a=ie(e);i<a;i++){var l=e[i];if(St(l)&&(U(l)||Y(l)))if(t>1)Et(l,t-1,n,r),o=r.length;else for(var s=0,u=l.length;s<u;)r[o++]=l[s++];else n||(r[o++]=l)}return r}var Nt=E((function(e,t){var n=(t=Et(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Ct(e[r],e)}return e}));function Mt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return V(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}var It=E((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),At=xt(It,ce,1);function kt(e,t,n){var r,o,i,a,l=0;n||(n={});var s=function(){l=!1===n.leading?0:rt(),r=null,a=e.apply(o,i),r||(o=i=null)},u=function(){var u=rt();l||!1!==n.leading||(l=u);var c=t-(u-l);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),l=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(s,c)),a};return u.cancel=function(){clearTimeout(r),l=0,r=o=i=null},u}function Pt(e,t,n){var r,o,i,a,l,s=function(){var u=rt()-o;t>u?r=setTimeout(s,t-u):(r=null,n||(a=e.apply(l,i)),r||(i=l=null))},u=E((function(u){return l=this,i=u,o=rt(),r||(r=setTimeout(s,t),n&&(a=e.apply(l,i))),a}));return u.cancel=function(){clearTimeout(r),r=i=l=null},u}function Lt(e,t){return xt(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Tt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Dt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ot(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var jt=xt(Ot,2);function Ft(e,t,n){t=Qe(t,n);for(var r,o=le(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r}function _t(e){return function(t,n,r){n=Qe(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}var Zt=_t(1),Bt=_t(-1);function zt(e,t,n,r){for(var o=(n=Qe(n,r,1))(t),i=0,a=ie(e);i<a;){var l=Math.floor((i+a)/2);n(e[l])<o?i=l+1:a=l}return i}function Ht(e,t,n){return function(r,o,i){var a=0,l=ie(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+l,a):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(c.call(r,a,l),Q))>=0?i+a:-1;for(i=e>0?a:l-1;i>=0&&i<l;i+=e)if(r[i]===o)return i;return-1}}var $t=Ht(1,Zt,zt),qt=Ht(-1,Bt);function Wt(e,t,n){var r=(St(e)?Zt:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Ut(e,t){return Wt(e,Ue(t))}function Vt(e,t,n){var r,o;if(t=Ge(t,n),St(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=le(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function Gt(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var l=r?r[a]:a;i[a]=t(e[l],l,e)}return i}function Yt(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!St(t)&&le(t),a=(i||t).length,l=e>0?0:a-1;for(o||(r=t[i?i[l]:l],l+=e);l>=0&&l<a;l+=e){var s=i?i[l]:l;r=n(r,t[s],s,t)}return r}(t,Ge(n,o,4),r,i)}}var Kt=Yt(1),Qt=Yt(-1);function Xt(e,t,n){var r=[];return t=Qe(t,n),Vt(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Jt(e,t,n){return Xt(e,Rt(Qe(t)),n)}function en(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function tn(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function nn(e,t,n,r){return St(e)||(e=Ae(e)),("number"!=typeof n||r)&&(n=0),$t(e,t,n)>=0}var rn=E((function(e,t,n){var r,o;return B(t)?o=t:(t=ze(t),r=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=He(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return Gt(e,Ve(t))}function an(e,t){return Xt(e,Ue(t))}function ln(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=St(e)?e:Ae(e)).length;l<s;l++)null!=(r=e[l])&&r>i&&(i=r);else t=Qe(t,n),Vt(e,(function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)}));return i}function sn(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=St(e)?e:Ae(e)).length;l<s;l++)null!=(r=e[l])&&r<i&&(i=r);else t=Qe(t,n),Vt(e,(function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)}));return i}var un=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function cn(e){return e?U(e)?c.call(e):L(e)?e.match(un):St(e)?Gt(e,We):Ae(e):[]}function dn(e,t,n){if(null==t||n)return St(e)||(e=Ae(e)),e[nt(e.length-1)];var r=cn(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var l=nt(a,i),s=r[a];r[a]=r[l],r[l]=s}return r.slice(0,t)}function pn(e){return dn(e,1/0)}function fn(e,t,n){var r=0;return t=Qe(t,n),on(Gt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Qe(r,o),Vt(n,(function(t,o){var a=r(t,o,n);e(i,t,a)})),i}}var mn=hn((function(e,t,n){V(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){V(e,n)?e[n]++:e[n]=1})),bn=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:St(e)?e.length:le(e).length}function wn(e,t,n){return t in n}var xn=E((function(e,t){var n={},r=t[0];if(null==e)return n;B(r)?(t.length>1&&(r=Ge(r,t[1])),t=ge(e)):(r=wn,t=Et(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],l=e[a];r(l,a,e)&&(n[a]=l)}return n})),Cn=E((function(e,t){var n,r=t[0];return B(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Gt(Et(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),xn(e,r,n)}));function Sn(e,t,n){return c.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function En(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Sn(e,e.length-t)}function Nn(e,t,n){return c.call(e,null==t||n?1:t)}function Mn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Nn(e,Math.max(0,e.length-t))}function In(e){return Xt(e,Boolean)}function An(e,t){return Et(e,t,!1)}var kn=E((function(e,t){return t=Et(t,!0,!0),Xt(e,(function(e){return!nn(t,e)}))})),Pn=E((function(e,t){return kn(e,t)}));function Ln(e,t,n,r){A(t)||(r=n,n=t,t=!1),null!=n&&(n=Qe(n,r));for(var o=[],i=[],a=0,l=ie(e);a<l;a++){var s=e[a],u=n?n(s,a,e):s;t&&!n?(a&&i===u||o.push(s),i=u):n?nn(i,u)||(i.push(u),o.push(s)):nn(o,s)||o.push(s)}return o}var Rn=E((function(e){return Ln(Et(e,!0,!0))}));function Tn(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&t.push(i)}}return t}function Dn(e){for(var t=e&&ln(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}var On=E(Dn);function jn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function Zn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(c.call(e,r,r+=t));return n}function Bn(e,t){return e._chain?ce(t).chain():t}function zn(e){return Vt(Le(e),(function(t){var n=ce[t]=e[t];ce.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),Bn(this,n.apply(ce,e))}})),ce}Vt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];ce.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Bn(this,n)}})),Vt(["concat","join","slice"],(function(e){var t=a[e];ce.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Bn(this,e)}}));var Hn=ce,$n=zn(r);$n._=$n;var qn=$n}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.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 o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},a.d(o,i),o},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="react:",a.l=function(e,t,o,i){if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)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+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=e),n[e]=[t];var p=function(t,r){l.onerror=l.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((function(e){return e(r)})),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e}(),function(){var e={826:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,(function(n){if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],l=n[1],s=n[2],u=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);s&&s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkreact=self.webpackChunkreact||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";var e,t=window.wp.element,n=a(9196),r=a.n(n);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const i="popstate";function l(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,r){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var f;function h(e,t,n){void 0===n&&(n="/");let r=A(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=N(o[e],I(r));return i}function m(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(l(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=R([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),m(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of g(e.path))o(e,t,n);else o(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=g(r.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const v=/^:\w+$/,b=3,y=2,w=1,x=10,C=-2,S=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=C),t&&(r+=y),n.filter((e=>!S(e))).reduce(((e,t)=>e+(v.test(t)?b:""===t?w:x)),r)}function N(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,s="/"===o?t:t.slice(o.length)||"/",u=M({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},s);if(!u)return null;Object.assign(r,u.params);let c=a.route;i.push({params:r,pathname:R([o,u.pathname]),pathnameBase:T(R([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=R([o,u.pathnameBase]))}return i}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const u=l[n];return e[r]=o&&!u?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u||"",r),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function I(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(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)||"/"}function k(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 P(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function L(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=p(e):(i=o({},e),l(!i.pathname||!i.pathname.includes("?"),k("?","pathname","search",i)),l(!i.pathname||!i.pathname.includes("#"),k("#","pathname","hash",i)),l(!i.search||!i.search.includes("#"),k("#","search","hash",i)));let a,s=""===e||""===i.pathname,u=s?"/":i.pathname;if(null==u)a=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:i,search:D(r),hash:O(o)}}(i,a),d=u&&"/"!==u&&u.endsWith("/"),f=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const R=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const j=["post","put","patch","delete"],F=(new Set(j),["get",...j]);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const Z=n.createContext(null),B=n.createContext(null),z=n.createContext(null),H=n.createContext(null),$=n.createContext({outlet:null,matches:[],isDataRoute:!1}),q=n.createContext(null);function W(){return null!=n.useContext(H)}function U(){return W()||l(!1),n.useContext(H).location}function V(e){n.useContext(z).static||n.useLayoutEffect(e)}function G(){let{isDataRoute:e}=n.useContext($);return e?function(){let{router:e}=function(e){let t=n.useContext(Z);return t||l(!1),t}(te.UseNavigateStable),t=re(ne.UseNavigateStable),r=n.useRef(!1);return V((()=>{r.current=!0})),n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,_({fromRouteId:t},o)))}),[e,t])}():function(){W()||l(!1);let e=n.useContext(Z),{basename:t,future:r,navigator:o}=n.useContext(z),{matches:i}=n.useContext($),{pathname:a}=U(),s=JSON.stringify(P(i,r.v7_relativeSplatPath)),u=n.useRef(!1);return V((()=>{u.current=!0})),n.useCallback((function(n,r){if(void 0===r&&(r={}),!u.current)return;if("number"==typeof n)return void o.go(n);let i=L(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:R([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[t,o,s,a,e])}()}function Y(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(z),{matches:i}=n.useContext($),{pathname:a}=U(),l=JSON.stringify(P(i,o.v7_relativeSplatPath));return n.useMemo((()=>L(e,JSON.parse(l),a,"path"===r)),[e,l,a,r])}function K(t,r,o,i){W()||l(!1);let{navigator:a}=n.useContext(z),{matches:s}=n.useContext($),u=s[s.length-1],c=u?u.params:{},d=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let f,m=U();if(r){var g;let e="string"==typeof r?p(r):r;"/"===d||(null==(g=e.pathname)?void 0:g.startsWith(d))||l(!1),f=e}else f=m;let v=f.pathname||"/",b=h(t,{pathname:"/"===d?v:v.slice(d.length)||"/"}),y=function(e,t,r,o){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,u=null==(i=r)?void 0:i.errors;if(null!=u){let e=s.findIndex((e=>e.route.id&&(null==u?void 0:u[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,o,i)=>{let a,l=!1,p=null,f=null;var h;r&&(a=u&&o.route.id?u[o.route.id]:void 0,p=o.route.errorElement||X,c&&(d<0&&0===i?(oe[h="route-fallback"]||(oe[h]=!0),l=!0,f=null):d===i&&(l=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?p:l?f:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(ee,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(J,{location:r.location,revalidation:r.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:R([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:R([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,i);return r&&y?n.createElement(H.Provider,{value:{location:_({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:e.Pop}},y):y}function Q(){let e=function(){var e;let t=n.useContext(q),r=function(e){let t=n.useContext(B);return t||l(!1),t}(ne.UseRouteError),o=re(ne.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[o]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,null)}const X=n.createElement(Q,null);class J extends n.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){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement($.Provider,{value:this.props.routeContext},n.createElement(q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ee(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(Z);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement($.Provider,{value:t},o)}var te=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(te||{}),ne=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ne||{});function re(e){let t=function(e){let t=n.useContext($);return t||l(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||l(!1),r.route.id}const oe={};function ie(e){l(!1)}function ae(t){let{basename:r="/",children:o=null,location:i,navigationType:a=e.Pop,navigator:s,static:u=!1,future:c}=t;W()&&l(!1);let d=r.replace(/^\/*/,"/"),f=n.useMemo((()=>({basename:d,navigator:s,static:u,future:_({v7_relativeSplatPath:!1},c)})),[d,c,s,u]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:m="",hash:g="",state:v=null,key:b="default"}=i,y=n.useMemo((()=>{let e=A(h,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:b},navigationType:a}}),[d,h,m,g,v,b,a]);return null==y?null:n.createElement(z.Provider,{value:f},n.createElement(H.Provider,{children:o,value:y}))}function le(e){let{children:t,location:n}=e;return K(se(t),n)}function se(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,o)=>{if(!n.isValidElement(e))return;let i=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,se(e.props.children,i));e.type!==ie&&l(!1),e.props.index&&e.props.children&&l(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=se(e.props.children,i)),r.push(a)})),r}function ue(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ue(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}n.startTransition,new Promise((()=>{})),n.Component;var ce=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ue(e))&&(r&&(r+=" "),r+=t);return r};const de=e=>"number"==typeof e&&!isNaN(e),pe=e=>"string"==typeof e,fe=e=>"function"==typeof e,he=e=>pe(e)||fe(e)?e:null,me=e=>(0,n.isValidElement)(e)||pe(e)||fe(e)||de(e);function ge(e){let{enter:t,exit:r,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:l,position:s,preventExitTransition:u,done:c,nodeRef:d,isIn:p}=e;const f=o?`${t}--${s}`:t,h=o?`${r}--${s}`:r,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,n.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,c,a):c()};p||(u?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),n.createElement(n.Fragment,null,l)}}function ve(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const be={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},ye=e=>{let{theme:t,type:r,...o}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...o})},we={info:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function xe(e){const[,t]=(0,n.useReducer)((e=>e+1),0),[r,o]=(0,n.useState)([]),i=(0,n.useRef)(null),a=(0,n.useRef)(new Map).current,l=e=>-1!==r.indexOf(e),s=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:e=>a.get(e)}).current;function u(e){let{containerId:t}=e;const{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function c(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function d(){const{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();f(e,t,n)}function p(e,r){let{delay:o,staleId:l,...u}=r;if(!me(e)||function(e){return!i.current||s.props.enableMultiContainer&&e.containerId!==s.props.containerId||a.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:p,updateId:h,data:m}=u,{props:g}=s,v=()=>c(p),b=null==h;b&&s.count++;const y={...g,style:g.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(u).filter((e=>{let[t,n]=e;return null!=n}))),toastId:p,updateId:h,data:m,closeToast:v,isIn:!1,className:he(u.className||g.toastClassName),bodyClassName:he(u.bodyClassName||g.bodyClassName),progressClassName:he(u.progressClassName||g.progressClassName),autoClose:!u.isLoading&&(w=u.autoClose,x=g.autoClose,!1===w||de(w)&&w>0?w:x),deleteToast(){const e=ve(a.get(p),"removed");a.delete(p),be.emit(4,e);const n=s.queue.length;if(s.count=null==p?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),n>0){const e=null==p?s.props.limit:1;if(1===n||1===e)s.displayedToast++,d();else{const t=e>n?n:e;s.displayedToast=t;for(let e=0;e<t;e++)d()}}else t()}};var w,x;y.iconOut=function(e){let{theme:t,type:r,isLoading:o,icon:i}=e,a=null;const l={theme:t,type:r};return!1===i||(fe(i)?a=i(l):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,l):pe(i)||de(i)?a=i:o?a=we.spinner():(e=>e in we)(r)&&(a=we[r](l))),a}(y),fe(u.onOpen)&&(y.onOpen=u.onOpen),fe(u.onClose)&&(y.onClose=u.onClose),y.closeButton=g.closeButton,!1===u.closeButton||me(u.closeButton)?y.closeButton=u.closeButton:!0===u.closeButton&&(y.closeButton=!me(g.closeButton)||g.closeButton);let C=e;(0,n.isValidElement)(e)&&!pe(e.type)?C=(0,n.cloneElement)(e,{closeToast:v,toastProps:y,data:m}):fe(e)&&(C=e({closeToast:v,toastProps:y,data:m})),g.limit&&g.limit>0&&s.count>g.limit&&b?s.queue.push({toastContent:C,toastProps:y,staleId:l}):de(o)?setTimeout((()=>{f(C,y,l)}),o):f(C,y,l)}function f(e,t,n){const{toastId:r}=t;n&&a.delete(n);const i={content:e,props:t};a.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),be.emit(4,ve(i,null==i.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(s.containerId=e.containerId,be.cancelEmit(3).on(0,p).on(1,(e=>i.current&&c(e))).on(5,u).emit(2,s),()=>{a.clear(),be.emit(3,s)})),[]),(0,n.useEffect)((()=>{s.props=e,s.isToastActive=l,s.displayedToast=r.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:l}}function Ce(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Se(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ee(e){const[t,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(!1),a=(0,n.useRef)(null),l=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,n.useRef)(e),{autoClose:u,pauseOnHover:c,closeToast:d,onClick:p,closeOnClick:f}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.addEventListener("touchmove",b),document.addEventListener("touchend",y);const n=a.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=Ce(t.nativeEvent),l.y=Se(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(l.boundingRect){const{top:n,bottom:r,left:o,right:i}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=o&&l.x<=i&&l.y>=n&&l.y<=r?v():g()}}function g(){r(!0)}function v(){r(!1)}function b(n){const r=a.current;l.canDrag&&r&&(l.didMove=!0,t&&v(),l.x=Ce(n),l.y=Se(n),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function y(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",y);const t=a.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{s.current=e})),(0,n.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),fe(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=s.current;fe(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m};return u&&c&&(w.onMouseEnter=v,w.onMouseLeave=g),f&&(w.onClick=e=>{p&&p(e),l.canCloseOnClick&&d()}),{playToast:g,pauseToast:v,isRunning:t,preventExitTransition:o,toastRef:a,eventHandlers:w}}function Ne(e){let{closeToast:t,theme:r,ariaLabel:o="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Me(e){let{delay:t,isRunning:r,closeToast:o,type:i="default",hide:a,className:l,style:s,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:f}=e;const h=a||u&&0===c,m={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:h?0:1};u&&(m.transform=`scaleX(${c})`);const g=ce("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),v=fe(l)?l({rtl:d,type:i,defaultClassName:g}):ce(g,l);return n.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:v,style:m,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&o()}})}const Ie=e=>{const{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:i}=Ee(e),{closeButton:a,children:l,autoClose:s,onClick:u,type:c,hideProgressBar:d,closeToast:p,transition:f,position:h,className:m,style:g,bodyClassName:v,bodyStyle:b,progressClassName:y,progressStyle:w,updateId:x,role:C,progress:S,rtl:E,toastId:N,deleteToast:M,isIn:I,isLoading:A,iconOut:k,closeOnClick:P,theme:L}=e,R=ce("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":P}),T=fe(m)?m({rtl:E,position:h,type:c,defaultClassName:R}):ce(R,m),D=!!S||!s,O={closeToast:p,type:c,theme:L};let j=null;return!1===a||(j=fe(a)?a(O):(0,n.isValidElement)(a)?(0,n.cloneElement)(a,O):Ne(O)),n.createElement(f,{isIn:I,done:M,position:h,preventExitTransition:r,nodeRef:o},n.createElement("div",{id:N,onClick:u,className:T,...i,style:g,ref:o},n.createElement("div",{...I&&{role:C},className:fe(v)?v({type:c}):ce("Toastify__toast-body",v),style:b},null!=k&&n.createElement("div",{className:ce("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},k),n.createElement("div",null,l)),j,n.createElement(Me,{...x&&!D?{key:`pb-${x}`}:{},rtl:E,theme:L,delay:s,isRunning:t,isIn:I,closeToast:p,hide:d,type:c,style:w,className:y,controlledProgress:D,progress:S||0})))},Ae=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},ke=ge(Ae("bounce",!0)),Pe=(ge(Ae("slide",!0)),ge(Ae("zoom")),ge(Ae("flip")),(0,n.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:o,isToastActive:i}=xe(e),{className:a,style:l,rtl:s,containerId:u}=e;function c(e){const t=ce("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":s});return fe(a)?a({position:e,rtl:s,defaultClassName:t}):ce(t,he(a))}return(0,n.useEffect)((()=>{t&&(t.current=o.current)}),[]),n.createElement("div",{ref:o,className:"Toastify",id:u},r(((e,t)=>{const r=t.length?{...l}:{...l,pointerEvents:"none"};return n.createElement("div",{className:c(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:o,props:a}=e;return n.createElement(Ie,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":r+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))})));Pe.displayName="ToastContainer",Pe.defaultProps={position:"top-right",transition:ke,autoClose:5e3,closeButton:Ne,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Le,Re=new Map,Te=[],De=1;function Oe(){return""+De++}function je(e){return e&&(pe(e.toastId)||de(e.toastId))?e.toastId:Oe()}function Fe(e,t){return Re.size>0?be.emit(0,e,t):Te.push({content:e,options:t}),t.toastId}function _e(e,t){return{...t,type:t&&t.type||e,toastId:je(t)}}function Ze(e){return(t,n)=>Fe(t,_e(e,n))}function Be(e,t){return Fe(e,_e("default",t))}Be.loading=(e,t)=>Fe(e,_e("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Be.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=pe(o)?Be.loading(o,n):Be.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,o)=>{if(null==t)return void Be.dismiss(r);const i={type:e,...l,...n,data:o},a=pe(t)?{render:t}:t;return r?Be.update(r,{...i,...a}):Be(a.render,{...i,...a}),o},u=fe(e)?e():e;return u.then((e=>s("success",a,e))).catch((e=>s("error",i,e))),u},Be.success=Ze("success"),Be.info=Ze("info"),Be.error=Ze("error"),Be.warning=Ze("warning"),Be.warn=Be.warning,Be.dark=(e,t)=>Fe(e,_e("default",{theme:"dark",...t})),Be.dismiss=e=>{Re.size>0?be.emit(1,e):Te=Te.filter((t=>null!=e&&t.options.toastId!==e))},Be.clearWaitingQueue=function(e){return void 0===e&&(e={}),be.emit(5,e)},Be.isActive=e=>{let t=!1;return Re.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Be.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=Re.get(n||Le);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Oe()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Fe(a,i)}}),0)},Be.done=e=>{Be.update(e,{progress:1})},Be.onChange=e=>(be.on(4,e),()=>{be.off(4,e)}),Be.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Be.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},be.on(2,(e=>{Le=e.containerId||e,Re.set(Le,e),Te.forEach((e=>{be.emit(0,e.content,e.options)})),Te=[]})).on(3,(e=>{Re.delete(e.containerId||e),0===Re.size&&be.off(0).off(1).off(5)}));var ze=({firstXs:e,lastXs:n,firstSm:r,lastSm:o,firstMd:i,lastMd:a,firstLg:l,lastLg:s,firstXl:u,lastXl:c,xsOffset:d,smOffset:p,mdOffset:f,lgOffset:h,xlOffset:m,xs:g,sm:v,md:b,lg:y,xl:w,textXs:x,textSm:C,textMd:S,textLg:E,textXl:N,alignSelf:M,customClass:I,children:A})=>(0,t.createElement)("div",{className:`${(()=>{let t="simpleform-col";return t+=e?" first-xs":n?" last-xs":"",t+=r?" first-sm":o?" last-sm":"",t+=i?" first-md":a?" last-md":"",t+=l?" first-lg":s?" last-lg":"",t+=u?" first-xl":c?" last-xl":"",t+=d?" col-xs-offset-"+d:"",t+=p?" col-sm-offset-"+p:"",t+=f?" col-md-offset-"+f:"",t+=h?" col-lg-offset-"+h:"",t+=m?" col-xl-offset-"+m:"",t+=g?" col-xs-"+g:"",t+=v?" col-sm-"+v:"",t+=b?" col-md-"+b:"",t+=y?" col-lg-"+y:"",t+=w?" col-xl-"+w:"",t+=x?" text-xs-"+x:"",t+=C?" text-sm-"+C:"",t+=S?" text-md-"+S:"",t+=E?" text-lg-"+E:"",t+=N?" text-xl-"+N:"",t+=M?" align-self-"+M:"",t})()} ${I||""}`},A),He=({fluid:e,hero:n,fullWidth:r,small:o,children:i})=>(0,t.createElement)("div",{className:(()=>{let t=e?"simpleform-container-fluid ":"simpleform-container ";return t+=n?"simpleform-hero ":"",t+=r?"full-width ":"",t+=o?"small ":"",t})()},i),$e=({reverse:e,startXs:n,centerXs:r,endXs:o,topXs:i,middleXs:a,bottomXs:l,aroundXs:s,betweenXs:u,startSm:c,centerSm:d,endSm:p,topSm:f,middleSm:h,bottomSm:m,aroundSm:g,betweenSm:v,startMd:b,centerMd:y,endMd:w,topMd:x,middleMd:C,bottomMd:S,aroundMd:E,betweenMd:N,startLg:M,centerLg:I,endLg:A,topLg:k,middleLg:P,bottomLg:L,aroundLg:R,betweenLg:T,customClass:D,children:O})=>(0,t.createElement)("div",{className:`${(()=>{let t=e?"simpleform-row reverse":"simpleform-row ";return t+=n?" start-xs":r?" center-xs":o?" end-xs":"",t+=c?" start-sm":d?" center-sm":p?" end-sm":"",t+=b?" start-md":y?" center-md":w?" end-md":"",t+=M?" start-lg":I?" center-lg":A?" end-lg":"",t+=i?" top-xs":a?" middle-xs":l?" bottom-xs":"",t+=f?" top-sm":h?" middle-sm":m?" bottom-sm":"",t+=x?" top-md":C?" middle-md":S?" bottom-md":"",t+=k?" top-lg":P?" middle-lg":L?" bottom-lg":"",t+=s?" around-xs":u?" between-xs":"",t+=g?" around-sm":v?" between-sm":"",t+=E?" around-md":N?" between-md":"",t+=R?" around-lg":T?" between-lg":"",t})()} ${D||""}`},O),qe=window.ReactDOM,We=a.n(qe);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ve=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];new Map;const Ge=n.startTransition;qe.flushSync;const Ye="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=n.forwardRef((function(e,t){let r,{onClick:o,relative:i,reloadDocument:a,replace:s,state:u,target:c,to:p,preventScrollReset:f,unstable_viewTransition:h}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Ve),{basename:g}=n.useContext(z),v=!1;if("string"==typeof p&&Ke.test(p)&&(r=p,Ye))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),n=A(t.pathname,g);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:v=!0}catch(e){}let b=function(e,t){let{relative:r}=void 0===t?{}:t;W()||l(!1);let{basename:o,navigator:i}=n.useContext(z),{hash:a,pathname:s,search:u}=Y(e,{relative:r}),c=s;return"/"!==o&&(c="/"===s?o:R([o,s])),i.createHref({pathname:c,search:u,hash:a})}(p,{relative:i}),y=function(e,t){let{target:r,replace:o,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s}=void 0===t?{}:t,u=G(),c=U(),p=Y(e,{relative:l});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:d(c)===d(p);u(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s})}}),[c,u,p,o,i,r,e,a,l,s])}(p,{replace:s,state:u,target:c,preventScrollReset:f,relative:i,unstable_viewTransition:h});return n.createElement("a",Ue({},m,{href:r||b,onClick:v||a?o:function(e){o&&o(e),e.defaultPrevented||y(e)},ref:t,target:c}))}));var Xe,Je;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xe||(Xe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Je||(Je={}));var et=({colored:e,children:n,customClass:r})=>{let o="simpleform-card";return e&&(o+=" colored-bg"),r&&(o+=" "+r),(0,t.createElement)("div",{className:o},n)};const tt=Object.assign({},window.SIMPLEFORM_APP);function nt(){return tt.nonce}function rt(){return tt.isPro}function ot(){return tt.turnsTile}function it(){return tt.tables}var at=a(940),lt=a(3592),st=a(3591),ut=a(6907),ct=({tagName:e,children:n})=>{const r=()=>`simpleform-title ${e||""}`;return e?"h1"===e?(0,t.createElement)("h1",{className:`${r()}`},n):"h2"===e?(0,t.createElement)("h2",{className:`${r()}`},n):"h3"===e?(0,t.createElement)("h3",{className:`${r()}`},n):"h4"===e?(0,t.createElement)("h4",{className:`${r()}`},n):(0,t.createElement)("p",{className:`${r()}`},n):(0,t.createElement)("h1",{className:`${r()}`},n)},dt=a(594),pt=({onClose:e,children:n})=>(0,qe.createPortal)((0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"modal-overlay"}),(0,t.createElement)("div",{className:"modal-content"},(0,t.createElement)("div",null,(0,t.createElement)("button",{className:"modal-close",onClick:e},(0,t.createElement)(dt.Z,null)),(0,t.createElement)("div",{className:"modal-body"},n)))),document.getElementById("simpleform-app-portal")),ft=function({table:e,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}){const l=(0,n.useRef)(),[s,u]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),p=()=>{d(!1)};function f(e){l.current&&!l.current.contains(e.target)&&p()}return(0,n.useEffect)((()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)})),[f]),(0,t.createElement)("div",{className:"table_info-action_box_wrapper"},c&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"delete-table-modal-wrap modal-content",ref:l},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>p()},(0,t.createElement)(lt.Z,{className:"scf-delete-btn"})),(0,t.createElement)("div",{className:"delete-table-modal"},(0,t.createElement)("div",{className:"modal-media"},(0,t.createElement)(st.Z,{fontSize:"large",htmlColor:"secondary",className:"scf-form-delete"})),(0,t.createElement)("h2",null,"Are you sure to delete the Form? "),(0,t.createElement)("div",{className:"action-buttons"},(0,t.createElement)("button",{className:"simpleform-button cancel-button",onClick:p},"Cancel"),(0,t.createElement)("button",{className:"simpleform-button confirm-button",onClick:()=>{return t=e.id,void wp.ajax.send("simpleform_delete_table",{data:{nonce:nt(),id:t},success(){d(!1),a(!0),wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success({tables:e,tables_count:t}){i(e),r(e),o(t),a(!1)},error(e){console.error(e)}})},error(e){console.error(e)}});var t}},"Delete"))))),(0,t.createElement)("div",{className:"table_info-action_box"},(0,t.createElement)("div",{className:"table-info-box"},(0,t.createElement)("div",{className:"table-info"},(0,t.createElement)(Qe,{to:`/edit/${e.id}`,className:"table-edit"},(0,t.createElement)(ct,{tagName:"h4"},e.form_name)),(0,t.createElement)(ct,{tagName:"p"},"Form ID : ",e.id))),(0,t.createElement)("div",{className:"table-action-box"},(0,t.createElement)("button",{className:"copy-shortcode btn-shortcode "+(s?"btn-success":""),onClick:()=>(async e=>{const t=`[simple_form id="${e}"]`;try{await navigator.clipboard.writeText(t),u(!0),setTimeout((()=>{u(!1)}),1e3)}catch(e){u(!1)}})(e.id)},s?(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.6 0H5.6C4.8279 0 4.2 0.6279 4.2 1.4V4.2H1.4C0.6279 4.2 0 4.8279 0 5.6V12.6C0 13.3721 0.6279 14 1.4 14H8.4C9.1721 14 9.8 13.3721 9.8 12.6V9.8H12.6C13.3721 9.8 14 9.1721 14 8.4V1.4C14 0.6279 13.3721 0 12.6 0ZM1.4 12.6V5.6H8.4L8.4014 12.6H1.4ZM12.6 8.4H9.8V5.6C9.8 4.8279 9.1721 4.2 8.4 4.2H5.6V1.4H12.6V8.4Z",fill:"#FF7E47"})):(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.6 0H5.6C4.8279 0 4.2 0.6279 4.2 1.4V4.2H1.4C0.6279 4.2 0 4.8279 0 5.6V12.6C0 13.3721 0.6279 14 1.4 14H8.4C9.1721 14 9.8 13.3721 9.8 12.6V9.8H12.6C13.3721 9.8 14 9.1721 14 8.4V1.4C14 0.6279 13.3721 0 12.6 0ZM1.4 12.6V5.6H8.4L8.4014 12.6H1.4ZM12.6 8.4H9.8V5.6C9.8 4.8279 9.1721 4.2 8.4 4.2H5.6V1.4H12.6V8.4Z",fill:"#1E1E1E"})),"Copy Shortcode"),(0,t.createElement)(Qe,{to:`/edit/${e.id}`,className:"table-edit"},(0,t.createElement)(at.Z,{className:"sf-edit-form"})),(0,t.createElement)("button",{className:"table-delete",onClick:()=>{d(!0)}},(0,t.createElement)(ut.Z,{className:"scf-delete-btn"})))))},ht=function({copiedTables:e,tables:n,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}){return(0,t.createElement)(et,{customClass:"table-item-card"},n&&n.map((e=>(0,t.createElement)(ft,{key:e.id,table:e,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}))))};const mt=a(5475);var gt=function(){const[e,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(it()),[a,l]=(0,n.useState)(it()),[s,u]=(0,n.useState)(""),[c,d]=(0,n.useState)(0);return(0,n.useEffect)((()=>{r(!0),wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){i(e.tables),l(e.tables),d(e.tables_count),r(!1)},error(e){console.error(e)}})}),[]),(0,n.useEffect)((()=>{if(""!==s){const e=o.filter((({form_name:e})=>e.toLowerCase().includes(s.toString().toLowerCase())));l(e)}else l(o)}),[s]),(0,t.createElement)(t.Fragment,null,o.length<1?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"no-tables-created-intro text-center"},(0,t.createElement)("div",{className:"no-tables-intro-img"},(0,t.createElement)("img",{style:{width:"42vh",height:"40vh"},src:mt,alt:"Cloud Icon"})),(0,t.createElement)("h2",null,"Please create one"),(0,t.createElement)(Qe,{className:"btn btn-lg",to:"/create-form"},"Add Form"),(0,t.createElement)("p",{className:"help"},"Need help? ",(0,t.createElement)("a",{href:"https://youtu.be/1PnGVuAqIxk",target:"_blank"},"Watch Now")))):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"table-header"},(0,t.createElement)("div",{className:"table-search-box"},(0,t.createElement)("input",{type:"text",placeholder:"Search tables",onChange:e=>u(e.target.value.trim())}),(0,t.createElement)("div",{className:"table-create-form"},(0,t.createElement)(Qe,{className:"create-table btn btn-md",to:"/create-form"},"Create form")))),e?(0,t.createElement)(et,null,(0,t.createElement)("h1",null,"Loading...")):(0,t.createElement)("div",null,(0,t.createElement)(ht,{tables:a,copiedTables:a,setCopiedTables:l,setTables:i,setTableCount:d,setLoader:r}))))};function vt(e,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vt(e,t)}function bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vt(e,t)}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(this,arguments)}function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function xt(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wt(t)?t:String(t)}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=xt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Nt="function"==typeof Symbol&&Symbol.observable||"@@observable",Mt=function(){return Math.random().toString(36).substring(7).split("").join(".")},It={INIT:"@@redux/INIT"+Mt(),REPLACE:"@@redux/REPLACE"+Mt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mt()}};function At(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Et(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Et(1));return n(At)(e,t)}if("function"!=typeof e)throw new Error(Et(2));var o=e,i=t,a=[],l=a,s=!1;function u(){l===a&&(l=a.slice())}function c(){if(s)throw new Error(Et(3));return i}function d(e){if("function"!=typeof e)throw new Error(Et(4));if(s)throw new Error(Et(5));var t=!0;return u(),l.push(e),function(){if(t){if(s)throw new Error(Et(6));t=!1,u();var n=l.indexOf(e);l.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Et(7));if(void 0===e.type)throw new Error(Et(8));if(s)throw new Error(Et(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:It.INIT}),(r={dispatch:p,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Et(10));o=e,p({type:It.REPLACE})}})[Nt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Et(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Nt]=function(){return this},e},r}function kt(e,t){return function(){return t(e.apply(this,arguments))}}function Pt(e,t){if("function"==typeof e)return kt(e,t);if("object"!=typeof e||null===e)throw new Error(Et(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=kt(o,t))}return n}function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Rt=r().createContext(null),Tt=function(e){e()},Dt=function(){return Tt},Ot={notify:function(){},get:function(){return[]}};function jt(e,t){var n,r=Ot;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=Dt(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Ot)},getListeners:function(){return r}};return a}var Ft="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,_t=function(e){var t=e.store,o=e.context,i=e.children,a=(0,n.useMemo)((function(){var e=jt(t);return{store:t,subscription:e}}),[t]),l=(0,n.useMemo)((function(){return t.getState()}),[t]);Ft((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var s=o||Rt;return r().createElement(s.Provider,{value:a},i)};function Zt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Bt=a(5839),zt=a.n(Bt),Ht=a(3910),$t=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],qt=["reactReduxForwardedRef"],Wt=[],Ut=[null,null];function Vt(e,t){var n=e[1];return[t.payload,n+1]}function Gt(e,t,n){Ft((function(){return e.apply(void 0,t)}),n)}function Yt(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Kt(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,d=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var Qt=function(){return[null,0]};function Xt(e,t){void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=o.methodName,s=void 0===l?"connectAdvanced":l,u=o.renderCountProp,c=void 0===u?void 0:u,d=o.shouldHandleStateChanges,p=void 0===d||d,f=o.storeKey,h=void 0===f?"store":f,m=(o.withRef,o.forwardRef),g=void 0!==m&&m,v=o.context,b=void 0===v?Rt:v,y=Zt(o,$t),w=b;return function(t){var o=t.displayName||t.name||"Component",i=a(o),l=yt({},y,{getDisplayName:a,methodName:s,renderCountProp:c,shouldHandleStateChanges:p,storeKey:h,displayName:i,wrappedComponentName:o,WrappedComponent:t}),u=y.pure,d=u?n.useMemo:function(e){return e()};function f(o){var i=(0,n.useMemo)((function(){var e=o.reactReduxForwardedRef,t=Zt(o,qt);return[o.context,e,t]}),[o]),a=i[0],s=i[1],u=i[2],c=(0,n.useMemo)((function(){return a&&a.Consumer&&(0,Ht.isContextConsumer)(r().createElement(a.Consumer,null))?a:w}),[a,w]),f=(0,n.useContext)(c),h=Boolean(o.store)&&Boolean(o.store.getState)&&Boolean(o.store.dispatch);Boolean(f)&&Boolean(f.store);var m=h?o.store:f.store,g=(0,n.useMemo)((function(){return function(t){return e(t.dispatch,l)}(m)}),[m]),v=(0,n.useMemo)((function(){if(!p)return Ut;var e=jt(m,h?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,h,f]),b=v[0],y=v[1],x=(0,n.useMemo)((function(){return h?f:yt({},f,{subscription:b})}),[h,f,b]),C=(0,n.useReducer)(Vt,Wt,Qt),S=C[0][0],E=C[1];if(S&&S.error)throw S.error;var N=(0,n.useRef)(),M=(0,n.useRef)(u),I=(0,n.useRef)(),A=(0,n.useRef)(!1),k=d((function(){return I.current&&u===M.current?I.current:g(m.getState(),u)}),[m,S,u]);Gt(Yt,[M,N,A,u,k,I,y]),Gt(Kt,[p,m,b,g,M,N,A,I,y,E],[m,b,g]);var P=(0,n.useMemo)((function(){return r().createElement(t,yt({},k,{ref:s}))}),[s,t,k]);return(0,n.useMemo)((function(){return p?r().createElement(c.Provider,{value:x},P):P}),[c,P,x])}var m=u?r().memo(f):f;if(m.WrappedComponent=t,m.displayName=f.displayName=i,g){var v=r().forwardRef((function(e,t){return r().createElement(m,yt({},e,{reactReduxForwardedRef:t}))}));return v.displayName=i,v.WrappedComponent=t,zt()(v,t)}return zt()(m,t)}}function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(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(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Jt(e[n[o]],t[n[o]]))return!1;return!0}function tn(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function nn(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function rn(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=nn(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=nn(o),o=r(t,n)),o},r}}var on=[function(e){return"function"==typeof e?rn(e):void 0},function(e){return e?void 0:tn((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?tn((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],an=[function(e){return"function"==typeof e?rn(e):void 0},function(e){return e?void 0:tn((function(){return{}}))}];function ln(e,t,n){return yt({},n,e,t)}var sn=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return ln}}],un=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function cn(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function dn(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;return function(o,h){return f?function(o,f){var h,m,g=!d(f,a),v=!c(o,i,f,a);return i=o,a=f,g&&v?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):g?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):v?(h=e(i,a),m=!p(h,l),l=h,m&&(u=n(l,s,a)),u):u}(o,h):(l=e(i=o,a=h),s=t(r,a),u=n(l,s,a),f=!0,u)}}function pn(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Zt(t,un),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?dn:cn)(a,l,s,e,i)}var fn=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function hn(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function mn(e,t){return e===t}function gn(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Xt:n,o=t.mapStateToPropsFactories,i=void 0===o?an:o,a=t.mapDispatchToPropsFactories,l=void 0===a?on:a,s=t.mergePropsFactories,u=void 0===s?sn:s,c=t.selectorFactory,d=void 0===c?pn:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,p=a.areStatesEqual,f=void 0===p?mn:p,h=a.areOwnPropsEqual,m=void 0===h?en:h,g=a.areStatePropsEqual,v=void 0===g?en:g,b=a.areMergedPropsEqual,y=void 0===b?en:b,w=Zt(a,fn),x=hn(e,i,"mapStateToProps"),C=hn(t,l,"mapDispatchToProps"),S=hn(n,u,"mergeProps");return r(d,yt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:C,initMergeProps:S,pure:c,areStatesEqual:f,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:y},w))}}var vn,bn=gn();function yn(e,t){var r=(0,n.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,n.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}vn=qe.unstable_batchedUpdates,Tt=vn;var wn=yn,xn=function(e,t){return yn((function(){return e}),t)},Cn=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Sn=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},En=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Nn={top:0,right:0,bottom:0,left:0},Mn=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Nn:n,o=e.border,i=void 0===o?Nn:o,a=e.padding,l=void 0===a?Nn:a,s=Cn(Sn(t,r)),u=Cn(En(t,i)),c=Cn(En(u,l));return{marginBox:s,borderBox:Cn(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:l}},In=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},An=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Mn({borderBox:s,border:i,margin:a,padding:l})},kn=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),An(e,t)},Pn=function(e,t){var n={top:In(t.marginTop),right:In(t.marginRight),bottom:In(t.marginBottom),left:In(t.marginLeft)},r={top:In(t.paddingTop),right:In(t.paddingRight),bottom:In(t.paddingBottom),left:In(t.paddingLeft)},o={top:In(t.borderTopWidth),right:In(t.borderRightWidth),bottom:In(t.borderBottomWidth),left:In(t.borderLeftWidth)};return Mn({borderBox:e,margin:n,padding:r,border:o})},Ln=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Pn(t,n)},Rn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Tn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Rn(r)&&Rn(o)))return!1;var r,o;return!0}var Dn=function(e,t){var n;void 0===t&&(t=Tn);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},On=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function jn(e,t){}function Fn(){}function Zn(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,yt({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}jn.bind(null,"warn"),jn.bind(null,"error");var Bn=!0,zn="Invariant failed";function Hn(e){this.message=e}function $n(e,t){if(!e)throw new Hn(Bn?zn:zn+": "+(t||""))}Hn.prototype.toString=function(){return this.message};var qn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Fn,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Hn&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}bt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Zn(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Hn))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r().Component),Wn=function(e){return e+1},Un=function(e,t){var n=e.droppableId===t.droppableId,r=Wn(e.index),o=Wn(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},Vn=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},Gn=function(e){return"\n  The item has returned to its starting position\n  of "+Wn(e.index)+"\n"},Yn=function(e){return"\n  You have lifted an item in position "+Wn(e.source.index)+"\n"},Kn=function(e){var t=e.destination;if(t)return Un(e.source,t);var n=e.combine;return n?Vn(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Qn=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Gn(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+Un(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+Vn(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Gn(e.source)+"\n  "},Xn={x:0,y:0},Jn=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},er=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},tr=function(e,t){return e.x===t.x&&e.y===t.y},nr=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},rr=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},or=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ir=function(e,t){return Math.min.apply(Math,t.map((function(t){return or(e,t)})))},ar=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},lr=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},sr=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},ur=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Cn({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Cn(e)},cr=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?lr(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?yt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:ur(a,o)}},dr=function(e,t){e.frame||$n(!1);var n=e.frame,r=er(t,n.scroll.initial),o=nr(r),i=yt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return yt({},e,{frame:i,subject:cr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function pr(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function fr(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function hr(e,t){if(e.find)return e.find(t);var n=fr(e,t);return-1!==n?e[n]:void 0}function mr(e){return Array.prototype.slice.call(e)}var gr=Dn((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),vr=Dn((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),br=Dn((function(e){return pr(e)})),yr=Dn((function(e){return pr(e)})),wr=Dn((function(e,t){var n=yr(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function xr(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Cr(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Sr=Dn((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Er=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Nr={point:Xn,value:0},Mr={invisible:{},visible:{},all:[]},Ir={displaced:Mr,displacedBy:Nr,at:null},Ar=function(e,t){return function(n){return e<=n&&n<=t}},kr=function(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||a&&i||l&&o}},Pr=function(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Lr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Tr=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Xn;return lr(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},Dr=function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:kr}))},Or=function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:Pr}))},jr=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function Fr(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Cn(Sn(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!Dr({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:s,shouldAnimate:jr(s,a,i)};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function _r(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Mr,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Zr(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,u=Er(t,r);if(null==l)return _r({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=hr(n,(function(e){return e.descriptor.index===l}));if(!c)return _r({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var d=Sr(t,n),p=n.indexOf(c);return{displaced:Fr({afterDragging:d.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Br(e,t){return Boolean(t.effected[e])}var zr=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Hr=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},$r=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return rr(t.line,n.marginBox[t.end]+zr(t,r),Hr(t,n.marginBox,r))},qr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return rr(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Hr(t,n.marginBox,r))},Wr=function(e,t){var n=e.frame;return n?Jn(t,n.scroll.diff.displacement):t},Ur=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=wr(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return rr(t.line,n.contentBox[t.start]+zr(t,r),Hr(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var u=t.displaced,c=t.displacedBy,d=u.all[0];if(d){var p=r[d];if(Br(d,i))return qr({axis:s,moveRelativeTo:p.page,isMoving:l});var f=An(p.page,c.point);return qr({axis:s,moveRelativeTo:f,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Br(h.descriptor.id,i)){var m=An(h.page,nr(i.displacedBy.point));return $r({axis:s,moveRelativeTo:m,isMoving:l})}return $r({axis:s,moveRelativeTo:h.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Cr(n);o||$n(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Br(r,n)?i?Xn:nr(o.point):i?o.point:Xn}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Jn(a,l)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Wr(n,t):t},Vr=function(e,t){var n=er(t,e.scroll.initial),r=nr(n);return{frame:Cn({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Gr(e,t){return e.map((function(e){return t[e]}))}var Yr=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Jn(e.scroll.diff.displacement,t)}(e.viewport,t),o=er(r,n.page.borderBox.center);return Jn(n.client.borderBox.center,o)},Kr=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=er(r,t.page.borderBox.center),u={target:lr(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Ar(e.top,e.bottom),r=Ar(e.left,e.right);return function(e){return t===Lr?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):Or(u)},Qr=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=wr(r.descriptor.id,o),d=Er(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!xr(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return yt({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var u=Sr(n,o);if(!s)return u.length?a(u[u.length-1].descriptor.id):null;var c=fr(u,(function(e){return e.descriptor.id===s}));-1===c&&$n(!1);var d=c-1;return d<0?null:a(u[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,u=e.afterCritical,c=l.at;if(c||$n(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==d?null:Zr({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return Br(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==p?null:Zr({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:p})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!p)return null;var f=Ur({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Kr({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Yr({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var h=er(f,l),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=Vr(n,Jn(n.scroll.current,i)),l=r.frame?dr(r,Jn(r.frame.scroll.current,i)):r,s=t.displaced,u=Fr({afterDragging:Gr(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=Fr({afterDragging:Gr(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},p={},f=[s,u,c];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,f);t?p[e]=t:d[e]=!0})),yt({},t,{displaced:{all:s.all,invisible:d,visible:p}})}({impact:p,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:s,impact:m,scrollJumpRequest:h}},Xr=function(e){var t=e.subject.active;return t||$n(!1),t},Jr=function(e,t){var n=e.page.borderBox.center;return Br(e.descriptor.id,t)?er(n,t.displacedBy.point):n},eo=function(e,t){var n=e.page.borderBox;return Br(e.descriptor.id,t)?lr(n,nr(t.displacedBy.point)):n},to=Dn((function(e,t){var n=t[e.line];return{value:n,point:rr(e.line,n)}})),no=function(e,t){return yt({},e,{scroll:yt({},e.scroll,{max:t})})},ro=function(e,t,n){var r=e.frame;Er(t,e)&&$n(!1),e.subject.withPlaceholder&&$n(!1);var o=to(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return rr(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=wr(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:rr(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return yt({},e,{subject:cr({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?Jn(r.scroll.max,i):r.scroll.max,s=no(r,l);return yt({},e,{subject:cr({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s}),frame:s})},oo=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},io=function(e){var t=e.state,n=e.type,r=function(e,t){var n=oo(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,h=p.droppables;return s?Qr({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=Ar(a[l.start],a[l.end]),u=br(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return kr(i.frame)(Xr(e))})).filter((function(e){var n=Xr(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=Xr(e),n=Ar(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=Xr(e)[l.crossAxisStart],o=Xr(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Xr(e)[l.crossAxisStart]===Xr(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return Ar(Xr(e)[l.start],Xr(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return Xr(e)[l.start]-Xr(t)[l.start]}))[0]:u.sort((function(e,t){var r=ir(n,sr(Xr(e))),o=ir(n,sr(Xr(t)));return r!==o?r-o:Xr(e)[l.start]-Xr(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;var c=wr(u.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return Or({target:eo(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=or(t,Wr(r,Jr(e,o))),a=or(t,Wr(r,Jr(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:c,afterCritical:s}),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:Mr,displacedBy:Nr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=Ur({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:s}),d=Er(o,a)?a:ro(a,o,i);return Kr({draggable:o,destination:d,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p,f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?p:p+1);return Zr({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:to(a.axis,o.displaceBy),last:Mr,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:l,afterCritical:s});if(!p)return null;var f=Ur({impact:p,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:Yr({pageBorderBoxCenter:f,draggable:r,viewport:l}),impact:p,scrollJumpRequest:null}}({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function ao(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function lo(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var so=function(e,t){return Cn(lr(e,t))};function uo(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var co=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=so(n.page.borderBox,t),u=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=br(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(lo(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],u=Ar(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(l),d=u(s);return!c&&!d||(c?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=rr(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:or(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:s,draggable:n,droppables:o});if(!u)return Ir;var c=o[u],d=wr(c.descriptor.id,r),p=function(e,t){var n=e.frame;return n?so(t,n.scroll.diff.value):t}(c,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=to(o.axis,t.displaceBy),u=s.value,c=n[l.start],d=n[l.end],p=hr(Sr(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Br(t,a),s=uo({displaced:r.displaced,id:t});return i?s?d>n[l.start]+o&&d<n[l.end]-o:c>n[l.start]-u+o&&c<n[l.end]-u-o:s?d>n[l.start]+u+o&&d<n[l.end]+u-o:c>n[l.start]+o&&c<n[l.end]-o}));return p?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,u=to(r.axis,n.displaceBy),c=u.value,d=t[s.start],p=t[s.end],f=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:hr(Sr(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=Br(t,l),o=uo({displaced:i,id:t});return r?o?p<=n:d<n-c:o?p<=n+c:d<n})),inHomeList:Er(n,r)});return Zr({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:l})},po=function(e,t){var n;return yt({},e,((n={})[t.descriptor.id]=t,n))},fo=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=er(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Jn(t.initial.client.borderBoxCenter,c)},p={selection:Jn(d.selection,l.scroll.current),borderBoxCenter:Jn(d.borderBoxCenter,l.scroll.current),offset:Jn(d.offset,l.scroll.diff.value)},f={client:d,page:p};if("COLLECTING"===t.phase)return yt({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:f});var h=s.draggables[t.critical.draggable.id],m=i||co({pageOffset:p.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=oo(t),i=oo(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||$n(!1);var n=e.frame;if(!n)return yt({},e,{subject:cr({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||$n(!1);var o=no(n,r);return yt({},e,{subject:cr({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return po(r,l)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=oo(o);if(!a)return i;var l=r[a];if(Er(t,l))return i;if(l.subject.withPlaceholder)return i;var s=ro(l,t,n);return po(i,s)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return yt({},t,{current:f,dimensions:{draggables:s.draggables,droppables:g},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},ho=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return yt({},t,{displaced:Fr({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},mo=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=Ur({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Yr({pageBorderBoxCenter:l,draggable:n,viewport:i})},go=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&$n(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,u=l[t.critical.draggable.id],c=oo(o);c||$n(!1);var d=s[c],p=ho({impact:o,viewport:i,destination:d,draggables:l}),f=mo({impact:p,draggable:u,droppable:d,draggables:l,viewport:i,afterCritical:t.afterCritical});return fo({impact:p,clientSelection:f,state:t,dimensions:a,viewport:i})},vo=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=to(n.axis,t.displaceBy),a=wr(n.descriptor.id,r),l=a.indexOf(t);-1===l&&$n(!1);var s,u=a.slice(l+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:Fr({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:d}},bo=function(e){return"SNAP"===e.movementMode},yo=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:po(e.droppables,t)}}(e.dimensions,t);return!bo(e)||n?fo({state:e,dimensions:r}):go({state:e,dimensions:r})};function wo(e){return e.isDragging&&"SNAP"===e.movementMode?yt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var xo={phase:"IDLE",completed:null,shouldFlush:!1},Co=function(e,t){if(void 0===e&&(e=xo),"FLUSH"===t.type)return yt({},xo,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&$n(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:s.client.borderBox.center,offset:Xn},d={client:c,page:{selection:Jn(c.selection,i.scroll.initial),borderBoxCenter:Jn(c.selection,i.scroll.initial),offset:Jn(c.selection,i.scroll.diff.value)}},p=br(a.droppables).every((function(e){return!e.isFixedOnPage})),f=vo({draggable:s,home:u,draggables:a.draggables,viewport:i}),h=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:h,afterCritical:f.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&$n(!1),yt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&$n(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return dr(n,e.scroll)})),o=yt({},t.dimensions.droppables,{},gr(r)),i=vr(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||$n(!1),t}(n[t]),a=i.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=An(t.client,n),i=kn(o,r);return yt({},t,{placeholder:yt({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Jn(o,a),initialWindowScroll:r.scroll.initial});return l}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=yt({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=oo(t.impact),u=s?l.droppables[s]:null,c=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],p=vo({draggable:c,home:d,draggables:a,viewport:t.viewport}),f=p.impact,h=p.afterCritical,m=u&&u.isCombineEnabled?t.impact:f,g=co({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),v=yt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:yt({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var m=t.payload.client;return tr(m,e.current.client.selection)?e:fo({state:e,clientSelection:m,impact:bo(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return wo(e);if("COLLECTING"===e.phase)return wo(e);ao(e)||$n(!1);var g=t.payload,v=g.id,b=g.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var w=dr(y,b);return yo(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var x=t.payload,C=x.id,S=x.isEnabled,E=e.dimensions.droppables[C];E||$n(!1),E.isEnabled===S&&$n(!1);var N=yt({},E,{isEnabled:S});return yo(e,N,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var M=t.payload,I=M.id,A=M.isCombineEnabled,k=e.dimensions.droppables[I];k||$n(!1),k.isCombineEnabled===A&&$n(!1);var P=yt({},k,{isCombineEnabled:A});return yo(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ao(e)||$n(!1),e.isWindowScrollAllowed||$n(!1);var L=t.payload.newScroll;if(tr(e.viewport.scroll.current,L))return wo(e);var R=Vr(e.viewport,L);return bo(e)?go({state:e,viewport:R}):fo({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ao(e))return e;var T=t.payload.maxScroll;if(tr(T,e.viewport.scroll.max))return e;var D=yt({},e.viewport,{scroll:yt({},e.viewport.scroll,{max:T})});return yt({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&$n(!1);var O=io({state:e,type:t.type});return O?fo({state:e,impact:O.impact,clientSelection:O.clientSelection,scrollJumpRequest:O.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var j=t.payload.reason;return"COLLECTING"!==e.phase&&$n(!1),yt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:j})}if("DROP_ANIMATE"===t.type){var F=t.payload,_=F.completed,Z=F.dropDuration,B=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&$n(!1),{phase:"DROP_ANIMATING",completed:_,dropDuration:Z,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},So=function(e){return{type:"LIFT",payload:e}},Eo=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},No=function(){return{type:"COLLECTION_STARTING",payload:null}},Mo=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Io=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Ao=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ko=function(e){return{type:"MOVE",payload:e}},Po=function(){return{type:"MOVE_UP",payload:null}},Lo=function(){return{type:"MOVE_DOWN",payload:null}},Ro=function(){return{type:"MOVE_RIGHT",payload:null}},To=function(){return{type:"MOVE_LEFT",payload:null}},Do=function(){return{type:"FLUSH",payload:null}},Oo=function(e){return{type:"DROP_COMPLETE",payload:e}},jo=function(e){return{type:"DROP",payload:e}},Fo="cubic-bezier(.2,1,.1,1)",_o=0,Zo=.7,Bo=.75,zo="0.2s cubic-bezier(0.2, 0, 0, 1)",Ho={fluid:"opacity "+zo,snap:"transform "+zo+", opacity "+zo,drop:function(e){var t=e+"s "+Fo;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+zo,placeholder:"height "+zo+", width "+zo+", margin "+zo},$o=function(e){return tr(e,Xn)?null:"translate("+e.x+"px, "+e.y+"px)"},qo=$o,Wo=function(e,t){var n=$o(e);return n?t?n+" scale("+Bo+")":n:null},Uo=.33,Vo=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&$n(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&$n(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:yt({},r,{displaced:Mr}),didDropInsideDroppable:!0}:{impact:ho({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,d=u.didDropInsideDroppable,p=d?xr(c):null,f=d?Cr(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:p,combine:f},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=oo(t),u=s?l[s]:null,c=l[n.descriptor.droppableId],d=mo({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return er(d,n.client.borderBox.center)}({impact:c,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!tr(o.current.client.offset,g)||Boolean(m.combine)){var b=function(e){var t=e.reason,n=or(e.current,e.destination);if(n<=0)return Uo;if(n>=1500)return.55;var r=Uo+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:b,completed:v}})}else n(Oo({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Go=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Yo=function(e){var t=function(e){var t=e.onWindowScroll,n=On((function(){t(Go())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Fn;function i(){return o!==Fn}return{start:function(){i()&&$n(!1),o=Zn(window,[r])},stop:function(){i()||$n(!1),n.cancel(),o(),o=Fn},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Ko=function(e,t){t()},Qo=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Xo=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Jo=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=fr(n,(function(t){return t.timerId===e}));-1===t&&$n(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(n){o||$n(!1),o=null,Ko(0,(function(){return Xo(e().onDragEnd,n,t,Qn)}))};return{beforeCapture:function(t,n){o&&$n(!1),Ko(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&$n(!1),Ko(0,(function(){var r=e().onBeforeDragStart;r&&r(Qo(t,n))}))},start:function(n,i){o&&$n(!1);var a=Qo(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add((function(){Ko(0,(function(){return Xo(e().onDragStart,a,t,Yn)}))}))},update:function(n,i){var a=xr(i),l=Cr(i);o||$n(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);s&&(o.lastCritical=n);var u,c,d=(c=a,!(null==(u=o.lastLocation)&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));d&&(o.lastLocation=a);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(p&&(o.lastCombine=l),s||d||p){var f=yt({},Qo(n,o.mode),{combine:l,destination:a});r.add((function(){Ko(0,(function(){return Xo(e().onDragUpdate,f,t,Kn)}))}))}},flush:function(){o||$n(!1),r.flush()},drop:i,abort:function(){if(o){var e=yt({},Qo(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},ei=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&$n(!1),e.dispatch(Oo({completed:r.completed}))}else t(n)}}},ti=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Zn(window,[i])}))}}}},ni=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(jo({reason:r.reason})))}}}},ri=Lt,oi=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return At(Co,ri(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Et(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Lt.apply(void 0,i)(n.dispatch),St(St({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(Oo({completed:u.completed})),"IDLE"!==n().phase&&$n(!1),r(Do()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},d=e.startPublishing(c),p=d.critical,f=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:s,viewport:h}})}else t(o)}}}}(n),Vo,ei,ti,ni,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&$n(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Yo,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Jo(i,a))))},ii=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=er({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ai=function(){var e=document.documentElement;return e||$n(!1),e},li=function(){var e=ai();return ii({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function si(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var ui,ci,di=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Xn)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:s,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||$n(!1);var o=n.critical.draggable;"ADDITION"===t.type&&si(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&si(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||$n(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||$n(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||$n(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&$n(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,o=function(){var e=Go(),t=li(),n=e.y,r=e.x,o=ai(),i=o.clientWidth,a=o.clientHeight;return{frame:Cn({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Xn,displacement:Xn}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)}));return{dimensions:{draggables:vr(s),droppables:gr(l)},critical:t,viewport:o}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},pi=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},fi=function(e){window.scrollBy(e.x,e.y)},hi=Dn((function(e){return br(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),mi=function(e){return Math.pow(e,2)},gi=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},vi=360,bi=1200,yi=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=gi({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*mi(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=bi,o=Date.now()-n;if(o>=bi)return e;if(o<vi)return 1;var i=gi({startOfRange:vi,endOfRange:r,current:o}),a=e*mi(i);return Math.ceil(a)}(i,r),1):i},wi=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?yi({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*yi({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},xi=ar((function(e){return 0===e?0:e})),Ci=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=wi({container:n,distanceToEdges:a,dragStartTime:t,axis:Lr,shouldUseTimeDampening:i}),s=wi({container:n,distanceToEdges:a,dragStartTime:t,axis:Rr,shouldUseTimeDampening:i}),u=xi({x:s,y:l});if(tr(u,Xn))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?tr(c,Xn)?null:c:null},Si=ar((function(e){return 0===e?0:e>0?1:-1})),Ei=(ui=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Jn(t,r),i={x:ui(o.x,n.x),y:ui(o.y,n.y)};return tr(i,Xn)?null:i}),Ni=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Si(r),a=Ei({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Mi=function(e,t){return Ni({current:e.scroll.current,max:e.scroll.max,change:t})},Ii=function(e,t){var n=e.frame;return!!n&&Ni({current:n.scroll.current,max:n.scroll.max,change:t})},Ai=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=Ci({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&Mi(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var u=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=hr(hi(t),(function(t){return t.frame||$n(!1),lo(t.frame.pageMarginBox)(e)}));return n}(t,r);return i}({center:a,destination:oo(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Ci({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Ii(t,l)?l:null}({dragStartTime:n,droppable:u,subject:l,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},ki=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=oo(e.impact);i||$n(!1);var a=function(e,t){if(!Ii(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Ii(e,t)?Ei({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=er(t,r);return n(e.descriptor.id,o),er(t,o)}(e.dimensions.droppables[i],o);if(a){var l=e.viewport,s=function(e,t,n){if(!e)return n;if(!Mi(t,n))return n;var o=function(e,t){if(!Mi(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Ei({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=er(n,o);return r(i),er(n,i)}(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=Jn(e.current.client.selection,n);t({client:r})}(e,s)}}}},Pi=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=On(e.scrollWindow),r=On(t),o=null,i=function(e){o||$n(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Ai({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&$n(!1);var t=Date.now(),n=!1,r=function(){n=!0};Ai({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=ki({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Li="data-rbd",Ri={base:ci=Li+"-drag-handle",draggableId:ci+"-draggable-id",contextId:ci+"-context-id"},Ti=function(){var e=Li+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Di=function(){var e=Li+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Oi={contextId:Li+"-scroll-container-context-id"},ji=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Fi=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(Ri.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n      transition: "+Ho.outOfTheWay+";\n    ",{selector:o(Ti.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Di.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:ji(a,"always"),resting:ji(a,"resting"),dragging:ji(a,"dragging"),dropAnimating:ji(a,"dropAnimating"),userCancel:ji(a,"userCancel")}},_i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Zi=function(){var e=document.querySelector("head");return e||$n(!1),e},Bi=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},zi=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Hi(e){return e instanceof zi(e).HTMLElement}function $i(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||$n(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return pr(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||$n(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return pr(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var qi=r().createContext(null),Wi=function(){var e=document.body;return e||$n(!1),e},Ui={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Vi=function(e){return"rbd-announcement-"+e},Gi=0,Yi={separator:"::"};function Ki(e,t){return void 0===t&&(t=Yi),wn((function(){return""+e+t.separator+Gi++}),[t.separator,e])}var Qi=r().createContext(null);function Xi(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),t}var Ji,ea,ta=((Ji={})[13]=!0,Ji[9]=!0,Ji),na=function(e){ta[e.keyCode]&&e.preventDefault()},ra=function(){var e="visibilitychange";return"undefined"==typeof document?e:hr([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),oa={type:"IDLE"};function ia(){}var aa=((ea={})[34]=!0,ea[33]=!0,ea[36]=!0,ea[35]=!0,ea);var la={type:"IDLE"},sa={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ua(e,t){if(null==t)return!1;if(Boolean(sa[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ua(e,t.parentElement)}function ca(e,t){var n=t.target;return!!Hi(n)&&ua(e,n)}var da=function(e){return Cn(e.getBoundingClientRect()).center},pa=function(){var e="matches";return"undefined"==typeof document?e:hr([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function fa(e,t){return null==e?null:e[pa](t)?e:fa(e.parentElement,t)}function ha(e,t){return e.closest?e.closest(t):fa(e,t)}function ma(e){e.preventDefault()}function ga(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function va(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!pi(n.getState(),o)}var ba=[function(e){var t=(0,n.useRef)(oa),r=(0,n.useRef)(Fn),o=wn((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),c(o,i)}}}}}}),[e]),i=wn((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=xn((function(){r.current=Zn(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=xn((function(){"IDLE"!==t.current.type&&(t.current=oa,r.current(),a())}),[a]),s=xn((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=xn((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&$n(!1),s=l.point,u=a,Math.abs(u.x-s.x)>=5||Math.abs(u.y-s.y)>=5){var s,u;e.preventDefault();var c=l.actions.fluidLift(a);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void na(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&$n(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ra,fn:t}]}({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=Zn(window,e,{capture:!0,passive:!1})}),[s,l]),c=xn((function(e,n){"IDLE"!==t.current.type&&$n(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);_i((function(){return a(),function(){r.current()}}),[a])},function(e){var t=(0,n.useRef)(ia),r=wn((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=Zn(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(aa[r.keyCode]?r.preventDefault():na(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ra,fn:n}]}(l,s),{capture:!0,passive:!1})}}}function s(){a||$n(!1),a=!1,t.current(),o()}}}}),[e]),o=xn((function(){t.current=Zn(window,[r],{passive:!1,capture:!0})}),[r]);_i((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,n.useRef)(la),r=(0,n.useRef)(Fn),o=xn((function(){return t.current}),[]),i=xn((function(e){t.current=e}),[]),a=wn((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};r.current(),p(o,a)}}}}}}),[e]),l=xn((function(){r.current=Zn(window,[a],{capture:!0,passive:!1})}),[a]),s=xn((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(la),r.current(),l())}),[l,i]),u=xn((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=xn((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:o},n=Zn(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&$n(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ra,fn:t}]}(t),e),i=Zn(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ra,fn:t}]}(t),e);r.current=function(){n(),i()}}),[u,o,s]),d=xn((function(){var e=o();"PENDING"!==e.type&&$n(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),p=xn((function(e,t){"IDLE"!==o().type&&$n(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,d]);_i((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(la))}}),[o,l,i]),_i((function(){return Zn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function ya(e){var t=e.contextId,r=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?ba:[],i||[]),s=(0,n.useState)((function(){return function(){var e=null;function t(){e||$n(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&$n(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=xn((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);_i((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();u(e,t),e=t}))}),[s,r,u]),_i((function(){return s.tryAbandon}),[s.tryAbandon]);for(var c=xn((function(e){return va({lockAPI:s,registry:o,store:r,draggableId:e})}),[s,o,r]),d=xn((function(e,n,i){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!va({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),u=function(e,t){var n="["+Ti.contextId+'="'+e+'"]',r=hr(mr(document.querySelectorAll(n)),(function(e){return e.getAttribute(Ti.id)===t}));return r&&Hi(r)?r:null}(n,s.descriptor.id);if(!u)return null;if(l&&!s.options.canDragInteractiveElements&&ca(u,l))return null;var c=t.claim(a||Fn),d="PRE_DRAG";function p(){return s.options.shouldRespectForcePress}function f(){return t.isActive(c)}var h=function(e,t){ga({expected:e,phase:d,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Zn(window,[{eventName:"click",fn:ma,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(jo({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&$n(!1)),r.dispatch(So(e.liftActionArgs)),d="DRAGGING",yt({isActive:function(){return ga({expected:"DRAGGING",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return ga({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=On((function(e){h((function(){return ko({client:e})}))}));return yt({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(Po)},moveRight:function(){return h(Ro)},moveDown:function(){return h(Lo)},moveLeft:function(){return h(To)}};return m({liftActionArgs:{id:i,clientSelection:da(u),movementMode:"SNAP"},cleanup:Fn,actions:e})},abort:function(){ga({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!0})&&t.release()}}}({lockAPI:s,registry:o,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,r]),p=xn((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof zi(n).Element))return null;var o=function(e){return"["+Ri.contextId+'="'+e+'"]'}(e),i=ha(r,o);return i&&Hi(i)?i:null}(e,t);return n?n.getAttribute(Ri.draggableId):null}(t,e)}),[t]),f=xn((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=xn((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(Do()))}),[s,r]),m=xn(s.isClaimed,[s]),g=wn((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:m}}),[c,d,p,f,h,m]),v=0;v<l.length;v++)l[v](g)}var wa=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function xa(e){return e.current||$n(!1),e.current}function Ca(e){var t=e.contextId,o=e.setCallbacks,i=e.sensors,a=e.nonce,l=e.dragHandleUsageInstructions,s=(0,n.useRef)(null),u=Xi(e),c=xn((function(){return wa(u.current)}),[u]),d=function(e){var t=wn((function(){return Vi(e)}),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),yt(e.style,Ui),Wi().appendChild(e),function(){setTimeout((function(){var t=Wi();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),xn((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),p=function(e){var t=e.contextId,r=e.text,o=Ki("hidden-text",{separator:"-"}),i=wn((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",Wi().appendChild(e),function(){var t=Wi();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:t,text:l}),f=function(e,t){var r=wn((function(){return Fi(e)}),[e]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=xn(Dn((function(e){var t=i.current;t||$n(!1),t.textContent=e})),[]),l=xn((function(e){var t=o.current;t||$n(!1),t.textContent=e}),[]);_i((function(){(o.current||i.current)&&$n(!1);var n=Bi(t),s=Bi(t);return o.current=n,i.current=s,n.setAttribute(Li+"-always",e),s.setAttribute(Li+"-dynamic",e),Zi().appendChild(n),Zi().appendChild(s),l(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||$n(!1),Zi().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,r.always,r.resting,e]);var s=xn((function(){return a(r.dragging)}),[a,r.dragging]),u=xn((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),c=xn((function(){i.current&&a(r.resting)}),[a,r.resting]);return wn((function(){return{dragging:s,dropping:u,resting:c}}),[s,u,c])}(t,a),h=xn((function(e){xa(s).dispatch(e)}),[]),m=wn((function(){return Pt({publishWhileDragging:Eo,updateDroppableScroll:Mo,updateDroppableIsEnabled:Io,updateDroppableIsCombineEnabled:Ao,collectionStarting:No},h)}),[h]),g=function(){var e=wn($i,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),v=wn((function(){return di(g,m)}),[g,m]),b=wn((function(){return Pi(yt({scrollWindow:fi,scrollDroppable:v.scrollDroppable},Pt({move:ko},h)))}),[v.scrollDroppable,h]),y=function(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=xn((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=xn((function(t){var n=function(e,t){var n="["+Ri.contextId+'="'+e+'"]',r=mr(document.querySelectorAll(n));if(!r.length)return null;var o=hr(r,(function(e){return e.getAttribute(Ri.draggableId)===t}));return o&&Hi(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=xn((function(e,t){r.current===e&&(r.current=t)}),[]),u=xn((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&l(e)})))}),[l]),c=xn((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Ri.draggableId)===e&&(r.current=e)}),[]);return _i((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),wn((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s}}),[a,c,u,s])}(t),w=wn((function(){return oi({announce:d,autoScroller:b,dimensionMarshal:v,focusMarshal:y,getResponders:c,styleMarshal:f})}),[d,b,v,y,c,f]);s.current=w;var x=xn((function(){var e=xa(s);"IDLE"!==e.getState().phase&&e.dispatch(Do())}),[]),C=xn((function(){var e=xa(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);o(wn((function(){return{isDragging:C,tryAbort:x}}),[C,x]));var S=xn((function(e){return pi(xa(s).getState(),e)}),[]),E=xn((function(){return ao(xa(s).getState())}),[]),N=wn((function(){return{marshal:v,focus:y,contextId:t,canLift:S,isMovementAllowed:E,dragHandleUsageInstructionsId:p,registry:g}}),[t,v,p,y,S,E,g]);return ya({contextId:t,store:w,registry:g,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return x}),[x]),r().createElement(Qi.Provider,{value:N},r().createElement(_t,{context:qi,store:w},e.children))}var Sa=0;function Ea(e){var t=wn((function(){return""+Sa++}),[]),n=e.dragHandleUsageInstructions||"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n";return r().createElement(qn,null,(function(o){return r().createElement(Ca,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Na=function(e){return function(t){return e===t}},Ma=Na("scroll"),Ia=Na("auto"),Aa=(Na("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),ka=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Aa(n,Ma)||Aa(n,Ia)}(t)?t:e(t.parentElement)},Pa=function(e){return{x:e.scrollLeft,y:e.scrollTop}},La=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Ra={passive:!1},Ta={passive:!0},Da=function(e){return e.shouldPublishImmediately?Ra:Ta};function Oa(e){var t=(0,n.useContext)(e);return t||$n(!1),t}var ja=function(e){return e&&e.env.closestScrollable||null};function Fa(){}var _a={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Za=r().memo((function(e){var t=(0,n.useRef)(null),o=xn((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,l=e.onClose,s=e.contextId,u=(0,n.useState)("open"===e.animate),c=u[0],d=u[1];(0,n.useEffect)((function(){return c?"open"!==i?(o(),d(!1),Fa):t.current?Fa:(t.current=setTimeout((function(){t.current=null,d(!1)})),o):Fa}),[i,c,o]);var p=xn((function(e){"height"===e.propertyName&&(a(),"close"===i&&l())}),[i,l,a]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?_a:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Ho.placeholder:null}}({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:p,ref:e.innerRef})})),Ba=r().createContext(null),za=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return bt(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r().PureComponent),Ha=5e3,$a=4500,qa=function(e,t){return t?Ho.drop(t.duration):e?Ho.snap:Ho.fluid},Wa=function(e,t){return e?t?_o:Zo:null};function Ua(e){e.preventDefault()}var Va=function(e,t){return e===t},Ga=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Ya(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Ka={mapped:{type:"SECONDARY",offset:Xn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ya(null)}},Qa=bn((function(){var e,t,n,r=(e=Dn((function(e,t){return{x:e,y:t}})),t=Dn((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Dn((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=oo(r.impact),s=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,s,u)}var c;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,f=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Ga(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:r.dropDuration,curve:Fo,moveTo:r.newHomeClientOffset,opacity:v?_o:null,scale:v?Bo:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:b,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,v,b)}}}return null}),o=function(){var e=Dn((function(e,t){return{x:e,y:t}})),t=Dn(Ya),n=Dn((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Xn,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),u=Cr(i),c=u&&u.draggableId===t?o:null;if(!l){if(!s)return r(c);if(i.displaced.invisible[t])return null;var d=nr(a.displacedBy.point),p=e(d.x,d.y);return n(p,c,!0)}if(s)return r(c);var f=i.displacedBy.point,h=e(f.x,f.y);return n(h,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Ka}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:qi,pure:!0,areStatePropsEqual:Va})((function(e){var t=(0,n.useRef)(null),r=xn((function(e){t.current=e}),[]),o=xn((function(){return t.current}),[]),i=Oa(Qi),a=i.contextId,l=i.dragHandleUsageInstructionsId,s=i.registry,u=Oa(Ba),c=u.type,d=u.droppableId,p=wn((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}}),[e.draggableId,e.index,c,d]),f=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,w=e.dropAnimationFinished;b||function(e){var t=Ki("draggable"),r=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,u=wn((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}}),[a,s,l]),c=xn((function(e){var t=i();return t||$n(!1),function(e,t,n){void 0===n&&(n=Xn);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Pn(o,r),a=kn(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),d=wn((function(){return{uniqueId:t,descriptor:r,options:u,getDimension:c}}),[r,c,u,t]),p=(0,n.useRef)(d),f=(0,n.useRef)(!0);_i((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),_i((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}(wn((function(){return{descriptor:p,registry:s,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[p,s,o,v,g,m]));var x=wn((function(){return m?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ua}:null}),[a,l,h,m]),C=xn((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&w()}),[w,y]),S=wn((function(){var e=function(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),s=l?Wo(n,i):qo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:qa(a,o),transform:s,opacity:Wa(i,l),zIndex:l?$a:Ha,pointerEvents:"none"}}(e):{transform:qo((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}(y),t="DRAGGING"===y.type&&y.dropping?C:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,y,C,r]),E=wn((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(S,y.snapshot,E)}));function Xa(e){return Oa(Ba).isUsingCloneFor!==e.draggableId||e.isClone?r().createElement(Qa,e):null}function Ja(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r().createElement(Xa,yt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var el=function(e,t){return e===t.droppable.type},tl=function(e,t){return t.draggables[e.draggable.id]},nl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||$n(!1),document.body}},rl=bn((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=yt({},e,{shouldAnimatePlaceholder:!1}),n=Dn((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Dn((function(r,o,i,a,l,s){var u=l.descriptor.id;if(l.descriptor.droppableId===r){var c=s?{render:s,dragging:n(l.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(n.isDragging){var u=n.critical;if(!el(a,u))return t;var c=tl(u,n.dimensions),d=oo(n.impact)===i;return r(i,l,d,d,c,s)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!el(a,p.critical))return t;var f=tl(p.critical,n.dimensions);return r(i,l,Ga(p.result)===i,oo(p.impact)===i,f,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!el(a,h.critical))return t;var m=oo(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:qi,pure:!0,areStatePropsEqual:Va})((function(e){var t=(0,n.useContext)(Qi);t||$n(!1);var o=t.contextId,i=t.isMovementAllowed,a=(0,n.useRef)(null),l=(0,n.useRef)(null),s=e.children,u=e.droppableId,c=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,h=e.isDropDisabled,m=e.isCombineEnabled,g=e.snapshot,v=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,w=xn((function(){return a.current}),[]),x=xn((function(e){a.current=e}),[]),C=(xn((function(){return l.current}),[]),xn((function(e){l.current=e}),[])),S=xn((function(){i()&&b({maxScroll:li()})}),[i,b]);!function(e){var t=(0,n.useRef)(null),r=Oa(Qi),o=Ki("droppable"),i=r.registry,a=r.marshal,l=Xi(e),s=wn((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=(0,n.useRef)(s),c=wn((function(){return Dn((function(e,n){t.current||$n(!1);var r={x:e,y:n};a.updateDroppableScroll(s.id,r)}))}),[s.id,a]),d=xn((function(){var e=t.current;return e&&e.env.closestScrollable?Pa(e.env.closestScrollable):Xn}),[]),p=xn((function(){var e=d();c(e.x,e.y)}),[d,c]),f=wn((function(){return On(p)}),[p]),h=xn((function(){var e=t.current,n=ja(e);e&&n||$n(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),m=xn((function(e,n){t.current&&$n(!1);var o=l.current,i=o.getDroppableRef();i||$n(!1);var a=function(e){return{closestScrollable:ka(e),isFixedOnPage:La(e)}}(i),u={ref:i,descriptor:s,env:a,scrollOptions:n};t.current=u;var c=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=Ln(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Sn({top:r,right:a,bottom:i,left:o},n.border);return Mn({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,u),d=kn(c,o),p=function(){if(!u)return null;var e=Ln(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:kn(e,o),scroll:Pa(u),scrollSize:t,shouldClipSubject:s}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,u=function(){if(!s)return null;var e=s.scrollSize,t=s.client,n=ii({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:Xn,displacement:Xn}}}}(),c="vertical"===i?Lr:Rr;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:u,subject:cr({page:l,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:p});return f}({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(Oi.contextId,r.contextId),d.addEventListener("scroll",h,Da(u.scrollOptions))),c}),[r.contextId,s,h,l]),g=xn((function(){var e=t.current,n=ja(e);return e&&n||$n(!1),Pa(n)}),[]),v=xn((function(){var e=t.current;e||$n(!1);var n=ja(e);t.current=null,n&&(f.cancel(),n.removeAttribute(Oi.contextId),n.removeEventListener("scroll",h,Da(e.scrollOptions)))}),[h,f]),b=xn((function(e){var n=t.current;n||$n(!1);var r=ja(n);r||$n(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=wn((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:b}}),[v,m,g,b]),w=wn((function(){return{uniqueId:o,descriptor:s,callbacks:y}}),[y,s,o]);_i((function(){return u.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[y,s,v,w,a,i.droppable]),_i((function(){t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),_i((function(){t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:u,type:c,mode:d,direction:p,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:w});var E=r().createElement(za,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,i=e.animate;return r().createElement(Za,{placeholder:n,onClose:t,innerRef:C,animate:i,contextId:o,onTransitionEnd:S})})),N=wn((function(){return{innerRef:x,placeholder:E,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":o}}}),[o,u,E,x]),M=v?v.dragging.draggableId:null,I=wn((function(){return{droppableId:u,type:c,isUsingCloneFor:M}}),[u,M,c]);return r().createElement(Ba.Provider,{value:I},s(N,g),function(){if(!v)return null;var e=v.dragging,t=v.render,n=r().createElement(Xa,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return We().createPortal(n,y())}())}));rl.defaultProps=nl;const ol=(0,t.createElement)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M14.5011 3.08825L11.923 0.510192C11.5865 0.194141 11.1456 0.0127958 10.6842 0.000651813C10.2227 -0.0114921 9.77286 0.146413 9.42023 0.444329L0.952174 8.91239C0.648045 9.21909 0.458679 9.62108 0.415864 10.0509L0.0112788 13.9744C-0.00139608 14.1122 0.016486 14.2511 0.0636501 14.3812C0.110814 14.5113 0.186099 14.6294 0.284138 14.7271C0.372056 14.8143 0.476322 14.8833 0.590959 14.9301C0.705595 14.977 0.828346 15.0007 0.952174 15H1.03686L4.96039 14.6424C5.39019 14.5996 5.79217 14.4103 6.09887 14.1061L14.5669 5.63807C14.8956 5.29085 15.0732 4.8275 15.0609 4.34955C15.0485 3.8716 14.8472 3.41804 14.5011 3.08825ZM4.79103 12.7607L1.96834 13.0241L2.22238 10.2014L7.53844 4.95122L10.0789 7.49164L4.79103 12.7607ZM11.302 6.23084L8.78043 3.70924L10.6152 1.82745L13.1838 4.39609L11.302 6.23084Z",fill:"#7E8AA2"})),il=(0,t.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.75 2.25C12.9489 2.25 13.1397 2.32902 13.2803 2.46967C13.421 2.61032 13.5 2.80109 13.5 3C13.5 3.19891 13.421 3.38968 13.2803 3.53033C13.1397 3.67098 12.9489 3.75 12.75 3.75H12L11.9977 3.80325L11.298 13.6065C11.2711 13.9849 11.1017 14.3391 10.8241 14.5977C10.5465 14.8563 10.1811 15 9.80175 15H3.6975C3.3181 15 2.9528 14.8563 2.67516 14.5977C2.39753 14.3391 2.22819 13.9849 2.20125 13.6065L1.5015 3.804C1.50036 3.78602 1.49986 3.76801 1.5 3.75H0.75C0.551088 3.75 0.360322 3.67098 0.21967 3.53033C0.0790176 3.38968 0 3.19891 0 3C0 2.80109 0.0790176 2.61032 0.21967 2.46967C0.360322 2.32902 0.551088 2.25 0.75 2.25H12.75ZM10.4977 3.75H3.00225L3.69825 13.5H9.80175L10.4977 3.75ZM8.25 0C8.44891 0 8.63968 0.0790176 8.78033 0.21967C8.92098 0.360322 9 0.551088 9 0.75C9 0.948912 8.92098 1.13968 8.78033 1.28033C8.63968 1.42098 8.44891 1.5 8.25 1.5H5.25C5.05109 1.5 4.86032 1.42098 4.71967 1.28033C4.57902 1.13968 4.5 0.948912 4.5 0.75C4.5 0.551088 4.57902 0.360322 4.71967 0.21967C4.86032 0.0790176 5.05109 0 5.25 0H8.25Z",fill:"#7E8AA2"})),al=(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{fill:"#000000",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2zm5.4 21L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4l-1.6 1.6z"})),ll=((0,t.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M17.5645 3.27888C17.2852 2.63724 16.8825 2.0558 16.379 1.56709C15.875 1.07693 15.2808 0.6874 14.6288 0.419693C13.9526 0.140996 13.2274 -0.0016576 12.4952 1.45314e-05C11.468 1.45314e-05 10.4658 0.279111 9.59485 0.806293C9.38649 0.932404 9.18855 1.07092 9.00103 1.22184C8.81351 1.07092 8.61557 0.932404 8.40721 0.806293C7.53628 0.279111 6.53408 1.45314e-05 5.50688 1.45314e-05C4.76721 1.45314e-05 4.05046 0.140597 3.3733 0.419693C2.71906 0.688453 2.12941 1.07505 1.6231 1.56709C1.11887 2.05524 0.716078 2.63683 0.43755 3.27888C0.147934 3.94665 0 4.65576 0 5.38554C0 6.07398 0.141683 6.79136 0.422965 7.52115C0.658409 8.13103 0.995947 8.76365 1.42725 9.40247C2.11066 10.4134 3.05035 11.4678 4.21715 12.5366C6.1507 14.3084 8.06551 15.5323 8.14677 15.5819L8.64057 15.8961C8.85935 16.0346 9.14063 16.0346 9.35941 15.8961L9.85321 15.5819C9.93447 15.5302 11.8472 14.3084 13.7828 12.5366C14.9496 11.4678 15.8893 10.4134 16.5727 9.40247C17.004 8.76365 17.3437 8.13103 17.577 7.52115C17.8583 6.79136 18 6.07398 18 5.38554C18.0021 4.65576 17.8541 3.94665 17.5645 3.27888Z",fill:"url(#paint0_linear_1465_710)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_1465_710",x1:"9",y1:"0",x2:"9",y2:"16",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{"stop-color":"#FF3939"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#D819DC"})))),(0,t.createElement)("svg",{width:"133",height:"131",viewBox:"0 0 133 131",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.2003 0.0460557C90.3852 -0.886378 120.219 12.3367 129.638 39.9755C139.418 68.6725 125.74 99.465 101.106 117.137C76.9495 134.466 44.0949 136.321 20.444 118.309C-1.81872 101.354 -4.10116 70.414 5.01657 43.9571C13.5787 19.1124 34.9351 0.885209 61.2003 0.0460557Z",fill:"#FAFAFA"}),(0,t.createElement)("path",{d:"M34.6494 50.915L39.8253 102.482C40.1121 104.662 50.5768 111.828 65.7285 111.838C80.8896 111.828 91.3543 104.662 91.6364 102.482L96.817 50.915C88.9003 55.3683 77.0676 57.472 65.7285 57.472C54.3988 57.472 42.5614 55.3683 34.6494 50.915ZM80.6216 24.427L76.5834 19.9312C75.0226 17.6951 73.3302 17.2886 70.0347 17.2886H61.427C58.1362 17.2886 56.4391 17.6951 54.883 19.9312L50.8448 24.427C38.7629 26.5497 30 32.1801 30 36.3355V37.1392C30 44.4526 45.9979 50.3808 65.7285 50.3808C85.4638 50.3808 101.462 44.4526 101.462 37.1392V36.3355C101.462 32.1801 92.7035 26.5497 80.6216 24.427ZM75.4598 37.8058L70.4296 31.471H61.0274L56.0066 37.8058H48.0147C48.0147 37.8058 56.7682 27.3061 57.9387 25.8831C58.832 24.7958 59.744 24.3798 60.9287 24.3798H70.533C71.7224 24.3798 72.6344 24.7958 73.5276 25.8831C74.6935 27.3061 83.4517 37.8058 83.4517 37.8058H75.4598Z",fill:"#EBECEE"})),(0,t.createElement)("svg",{width:"123",height:"116",viewBox:"0 0 123 116",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M9.1579 97.6842C11.5867 97.6842 13.9161 98.6491 15.6335 100.367C17.351 102.084 18.3158 104.413 18.3158 106.842C18.3158 109.271 17.351 111.6 15.6335 113.318C13.9161 115.035 11.5867 116 9.1579 116C6.72907 116 4.39973 115.035 2.68229 113.318C0.964848 111.6 0 109.271 0 106.842C0 104.413 0.964848 102.084 2.68229 100.367C4.39973 98.6491 6.72907 97.6842 9.1579 97.6842ZM39.6842 79.3685C43.7323 79.3685 47.6145 80.9765 50.4769 83.8389C53.3393 86.7013 54.9474 90.5836 54.9474 94.6316C54.9474 98.6797 53.3393 102.562 50.4769 105.424C47.6145 108.287 43.7323 109.895 39.6842 109.895C35.6362 109.895 31.7539 108.287 28.8915 105.424C26.0291 102.562 24.4211 98.6797 24.4211 94.6316C24.4211 90.5836 26.0291 86.7013 28.8915 83.8389C31.7539 80.9765 35.6362 79.3685 39.6842 79.3685ZM76.3158 73.2632C69.0506 73.2632 62.4569 70.2106 58 65.0211C53.5432 70.2106 46.9495 73.2632 39.6842 73.2632C27.7179 73.2632 17.7663 64.6548 15.6905 53.36C11.0798 51.5769 7.11504 48.4431 4.31535 44.3688C1.51565 40.2945 0.0115481 35.4698 0 30.5263C0 24.0495 2.57293 17.8379 7.15276 13.258C11.7326 8.67819 17.9442 6.10527 24.4211 6.10527C26.0084 6.10527 27.4737 6.28842 29.1221 6.53264C33.579 2.50316 39.379 0 45.7895 0C53.0548 0 59.6484 3.05263 64.1053 8.24211C68.5621 3.05263 75.1558 0 82.4211 0C94.3874 0 104.339 8.60843 106.415 19.9032C111.025 21.6862 114.99 24.8201 117.79 28.8944C120.59 32.9686 122.094 37.7934 122.105 42.7369C122.105 49.2137 119.532 55.4253 114.953 60.0052C110.373 64.585 104.161 67.1579 97.6842 67.1579L92.9832 66.7306C88.5264 70.76 82.7263 73.2632 76.3158 73.2632Z",fill:"#DDE4E8"})),(0,t.createElement)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M17.2689 7.71154H11.2876V1.73023C11.2876 -0.576213 7.7107 -0.576213 7.7107 1.73023V7.71154H1.72939C-0.576462 7.71154 -0.576462 11.2884 1.72939 11.2884H7.7107V17.2698C7.7107 19.5762 11.2876 19.5762 11.2876 17.2698V11.2884H17.2689C19.5751 11.2884 19.5751 7.71154 17.2689 7.71154Z",fill:"white"})),(0,t.createElement)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M16 16L12.4584 12.4521L16 16ZM14.4211 7.71053C14.4211 9.49027 13.7141 11.1971 12.4556 12.4556C11.1971 13.7141 9.49027 14.4211 7.71053 14.4211C5.93078 14.4211 4.22394 13.7141 2.96547 12.4556C1.707 11.1971 1 9.49027 1 7.71053C1 5.93078 1.707 4.22394 2.96547 2.96547C4.22394 1.707 5.93078 1 7.71053 1C9.49027 1 11.1971 1.707 12.4556 2.96547C13.7141 4.22394 14.4211 5.93078 14.4211 7.71053V7.71053Z",stroke:"#AFB0B8","stroke-width":"2","stroke-linecap":"round"})),(0,t.createElement)("svg",{width:"17",height:"19",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M7.75874 0.604637H9.2413C9.37308 0.604637 9.43898 0.670529 9.43898 0.802312V18.1977C9.43898 18.3295 9.37308 18.3954 9.2413 18.3954H7.75874C7.62696 18.3954 7.56107 18.3295 7.56107 18.1977V0.802312C7.56107 0.670529 7.62696 0.604637 7.75874 0.604637Z",fill:"#939393"}),(0,t.createElement)("path",{d:"M0.197675 8.56104H16.8024C16.9341 8.56104 17 8.62693 17 8.75872V10.2413C17 10.3731 16.9341 10.439 16.8024 10.439H0.197675C0.0658916 10.439 0 10.3731 0 10.2413V8.75872C0 8.62693 0.0658916 8.56104 0.197675 8.56104Z",fill:"#939393"})),(0,t.createElement)("svg",{width:"59",height:"46",viewBox:"0 0 59 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M44.2701 0.486084C39.0382 0.486084 33.4038 1.5593 29.5134 4.51064C25.623 1.5593 19.9886 0.486084 14.7567 0.486084C10.8663 0.486084 6.73442 1.07635 3.27331 2.60568C1.31469 3.49109 0 5.39604 0 7.5693V37.834C0 41.3219 3.27331 43.8976 6.65393 43.0391C9.28331 42.3683 12.0737 42.0732 14.7567 42.0732C18.9422 42.0732 23.3961 42.7708 26.9914 44.5416C28.6012 45.3465 30.4256 45.3465 32.0086 44.5416C35.6039 42.7439 40.0578 42.0732 44.2433 42.0732C46.9263 42.0732 49.7167 42.3683 52.3461 43.0391C55.7267 43.9245 59 41.3487 59 37.834V7.5693C59 5.39604 57.6853 3.49109 55.7267 2.60568C52.2924 1.07635 48.1605 0.486084 44.2701 0.486084ZM53.6608 34.6412C53.6608 36.3315 52.1046 37.5657 50.4411 37.2705C48.4288 36.8949 46.3361 36.7339 44.2701 36.7339C39.709 36.7339 33.1355 38.4779 29.5134 40.7585V9.87672C33.1355 7.59613 39.709 5.85216 44.2701 5.85216C46.7385 5.85216 49.1801 6.09363 51.5143 6.60341C52.7485 6.87171 53.6608 7.97176 53.6608 9.23279V34.6412Z",fill:"url(#paint0_linear_2854_839)"}),(0,t.createElement)("path",{d:"M34.8258 17.9527C33.9673 17.9527 33.1892 17.4161 32.9209 16.5575C32.5721 15.5111 33.1624 14.3574 34.2087 14.0354C38.3406 12.6939 43.6799 12.2646 48.5898 12.8281C49.6899 12.9622 50.4948 13.955 50.3606 15.055C50.2265 16.155 49.2338 16.96 48.1337 16.8258C43.7872 16.316 39.0382 16.7185 35.4429 17.8722C35.2283 17.899 35.0137 17.9527 34.8258 17.9527ZM34.8258 25.0896C33.9673 25.0896 33.1892 24.553 32.9209 23.6944C32.5721 22.648 33.1624 21.4943 34.2087 21.1723C38.3138 19.8308 43.6799 19.4015 48.5898 19.965C49.6899 20.0991 50.4948 21.0918 50.3606 22.1919C50.2265 23.2919 49.2338 24.0968 48.1337 23.9627C43.7872 23.4529 39.0382 23.8554 35.4429 25.0091C35.2412 25.0605 35.034 25.0875 34.8258 25.0896ZM34.8258 32.2264C33.9673 32.2264 33.1892 31.6898 32.9209 30.8313C32.5721 29.7849 33.1624 28.6312 34.2087 28.3092C38.3138 26.9677 43.6799 26.5384 48.5898 27.1018C49.6899 27.236 50.4948 28.2287 50.3606 29.3288C50.2265 30.4288 49.2338 31.2069 48.1337 31.0996C43.7872 30.5898 39.0382 30.9922 35.4429 32.146C35.2412 32.1974 35.034 32.2244 34.8258 32.2264Z",fill:"url(#paint1_linear_2854_839)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_2854_839",x1:"-52.4316",y1:"-20.099",x2:"2.48406",y2:"80.5656",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{offset:"0.00359712","stop-color":"#514EFF"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#9571F6"})),(0,t.createElement)("linearGradient",{id:"paint1_linear_2854_839",x1:"17.2199",y1:"3.53352",x2:"45.2894",y2:"38.3454",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{offset:"0.00359712","stop-color":"#514EFF"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#9571F6"}))))),sl=(0,t.createElement)("svg",{width:"55",height:"45",viewBox:"0 0 55 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M50.6334 3.16432C50.3251 1.95336 48.8279 0.965332 47.3032 0.965332H7.69951C6.17206 0.965332 4.67487 1.95336 4.36938 3.16432L3.8162 6.46967H51.1838L50.6334 3.16432ZM53.4048 9.22184H1.5952C1.3729 9.22199 1.15308 9.26857 0.949829 9.35859C0.746575 9.44861 0.564365 9.5801 0.414871 9.74462C0.265376 9.90914 0.151893 10.1031 0.08169 10.314C0.0114874 10.5249 -0.0138866 10.7482 0.00719339 10.9695L2.54745 43.0845C2.59805 43.6087 2.84198 44.0952 3.23171 44.4493C3.62143 44.8034 4.12903 44.9998 4.65561 45.0001H50.3444C50.871 44.9998 51.3786 44.8034 51.7683 44.4493C52.158 44.0952 52.4019 43.6087 52.4525 43.0845L54.9928 10.9695C55.0139 10.7482 54.9885 10.5249 54.9183 10.314C54.8481 10.1031 54.7346 9.90914 54.5851 9.74462C54.4356 9.5801 54.2534 9.44861 54.0502 9.35859C53.8469 9.26857 53.6271 9.22199 53.4048 9.22184ZM21.997 33.9914V20.2305L34.0598 27.111L21.997 33.9914Z",fill:"url(#paint0_linear_2854_832)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_2854_832",x1:"-33.6368",y1:"-9.06092",x2:"-16.1758",y2:"39.2147",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{"stop-color":"#A737D5"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#EF497A"})))),ul=(0,t.createElement)("svg",{width:"78",height:"78",viewBox:"0 0 78 78",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"39",cy:"39",r:"39",fill:"white"}),(0,t.createElement)("path",{d:"M37.8821 19C35.3236 19 32.8699 20.0164 31.0607 21.8255C29.2516 23.6346 28.2352 26.0884 28.2352 28.6469C28.2352 31.2054 29.2516 33.6591 31.0607 35.4683C32.8699 37.2774 35.3236 38.2938 37.8821 38.2938C40.4407 38.2938 42.8944 37.2774 44.7036 35.4683C46.5127 33.6591 47.5291 31.2054 47.5291 28.6469C47.5291 26.0884 46.5127 23.6346 44.7036 21.8255C42.8944 20.0164 40.4407 19 37.8821 19ZM25.8452 40.7055C25.21 40.7029 24.5806 40.8258 23.993 41.067C23.4054 41.3083 22.8713 41.6631 22.4211 42.1113C21.971 42.5594 21.6137 43.0919 21.3699 43.6784C21.126 44.2649 21.0003 44.8938 21 45.5289C21 49.6071 23.009 52.6821 26.1491 54.6862C29.2409 56.6566 33.4084 57.5875 37.8821 57.5875C40.0045 57.5875 42.0569 57.3777 43.9597 56.9484C43.815 55.9041 43.9983 54.8189 44.5096 53.8687L44.5385 53.8156L44.7387 53.4852L46.1544 51.4087C46.6747 50.6309 47.4155 50.0262 48.2818 49.6721C49.148 49.3181 50.1003 49.2308 51.0164 49.4214L51.084 49.4359L51.4554 49.5372L52.7432 49.9665C53.134 49.5437 53.4761 49.0786 53.7634 48.5798C54.0649 48.0588 54.2843 47.5572 54.4387 47.0676L53.2811 45.9703C52.6422 45.357 52.1778 44.5849 51.9354 43.7331C51.693 42.8814 51.6813 41.9805 51.9016 41.1227C51.2846 40.8474 50.6165 40.7052 49.9408 40.7055H25.8452ZM54.3639 41.3446L55.3286 39.0752C55.7796 38.0092 56.8601 37.4304 57.9212 37.6522L58.1479 37.7101L59.3538 38.096C60.55 38.4795 61.4641 39.502 61.7607 40.7875C62.4625 43.8431 61.6208 47.5644 59.2308 51.9489C56.8456 56.3286 54.2337 58.9598 51.3903 59.8473C50.2857 60.1922 49.0991 59.9438 48.2068 59.1937L47.9728 58.9767L47.0564 58.0578C46.6714 57.6614 46.4227 57.1527 46.3463 56.6054C46.27 56.0582 46.37 55.5008 46.6319 55.0142L46.767 54.7923L48.1465 52.7665C48.3973 52.3841 48.7571 52.0857 49.1793 51.9098C49.6014 51.734 50.0667 51.6888 50.5148 51.7801L50.756 51.8452L53.3052 52.6966C54.3205 51.9248 55.1695 50.9601 55.8472 49.7904C56.4284 48.7896 56.8118 47.7766 56.9879 46.7493L57.0603 46.2331L54.9403 44.2194C54.5982 43.8859 54.3549 43.4643 54.2374 43.0013C54.12 42.5382 54.1329 42.0516 54.2747 41.5954L54.3639 41.3446Z",fill:"#3FA3FF"}));(0,t.createElement)("svg",{width:"20",height:"22",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"22",cy:"24",r:"2",fill:"#ef4444"}),(0,t.createElement)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4a4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2a2.003 2.003 0 0 0-2-2Z"}),(0,t.createElement)("path",{fill:"#ef4444",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4Z"}),(0,t.createElement)("path",{fill:"#ef4444",d:"M12 28H7V7h3v3h12V7h3v9h2V7a2 2 0 0 0-2-2h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h5Zm0-24h8v4h-8Z"}));var cl=a(2894);const dl=ot(),pl="1"===rt()?"pro-active":"pro-inactive";var fl=[{id:"text-input",name:"name-text-input",label:"Text Input",type:"text",placeholder:"Enter text...",className:"custom-input",required:!0,pro:pl,profeature:"false",value:"",subtype:"text",isNew:"old"},{id:"number-input",name:"number-text-input",label:"Number",type:"number",placeholder:"Enter no...",className:"custom-input",required:!0,pro:pl,value:"",isNew:"old"},{id:"email-input",name:"email-text-input",label:"Email",type:"email",placeholder:"Enter email...",className:"custom-input",required:!0,pro:pl,profeature:"false",value:"",subtype:"email",isNew:"old"},{id:"image-input",name:"image-text-input",label:"Image",type:"image",placeholder:"Enter image ...",className:"image-field",required:!0,pro:pl,profeature:"false",value:"",src:"https://wpxperties.com/wp-content/themes/wpxperties/assets/img/simple-form/Drag-drop.png",width:"150",height:"100",subtype:"image",isNew:"old"},{id:"text-field",name:"textfield-text-input",label:"Text Field",type:"text",placeholder:"",className:"custom-input",required:!0,pro:pl,profeature:"false",value:"",subtype:"text",isNew:"old"},{id:"text-area",name:"textarea-text-input",label:"Text Area",type:"textarea",placeholder:"",className:"custom-input-text-area",required:!0,pro:pl,profeature:"false",value:"",subtype:"textarea",isNew:"old"},{id:"radio-button",className:"radio-inputs",label:"Radio Button",type:"radio",required:!1,name:"radio-button",pro:pl,profeature:"false",isNew:"old",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}],subtype:"radio"},{id:"checkbox",className:"checkbox-inputs",label:"Checkbox",type:"checkbox",name:"checkbox-button",toggle:!1,required:!1,pro:pl,profeature:"false",isNew:"old",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}]},{id:"select-input",className:"select-inputs",name:"select-input",label:"Select",type:"select",required:!1,pro:pl,isNew:"old",profeature:"false",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}]},{id:"custom-captcha",name:"custom-captcha-input",label:"Custom Captcha",type:"customcaptcha",className:"custom-captch",required:!0,subtype:"customcaptcha",pro:pl,profeature:"false",isNew:"old"},{id:"page_break_id",name:"page_break_name",label:"Page Break",type:"page_break",required:!1,subtype:"page_break",pro:pl,profeature:"false",isNew:"old"},{id:"simple-form-turnstile",name:"cloudflare-input",label:"Cloudflare Captcha",className:"sf-turnstile-container",type:"cloudflare",sitekey:dl.siteKey?dl.siteKey:"",positioned:"above-btn",theme:"auto",btnaccess:"false",size:"normal",error:"",required:!0,subtype:"cloudflare",pro:pl,profeature:"false",isNew:"old"},{id:"esignature",name:"esignature-input",label:"E-Signature",type:"esignature",className:"esignature-field",required:!1,subtype:"esignature",pro:pl,profeature:"false",isNew:"old"},{id:"range-input",name:"range-text-input",label:"Range",type:"range",placeholder:"Enter range ...",className:"range-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"range",isNew:"old"},{id:"week-input",name:"week-text-input",label:"Week Field",type:"week",placeholder:"Enter week...",className:"week-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"week",isNew:"old"},{id:"url-input",name:"url-text-input",label:"URL",type:"url",placeholder:"Enter url...",className:"url-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"url",isNew:"old"},{id:"time-input",name:"time-text-input",label:"Time Field",type:"time",placeholder:"Enter time...",className:"time-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"time",isNew:"old"},{id:"tel-input",name:"tel-text-input",label:"Telephone",type:"tel",placeholder:"Enter tel...",className:"tel-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"tel",isNew:"old"},{id:"submit-btn",name:"submit-btn",label:"Submit",type:"submit",placeholder:"Enter submit ...",className:"submit-btn",required:!0,pro:pl,profeature:"false",value:"Submit",subtype:"submit",isNew:"old"},{id:"button-input",name:"button-text-input",label:"Button",type:"button",placeholder:"button field...",className:"button-field",required:!0,pro:pl,profeature:"false",value:"Click",subtype:"button",isNew:"old"},{id:"password-input",name:"password-text-input",label:"Password",type:"password",placeholder:"Enter password ...",className:"password-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"password",isNew:"old"},{id:"date-input",name:"date-text-input",label:"Date",type:"date",placeholder:"Enter date ...",className:"date-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"date",isNew:"old"},{id:"datetime-local-input",name:"datetime-local-text-input",label:"Datetime-local",type:"datetime-local",placeholder:"Enter datetime-local ...",className:"datetime-local-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"datetime-local",isNew:"old"},{id:"color-input",name:"color-text-input",label:"Color",type:"color",placeholder:"Enter color ...",className:"color-field",required:!0,pro:pl,profeature:"false",value:"",subtype:"color",isNew:"old"},{id:"text-hidden",name:"hidden-text-input",label:"Hidden Field",type:"hidden",placeholder:"",className:"custom-input",required:!1,value:"",pro:pl,profeature:"false",isNew:"old"},{label:"Heading",content:"This is Heading 1",id:"heading-input",name:"heading-text-input",type:"heading",headingtype:"h1",className:"heading-input",pro:pl,profeature:"false",value:"",subtype:"heading",isNew:"old"},{label:"label",id:"label-input",name:"label-text-input",type:"label",className:"label-input",for:"",content:"This is Label",value:"",pro:pl,profeature:"false",subtype:"label",isNew:"old"},{label:"Links",content:"View",id:"link-ids",name:"link-text",type:"link",href:"",target:"_blank",className:"link-classes",pro:pl,profeature:"false",subtype:"link",isNew:"old"},{label:"Video",content:"Check the video",id:"video-ids",name:"video-text",type:"video",width:"",height:"",src:"",className:"video-classes",pro:pl,profeature:"false",subtype:"video",isNew:"old"},{label:"Audio",content:"Check the audio",id:"audio-ids",name:"audio-text",type:"audio",width:"",height:"",src:"",className:"audio-classes",pro:pl,profeature:"false",subtype:"audio",isNew:"old"},{label:"Iframe",content:"Check the Content",id:"iframe-ids",name:"iframe-text",type:"iframe",width:"",height:"",src:"https://wpxperties.com/simple-form/",className:"iframe-classes",pro:pl,profeature:"false",subtype:"iframe",isNew:"old"}];rt();var hl=({field:e})=>{switch(e.type){case"text":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"text",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value,subtype:e.subtype}));case"textarea":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("textarea",{type:"textarea",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value,subtype:e.subtype}));case"number":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"number",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value}));case"button":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"button",value:e.value,className:e.className,required:e.required,id:e.id,"data-unique-id":e.uniqueId}));case"hidden":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"hidden",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"page_break":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label));case"esignature":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," ✍️"));case"customcaptcha":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," 🤖"));case"cloudflare":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," ⚙️"));case"email":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"email",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId,subtype:e.subtype}));case"date":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"date",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"color":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"color",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"datetime-local":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"datetime-local",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"password":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"password",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId}));case"tel":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"tel",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"submit":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"submit",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,value:e.value,"data-unique-id":e.uniqueId}));case"time":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"time",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"url":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"url",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"week":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"week",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"search":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"search",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"reset":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"reset",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"range":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"range",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"image":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"image",src:e.src,alt:e.alt,width:e.width,height:e.height,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId}));case"month":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"month",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"radio":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-radio"},(0,t.createElement)("label",null,e.label),e.options.map(((n,r)=>(0,t.createElement)("label",{key:r},(0,t.createElement)("input",{type:"radio",name:e.name,subtype:e.subtype,required:e.required,id:e.id,"data-unique-id":e.uniqueId,value:n.value}),n.label))));case"checkbox":return(0,t.createElement)("div",{key:e.uniqueId},"true"===e.toggle?(e=>(0,t.createElement)("div",{className:"simple-form-checkbox-toggle"},(0,t.createElement)("label",{className:"switch-label"},e.label,(0,t.createElement)("input",{type:"checkbox",id:e.id,name:e.name,className:`switch-input ${e.className}`,required:e.required}),(0,t.createElement)("span",{className:"slider round"})),e.toggle?null:(0,t.createElement)("div",null,e.options.map((n=>(0,t.createElement)("label",{key:n.value},n.label,(0,t.createElement)("input",{type:"checkbox",name:`${e.name}[]`,value:n.value})))))))(e):(e=>(0,t.createElement)("div",{className:"simple-form-checkbox-default"},(0,t.createElement)("label",{htmlFor:e.id},e.label),(0,t.createElement)("div",null,e.options.map((n=>(0,t.createElement)("label",{key:n.value},(0,t.createElement)("input",{type:"checkbox",id:n.value,name:`${e.name}[]`,value:n.value,className:e.className,required:e.required}),n.label))))))(e));case"select":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-select"},(0,t.createElement)("label",null,e.label),e.options.map((n=>(0,t.createElement)("div",{key:n.value,className:"simple-form-fields"},(0,t.createElement)("input",{type:"radio",id:n.value,name:e.name,value:n.value}),(0,t.createElement)("label",{htmlFor:n.value},n.label)))));case"file":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-file"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"file"}));case"heading":return"h1"===e.headingtype?(0,t.createElement)("h1",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h2"===e.headingtype?(0,t.createElement)("h2",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h3"===e.headingtype?(0,t.createElement)("h3",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h4"===e.headingtype?(0,t.createElement)("h4",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h5"===e.headingtype?(0,t.createElement)("h5",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h6"===e.headingtype?(0,t.createElement)("h6",{key:e.uniqueId,id:e.id,className:e.className},e.content):(0,t.createElement)("p",{key:e.uniqueId,id:e.id,className:e.className},e.content);case"label":return(0,t.createElement)("label",{key:e.uniqueId,id:e.id,for:e.for,className:e.className},e.content);case"link":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-file"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("a",{id:e.id,href:e.href,target:e.target,className:e.className},e.content));case"video":return(0,t.createElement)("video",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,controls:!0,src:e.src,className:e.className},e.content);case"audio":return(0,t.createElement)("audio",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,controls:!0,src:e.src,className:e.className},e.content);case"iframe":return(0,t.createElement)("iframe",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,src:e.src,className:e.className},e.content);default:return null}},ml=()=>{const e=it().length,r=rt(),o=G(),[i,a]=(0,n.useState)(e),[l,s]=(0,n.useState)(fl),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(),[p,f]=(0,n.useState)([]),[h,m]=(0,n.useState)([]),[g,v]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[w,x]=(0,n.useState)(null),[C,S]=(0,n.useState)(!1),E=()=>{c(!1),y((e=>!e))};function N(e){d.current&&!d.current.contains(e.target)&&E()}(0,n.useEffect)((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[N]);const M=()=>{m(p),y((e=>!e)),c(!0)},I=()=>{wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){a(e.tables_count)},error({message:e}){}})};return(0,n.useEffect)((()=>{I()}),[]),(0,t.createElement)("div",{className:"simple-form-builder"},(0,t.createElement)("h2",null,(0,t.createElement)(cl.Z,null)," Drag and Drop Form Builder"),(0,t.createElement)("div",{className:"button-sub-group-simple-form"},(0,t.createElement)("span",{className:"formname"},(0,t.createElement)("input",{type:"text",placeholder:"Add form name",name:"simpleformname",className:"js-open-modal",id:"formName"})),!g&&(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json"),(0,t.createElement)("button",{className:"js-open-modal saveData",onClick:()=>{i>2&&!r?Swal.fire({icon:"warning",title:"Need Pro to create more forms!",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'}):(m(p),y((e=>!e)),Swal.fire({text:"Are you done!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Save!"}).then((e=>{if(e.isConfirmed){const e=p,t=document.getElementById("formName").value;wp.ajax.send("simpleform_create_form",{data:{nonce:nt(),name:t||"Untitled",formdata:e},success({id:e}){Swal.fire({position:"center",icon:"success",title:"Your Form has been saved",showConfirmButton:!1,timer:1500}),I(),o("/")},error({message:e}){}})}})))},id:"saveData",type:"button"},"Save")),(0,t.createElement)("div",{className:"form-builder-container"},(0,t.createElement)(Ea,{onDragEnd:e=>{if(!e.destination)return;const t=e.source.index,n=e.destination.index;if("available-fields"===e.source.droppableId){const e=l[t],r={...e,id:`${e.id}-${(new Date).getTime()}`,name:`${e.name}-${(new Date).getTime()}`,uniqueId:`field-${(new Date).getTime()}`};f((e=>{const t=[...e];return t.splice(n,0,r),t}))}else"form-canvas"===e.source.droppableId&&f((e=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r}))}},(0,t.createElement)("div",{className:"form-builder"},(0,t.createElement)("div",{className:"form-fields"},(0,t.createElement)("h3",null,"Available Fields"),(0,t.createElement)(rl,{droppableId:"available-fields",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"draggable-field-container"},l.map(((e,n)=>(0,t.createElement)(Ja,{key:e.id,draggableId:e.id,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+("pro-inactive"===e.pro&&"true"===e.profeature?"locked":"")},e.label,"pro-inactive"===e.pro&&"true"===e.profeature&&(0,t.createElement)("div",{className:"PRO_TAG"},"PRO")))))),e.placeholder)))),(0,t.createElement)("div",{className:"form-canvas"},(0,t.createElement)("h3",null,"Form Canvas"),(0,t.createElement)(rl,{droppableId:"form-canvas",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"form-canvas-container"},p.map(((e,n)=>(0,t.createElement)(Ja,{key:e.uniqueId,draggableId:e.uniqueId,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":"")},(0,t.createElement)(hl,{field:e}),(0,t.createElement)("button",{className:"form-edit "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":""),onClick:()=>{(e=>{const t=p.find((t=>t.uniqueId===e));v({...t})})(e.uniqueId),S(!0)}},ol),(0,t.createElement)("button",{className:"form-remove",onClick:()=>(e=>{const t=p.filter((t=>t.uniqueId!==e));f(t),v(null)})(e.uniqueId)},il)))))),e.placeholder)))))),g&&(0,t.createElement)("div",{className:"edit-field-form"},(0,t.createElement)("div",{className:"form-btn-group"},(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{(()=>{const e=p.map((e=>e.uniqueId===g.uniqueId?{...g}:e));f(e),v(null)})(),S(!1)}},"Update"),(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json")),(0,t.createElement)("h3",null,"Edit Field"),(0,t.createElement)("div",{className:"edit-fields-section"},(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"ID:"),(0,t.createElement)("input",{type:"text",value:g.id,onChange:e=>v({...g,id:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Name:"),(0,t.createElement)("input",{type:"text",value:g.name,onChange:e=>v({...g,name:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:g.label,onChange:e=>v({...g,label:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Type:"),"file"!==g.type&&"select"!==g.type&&"checkbox"!==g.type&&"radio"!==g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.type,onChange:e=>v({...g,type:e.target.value})},(0,t.createElement)("option",{value:"button"},"Button"),(0,t.createElement)("option",{value:"color"},"Color"),(0,t.createElement)("option",{value:"date"},"Date"),(0,t.createElement)("option",{value:"datetime-local"},"Datetime-local"),(0,t.createElement)("option",{value:"email"},"Email"),(0,t.createElement)("option",{value:"hidden"},"Hidden"),(0,t.createElement)("option",{value:"image"},"Image"),(0,t.createElement)("option",{value:"month"},"Month"),(0,t.createElement)("option",{value:"number"},"Number"),(0,t.createElement)("option",{value:"password"},"Password"),(0,t.createElement)("option",{value:"range"},"Range"),(0,t.createElement)("option",{value:"reset"},"Reset"),(0,t.createElement)("option",{value:"search"},"Search"),(0,t.createElement)("option",{value:"submit"},"Submit"),(0,t.createElement)("option",{value:"tel"},"Tel"),(0,t.createElement)("option",{value:"text"},"Text"),(0,t.createElement)("option",{value:"text"},"Text Input"),(0,t.createElement)("option",{value:"textarea"},"Text Area"),(0,t.createElement)("option",{value:"time"},"Time"),(0,t.createElement)("option",{value:"url"},"URL"),(0,t.createElement)("option",{value:"week"},"Week"),(0,t.createElement)("option",{value:"cloudflare"},"Cloudflare"),(0,t.createElement)("option",{value:"esignature"},"E-signature"),(0,t.createElement)("option",{value:"customcaptcha"},"Custom captcha"),(0,t.createElement)("option",{value:"page_break"},"Page break"),(0,t.createElement)("option",{value:"heading"},"Heading"),(0,t.createElement)("option",{value:"label"},"Label"),(0,t.createElement)("option",{value:"link"},"Link"),(0,t.createElement)("option",{value:"video"},"Video"),(0,t.createElement)("option",{value:"audio"},"Audio"),(0,t.createElement)("option",{value:"iframe"},"iframe")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Subtype:"),(0,t.createElement)("input",{type:"text",value:g.subtype,onChange:e=>v({...g,subtype:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Placeholder:"),(0,t.createElement)("input",{type:"text",value:g.placeholder,onChange:e=>v({...g,placeholder:e.target.value})})),"image"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Sorce:"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Alt:"),(0,t.createElement)("input",{type:"text",value:g.alt,onChange:e=>v({...g,alt:e.target.value})}))),"heading"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"label"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"For value:"),(0,t.createElement)("input",{type:"text",value:g.for,onChange:e=>v({...g,for:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"link"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"href:"),(0,t.createElement)("input",{type:"text",value:g.href,onChange:e=>v({...g,href:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Redirection Type:"),"link"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.target,onChange:e=>v({...g,target:e.target.value})},(0,t.createElement)("option",{value:"_blank"},"New Tab"),(0,t.createElement)("option",{value:"_self"},"Same Tab")):(0,t.createElement)("input",{type:"text",value:g.target,onChange:e=>v({...g,target:e.target.value})}))),"video"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"audio"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"iframe"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"cloudflare"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Site Key:"),(0,t.createElement)("input",{type:"text",value:g.sitekey,onChange:e=>v({...g,sitekey:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Positioned:"),(0,t.createElement)("select",{className:"select-type-class",value:g.positioned,onChange:e=>v({...g,positioned:e.target.value})},(0,t.createElement)("option",{value:"top"},"Top of the Form"),(0,t.createElement)("option",{value:"above-btn"},"Above Button"),(0,t.createElement)("option",{value:"below-btn"},"Below Button"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Theme:"),(0,t.createElement)("select",{className:"select-type-class",value:g.theme,onChange:e=>v({...g,theme:e.target.value})},(0,t.createElement)("option",{value:"light"},"Light"),(0,t.createElement)("option",{value:"dark"},"Dark"),(0,t.createElement)("option",{value:"auto"},"Auto"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Button access:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.btnaccess,onChange:e=>v({...g,btnaccess:e.target.checked?"true":"false"})}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Error message:"),(0,t.createElement)("input",{type:"text",value:g.error,onChange:e=>v({...g,error:e.target.value})}))),"checkbox"===g.type&&(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Toggle:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.toggle,onChange:e=>{v({...g,toggle:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Required:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.required,onChange:e=>{v({...g,required:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Class Name:"),(0,t.createElement)("input",{type:"text",value:g.className,onChange:e=>v({...g,className:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:g.value,onChange:e=>v({...g,value:e.target.value})})),["select","radio","checkbox"].includes(g.type)&&(0,t.createElement)("div",null,(0,t.createElement)("h4",null,"select"===g.type?"Select Options":"Options"),g.options.map(((e,n)=>(0,t.createElement)("div",{className:"simple-form-id-panel select-fields-panel",key:n},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:e.label,onChange:t=>{const r=[...g.options];r[n]={...e,label:t.target.value},v({...g,options:r})}}),(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:e.value,onChange:t=>{const r=[...g.options];r[n]={...e,value:t.target.value},v({...g,options:r})}}),(0,t.createElement)("button",{className:"option-remover-multiple",onClick:()=>(e=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)&&null!==e){const t=[...g.options];t.splice(e,1),v({...g,options:t}),x(null)}})(n)},il)))),(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)){const e=[...g.options,{label:"New Option",value:"New Option"}];v({...g,options:e})}}},"Add Option")))),u&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"create-table-modal-wrap modal-content manage-modal-content",ref:d},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>E()},al),(0,t.createElement)("pre",null,"Form Data: ",JSON.stringify(h,null,2))))))},gl=()=>{rt(),G();const{id:e}=function(){let{matches:e}=n.useContext($),t=e[e.length-1];return t?t.params:{}}(),[r,o]=(0,n.useState)(""),[i,a]=(0,n.useState)({}),[l,s]=(0,n.useState)(fl),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(),[p,f]=(0,n.useState)([]),[h,m]=(0,n.useState)([]),[g,v]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[w,x]=(0,n.useState)(null),[C,S]=(0,n.useState)(!1),E=()=>{c(!1),y((e=>!e))};function N(e){d.current&&!d.current.contains(e.target)&&E()}(0,n.useEffect)((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[N]);const M=()=>{m(p),y((e=>!e)),c(!0)};return(0,n.useEffect)((()=>{wp.ajax.send("simpleform_edit_table",{data:{nonce:nt(),id:e},success(t){o(t.form_name),a({...t,id:e}),f(t.table_settings)},error(e){console.error("Error:",e)}})}),[]),(0,t.createElement)("div",{className:"simple-form-builder"},(0,t.createElement)("h2",null,(0,t.createElement)(cl.Z,null)," Drag and Drop Form Builder"),(0,t.createElement)("div",{className:"checkbox-wrapper"},(0,t.createElement)("span",{className:"formname"},(0,t.createElement)("input",{type:"text",value:r,placeholder:"Add form name",name:"simpleformname",className:"js-open-modal",id:"formName",onChange:e=>o(e.target.value)}),(0,t.createElement)("input",{type:"hidden",name:"formid",id:"formid",value:i.id||""})),(0,t.createElement)("div",{className:"button-sub-group-simple-form"},!g&&(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json"),(0,t.createElement)("button",{className:"js-open-modal saveData",onClick:()=>{m(p),y((e=>!e)),Swal.fire({text:"Are you done!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Save!"}).then((e=>{if(e.isConfirmed){const e=p,t=document.getElementById("formName").value,n=document.getElementById("formid").value;wp.ajax.send("simpleform_save_table",{data:{nonce:nt(),id:n,name:t,formdata:e},success({id:e}){Swal.fire({position:"center",icon:"success",title:"Your Form has been saved",showConfirmButton:!1,timer:1500})},error({message:e}){console.log(e)}})}}))},id:"saveData",type:"button"},"Update"))),(0,t.createElement)("div",{className:"form-builder-container"},(0,t.createElement)(Ea,{onDragEnd:e=>{if(!e.destination)return;const t=e.source.index,n=e.destination.index;if("available-fields"===e.source.droppableId){const e=l[t],r={...e,id:`${e.id}-${(new Date).getTime()}`,name:`${e.name}-${(new Date).getTime()}`,uniqueId:`field-${(new Date).getTime()}`};f((e=>{const t=[...e];return t.splice(n,0,r),t}))}else"form-canvas"===e.source.droppableId&&f((e=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r}))}},(0,t.createElement)("div",{className:"form-builder"},(0,t.createElement)("div",{className:"form-fields"},(0,t.createElement)("h3",null,"Available Fields"),(0,t.createElement)(rl,{droppableId:"available-fields",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"draggable-field-container"},l.map(((e,n)=>(0,t.createElement)(Ja,{key:e.id,draggableId:e.id,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+("pro-inactive"===e.pro&&"true"===e.profeature?"locked":"")},e.label,"pro-inactive"===e.pro&&"true"===e.profeature&&(0,t.createElement)("div",{className:"PRO_TAG"},"PRO")))))),e.placeholder)))),(0,t.createElement)("div",{className:"form-canvas"},(0,t.createElement)("h3",null,"Form Canvas"),(0,t.createElement)(rl,{droppableId:"form-canvas",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"form-canvas-container"},Array.isArray(p)&&p.map(((e,n)=>(0,t.createElement)(Ja,{key:e.uniqueId,draggableId:e.uniqueId,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":"")},(0,t.createElement)(hl,{field:e}),(0,t.createElement)("button",{className:"form-edit "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":""),onClick:()=>{(e=>{const t=p.find((t=>t.uniqueId===e));v({...t})})(e.uniqueId),S(!0)}},ol),(0,t.createElement)("button",{className:"form-remove",onClick:()=>(e=>{const t=p.filter((t=>t.uniqueId!==e));f(t),v(null)})(e.uniqueId)},il)))))),e.placeholder)))))),g&&(0,t.createElement)("div",{className:"edit-field-form"},(0,t.createElement)("div",{className:"form-btn-group"},(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{(()=>{const e=p.map((e=>e.uniqueId===g.uniqueId?{...g}:e));f(e),v(null)})(),S(!1)}},"Update"),(0,t.createElement)("button",{className:"jsonbtn",onClick:M},"  ",b?"Hide Json":"Show Json")),(0,t.createElement)("h3",null,"Edit Field"),(0,t.createElement)("div",{className:"edit-fields-section"},(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"ID:"),(0,t.createElement)("input",{type:"text",value:g.id,onChange:e=>v({...g,id:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Name:"),(0,t.createElement)("input",{type:"text",value:g.name,onChange:e=>v({...g,name:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:g.label,onChange:e=>v({...g,label:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Type:"),"file"!==g.type&&"select"!==g.type&&"checkbox"!==g.type&&"radio"!==g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.type,onChange:e=>v({...g,type:e.target.value})},(0,t.createElement)("option",{value:"button"},"Button"),(0,t.createElement)("option",{value:"color"},"Color"),(0,t.createElement)("option",{value:"date"},"Date"),(0,t.createElement)("option",{value:"datetime-local"},"Datetime-local"),(0,t.createElement)("option",{value:"email"},"Email"),(0,t.createElement)("option",{value:"hidden"},"Hidden"),(0,t.createElement)("option",{value:"image"},"Image"),(0,t.createElement)("option",{value:"month"},"Month"),(0,t.createElement)("option",{value:"number"},"Number"),(0,t.createElement)("option",{value:"password"},"Password"),(0,t.createElement)("option",{value:"range"},"Range"),(0,t.createElement)("option",{value:"reset"},"Reset"),(0,t.createElement)("option",{value:"search"},"Search"),(0,t.createElement)("option",{value:"submit"},"Submit"),(0,t.createElement)("option",{value:"tel"},"Tel"),(0,t.createElement)("option",{value:"text"},"Text"),(0,t.createElement)("option",{value:"text"},"Text Input"),(0,t.createElement)("option",{value:"textarea"},"Text Area"),(0,t.createElement)("option",{value:"time"},"Time"),(0,t.createElement)("option",{value:"url"},"URL"),(0,t.createElement)("option",{value:"week"},"Week"),(0,t.createElement)("option",{value:"cloudflare"},"Cloudflare"),(0,t.createElement)("option",{value:"esignature"},"E-signature"),(0,t.createElement)("option",{value:"customcaptcha"},"Custom captcha"),(0,t.createElement)("option",{value:"page_break"},"Page break"),(0,t.createElement)("option",{value:"heading"},"Heading"),(0,t.createElement)("option",{value:"label"},"Label"),(0,t.createElement)("option",{value:"link"},"Link"),(0,t.createElement)("option",{value:"video"},"Video"),(0,t.createElement)("option",{value:"audio"},"Audio"),(0,t.createElement)("option",{value:"iframe"},"iframe")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Subtype:"),(0,t.createElement)("input",{type:"text",value:g.subtype,onChange:e=>v({...g,subtype:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Placeholder:"),(0,t.createElement)("input",{type:"text",value:g.placeholder,onChange:e=>v({...g,placeholder:e.target.value})})),"image"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Sorce:"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Alt:"),(0,t.createElement)("input",{type:"text",value:g.alt,onChange:e=>v({...g,alt:e.target.value})}))),"heading"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"label"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"For value:"),(0,t.createElement)("input",{type:"text",value:g.for,onChange:e=>v({...g,for:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"link"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"href:"),(0,t.createElement)("input",{type:"text",value:g.href,onChange:e=>v({...g,href:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Redirection Type:"),"link"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.target,onChange:e=>v({...g,target:e.target.value})},(0,t.createElement)("option",{value:"_blank"},"New Tab"),(0,t.createElement)("option",{value:"_self"},"Same Tab")):(0,t.createElement)("input",{type:"text",value:g.target,onChange:e=>v({...g,target:e.target.value})}))),"video"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"audio"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"iframe"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"cloudflare"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Site Key:"),(0,t.createElement)("input",{type:"text",value:g.sitekey,onChange:e=>v({...g,sitekey:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Positioned:"),(0,t.createElement)("select",{className:"select-type-class",value:g.positioned,onChange:e=>v({...g,positioned:e.target.value})},(0,t.createElement)("option",{value:"top"},"Top of the Form"),(0,t.createElement)("option",{value:"above-btn"},"Above Button"),(0,t.createElement)("option",{value:"below-btn"},"Below Button"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Theme:"),(0,t.createElement)("select",{className:"select-type-class",value:g.theme,onChange:e=>v({...g,theme:e.target.value})},(0,t.createElement)("option",{value:"light"},"Light"),(0,t.createElement)("option",{value:"dark"},"Dark"),(0,t.createElement)("option",{value:"auto"},"Auto"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Button access:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.btnaccess,onChange:e=>v({...g,btnaccess:e.target.checked?"true":"false"})}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Error message:"),(0,t.createElement)("input",{type:"text",value:g.error,onChange:e=>v({...g,error:e.target.value})}))),"checkbox"===g.type&&(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Toggle:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.toggle,onChange:e=>{v({...g,toggle:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Required:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.required,onChange:e=>{v({...g,required:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Class Name:"),(0,t.createElement)("input",{type:"text",value:g.className,onChange:e=>v({...g,className:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:g.value,onChange:e=>v({...g,value:e.target.value})})),["select","radio","checkbox"].includes(g.type)&&(0,t.createElement)("div",null,(0,t.createElement)("h4",null,"select"===g.type?"Select Options":"Options"),g.options.map(((e,n)=>(0,t.createElement)("div",{className:"simple-form-id-panel select-fields-panel",key:n},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:e.label,onChange:t=>{const r=[...g.options];r[n]={...e,label:t.target.value},v({...g,options:r})}}),(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:e.value,onChange:t=>{const r=[...g.options];r[n]={...e,value:t.target.value},v({...g,options:r})}}),(0,t.createElement)("button",{className:"option-remover-multiple",onClick:()=>(e=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)&&null!==e){const t=[...g.options];t.splice(e,1),v({...g,options:t}),x(null)}})(n)},il)))),(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)){const e=[...g.options,{label:"New Option",value:"New Option"}];v({...g,options:e})}}},"Add Option")))),u&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"create-table-modal-wrap modal-content manage-modal-content",ref:d},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>E()},al),(0,t.createElement)("pre",null,"Form Data: ",JSON.stringify(h,null,2))))))},vl=a(3366),bl=a(7462),yl=a(3961),wl=a(4780),xl=a(5260),Cl=a(444),Sl=a(7278),El=a(6797),Nl=(a(6751),a(8679),(0,xl.w)((function(e,t){var r=e.styles,o=(0,El.O)([r],void 0,n.useContext(xl.T));if(!xl.i){for(var i,a=o.name,l=o.styles,s=o.next;void 0!==s;)a+=" "+s.name,l+=s.styles,s=s.next;var u=!0===t.compat,c=t.insert("",{name:a,styles:l},t.sheet,u);return u?null:n.createElement("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var d=n.useRef();return(0,Sl.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,r],function(){n.flush()}}),[t]),(0,Sl.j)((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,Cl.My)(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null})));function Ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,El.O)(t)}var Il=function(){var e=Ml.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Al=a(8216),kl=a(1657),Pl=a(948),Ll=a(1588),Rl=a(4867);function Tl(e){return(0,Rl.Z)("MuiCircularProgress",e)}(0,Ll.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Dl=a(5893);const Ol=["className","color","disableShrink","size","style","thickness","value","variant"];let jl,Fl,_l,Zl,Bl=e=>e;const zl=Il(jl||(jl=Bl`
     1!function(){var e,t,n,r,o={5839:function(e,t,n){"use strict";var r=n(2097),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var \b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^o)),this.encryptionKey=pe(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=me(this.encryptionKey,this.padding)}function be(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);t+=o<33||35===o||37===o||40===o||41===o||47===o||60===o||62===o||91===o||93===o||123===o||125===o||o>126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return t}function ye(e){if("object"!==(0,r.Z)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[n,!!r],o},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var i in t[n]){var a=t[n][i];try{a[0].apply(e,r)}catch(n){W.console&&U.error("jsPDF PubSub Error",n.message,n)}a[1]&&o.push(i)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function we(e){if(!(this instanceof we))return new we(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function xe(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ce(e,t,n,r,o){if(!(this instanceof Ce))return new Ce(e,t,n,r,o);this.type="axial"===e?2:3,this.coords=t,this.colors=n,xe.call(this,r,o)}function Se(e,t,n,r,o){if(!(this instanceof Se))return new Se(e,t,n,r,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,xe.call(this,r,o)}function Ee(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],i=arguments[2],a=arguments[3],l=[],s=1,c=16,u="S",d=null;"object"===(0,r.Z)(e=e||{})&&(n=e.orientation,o=e.unit||o,i=e.format||i,a=e.compress||e.compressPdf||a,null!==(d=e.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(c=e.floatPrecision),u=e.defaultPathOperation||"S"),l=e.filters||(!0===a?["FlateEncode"]:l),o=o||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,f={},h={internal:{},__private__:{}};h.__private__.PubSub=ye;var m="1.3",g=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(e){m=e};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var b=h.__private__.getPageFormat=function(e){return v[e]};i=i||"a4";var y="compat",w="advanced",x=y;function C(){this.saveGraphicsState(),re(new qe(Ne,0,0,-Ne,0,Cn()*Ne).toString()+" cm"),this.setFontSize(this.getFontSize()/Ne),u="n",x=w}function S(){this.restoreGraphicsState(),u="S",x=y}var E=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=x===y;return t&&C.call(this),"function"!=typeof e||(e(this),t&&S.call(this)),this},h.compatAPI=function(e){var t=x===w;return t&&S.call(this),"function"!=typeof e||(e(this),t&&C.call(this)),this},h.isAdvancedAPI=function(){return x===w};var N,M=function(e){if(x!==w)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};N=h.hpf=h.__private__.hpf="number"==typeof c?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,c)}:"smart"===c?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var A=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},k=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},P=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return x===y?e*Ne:x===w?e:void 0},L=function(e){return P(function(e){return x===y?Cn()-e:x===w?e:void 0}(e))};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var R,T="00000000000000000000000000000000",D=h.__private__.getFileId=function(){return T},O=h.__private__.setFileId=function(e){return T=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():T.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(Lt=new ve(d.userPermissions,d.userPassword,d.ownerPassword,T)),T};h.setFileId=function(e){return O(e),this},h.getFileId=function(){return D()};var j=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),i=[n,B(r),"'",B(o),"'"].join("");return["D:",e.getFullYear(),B(e.getMonth()+1),B(e.getDate()),B(e.getHours()),B(e.getMinutes()),B(e.getSeconds()),i].join("")},F=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),a=parseInt(e.substr(14,2),10);return new Date(t,n,r,o,i,a,0)},_=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=j(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return R=t},Z=h.__private__.getCreationDate=function(e){var t=R;return"jsDate"===e&&(t=F(R)),t};h.setCreationDate=function(e){return _(e),this},h.getCreationDate=function(e){return Z(e)};var z,B=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},H=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},$=0,q=[],V=[],G=0,Y=[],K=[],Q=!1,te=V;h.__private__.setCustomOutputDestination=function(e){Q=!0,te=e};var ne=function(e){Q||(te=e)};h.__private__.resetCustomOutputDestination=function(){Q=!1,te=V};var re=h.__private__.out=function(e){return e=e.toString(),G+=e.length+1,te.push(e),te},oe=h.__private__.write=function(e){return re(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ie=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},ae=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return ae};var le=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return le=x===w?e/Ne:e,this};var se,ce=h.__private__.getFontSize=h.getFontSize=function(){return x===y?le:le*Ne},ue=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return ue=e,this},h.__private__.getR2L=h.getR2L=function(){return ue};var de,pe=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))se=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');se=e}else se=parseInt(e,10)};h.__private__.getZoomMode=function(){return se};var fe,he=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');de=e};h.__private__.getPageMode=function(){return de};var me=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');fe=e};h.__private__.getLayoutMode=function(){return fe},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return pe(e),me(t),he(n),this};var ge={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ge).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ge[e]},h.__private__.getDocumentProperties=function(){return ge},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ge)ge.hasOwnProperty(t)&&e[t]&&(ge[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ge).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ge[e]=t};var xe,Ne,Me,Ie,Ae,ke={},Pe={},Le=[],Re={},Te={},De={},Oe={},je=null,Fe=0,_e=[],Ze=new ye(h),ze=e.hotfixes||[],Be={},He={},$e=[],qe=function e(t,n,r,o,i,a){if(!(this instanceof e))return new e(t,n,r,o,i,a);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(o)&&(o=1),isNaN(i)&&(i=0),isNaN(a)&&(a=0),this._matrix=[t,n,r,o,i,a]};Object.defineProperty(qe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(qe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(qe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(qe.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),qe.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(e)},qe.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,a=e.tx*this.shy+e.ty*this.sy+this.ty;return new qe(t,n,r,o,i,a)},qe.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=Math.sqrt(e*e+t*t),l=(e/=a)*n+(t/=a)*r;n-=e*l,r-=t*l;var s=Math.sqrt(n*n+r*r);return l/=s,e*(r/=s)<t*(n/=s)&&(e=-e,t=-t,l=-l,a=-a),{scale:new qe(a,0,0,s,0,0),translate:new qe(1,0,0,1,o,i),rotate:new qe(e,t,-t,e,0,0),skew:new qe(1,0,l,1,0,0)}},qe.prototype.toString=function(e){return this.join(" ")},qe.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=1/(e*r-t*n),l=r*a,s=-t*a,c=-n*a,u=e*a;return new qe(l,s,c,u,-l*o-c*i,-s*o-u*i)},qe.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new mn(t,n)},qe.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new mn(e.x+e.w,e.y+e.h));return new gn(t.x,t.y,n.x-t.x,n.y-t.y)},qe.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty;return new qe(e,t,n,r,o,i)},h.Matrix=qe;var We=h.matrixMult=function(e,t){return t.multiply(e)},Ve=new qe(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Ve;var Ue=function(e,t){if(!Te[e]){var n=(t instanceof Ce?"Sh":"P")+(Object.keys(Re).length+1).toString(10);t.id=n,Te[e]=n,Re[n]=t,Ze.publish("addPattern",t)}};h.ShadingPattern=Ce,h.TilingPattern=Se,h.addShadingPattern=function(e,t){return M("addShadingPattern()"),Ue(e,t),this},h.beginTilingPattern=function(e){M("beginTilingPattern()"),bn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},h.endTilingPattern=function(e,t){M("endTilingPattern()"),t.stream=K[z].join("\n"),Ue(e,t),Ze.publish("endTilingPattern",t),$e.pop().restore()};var Ge,Ye=h.__private__.newObject=function(){var e=Ke();return Qe(e,!0),e},Ke=h.__private__.newObjectDeferred=function(){return $++,q[$]=function(){return G},$},Qe=function(e,t){return t="boolean"==typeof t&&t,q[e]=G,t&&re(e+" 0 obj"),e},Xe=h.__private__.newAdditionalObject=function(){var e={objId:Ke(),content:""};return Y.push(e),e},Je=Ke(),et=Ke(),tt=h.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",o=0;o<3;o++)r+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return r},nt=h.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,o=e.ch2,i=e.ch3,a=e.ch4,l="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new ee(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,o=c>>8&255,i=255&c}if(void 0===o||void 0===a&&n===o&&o===i)t="string"==typeof n?n+" "+l[0]:2===e.precision?A(n/255)+" "+l[0]:k(n/255)+" "+l[0];else if(void 0===a||"object"===(0,r.Z)(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",l[1]].join(" ");t="string"==typeof n?[n,o,i,l[1]].join(" "):2===e.precision?[A(n/255),A(o/255),A(i/255),l[1]].join(" "):[k(n/255),k(o/255),k(i/255),l[1]].join(" ")}else t="string"==typeof n?[n,o,i,a,l[2]].join(" "):2===e.precision?[A(n),A(o),A(i),A(a),l[2]].join(" "):[k(n),k(o),k(i),k(a),l[2]].join(" ");return t},rt=h.__private__.getFilters=function(){return l},ot=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=t.length,a=e.objectId,l=function(e){return e};if(null!==d&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(l=Lt.encryptor(a,0));var s={};!0===n&&(n=["FlateEncode"]);var c=e.additionalKeyValues||[],u=(s=void 0!==Ee.API.processDataByFilters?Ee.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==s.data.length&&(c.push({key:"Length",value:s.data.length}),!0===o&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var p=0;p<c.length;p+=1)if("DecodeParms"===c[p].key){for(var f=[],h=0;h<s.reverseChain.split("/").length-1;h+=1)f.push("null");f.push(c[p].value),c[p].value="["+f.join(" ")+"]"}}re("<<");for(var m=0;m<c.length;m++)re("/"+c[m].key+" "+c[m].value);re(">>"),0!==s.data.length&&(re("stream"),re(l(s.data)),re("endstream"))},it=h.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,o=e.contentsObjId;Qe(r,!0),re("<</Type /Page"),re("/Parent "+e.rootDictionaryObjId+" 0 R"),re("/Resources "+e.resourceDictionaryObjId+" 0 R"),re("/MediaBox ["+parseFloat(N(e.mediaBox.bottomLeftX))+" "+parseFloat(N(e.mediaBox.bottomLeftY))+" "+N(e.mediaBox.topRightX)+" "+N(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&re("/CropBox ["+N(e.cropBox.bottomLeftX)+" "+N(e.cropBox.bottomLeftY)+" "+N(e.cropBox.topRightX)+" "+N(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&re("/BleedBox ["+N(e.bleedBox.bottomLeftX)+" "+N(e.bleedBox.bottomLeftY)+" "+N(e.bleedBox.topRightX)+" "+N(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&re("/TrimBox ["+N(e.trimBox.bottomLeftX)+" "+N(e.trimBox.bottomLeftY)+" "+N(e.trimBox.topRightX)+" "+N(e.trimBox.topRightY)+"]"),null!==e.artBox&&re("/ArtBox ["+N(e.artBox.bottomLeftX)+" "+N(e.artBox.bottomLeftY)+" "+N(e.artBox.topRightX)+" "+N(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&re("/UserUnit "+e.userUnit),Ze.publish("putPage",{objId:r,pageContext:_e[t],pageNumber:t,page:n}),re("/Contents "+o+" 0 R"),re(">>"),re("endobj");var i=n.join("\n");return x===w&&(i+="\nQ"),Qe(o,!0),ot({data:i,filters:rt(),objectId:o}),re("endobj"),r},at=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)_e[e].objId=Ke(),_e[e].contentsObjId=Ke();for(e=1;e<=Fe;e++)n.push(it({number:e,data:K[e],objId:_e[e].objId,contentsObjId:_e[e].contentsObjId,mediaBox:_e[e].mediaBox,cropBox:_e[e].cropBox,bleedBox:_e[e].bleedBox,trimBox:_e[e].trimBox,artBox:_e[e].artBox,userUnit:_e[e].userUnit,rootDictionaryObjId:Je,resourceDictionaryObjId:et}));Qe(Je,!0),re("<</Type /Pages");var r="/Kids [";for(t=0;t<Fe;t++)r+=n[t]+" 0 R ";re(r+"]"),re("/Count "+Fe),re(">>"),re("endobj"),Ze.publish("postPutPages")},lt=function(e){Ze.publish("putFont",{font:e,out:re,newObject:Ye,putStream:ot}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),re("<<"),re("/Type /Font"),re("/BaseFont /"+be(e.postScriptName)),re("/Subtype /Type1"),"string"==typeof e.encoding&&re("/Encoding /"+e.encoding),re("/FirstChar 32"),re("/LastChar 255"),re(">>"),re("endobj"))},st=function(e){e.objectNumber=Ye();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[N(e.x),N(e.y),N(e.x+e.width),N(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");ot({data:n,additionalKeyValues:t,objectId:e.objectNumber}),re("endobj")},ct=function(e,t){t||(t=21);var n=Ye(),r=function(e,t){var n,r=[],o=1/(t-1);for(n=0;n<1;n+=o)r.push(n);if(r.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var a={offset:1,color:e[e.length-1].color};e.push(a)}for(var l="",s=0,c=0;c<r.length;c++){for(n=r[c];n>e[s+1].offset;)s++;var u=e[s].offset,d=(n-u)/(e[s+1].offset-u),p=e[s].color,f=e[s+1].color;l+=H(Math.round((1-d)*p[0]+d*f[0]).toString(16))+H(Math.round((1-d)*p[1]+d*f[1]).toString(16))+H(Math.round((1-d)*p[2]+d*f[2]).toString(16))}return l.trim()}(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ot({data:r,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),re("endobj"),e.objectNumber=Ye(),re("<< /ShadingType "+e.type),re("/ColorSpace /DeviceRGB");var i="/Coords ["+N(parseFloat(e.coords[0]))+" "+N(parseFloat(e.coords[1]))+" ";2===e.type?i+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3])):i+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3]))+" "+N(parseFloat(e.coords[4]))+" "+N(parseFloat(e.coords[5])),re(i+="]"),e.matrix&&re("/Matrix ["+e.matrix.toString()+"]"),re("/Function "+n+" 0 R"),re("/Extend [true true]"),re(">>"),re("endobj")},ut=function(e,t){var n=Ke(),r=Ye();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(N).join(" ")+"]"}),o.push({key:"XStep",value:N(e.xStep)}),o.push({key:"YStep",value:N(e.yStep)}),o.push({key:"Resources",value:n+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),ot({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),re("endobj")},dt=function(e){for(var t in e.objectNumber=Ye(),re("<<"),e)switch(t){case"opacity":re("/ca "+A(e[t]));break;case"stroke-opacity":re("/CA "+A(e[t]))}re(">>"),re("endobj")},pt=function(e){Qe(e.resourcesOid,!0),re("<<"),re("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in re("/Font <<"),ke)ke.hasOwnProperty(e)&&(!1===p||!0===p&&f.hasOwnProperty(e))&&re("/"+e+" "+ke[e].objectNumber+" 0 R");re(">>")}(),function(){if(Object.keys(Re).length>0){for(var e in re("/Shading <<"),Re)Re.hasOwnProperty(e)&&Re[e]instanceof Ce&&Re[e].objectNumber>=0&&re("/"+e+" "+Re[e].objectNumber+" 0 R");Ze.publish("putShadingPatternDict"),re(">>")}}(),function(e){if(Object.keys(Re).length>0){for(var t in re("/Pattern <<"),Re)Re.hasOwnProperty(t)&&Re[t]instanceof h.TilingPattern&&Re[t].objectNumber>=0&&Re[t].objectNumber<e&&re("/"+t+" "+Re[t].objectNumber+" 0 R");Ze.publish("putTilingPatternDict"),re(">>")}}(e.objectOid),function(){if(Object.keys(De).length>0){var e;for(e in re("/ExtGState <<"),De)De.hasOwnProperty(e)&&De[e].objectNumber>=0&&re("/"+e+" "+De[e].objectNumber+" 0 R");Ze.publish("putGStateDict"),re(">>")}}(),function(){for(var e in re("/XObject <<"),Be)Be.hasOwnProperty(e)&&Be[e].objectNumber>=0&&re("/"+e+" "+Be[e].objectNumber+" 0 R");Ze.publish("putXobjectDict"),re(">>")}(),re(">>"),re("endobj")},ft=function(e){Pe[e.fontName]=Pe[e.fontName]||{},Pe[e.fontName][e.fontStyle]=e.id},ht=function(e,t,n,r,o){var i={id:"F"+(Object.keys(ke).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:o||!1,metadata:{}};return Ze.publish("addFont",{font:i,instance:this}),ke[i.id]=i,ft(i),i.id},mt=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,r,o,i,a,l,s,c,u;if(o=(t=t||{}).sourceEncoding||"Unicode",a=t.outputEncoding,(t.autoencode||a)&&ke[xe].metadata&&ke[xe].metadata[o]&&ke[xe].metadata[o].encoding&&(i=ke[xe].metadata[o].encoding,!a&&ke[xe].encoding&&(a=ke[xe].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(s=!1,l=[],n=0,r=e.length;n<r;n++)(c=a[e.charCodeAt(n)])?l.push(String.fromCharCode(c)):l.push(e[n]),l[n].charCodeAt(0)>>8&&(s=!0);e=l.join("")}for(n=e.length;void 0===s&&0!==n;)e.charCodeAt(n-1)>>8&&(s=!0),n--;if(!s)return e;for(l=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(c=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");l.push(u),l.push(c-(u<<8))}return String.fromCharCode.apply(void 0,l)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=h.__private__.beginPage=function(e){K[++Fe]=[],_e[Fe]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},yt(Fe),ne(K[z])},vt=function(e,t){var r,o,a;switch(n=t||n,"string"==typeof e&&(r=b(e.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(e)&&(o=e[0]*Ne,a=e[1]*Ne),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(U.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}gt(i),Qt(Yt),re(an),0!==pn&&re(pn+" J"),0!==fn&&re(fn+" j"),Ze.publish("addPage",{pageNumber:Fe})},bt=function(e){e>0&&e<=Fe&&(K.splice(e,1),_e.splice(e,1),Fe--,z>Fe&&(z=Fe),this.setPage(z))},yt=function(e){e>0&&e<=Fe&&(z=e)},wt=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return K.length-1},xt=function(e,t,n){var r,o=void 0;return n=n||{},e=void 0!==e?e:ke[xe].fontName,t=void 0!==t?t:ke[xe].fontStyle,r=e.toLowerCase(),void 0!==Pe[r]&&void 0!==Pe[r][t]?o=Pe[r][t]:void 0!==Pe[e]&&void 0!==Pe[e][t]?o=Pe[e][t]:!1===n.disableWarning&&U.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),o||n.noFallback||null==(o=Pe.times[t])&&(o=Pe.times.normal),o},Ct=h.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var n in null!==d&&(t=Lt.encryptor(e,0)),re("<<"),re("/Producer ("+mt(t("jsPDF "+Ee.version))+")"),ge)ge.hasOwnProperty(n)&&ge[n]&&re("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+mt(t(ge[n]))+")");re("/CreationDate ("+mt(t(R))+")"),re(">>"),re("endobj")},St=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Je;switch(Ye(),re("<<"),re("/Type /Catalog"),re("/Pages "+t+" 0 R"),se||(se="fullwidth"),se){case"fullwidth":re("/OpenAction [3 0 R /FitH null]");break;case"fullheight":re("/OpenAction [3 0 R /FitV null]");break;case"fullpage":re("/OpenAction [3 0 R /Fit]");break;case"original":re("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+se;"%"===n.substr(n.length-1)&&(se=parseInt(se)/100),"number"==typeof se&&re("/OpenAction [3 0 R /XYZ null null "+A(se)+"]")}switch(fe||(fe="continuous"),fe){case"continuous":re("/PageLayout /OneColumn");break;case"single":re("/PageLayout /SinglePage");break;case"two":case"twoleft":re("/PageLayout /TwoColumnLeft");break;case"tworight":re("/PageLayout /TwoColumnRight")}de&&re("/PageMode /"+de),Ze.publish("putCatalog"),re(">>"),re("endobj")},Et=h.__private__.putTrailer=function(){re("trailer"),re("<<"),re("/Size "+($+1)),re("/Root "+$+" 0 R"),re("/Info "+($-1)+" 0 R"),null!==d&&re("/Encrypt "+Lt.oid+" 0 R"),re("/ID [ <"+T+"> <"+T+"> ]"),re(">>")},Nt=h.__private__.putHeader=function(){re("%PDF-"+m),re("%ºß¬à")},Mt=h.__private__.putXRef=function(){var e="0000000000";re("xref"),re("0 "+($+1)),re("0000000000 65535 f ");for(var t=1;t<=$;t++)"function"==typeof q[t]?re((e+q[t]()).slice(-10)+" 00000 n "):void 0!==q[t]?re((e+q[t]).slice(-10)+" 00000 n "):re("0000000000 00000 n ")},It=h.__private__.buildDocument=function(){$=0,G=0,V=[],q=[],Y=[],Je=Ke(),et=Ke(),ne(V),Ze.publish("buildDocument"),Nt(),at(),function(){Ze.publish("putAdditionalObjects");for(var e=0;e<Y.length;e++){var t=Y[e];Qe(t.objId,!0),re(t.content),re("endobj")}Ze.publish("postPutAdditionalObjects")}(),function(){var e=[];(function(){for(var e in ke)ke.hasOwnProperty(e)&&(!1===p||!0===p&&f.hasOwnProperty(e))&&lt(ke[e])})(),function(){var e;for(e in De)De.hasOwnProperty(e)&&dt(De[e])}(),function(){for(var e in Be)Be.hasOwnProperty(e)&&st(Be[e])}(),function(e){var t;for(t in Re)Re.hasOwnProperty(t)&&(Re[t]instanceof Ce?ct(Re[t]):Re[t]instanceof Se&&ut(Re[t],e))}(e),Ze.publish("putResources"),e.forEach(pt),pt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Ze.publish("postPutResources")}(),null!==d&&(Lt.oid=Ye(),re("<<"),re("/Filter /Standard"),re("/V "+Lt.v),re("/R "+Lt.r),re("/U <"+Lt.toHexString(Lt.U)+">"),re("/O <"+Lt.toHexString(Lt.O)+">"),re("/P "+Lt.P),re(">>"),re("endobj")),Ct(),St();var e=G;return Mt(),Et(),re("startxref"),re(""+e),re("%%EOF"),ne(K[z]),V.join("\n")},At=h.__private__.getBlob=function(e){return new Blob([ie(e)],{type:"application/pdf"})},kt=h.output=h.__private__.output=(Ge=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return It();case"save":h.save(t.filename);break;case"arraybuffer":return ie(It());case"blob":return At(It());case"bloburi":case"bloburl":if(void 0!==W.URL&&"function"==typeof W.URL.createObjectURL)return W.URL&&W.URL.createObjectURL(At(It()))||void 0;U.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=It();try{n=X(r)}catch(e){n=X(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(W)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(o=t.pdfObjectUrl,i="");var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+o+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=W.open();return null!==l&&l.document.write(a),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(W)){var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',c=W.open();if(null!==c){c.document.write(s);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=t.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(W))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var d='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=W.open();if(null!==p&&(p.document.write(d),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return W.document.location.href=this.output("datauristring",t);default:return null}},Ge.foo=function(){try{return Ge.apply(this,arguments)}catch(n){var e=n.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+n.message;if(!W.console)throw new Error(t);W.console.error(t,n),W.alert&&alert(t)}},Ge.foo.bar=Ge,Ge.foo),Pt=function(e){return!0===Array.isArray(ze)&&ze.indexOf(e)>-1};switch(o){case"pt":Ne=1;break;case"mm":Ne=72/25.4;break;case"cm":Ne=72/2.54;break;case"in":Ne=72;break;case"px":Ne=1==Pt("px_scaling")?.75:96/72;break;case"pc":case"em":Ne=12;break;case"ex":Ne=6;break;default:if("number"!=typeof o)throw new Error("Invalid unit: "+o);Ne=o}var Lt=null;_(),O();var Rt=h.__private__.getPageInfo=h.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:_e[e].objId,pageNumber:e,pageContext:_e[e]}},Tt=h.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in _e)if(_e[t].objId===e)break;return Rt(t)},Dt=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:_e[z].objId,pageNumber:z,pageContext:_e[z]}};h.addPage=function(){return vt.apply(this,arguments),this},h.setPage=function(){return yt.apply(this,arguments),ne.call(this,K[z]),this},h.insertPage=function(e){return this.addPage(),this.movePage(z,e),this},h.movePage=function(e,t){var n,r;if(e>t){n=K[e],r=_e[e];for(var o=e;o>t;o--)K[o]=K[o-1],_e[o]=_e[o-1];K[t]=n,_e[t]=r,this.setPage(t)}else if(e<t){n=K[e],r=_e[e];for(var i=e;i<t;i++)K[i]=K[i+1],_e[i]=_e[i+1];K[t]=n,_e[t]=r,this.setPage(t)}return this},h.deletePage=function(){return bt.apply(this,arguments),this},h.__private__.text=h.text=function(e,t,n,o,i){var a,l,s,c,u,d,p,h,m,g=(o=o||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var v=n;n=t,t=e,e=v}if(arguments[3]instanceof qe==0?(s=arguments[4],c=arguments[5],"object"===(0,r.Z)(p=arguments[3])&&null!==p||("string"==typeof s&&(c=s,s=null),"string"==typeof p&&(c=p,p=null),"number"==typeof p&&(s=p,p=null),o={flags:p,angle:s,align:c})):(M("The transform parameter of text() with a Matrix value"),m=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var b,y="",C="number"==typeof o.lineHeightFactor?o.lineHeightFactor:Gt,S=g.internal.scaleFactor;function E(e){return e=e.split("\t").join(Array(o.TabLen||9).join(" ")),mt(e,p)}function I(e){for(var t,n=e.concat(),r=[],o=n.length;o--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function A(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,o,i=e.concat(),a=[],l=i.length;l--;)"string"==typeof(r=i.shift())?a.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(o=t(r[0],r[1],r[2]),a.push([o[0],o[1],o[2]]));n=a}return n}var k=!1,L=!0;if("string"==typeof e)k=!0;else if(Array.isArray(e)){var R=e.concat();l=[];for(var T,D=R.length;D--;)("string"!=typeof(T=R.shift())||Array.isArray(T)&&"string"!=typeof T[0])&&(L=!1);k=L}if(!1===k)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var O=le/g.internal.scaleFactor,j=O*(C-1);switch(o.baseline){case"bottom":n-=j;break;case"top":n+=O-j;break;case"hanging":n+=O-2*j;break;case"middle":n+=O/2-j}if((d=o.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,d):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(g.splitTextToSize(t,d))}),[]))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:ke,activeFontSize:le}},Ze.publish("preProcessText",a),e=a.text,s=(o=a.options).angle,m instanceof qe==0&&s&&"number"==typeof s){s*=Math.PI/180,0===o.rotationDirection&&(s=-s),x===w&&(s=-s);var F=Math.cos(s),_=Math.sin(s);m=new qe(F,_,-_,F,0,0)}else s&&s instanceof qe&&(m=s);x!==w||m||(m=Ve),void 0!==(u=o.charSpace||un)&&(y+=N(P(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=o.horizontalScale)&&(y+=N(100*h)+" Tz\n"),o.lang;var Z=-1,z=void 0!==o.renderingMode?o.renderingMode:o.stroke,B=g.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case"fill":Z=0;break;case 1:case!0:case"stroke":Z=1;break;case 2:case"fillThenStroke":Z=2;break;case 3:case"invisible":Z=3;break;case 4:case"fillAndAddForClipping":Z=4;break;case 5:case"strokeAndAddPathForClipping":Z=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Z=6;break;case 7:case"addToPathForClipping":Z=7}var H=void 0!==B.usedRenderingMode?B.usedRenderingMode:-1;-1!==Z?y+=Z+" Tr\n":-1!==H&&(y+="0 Tr\n"),-1!==Z&&(B.usedRenderingMode=Z),c=o.align||"left";var $,q=le*C,W=g.internal.pageSize.getWidth(),V=ke[xe];u=o.charSpace||un,d=o.maxWidth||0,p=Object.assign({autoencode:!0,noBOM:!0},o.flags);var U=[];if("[object Array]"===Object.prototype.toString.call(e)){var G;l=I(e),"left"!==c&&($=l.map((function(e){return g.getStringUnitWidth(e,{font:V,charSpace:u,fontSize:le,doKerning:!1})*le/S})));var Y,K=0;if("right"===c){t-=$[0],e=[],D=l.length;for(var Q=0;Q<D;Q++)0===Q?(Y=tn(t),G=nn(n)):(Y=P(K-$[Q]),G=-q),e.push([l[Q],Y,G]),K=$[Q]}else if("center"===c){t-=$[0]/2,e=[],D=l.length;for(var X=0;X<D;X++)0===X?(Y=tn(t),G=nn(n)):(Y=P((K-$[X])/2),G=-q),e.push([l[X],Y,G]),K=$[X]}else if("left"===c){e=[],D=l.length;for(var J=0;J<D;J++)e.push(l[J])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],D=l.length,d=0!==d?d:W;for(var ee=0;ee<D;ee++)G=0===ee?nn(n):-q,Y=0===ee?tn(t):0,ee<D-1?U.push(N(P((d-$[ee])/(l[ee].split(" ").length-1)))):U.push(0),e.push([l[ee],Y,G])}}!0===("boolean"==typeof o.R2L?o.R2L:ue)&&(e=A(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:ke,activeFontSize:le}},Ze.publish("postProcessText",a),e=a.text,b=a.mutex.isHex||!1;var te=ke[xe].encoding;"WinAnsiEncoding"!==te&&"StandardEncoding"!==te||(e=A(e,(function(e,t,n){return[E(e),t,n]}))),l=I(e),e=[];for(var ne,oe,ie,ae=Array.isArray(l[0])?1:0,se="",ce=function(e,t,n){var r="";return n instanceof qe?(n="number"==typeof o.angle?We(n,new qe(1,0,0,1,e,t)):We(new qe(1,0,0,1,e,t),n),x===w&&(n=We(new qe(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=N(e)+" "+N(t)+" Td\n",r},de=0;de<l.length;de++){switch(se="",ae){case 1:ie=(b?"<":"(")+l[de][0]+(b?">":")"),ne=parseFloat(l[de][1]),oe=parseFloat(l[de][2]);break;case 0:ie=(b?"<":"(")+l[de]+(b?">":")"),ne=tn(t),oe=nn(n)}void 0!==U&&void 0!==U[de]&&(se=U[de]+" Tw\n"),0===de?e.push(se+ce(ne,oe,m)+ie):0===ae?e.push(se+ie):1===ae&&e.push(se+ce(ne,oe,m)+ie)}e=0===ae?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var pe="BT\n/";return pe+=xe+" "+le+" Tf\n",pe+=N(le*C)+" TL\n",pe+=sn+"\n",pe+=y,pe+=e,re(pe+="ET"),f[xe]=!0,g};var Ot=h.__private__.clip=h.clip=function(e){return re("evenodd"===e?"W*":"W"),this};h.clipEvenOdd=function(){return Ot("evenodd")},h.__private__.discardPath=h.discardPath=function(){return re("n"),this};var jt=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(e){return jt(e)&&(u=e),this};var Ft=h.__private__.getStyle=h.getStyle=function(e){var t=u;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},_t=h.close=function(){return re("h"),this};h.stroke=function(){return re("S"),this},h.fill=function(e){return Zt("f",e),this},h.fillEvenOdd=function(e){return Zt("f*",e),this},h.fillStroke=function(e){return Zt("B",e),this},h.fillStrokeEvenOdd=function(e){return Zt("B*",e),this};var Zt=function(e,t){"object"===(0,r.Z)(t)?Ht(t,e):re(e)},zt=function(e){null===e||x===w&&void 0===e||(e=Ft(e),re(e))};function Bt(e,t,n,r,o){var i=new Se(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,o||this.matrix);i.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return Ue(a,i),i}var Ht=function(e,t){var n=Te[e.key],r=Re[n];if(r instanceof Ce)re("q"),re($t(t)),r.gState&&h.setGState(r.gState),re(e.matrix.toString()+" cm"),re("/"+n+" sh"),re("Q");else if(r instanceof Se){var o=new qe(1,0,0,-1,0,Cn());e.matrix&&(o=o.multiply(e.matrix||Ve),n=Bt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,o).id),re("q"),re("/Pattern cs"),re("/"+n+" scn"),r.gState&&h.setGState(r.gState),re(t),re("Q")}},$t=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},qt=h.moveTo=function(e,t){return re(N(P(e))+" "+N(L(t))+" m"),this},Wt=h.lineTo=function(e,t){return re(N(P(e))+" "+N(L(t))+" l"),this},Vt=h.curveTo=function(e,t,n,r,o,i){return re([N(P(e)),N(L(t)),N(P(n)),N(L(r)),N(P(o)),N(L(i)),"c"].join(" ")),this};h.__private__.line=h.line=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.line");return x===y?this.lines([[n-e,r-t]],e,t,[1,1],o||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},h.__private__.lines=h.lines=function(e,t,n,r,o,i){var a,l,s,c,u,d,p,f,h,m,g,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!jt(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(qt(t,n),a=r[0],l=r[1],c=e.length,m=t,g=n,s=0;s<c;s++)2===(u=e[s]).length?(m=u[0]*a+m,g=u[1]*l+g,Wt(m,g)):(d=u[0]*a+m,p=u[1]*l+g,f=u[2]*a+m,h=u[3]*l+g,m=u[4]*a+m,g=u[5]*l+g,Vt(d,p,f,h,m,g));return i&&_t(),zt(o),this},h.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":qt(r[0],r[1]);break;case"l":Wt(r[0],r[1]);break;case"c":Vt.apply(this,r);break;case"h":_t()}}return this},h.__private__.rect=h.rect=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.rect");return x===y&&(r=-r),re([N(P(e)),N(L(t)),N(P(n)),N(P(r)),"re"].join(" ")),zt(o),this},h.__private__.triangle=h.triangle=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[o-n,i-r],[e-o,t-i]],e,t,[1,1],a,!0),this},h.__private__.roundedRect=h.roundedRect=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var l=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*n),i=Math.min(i,.5*r),this.lines([[n-2*o,0],[o*l,0,o,i-i*l,o,i],[0,r-2*i],[0,i*l,-o*l,i,-o,i],[2*o-n,0],[-o*l,0,-o,-i*l,-o,-i],[0,2*i-r],[0,-i*l,o*l,-i,o,-i]],e+o,t,[1,1],a,!0),this},h.__private__.ellipse=h.ellipse=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return qt(e+n,t),Vt(e+n,t-a,e+i,t-r,e,t-r),Vt(e-i,t-r,e-n,t-a,e-n,t),Vt(e-n,t+a,e-i,t+r,e,t+r),Vt(e+i,t+r,e+n,t+a,e+n,t),zt(o),this},h.__private__.circle=h.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!jt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},h.setFont=function(e,t,n){return n&&(t=E(t,n)),xe=xt(e,t,{disableWarning:!1}),this};var Ut=h.__private__.getFont=h.getFont=function(){return ke[xt.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var e,t,n={};for(e in Pe)if(Pe.hasOwnProperty(e))for(t in n[e]=[],Pe[e])Pe[e].hasOwnProperty(t)&&n[e].push(t);return n},h.addFont=function(e,t,n,r,o){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=E(n,r)),ht.call(this,e,t,n,o=o||"Identity-H")};var Gt,Yt=e.lineWidth||.200025,Kt=h.__private__.getLineWidth=h.getLineWidth=function(){return Yt},Qt=h.__private__.setLineWidth=h.setLineWidth=function(e){return Yt=e,re(N(P(e))+" w"),this};h.__private__.setLineDash=Ee.API.setLineDash=Ee.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return N(P(e))})).join(" "),t=N(P(t)),re("["+e+"] "+t+" d"),this};var Xt=h.__private__.getLineHeight=h.getLineHeight=function(){return le*Gt};h.__private__.getLineHeight=h.getLineHeight=function(){return le*Gt};var Jt=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Gt=e),this},en=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Gt};Jt(e.lineHeight);var tn=h.__private__.getHorizontalCoordinate=function(e){return P(e)},nn=h.__private__.getVerticalCoordinate=function(e){return x===w?e:_e[z].mediaBox.topRightY-_e[z].mediaBox.bottomLeftY-P(e)},rn=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(e){return N(tn(e))},on=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(e){return N(nn(e))},an=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return tt(an)},h.__private__.setStrokeColor=h.setDrawColor=function(e,t,n,r){return an=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),re(an),this};var ln=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return tt(ln)},h.__private__.setFillColor=h.setFillColor=function(e,t,n,r){return ln=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),re(ln),this};var sn=e.textColor||"0 g",cn=h.__private__.getTextColor=h.getTextColor=function(){return tt(sn)};h.__private__.setTextColor=h.setTextColor=function(e,t,n,r){return sn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var un=e.charSpace,dn=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(un||0)};h.__private__.setCharSpace=h.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return un=e,this};var pn=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pn=t,re(t+" J"),this};var fn=0;h.__private__.setLineJoin=h.setLineJoin=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fn=t,re(t+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return re(N(P(e))+" M"),this},h.GState=we,h.setGState=function(e){(e="string"==typeof e?De[Oe[e]]:hn(null,e)).equals(je)||(re("/"+e.id+" gs"),je=e)};var hn=function(e,t){if(!e||!Oe[e]){var n=!1;for(var r in De)if(De.hasOwnProperty(r)&&De[r].equals(t)){n=!0;break}if(n)t=De[r];else{var o="GS"+(Object.keys(De).length+1).toString(10);De[o]=t,t.id=o}return e&&(Oe[e]=t.id),Ze.publish("addGState",t),t}};h.addGState=function(e,t){return hn(e,t),this},h.saveGraphicsState=function(){return re("q"),Le.push({key:xe,size:le,color:sn}),this},h.restoreGraphicsState=function(){re("Q");var e=Le.pop();return xe=e.key,le=e.size,sn=e.color,je=null,this},h.setCurrentTransformationMatrix=function(e){return re(e.toString()+" cm"),this},h.comment=function(e){return re("#"+e),this};var mn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},gn=function(e,t,n,r){mn.call(this,e,t),this.type="rect";var o=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},vn=function(){this.page=Fe,this.currentPage=z,this.pages=K.slice(0),this.pagesContext=_e.slice(0),this.x=Me,this.y=Ie,this.matrix=Ae,this.width=wn(z),this.height=Cn(z),this.outputDestination=te,this.id="",this.objectNumber=-1};vn.prototype.restore=function(){Fe=this.page,z=this.currentPage,_e=this.pagesContext,K=this.pages,Me=this.x,Ie=this.y,Ae=this.matrix,xn(z,this.width),Sn(z,this.height),te=this.outputDestination};var bn=function(e,t,n,r,o){$e.push(new vn),Fe=z=0,K=[],Me=e,Ie=t,Ae=o,gt([n,r])};for(var yn in h.beginFormObject=function(e,t,n,r,o){return bn(e,t,n,r,o),this},h.endFormObject=function(e){return function(e){if(He[e])$e.pop().restore();else{var t=new vn,n="Xo"+(Object.keys(Be).length+1).toString(10);t.id=n,He[e]=n,Be[n]=t,Ze.publish("addFormObject",t),$e.pop().restore()}}(e),this},h.doFormObject=function(e,t){var n=Be[He[e]];return re("q"),re(t.toString()+" cm"),re("/"+n.id+" Do"),re("Q"),this},h.getFormObject=function(e){var t=Be[He[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},h.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(J(At(It()),e),"function"==typeof J.unload&&W.setTimeout&&setTimeout(J.unload,911),this):new Promise((function(t,n){try{var r=J(At(It()),e);"function"==typeof J.unload&&W.setTimeout&&setTimeout(J.unload,911),t(r)}catch(e){n(e.message)}}))},Ee.API)Ee.API.hasOwnProperty(yn)&&("events"===yn&&Ee.API.events.length?function(e,t){var n,r,o;for(o=t.length-1;-1!==o;o--)n=t[o][0],r=t[o][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(Ze,Ee.API.events):h[yn]=Ee.API[yn]);var wn=h.getPageWidth=function(e){return(_e[e=e||z].mediaBox.topRightX-_e[e].mediaBox.bottomLeftX)/Ne},xn=h.setPageWidth=function(e,t){_e[e].mediaBox.topRightX=t*Ne+_e[e].mediaBox.bottomLeftX},Cn=h.getPageHeight=function(e){return(_e[e=e||z].mediaBox.topRightY-_e[e].mediaBox.bottomLeftY)/Ne},Sn=h.setPageHeight=function(e,t){_e[e].mediaBox.topRightY=t*Ne+_e[e].mediaBox.bottomLeftY};return h.internal={pdfEscape:mt,getStyle:Ft,getFont:Ut,getFontSize:ce,getCharSpace:dn,getTextColor:cn,getLineHeight:Xt,getLineHeightFactor:en,getLineWidth:Kt,write:oe,getHorizontalCoordinate:tn,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:on,collections:{},newObject:Ye,newAdditionalObject:Xe,newObjectDeferred:Ke,newObjectDeferredBegin:Qe,getFilters:rt,putStream:ot,events:Ze,scaleFactor:Ne,pageSize:{getWidth:function(){return wn(z)},setWidth:function(e){xn(z,e)},getHeight:function(){return Cn(z)},setHeight:function(e){Sn(z,e)}},encryptionOptions:d,encryption:Lt,getEncryptor:function(e){return null!==d?Lt.encryptor(e,0):function(e){return e}},output:kt,getNumberOfPages:wt,pages:K,out:re,f2:A,f3:k,getPageInfo:Rt,getPageInfoByObjId:Tt,getCurrentPageInfo:Dt,getPDFVersion:g,Point:mn,Rectangle:gn,Matrix:qe,hasHotfix:Pt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return wn(z)},set:function(e){xn(z,e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Cn(z)},set:function(e){Sn(z,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=ae.length;t<n;t++){var r=ht.call(this,e[t][0],e[t][1],e[t][2],ae[t][3],!0);!1===p&&(f[r]=!0);var o=e[t][0].split("-");ft({id:r,fontName:o[0],fontStyle:o[1]||""})}Ze.publish("addFonts",{fonts:ke,dictionary:Pe})}.call(h,ae),xe="F1",vt(i,n),Ze.publish("initialized"),h}ve.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},ve.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},ve.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},ve.prototype.processOwnerPassword=function(e,t){return me(pe(t).substr(0,5),e)},ve.prototype.encryptor=function(e,t){var n=pe(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return me(n,e)}},we.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,r.Z)(e)!==(0,r.Z)(this))return!1;var o=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;o++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&o--;return 0===o},Ee.API={events:[]},Ee.version="2.5.1";var Ne=Ee.API,Me=1,Ie=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ae=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ke=function(e){return e.toFixed(2)},Pe=function(e){return e.toFixed(5)};Ne.__acroform__={};var Le=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Re=function(e){return e*Me},Te=function(e){var t=new Ye,n=ct.internal.getHeight(e)||0,r=ct.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ke(r)),Number(ke(n))],t},De=Ne.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},Oe=Ne.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},je=Ne.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},Fe=Ne.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return je(e,t-1)},_e=Ne.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return De(e,t-1)},Ze=Ne.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Oe(e,t-1)},ze=Ne.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,o=e[0],i=e[1],a=e[2],l=e[3],s={};return s.lowerLeft_X=n(o)||0,s.lowerLeft_Y=r(i+l)||0,s.upperRight_X=n(o+a)||0,s.upperRight_Y=r(i)||0,[Number(ke(s.lowerLeft_X)),Number(ke(s.lowerLeft_Y)),Number(ke(s.upperRight_X)),Number(ke(s.upperRight_Y))]},Be=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=He(e,n),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+ke(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Te(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},He=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map((function(e){return e.split("\n")})):o.map((function(e){return[e]}));var i=n,a=ct.internal.getHeight(e)||0;a=a<0?-a:a;var l=ct.internal.getWidth(e)||0;l=l<0?-l:l;var s=function(t,n,r){if(t+1<o.length){var i=n+" "+o[t+1][0];return $e(i,e,r).width<=l-4}return!1};i++;e:for(;i>0;){t="",i--;var c,u,d=$e("3",e,i).height,p=e.multiline?a-i:(a-d)/2,f=p+=2,h=0,m=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+$e(t,e,i=12).width+", FieldWidth:"+l+"\n";break}for(var v="",b=0,y=0;y<o.length;y++)if(o.hasOwnProperty(y)){var w=!1;if(1!==o[y].length&&g!==o[y].length-1){if((d+2)*(b+2)+2>a)continue e;v+=o[y][g],w=!0,m=y,y--}else{v=" "==(v+=o[y][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),C=s(x,v,i),S=y>=o.length-1;if(C&&!S){v+=" ",g=0;continue}if(C||S){if(S)m=x;else if(e.multiline&&(d+2)*(b+2)+2>a)continue e}else{if(!e.multiline)continue e;if((d+2)*(b+2)+2>a)continue e;m=x}}for(var E="",N=h;N<=m;N++){var M=o[N];if(e.multiline){if(N===m){E+=M[g]+" ",g=(g+1)%M.length;continue}if(N===h){E+=M[M.length-1]+" ";continue}}E+=M[0]+" "}switch(E=" "==E.substr(E.length-1)?E.substr(0,E.length-1):E,u=$e(E,e,i).width,e.textAlign){case"right":c=l-u-2;break;case"center":c=(l-u)/2;break;default:c=2}t+=ke(c)+" "+ke(f)+" Td\n",t+="("+Ie(E)+") Tj\n",t+=-ke(c)+" 0 Td\n",f=-(i+2),u=0,h=w?m:m+1,b++,v=""}break}return r.text=t,r.fontSize=i,r},$e=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},qe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},We=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Ve=Ne.__acroform__.arrayToPdfArray=function(e,t,n){var o=function(e){return e};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(0!==a&&(i+=" "),(0,r.Z)(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":"/"!==e[a].substr(0,1)?(void 0!==t&&n&&(o=n.internal.getEncryptor(t)),i+="("+Ie(o(e[a].toString()))+")"):i+=e[a].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ue=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Ie(r(e))+")"},Ge=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ge.prototype.toString=function(){return this.objId+" 0 R"},Ge.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ge.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],o=this[r];o&&(Array.isArray(o)?e.push({key:r,value:Ve(o,this.objId,this.scope)}):o instanceof Ge?(o.scope=this.scope,e.push({key:r,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:r,value:o}))}return e};var Ye=function(){Ge.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Le(Ye,Ge);var Ke=function(){Ge.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ie(t(e))+")"}},set:function(t){e=t}})};Le(Ke,Ge);var Qe=function e(){Ge.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(t,3))},set:function(e){!0===Boolean(e)?this.F=_e(t,3):this.F=Ze(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof it)return;i="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ie(t(i))+")"},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Me:c},set:function(e){c=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof it||this instanceof lt))return Ue(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof nt==0?Ue(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof nt==0?"("===e.substr(0,1)?Ae(e.substr(1,e.length-2)):Ae(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==1?Ae(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof nt==1?"/"+e:e}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof nt==0?Ue(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof nt==0?"("===e.substr(0,1)?Ae(e.substr(1,e.length-2)):Ae(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==1?Ae(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof nt==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(e){e=Boolean(e),m=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(e){h=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,1):this.Ff=Ze(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,2):this.Ff=Ze(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,3):this.Ff=Ze(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};Le(Qe,Ge);var Xe=function(){Qe.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ve(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,o=[];r=t.exec(e);)o.push(r[n]);return o}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,18):this.Ff=Ze(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=_e(this.Ff,19):this.Ff=Ze(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=_e(this.Ff,20),t.sort()):this.Ff=Ze(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,22):this.Ff=Ze(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,23):this.Ff=Ze(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,27):this.Ff=Ze(this.Ff,27)}}),this.hasAppearanceStream=!1};Le(Xe,Qe);var Je=function(){Xe.call(this),this.fontName="helvetica",this.combo=!1};Le(Je,Xe);var et=function(){Je.call(this),this.combo=!0};Le(et,Je);var tt=function(){et.call(this),this.edit=!0};Le(tt,et);var nt=function(){Qe.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,15):this.Ff=Ze(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,16):this.Ff=Ze(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,17):this.Ff=Ze(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,26):this.Ff=Ze(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+Ie(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,r.Z)(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Le(nt,Qe);var rt=function(){nt.call(this),this.pushButton=!0};Le(rt,nt);var ot=function(){nt.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};Le(ot,nt);var it=function(){var e,t;Qe.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),o)n.push("/"+t+" ("+Ie(e(o[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,r.Z)(e)&&(o=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(e){"string"==typeof e&&(o.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ct.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Le(it,Qe),ot.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},ot.prototype.createOption=function(e){var t=new it;return t.Parent=this,t.optionName=e,this.Kids.push(t),ut.call(this.scope,t),t};var at=function(){nt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ct.CheckBox.createAppearanceStream()};Le(at,nt);var lt=function(){Qe.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,13):this.Ff=Ze(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,21):this.Ff=Ze(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,23):this.Ff=Ze(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,24):this.Ff=Ze(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,25):this.Ff=Ze(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,26):this.Ff=Ze(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Le(lt,Qe);var st=function(){lt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=_e(this.Ff,14):this.Ff=Ze(this.Ff,14)}}),this.password=!0};Le(st,lt);var ct={CheckBox:{createAppearanceStream:function(){return{N:{On:ct.CheckBox.YesNormal},D:{On:ct.CheckBox.YesPushDown,Off:ct.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),i=He(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ke(ct.internal.getWidth(e))+" "+ke(ct.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ke(i.fontSize)+" Tf "+o),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=[],i=ct.internal.getHeight(e),a=ct.internal.getWidth(e),l=He(e,e.caption);return o.push("1 g"),o.push("0 0 "+ke(a)+" "+ke(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+ke(a-1)+" "+ke(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+ke(l.fontSize)+" Tf "+r),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ke(ct.internal.getWidth(e))+" "+ke(ct.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ct.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ct.RadioButton.Circle.YesNormal,t.D[e]=ct.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ct.internal.getWidth(e)<=ct.internal.getHeight(e)?ct.internal.getWidth(e)/4:ct.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=ct.internal.Bezier_C,i=Number((r*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Pe(ct.internal.getWidth(e)/2)+" "+Pe(ct.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ct.internal.getWidth(e)<=ct.internal.getHeight(e)?ct.internal.getWidth(e)/4:ct.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*ct.internal.Bezier_C).toFixed(5)),a=Number((r*ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ct.internal.getWidth(e)/2)+" "+Pe(ct.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ct.internal.getWidth(e)/2)+" "+Pe(ct.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ct.internal.getWidth(e)<=ct.internal.getHeight(e)?ct.internal.getWidth(e)/4:ct.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Pe(ct.internal.getWidth(e)/2)+" "+Pe(ct.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ct.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ct.RadioButton.Cross.YesNormal,t.D[e]=ct.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Te(e);t.scope=e.scope;var n=[],r=ct.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ke(ct.internal.getWidth(e)-2)+" "+ke(ct.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ke(r.x1.x)+" "+ke(r.x1.y)+" m"),n.push(ke(r.x2.x)+" "+ke(r.x2.y)+" l"),n.push(ke(r.x4.x)+" "+ke(r.x4.y)+" m"),n.push(ke(r.x3.x)+" "+ke(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=ct.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ke(ct.internal.getWidth(e))+" "+ke(ct.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ke(ct.internal.getWidth(e)-2)+" "+ke(ct.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ke(n.x1.x)+" "+ke(n.x1.y)+" m"),r.push(ke(n.x2.x)+" "+ke(n.x2.y)+" l"),r.push(ke(n.x4.x)+" "+ke(n.x4.y)+" m"),r.push(ke(n.x3.x)+" "+ke(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Te(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ke(ct.internal.getWidth(e))+" "+ke(ct.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};ct.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ct.internal.getWidth(e),n=ct.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},ct.internal.getWidth=function(e){var t=0;return"object"===(0,r.Z)(e)&&(t=Re(e.Rect[2])),t},ct.internal.getHeight=function(e){var t=0;return"object"===(0,r.Z)(e)&&(t=Re(e.Rect[3])),t};var ut=Ne.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(Qe.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(qe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Me=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Ke,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&We(r,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var o in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(o)){var i=e[o],a=[],l=i.Rect;if(i.Rect&&(i.Rect=ze(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=ct.createDefaultAppearanceStream(i),"object"===(0,r.Z)(i)&&"function"==typeof i.getKeyValueListForStream&&(a=i.getKeyValueListForStream()),i.Rect=l,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=Be(i);a.push({key:"AP",value:"<</N "+s+">>"}),t.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var d=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var o in d)if(d.hasOwnProperty(o)){var p=d[o];"function"==typeof p&&(p=p.call(t,i)),c+="/"+o+" "+p+" ",t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p)}}else"function"==typeof(p=d)&&(p=p.call(t,i)),c+="/"+o+" "+p,t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p);c+=">>"}a.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:a,objectId:i.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,r.Z)(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[o]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof Qe))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ne.AcroFormChoiceField=Xe,Ne.AcroFormListBox=Je,Ne.AcroFormComboBox=et,Ne.AcroFormEditBox=tt,Ne.AcroFormButton=nt,Ne.AcroFormPushButton=rt,Ne.AcroFormRadioButton=ot,Ne.AcroFormCheckBox=at,Ne.AcroFormTextField=lt,Ne.AcroFormPasswordField=st,Ne.AcroFormAppearance=ct,Ne.AcroForm={ChoiceField:Xe,ListBox:Je,ComboBox:et,EditBox:tt,Button:nt,PushButton:rt,RadioButton:ot,CheckBox:at,TextField:lt,PasswordField:st,Appearance:ct},Ee.AcroForm={ChoiceField:Xe,ListBox:Je,ComboBox:et,EditBox:tt,Button:nt,PushButton:rt,RadioButton:ot,CheckBox:at,TextField:lt,PasswordField:st,Appearance:ct};var dt,pt,ft=Ee.AcroForm;function ht(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,r){var o,i,a,l,s,c=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(S(e))for(s in n)for(a=n[s],o=0;o<a.length;o+=1){for(l=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e[i]){l=!1;break}if(!0===l){c=s;break}}else for(s in n)for(a=n[s],o=0;o<a.length;o+=1){for(l=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e.charCodeAt(i)){l=!1;break}if(!0===l){c=s;break}}return c===t&&r!==t&&(c=r),c},i=function e(t){for(var n=this.internal.write,r=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===v.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===v.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",l=0,s=t.transparency.length;l<s;l++)a+=t.transparency[l]+" "+t.transparency[l]+" ";i.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,d={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(d.filter=t.filter),e.call(this,d)}if(t.colorSpace===v.INDEXED){var p=this.internal.newObject();r({data:N(new Uint8Array(t.palette)),objectId:p}),n("endobj")}},a=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},l=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var r in t)n("/I"+(e=t[r]).index,e.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",l))},c=function(){var e=this.internal.collections.addImage_images;return s.call(this),e},u=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},p=function(e){return"object"===(0,r.Z)(e)&&1===e.nodeType},f=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return Q(unescape(r).split("base64,").pop());var o=e.loadFile(r,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return Q(t.toDataURL(i,1).split("base64,").pop())}},h=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},m=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},g=function(e,t,n,r,o,i){var a=m.call(this,n,r,o),l=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,u=c.call(this);if(n=a[0],r=a[1],u[o.index]=o,i){i*=Math.PI/180;var d=Math.cos(i),p=Math.sin(i),f=function(e){return e.toFixed(4)},h=[f(d),f(p),f(-1*p),f(d),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,l(e),s(t+r),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([l(n),"0","0",l(r),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(r),l(e),s(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(S(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},x=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:t[1]})}return n},C=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return C()&&e instanceof ArrayBuffer};var S=e.__addimage__.isArrayBufferView=function(e){return C()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},E=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},N=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=S(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,n,o,i,a,l,c,u,d;if("number"==typeof arguments[1]?(n=t,o=arguments[1],i=arguments[2],a=arguments[3],l=arguments[4],c=arguments[5],u=arguments[6],d=arguments[7]):(n=arguments[1],o=arguments[2],i=arguments[3],a=arguments[4],l=arguments[5],c=arguments[6],u=arguments[7],d=arguments[8]),"object"===(0,r.Z)(e=arguments[0])&&!p(e)&&"imageData"in e){var f=e;e=f.imageData,n=f.format||n||t,o=f.x||o||0,i=f.y||i||0,a=f.w||f.width||a,l=f.h||f.height||l,c=f.alias||c,u=f.compression||u,d=f.rotation||f.angle||d}var h=this.internal.getFilters();if(void 0===u&&-1!==h.indexOf("FlateEncode")&&(u="SLOW"),isNaN(o)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var m=M.call(this,e,n,c,u);return g.call(this,o,i,a,l,m,d),this};var M=function(n,r,i,a){var l,s,c;if("string"==typeof n&&o(n)===t){n=unescape(n);var m=I(n,!1);(""!==m||void 0!==(m=e.loadFile(n,!0)))&&(n=m)}if(p(n)&&(n=f(n,r)),r=o(n,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(c=i)||0===c.length)&&(i=function(e){return"string"==typeof e||S(e)?y(e):S(e.data)?y(e.data):null}(n)),(l=h.call(this,i))||(C()&&(n instanceof Uint8Array||"RGBA"===r||(s=n,n=E(n))),l=this["process"+r.toUpperCase()](n,u.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:b.NONE}(a),s)),!l)throw new Error("An unknown error occurred whilst processing the image.");return l},I=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var r,o="";if("string"==typeof e){r=null!==(n=x(e))?n.data:e;try{o=Q(r)}catch(e){if(t)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return o};e.getImageProperties=function(n){var r,i,a="";if(p(n)&&(n=f(n)),"string"==typeof n&&o(n)===t&&(""===(a=I(n,!1))&&(a=e.loadFile(n)||""),n=a),i=o(n),!d(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!C()||n instanceof Uint8Array||(n=E(n)),!(r=this["process"+i.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(Ee.API),dt=Ee.API,pt=function(e){if(void 0!==e&&""!=e)return!0},Ee.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),dt.events.push(["putPage",function(e){for(var t,n,r,o=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,s=!1,c=0;c<l.length&&!s;c++)switch((t=l[c]).type){case"link":(pt(t.options.url)||pt(t.options.pageNumber))&&(s=!0);break;case"reference":case"text":case"freetext":s=!0}if(0!=s){this.internal.write("/Annots [");for(var u=0;u<l.length;u++){t=l[u];var d=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(f.objId),g=t.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+o(t.bounds.x)+" "+i(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y)+"] ")+"/Contents ("+d(m(t.contents))+")",r+=" /Popup "+h.objId+" 0 R",r+=" /P "+a.objId+" 0 R",r+=" /T ("+d(m(g))+") >>",f.content=r;var v=f.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+o(t.bounds.x+30)+" "+i(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w+30)+" "+i(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(r+=" /Open true"),r+=" >>",h.content=r,this.internal.write(f.objId,"0 R",h.objId,"0 R");break;case"freetext":n="/Rect ["+o(t.bounds.x)+" "+i(t.bounds.y)+" "+o(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y+t.bounds.h)+"] ";var b=t.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+d(p(t.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(t.options.name){var y=this.annotations._nameMap[t.options.name];t.options.pageNumber=y.page,t.options.top=y.y}else t.options.top||(t.options.top=0);if(n="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",r="",t.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+d(p(t.options.url))+") >>";else if(t.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,r+=" /FitV "+t.options.left+"]";break;default:var w=i(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),r+=" /XYZ "+t.options.left+" "+w+" "+t.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),dt.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},dt.link=function(e,t,n,r,o){var i=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:a(e),y:l(t),w:a(e+n),h:l(t+r)},options:o,type:"link"})},dt.textWithLink=function(e,t,n,r){var o,i,a=this.getTextWidth(e),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var s=this.splitTextToSize(e,i).length;o=Math.ceil(l*s)}else i=a,o=l;return this.text(e,t,n,r),n+=.2*l,"center"===r.align&&(t-=a/2),"right"===r.align&&(t-=a),this.link(t,n-l,i,o,r),a},dt.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},l=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},s=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&i(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(o+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,o+=e.charAt(t-i),t-=i,i=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var p=e.__arabicParser__.getCorrectForm=function(e,t,n){return a(e)?!1===i(e)?-1:!c(e)||!a(t)&&!a(n)||!a(n)&&l(t)||l(e)&&!a(t)||l(e)&&s(t)||l(e)&&l(t)?0:u(e)&&a(t)&&!l(t)&&a(n)&&c(n)?3:l(e)||!a(n)?1:2:-1},f=function(e){var n=0,r=0,o=0,i="",l="",s="",c=(e=e||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),r=0;r<c[n].length;r+=1)i=c[n][r],l=c[n][r-1],s=c[n][r+1],a(i)?(o=p(i,l,s),u[n]+=-1!==o?String.fromCharCode(t[i.charCodeAt(0)][o]):i):u[n]+=i;u[n]=d(u[n])}return u.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([f(t[r][0]),t[r][1],t[r][2]]):n.push([f(t[r])]);e=n}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",h])}(Ee.API),Ee.API.autoPrint=function(e){var t;return"javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ee.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,o=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return o.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){o.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,a=0,l=0,s=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(c.splitTextToSize(t,u))}),[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)a<(s=this.getStringUnitWidth(e[d],{font:r})*n)&&(a=s);return 0!==a&&(l=e.length),{w:a/=i,h:Math.max((l*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){o.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=e.cell=function(){var e;e=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),o.call(this);var r=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,l=this.internal.__cell__.margins||t,s=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+l.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=l.top,c&&s&&(this.printHeaderRow(e.lineNumber,!0),e.y+=s[0].height)):e.y=r.y+r.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,c,u,d){if(o.call(this),!c)throw new Error("No data for PDF table.");var p,f,h,m,g=[],v=[],b=[],y={},w={},x=[],C=[],S=(d=d||{}).autoSize||!1,E=!1!==d.printHeaders,N=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,M=d.margins||Object.assign({width:this.getPageWidth()},t),I="number"==typeof d.padding?d.padding:3,A=d.headerBackgroundColor||"#c8c8c8",k=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=E,this.internal.__cell__.margins=M,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=A,this.internal.__cell__.headerTextColor=k,this.setFontSize(N),null==u)v=g=Object.keys(c[0]),b=g.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===(0,r.Z)(u[0]))for(g=u.map((function(e){return e.name})),v=u.map((function(e){return e.prompt||e.name||""})),b=u.map((function(e){return e.align||"left"})),p=0;p<u.length;p+=1)w[u[p].name]=u[p].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(v=g=u,b=g.map((function(){return"left"})));if(S||Array.isArray(u)&&"string"==typeof u[0])for(p=0;p<g.length;p+=1){for(y[m=g[p]]=c.map((function(e){return e[m]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=y[m],this.setFont(void 0,"normal"),h=0;h<f.length;h+=1)x.push(this.getTextDimensions(f[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[m]=Math.max.apply(null,x)+I+I,x=[]}if(E){var P={};for(p=0;p<g.length;p+=1)P[g[p]]={},P[g[p]].text=v[p],P[g[p]].align=b[p];var L=s.call(this,P,w);C=g.map((function(t){return new a(e,n,w[t],L,P[t].text,void 0,P[t].align)})),this.setTableHeaderRow(C),this.printHeaderRow(1,!1)}var R=u.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(p=0;p<c.length;p+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:p,data:c[p]},this);var T=s.call(this,c[p],w);for(h=0;h<g.length;h+=1){var D=c[p][g[h]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:p,col:h,data:D},this),l.call(this,new a(e,n,w[g[h]],T,D,p+2,R[g[h]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var s=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map((function(r){var o=e[r];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[r]-n-n)}),this).map((function(e){return this.getLineHeightFactor()*e.length*r/o+n+n}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){o.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(o.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var s=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){r=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,s.push(r)),r.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,r),this.setTextColor(u)}s.length>0&&this.setTableHeaderRow(s),this.setFont(void 0,"normal"),n=!1}}(Ee.API);var mt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},gt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vt=ht(gt),bt=[100,200,300,400,500,600,700,800,900],yt=ht(bt);function wt(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return mt[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),o=function(e){return"number"==typeof vt[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,r].join(" ")}}}function xt(e,t,n,r){var o;for(o=n;o>=0&&o<t.length;o+=r)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=r)if(e[t[o]])return e[t[o]]}var Ct={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},St={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Nt(e){return e.trimLeft()}function Mt(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function It(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var At,kt,Pt,Lt=["times"];!function(e){var t,n,o,i,a,l,s,c,u,d=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new c,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new l,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new l,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,l=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,u=new d}]);var p=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),u.margin=t}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=e}});var l=0;Object.defineProperty(this,"lastBreak",{get:function(){return l},set:function(e){l=e}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(e){s=e}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(e){e instanceof d&&(u=e)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(e){u.path=e}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=f(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=f(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var p=null;function h(e,t){if(null===p){var n=function(e){var t=[];return Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))}))})),t}(e.getFontList());p=function(e){for(var t={},n=0;n<e.length;++n){var r=wt(e[n]),o=r.family,i=r.stretch,a=r.style,l=r.weight;t[o]=t[o]||{},t[o][i]=t[o][i]||{},t[o][i][a]=t[o][i][a]||{},t[o][i][a][l]=r}return t}(n.concat(t))}return p}var m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(e){p=null,m=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],r=(t[2],t[3]),o=t[4],i=(t[5],t[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===a?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var l=function(e){var t,n,r=[],o=e.trim();if(""===o)return Lt;if(o in St)return[St[o]];for(;""!==o;){switch(n=null,t=(o=Nt(o)).charAt(0)){case'"':case"'":n=Mt(o.substring(1),t);break;default:n=It(o)}if(null===n)return Lt;if(r.push(n[0]),""!==(o=Nt(n[1]))&&","!==o.charAt(0))return Lt;o=o.replace(/^,/,"")}return r}(i);if(this.fontFaces){var s=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},Ct,n.genericFontFamilies||{}),i=null,a=null,l=0;l<t.length;++l)if(o[(i=wt(t[l])).family]&&(i.family=o[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+Et(i)+"' and default family '"+r+"'.");if(a=function(e,t){if(t[e])return t[e];var n=vt[e],r=n<=vt.normal?-1:1,o=xt(t,gt,n,r);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(i.stretch,a),a=function(e,t){if(t[e])return t[e];for(var n=mt[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(i.style,a),!(a=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=yt[e],r=xt(t,bt,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Et(i)+"'.");return a}(h(this.pdf,this.fontFaces),l.map((function(e){return{family:e,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(s.ref.name,s.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var u="",d={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},p=0;p<l.length;p++){if(void 0!==this.pdf.internal.getFont(l[p],c,{noFallback:!0,disableWarning:!0})){u=l[p];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(l[p],"bold",{noFallback:!0,disableWarning:!0}))u=l[p],c="bold";else if(void 0!==this.pdf.internal.getFont(l[p],"normal",{noFallback:!0,disableWarning:!0})){u=l[p],c="normal";break}}if(""===u)for(var f=0;f<l.length;f++)if(d[l[f]]){u=d[l[f]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,_.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,_.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};p.prototype.setLineDash=function(e){this.lineDash=e},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){x.call(this,"fill",!1)},p.prototype.stroke=function(){x.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw U.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new l(e,t)},p.prototype.closePath=function(){var e=new l(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,r.Z)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new l(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(e.x,e.y)},p.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw U.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new l(n.x,n.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},p.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw U.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var o=this.ctx.transform.applyToPoint(new l(n,r)),i=this.ctx.transform.applyToPoint(new l(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:o.x,y:o.y}),this.ctx.lastPoint=new l(o.x,o.y)},p.prototype.bezierCurveTo=function(e,t,n,r,o,i){if(isNaN(o)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw U.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new l(o,i)),s=this.ctx.transform.applyToPoint(new l(e,t)),c=this.ctx.transform.applyToPoint(new l(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:c.x,y2:c.y,x:a.x,y:a.y}),this.ctx.lastPoint=new l(a.x,a.y)},p.prototype.arc=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o))throw U.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new l(e,t));e=a.x,t=a.y;var s=this.ctx.transform.applyToPoint(new l(0,n)),c=this.ctx.transform.applyToPoint(new l(0,0));n=Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2))}Math.abs(o-r)>=2*Math.PI&&(r=0,o=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:o,counterclockwise:i})},p.prototype.arcTo=function(e,t,n,r,o){throw new Error("arcTo not implemented.")},p.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw U.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},p.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw U.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},p.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw U.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},p.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw U.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},p.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},p.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(e){var t,n,r,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,o=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=parseFloat(i[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var a=new ee(e);e=a.ok?a.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:o,style:e}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw U.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!h.call(this)){var o=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:i,angle:o,align:this.textAlign,maxWidth:r})}},p.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw U.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){r=isNaN(r)?void 0:r;var o=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:i,renderingMode:"stroke",angle:o,align:this.textAlign,maxWidth:r})}},p.prototype.measureText=function(e){if("string"!=typeof e)throw U.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),o=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:o*=Math.round(96*n/72*1e4)/1e4})},p.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw U.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.rotate=function(e){if(isNaN(e))throw U.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new c(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},p.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw U.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.transform=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i))throw U.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new c(e,t,n,r,o,i);this.ctx.transform=this.ctx.transform.multiply(a)},p.prototype.setTransform=function(e,t,n,r,o,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,i=isNaN(i)?0:i,this.ctx.transform=new c(e,t,n,r,o,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(e,t,n,r,o,i,a,l,u){var d=this.pdf.getImageProperties(e),p=1,f=1,h=1,m=1;void 0!==r&&void 0!==l&&(h=l/r,m=u/o,p=d.width/r*l/r,f=d.height/o*u/o),void 0===i&&(i=t,a=n,t=0,n=0),void 0!==r&&void 0===l&&(l=r,u=o),void 0===r&&void 0===l&&(l=d.width,u=d.height);for(var b,x=this.ctx.transform.decompose(),S=O(x.rotate.shx),E=new c,N=(E=(E=(E=E.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new s(i-t*h,a-n*m,r*p,o*f)),M=v.call(this,N),I=[],A=0;A<M.length;A+=1)-1===I.indexOf(M[A])&&I.push(M[A]);if(w(I),this.autoPaging)for(var k=I[0],P=I[I.length-1],L=k;L<P+1;L++){this.pdf.setPage(L);var R=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],T=1===L?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],F=1===L?0:D+(L-2)*j;if(0!==this.ctx.clip_path.length){var _=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(b,this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=_}var Z=JSON.parse(JSON.stringify(N));Z=y([Z],this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset)[0];var z=(L>k||L<P)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],R,j,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",Z.x,Z.y,Z.w,Z.h,null,null,S),z&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",N.x,N.y,N.w,N.h,null,null,S)};var v=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var o=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+o)/n)+1);break;case"arc":r.push(Math.floor((e.y+o-e.radius)/n)+1),r.push(Math.floor((e.y+o+e.radius)/n)+1);break;case"qct":var i=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((i.y+o)/n)+1),r.push(Math.floor((i.y+i.h+o)/n)+1);break;case"bct":var a=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((a.y+o)/n)+1),r.push(Math.floor((a.y+a.h+o)/n)+1);break;case"rect":r.push(Math.floor((e.y+o)/n)+1),r.push(Math.floor((e.y+e.h+o)/n)+1)}for(var l=0;l<r.length;l+=1)for(;this.pdf.internal.getNumberOfPages()<r[l];)b.call(this);return r},b=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,o=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=o,this.lineJoin=i},y=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},w=function(e){return e.sort((function(e,t){return e-t}))},x=function(e,t){for(var n,r,o=this.fillStyle,i=this.strokeStyle,a=this.lineCap,l=this.lineWidth,s=Math.abs(l*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),p=[],f=0;f<d.length;f++)if(void 0!==d[f].x)for(var h=v.call(this,d[f]),m=0;m<h.length;m+=1)-1===p.indexOf(h[m])&&p.push(h[m]);for(var x=0;x<p.length;x++)for(;this.pdf.internal.getNumberOfPages()<p[x];)b.call(this);if(w(p),this.autoPaging)for(var S=p[0],E=p[p.length-1],N=S;N<E+1;N++){this.pdf.setPage(N),this.fillStyle=o,this.strokeStyle=i,this.lineCap=a,this.lineWidth=s,this.lineJoin=c;var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===N?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===N?0:A+(N-2)*k;if(0!==this.ctx.clip_path.length){var L=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),C.call(this,e,!0),this.path=L}if(r=JSON.parse(JSON.stringify(u)),this.path=y(r,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),!1===t||0===N){var R=(N>S||N<E)&&g.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,k,null).clip().discardPath()),C.call(this,e,t),R&&this.pdf.restoreGraphicsState()}this.lineWidth=l}else this.lineWidth=s,C.call(this,e,t),this.lineWidth=l;this.path=u},C=function(e,t){if(("stroke"!==e||t||!m.call(this))&&("stroke"===e||t||!h.call(this))){for(var n,r,o=[],i=this.path,a=0;a<i.length;a++){var l=i[a];switch(l.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:l,deltas:[],abs:[]});break;case"lt":var s=o.length;if(i[a-1]&&!isNaN(i[a-1].x)&&(n=[l.x-i[a-1].x,l.y-i[a-1].y],s>0))for(;s>=0;s--)if(!0!==o[s-1].close&&!0!==o[s-1].begin){o[s-1].deltas.push(n),o[s-1].abs.push(l);break}break;case"bct":n=[l.x1-i[a-1].x,l.y1-i[a-1].y,l.x2-i[a-1].x,l.y2-i[a-1].y,l.x-i[a-1].x,l.y-i[a-1].y],o[o.length-1].deltas.push(n);break;case"qct":var c=i[a-1].x+2/3*(l.x1-i[a-1].x),u=i[a-1].y+2/3*(l.y1-i[a-1].y),d=l.x+2/3*(l.x1-l.x),p=l.y+2/3*(l.y1-l.y),f=l.x,g=l.y;n=[c-i[a-1].x,u-i[a-1].y,d-i[a-1].x,p-i[a-1].y,f-i[a-1].x,g-i[a-1].y],o[o.length-1].deltas.push(n);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(l)}}r=t?null:"stroke"===e?"stroke":"fill";for(var v=!1,b=0;b<o.length;b++)if(o[b].arc)for(var y=o[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?N.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!v):P.call(this,x.x,x.y),v=!0}else if(!0===o[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==o[b].begin){var C=o[b].start.x,S=o[b].start.y;L.call(this,o[b].deltas,C,S),v=!0}r&&M.call(this,r),t&&I.call(this)}},S=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},E=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(e,t,n,r,o,i,a,l,s){for(var c=T.call(this,n,r,o,i),u=0;u<c.length;u++){var d=c[u];0===u&&(s?A.call(this,d.x1+e,d.y1+t):P.call(this,d.x1+e,d.y1+t)),R.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}l?I.call(this):M.call(this,a)},M=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(e,t){this.pdf.internal.out(n(e)+" "+o(t)+" m")},k=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.pdf.getTextDimensions(e.text),r=S.call(this,e.y),o=E.call(this,r)-n.h,i=this.ctx.transform.applyToPoint(new l(e.x,r)),a=this.ctx.transform.decompose(),u=new c;u=(u=(u=u.multiply(a.translate)).multiply(a.skew)).multiply(a.scale);for(var d,p,f,h=this.ctx.transform.applyToRectangle(new s(e.x,r,n.w,n.h)),m=u.applyToRectangle(new s(e.x,o,n.w,n.h)),b=v.call(this,m),x=[],N=0;N<b.length;N+=1)-1===x.indexOf(b[N])&&x.push(b[N]);if(w(x),this.autoPaging)for(var M=x[0],I=x[x.length-1],A=M;A<I+1;A++){this.pdf.setPage(A);var k=1===A?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],R=L-this.margin[0],T=this.pdf.internal.pageSize.width-this.margin[1],D=T-this.margin[3],O=1===A?0:P+(A-2)*R;if(0!==this.ctx.clip_path.length){var j=this.path;d=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(d,this.posX+this.margin[3],-1*O+k),C.call(this,"fill",!0),this.path=j}var F=y([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-O+k+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale);var _="text"!==this.autoPaging;if(_||F.y+F.h<=L){if(_||F.y>=k&&F.x<=T){var Z=_?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||T-F.x)[0],z=y([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-O+k+this.ctx.prevPageLastElemOffset)[0],B=_&&(A>M||A<I)&&g.call(this);B&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,R,null).clip().discardPath()),this.pdf.text(Z,z.x,z.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),B&&this.pdf.restoreGraphicsState()}}else F.y<L&&(this.ctx.prevPageLastElemOffset+=L-F.y);e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=f)}else e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale),this.pdf.text(e.text,i.x+this.posX,i.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=f)},P=function(e,t,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(e+r)+" "+o(t+i)+" l")},L=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},R=function(e,n,r,o,l,s,c,u){this.pdf.internal.out([t(i(r+e)),t(a(o+n)),t(i(l+e)),t(a(s+n)),t(i(c+e)),t(a(u+n)),"c"].join(" "))},T=function(e,t,n,r){for(var o=2*Math.PI,i=Math.PI/2;t>n;)t-=o;var a=Math.abs(n-t);a<o&&r&&(a=o-a);for(var l=[],s=r?-1:1,c=t;a>1e-5;){var u=c+s*Math.min(a,i);l.push(D.call(this,e,c,u)),a-=Math.abs(u-c),c=u}return l},D=function(e,t,n){var r=(n-t)/2,o=e*Math.cos(r),i=e*Math.sin(r),a=o,l=-i,s=a*a+l*l,c=s+a*o+l*i,u=4/3*(Math.sqrt(2*s*c)-c)/(a*i-l*o),d=a-u*l,p=l+u*a,f=d,h=-p,m=r+t,g=Math.cos(m),v=Math.sin(m);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*g-p*v,y2:d*v+p*g,x3:f*g-h*v,y3:f*v+h*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},O=function(e){return 180*e/Math.PI},j=function(e,t,n,r,o,i){var a=e+.5*(n-e),l=t+.5*(r-t),c=o+.5*(n-o),u=i+.5*(r-i),d=Math.min(e,o,a,c),p=Math.max(e,o,a,c),f=Math.min(t,i,l,u),h=Math.max(t,i,l,u);return new s(d,f,p-d,h-f)},F=function(e,t,n,r,o,i,a,l){var c,u,d,p,f,h,m,g,v,b,y,w,x,C,S=n-e,E=r-t,N=o-n,M=i-r,I=a-o,A=l-i;for(u=0;u<41;u++)v=(m=(d=e+(c=u/40)*S)+c*((f=n+c*N)-d))+c*(f+c*(o+c*I-f)-m),b=(g=(p=t+c*E)+c*((h=r+c*M)-p))+c*(h+c*(i+c*A-h)-g),0==u?(y=v,w=b,x=v,C=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),C=Math.max(C,b));return new s(Math.round(y),Math.round(w),Math.round(x-y),Math.round(C-w))},_=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Ee.API),function(e){var t=function(e){var t,n,r,o,i,a,l,s,c,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>r;r+=4)0!==(i=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(a=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(s=i%85))/85)-(l=i%85))/85)%85,n.push(a+33,l+33,s+33,c+33,u+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,o,i,a=String,l="length",s=255,c="charCodeAt",u="slice",d="replace";for(e[u](-2),e=e[u](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),r=[],o=0,i=(e+=t="uuuuu"[u](e[l]%5||5))[l];i>o;o+=5)n=52200625*(e[c](o)-33)+614125*(e[c](o+1)-33)+7225*(e[c](o+2)-33)+85*(e[c](o+3)-33)+(e[c](o+4)-33),r.push(s&n>>24,s&n>>16,s&n>>8,s&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[l]),a.fromCharCode.apply(a,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=$(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var a=0,l=e||"",s=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),s.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),s.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),s.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",s.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=o(l),s.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:l,reverseChain:s.reverse().join(" ")}}}(Ee.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,o=0,i=function(e){var t=e.length,n=[],r=String.fromCharCode;for(o=0;o<t;o+=1)n.push(r(255&e.charCodeAt(o)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(i(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.loadImageFile=e.loadFile}(Ee.API),function(e){function t(){return(W.html2canvas?Promise.resolve(W.html2canvas):n.e(120).then(n.t.bind(n,1120,23))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function o(){return(W.DOMPurify?Promise.resolve(W.DOMPurify):n.e(856).then(n.t.bind(n,7856,23))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=(0,r.Z)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},l=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(o).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;o=o.nextSibling)!0!==n&&1===o.nodeType&&"SCRIPT"===o.nodeName||r.appendChild(e(o,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,o=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete o.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var a=n[i],l=a.src.find((function(e){return"truetype"===e.format}));l&&t.addFont(l.url,a.ref.name,a.ref.style)}return o.windowHeight=o.windowHeight||0,o.windowHeight=0==o.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):o.windowHeight,t.context2d.save(!0),e(this.prop.container,o)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},l.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in l.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},l.prototype.get=function(e,t){return this.then((function(){var n=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},l.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},l.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||Ee.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},l.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},l.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},l.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:l.convert(Object.assign({},this),Promise.prototype),o=n.call(r,e,t);return l.convert(o,this.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},l.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},l.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Ee.getPageSize=function(e,t,n){if("object"===(0,r.Z)(e)){var o=e;e=o.orientation,t=o.unit||t,n=o.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,a=(""+n).toLowerCase(),l={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var s,c=0,u=0;if(l.hasOwnProperty(a))c=l[a][1]/i,u=l[a][0]/i;else try{c=n[1],u=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",u>c&&(s=u,u=c,c=s);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c>u&&(s=u,u=c,c=s)}return{width:u,height:c,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(wt):null;var n=new l(t);return t.worker?n:n.from(e).doCallback()}}(Ee.API),Ee.API.addJS=function(e){return Pt=e,this.internal.events.subscribe("postPutResources",(function(){At=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(At+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),kt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Pt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==At&&void 0!==kt&&this.internal.out("/Names <</JavaScript "+At+" 0 R>>")})),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),o=0;o<r.length;o++){var i=r[o],a=n.exec(i);if(null!=a){var l=a[1];e.internal.newObjectDeferredBegin(l,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,c=[];for(o=0;o<s;o++){var u=e.internal.newObject();c.push(u);var d=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<c.length;o++)e.internal.write("(page_"+(o+1)+")"+c[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var o=t.children[r];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var i=this.count=this.count_r({count:0},o);if(i>0&&this.line("/Count "+i),o.options&&o.options.pageNumber){var a=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<t.children.length;l++)this.renderItems(t.children[l])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(Ee.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,o,i,a){var l,s=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(l=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,i={width:0,height:0,numcomponents:1},a=4;a<o;a+=2){if(a+=r,-1!==t.indexOf(e.charCodeAt(a+1))){n=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),i={width:256*e.charCodeAt(a+7)+e.charCodeAt(a+8),height:n,numcomponents:e.charCodeAt(a+9)};break}r=256*e.charCodeAt(a+2)+e.charCodeAt(a+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}c={data:e,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:s,index:n,alias:r}}return c}}(Ee.API);var Rt,Tt,Dt,Ot,jt,Ft=function(){var e,t,n;function r(e){var t,n,r,o,i,a,l,s,c,u,d,p,f,h;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(t=this.readUInt32(),c=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),e=(null!=a?a.data:void 0)||this.imgData,p=0;0<=t?p<t:p>t;0<=t?++p:--p)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((u=r-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":l=(d=this.read(t)).indexOf(0),s=String.fromCharCode.apply(String,d.slice(0,l)),this.text[s]=String.fromCharCode.apply(String,d.slice(l+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(h=this.colorType)||6===h,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,o=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function i(i,a,l,s){var c,u,d,p,f,h,m,g,v,b,y,w,x,C,S,E,N,M,I,A,k,P=Math.ceil((o.width-i)/l),L=Math.ceil((o.height-a)/s),R=o.width==P&&o.height==L;for(C=t*P,w=R?n:new Uint8Array(C*L),h=e.length,x=0,u=0;x<L&&r<h;){switch(e[r++]){case 0:for(p=N=0;N<C;p=N+=1)w[u++]=e[r++];break;case 1:for(p=M=0;M<C;p=M+=1)c=e[r++],f=p<t?0:w[u-t],w[u++]=(c+f)%256;break;case 2:for(p=I=0;I<C;p=I+=1)c=e[r++],d=(p-p%t)/t,S=x&&w[(x-1)*C+d*t+p%t],w[u++]=(S+c)%256;break;case 3:for(p=A=0;A<C;p=A+=1)c=e[r++],d=(p-p%t)/t,f=p<t?0:w[u-t],S=x&&w[(x-1)*C+d*t+p%t],w[u++]=(c+Math.floor((f+S)/2))%256;break;case 4:for(p=k=0;k<C;p=k+=1)c=e[r++],d=(p-p%t)/t,f=p<t?0:w[u-t],0===x?S=E=0:(S=w[(x-1)*C+d*t+p%t],E=d&&w[(x-1)*C+(d-1)*t+p%t]),m=f+S-E,g=Math.abs(m-f),b=Math.abs(m-S),y=Math.abs(m-E),v=g<=b&&g<=y?f:b<=y?S:E,w[u++]=(c+v)%256;break;default:throw new Error("Invalid filter algorithm: "+e[r-1])}if(!R){var T=((a+x*s)*o.width+i)*t,D=x*C;for(p=0;p<P;p+=1){for(var O=0;O<t;O+=1)n[T++]=w[D++];T+=(l-1)*t}}x++}}return e=q(e),1==o.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),n},r.prototype.decodePalette=function(){var e,t,n,r,o,i,a,l,s;for(n=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+n.length),r=0,e=0,t=a=0,l=n.length;a<l;t=a+=3)o[r++]=n[t],o[r++]=n[t+1],o[r++]=n[t+2],o[r++]=null!=(s=i[e++])?s:255;return o},r.prototype.copyToImageData=function(e,t){var n,r,o,i,a,l,s,c,u,d,p;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(p=this._decodedPalette)?p:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(o=e.data||e).length,a=u||t,i=l=0,1===r)for(;i<c;)s=u?4*t[i/4]:l,d=a[s++],o[i++]=d,o[i++]=d,o[i++]=d,o[i++]=n?a[s++]:255,l=s;else for(;i<c;)s=u?4*t[i/4]:l,o[i++]=a[s++],o[i++]=a[s++],o[i++]=a[s++],o[i++]=n?a[s++]:255,l=s},r.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var o=function(){if("[object Window]"===Object.prototype.toString.call(W)){try{t=W.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return o(),e=function(e){var r;if(!0===o())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(r=new Image).src=t.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(t){var n,r,o,i,a,l,s,c;if(this.animation){for(c=[],r=a=0,l=(s=this.animation.frames).length;a<l;r=++a)n=s[r],o=t.createImageData(n.width,n.height),i=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(o,i),n.imageData=o,c.push(n.image=e(o));return c}},r.prototype.renderFrame=function(e,t){var n,r,o;return n=(r=this.animation.frames)[t],o=r[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(e){var t,n,r,o,i,a,l=this;return n=0,a=this.animation,o=a.numFrames,r=a.frames,i=a.numPlays,(t=function(){var a,s;if(a=n++%o,s=r[a],l.renderFrame(e,a),o>1&&n/o<i)return l.animation._timeout=setTimeout(t,s.delay)})()},r.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},r.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},r}();function _t(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,o=e[t++],i=o>>7,a=1<<1+(7&o);e[t++],e[t++];var l=null,s=null;i&&(l=t,s=a,t+=3*a);var c=!0,u=[],d=0,p=null,f=0,h=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var m=e[t++];d=e[t++]|e[t++]<<8,p=e[t++],0==(1&m)&&(p=null),f=m>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++],x=w>>6&1,C=1<<1+(7&w),S=l,E=s,N=!1;w>>7&&(N=!0,S=t,E=C,t+=3*C);var M=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}u.push({x:g,y:v,width:b,height:y,has_local_palette:N,palette_offset:S,palette_size:E,data_offset:M,data_length:t-M,transparent_index:p,interlaced:!!x,delay:d,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return h},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Zt(e,o.data_offset,a,i);var l=o.palette_offset,s=o.transparent_index;null===s&&(s=256);var c=o.width,u=n-c,d=c,p=4*(o.y*n+o.x),f=4*((o.y+o.height)*n+o.x),h=p,m=4*u;!0===o.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===d&&(d=c,(h+=m)>=f&&(m=4*u+4*n*(g-1),h=p+(c+u)*(g<<1),g>>=1)),y===s)h+=4;else{var w=e[l+3*y],x=e[l+3*y+1],C=e[l+3*y+2];r[h++]=C,r[h++]=x,r[h++]=w,r[h++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Zt(e,o.data_offset,a,i);var l=o.palette_offset,s=o.transparent_index;null===s&&(s=256);var c=o.width,u=n-c,d=c,p=4*(o.y*n+o.x),f=4*((o.y+o.height)*n+o.x),h=p,m=4*u;!0===o.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===d&&(d=c,(h+=m)>=f&&(m=4*u+4*n*(g-1),h=p+(c+u)*(g<<1),g>>=1)),y===s)h+=4;else{var w=e[l+3*y],x=e[l+3*y+1],C=e[l+3*y+2];r[h++]=w,r[h++]=x,r[h++]=C,r[h++]=255}--d}}}function Zt(e,t,n,r){for(var o=e[t++],i=1<<o,a=i+1,l=a+1,s=o+1,c=(1<<s)-1,u=0,d=0,p=0,f=e[t++],h=new Int32Array(4096),m=null;;){for(;u<16&&0!==f;)d|=e[t++]<<u,u+=8,1===f?f=e[t++]:--f;if(u<s)break;var g=d&c;if(d>>=s,u-=s,g!==i){if(g===a)break;for(var v=g<l?g:m,b=0,y=v;y>i;)y=h[y]>>8,++b;var w=y;if(p+b+(v!==g?1:0)>r)return void U.log("Warning, gif stream longer than expected.");n[p++]=w;var x=p+=b;for(v!==g&&(n[p++]=w),y=v;b--;)y=h[y],n[--x]=255&y,y>>=8;null!==m&&l<4096&&(h[l++]=m<<8|w,l>=c+1&&s<12&&(++s,c=c<<1|1)),m=g}else l=a+1,c=(1<<(s=o+1))-1,m=null}return p!==r&&U.log("Warning, gif stream shorter than expected."),n}function zt(e){var t,n,r,o,i,a=Math.floor,l=new Array(64),s=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),p=new Array(65535),f=new Array(64),h=new Array(64),m=[],g=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),C=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function R(e,t){for(var n=0,r=0,o=new Array,i=1;i<=16;i++){for(var a=1;a<=e[i];a++)o[t[r]]=[],o[t[r]][0]=n,o[t[r]][1]=i,r++,n++;n*=2}return o}function T(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<v),n--,--v<0&&(255==g?(D(255),D(0)):D(g),v=7,g=0)}function D(e){m.push(e)}function O(e){D(e>>8&255),D(255&e)}function j(e,t,n,r,o){for(var i,a=o[0],l=o[240],s=function(e,t){var n,r,o,i,a,l,s,c,u,d,p=0;for(u=0;u<8;++u){n=e[p],r=e[p+1],o=e[p+2],i=e[p+3],a=e[p+4],l=e[p+5],s=e[p+6];var h=n+(c=e[p+7]),m=n-c,g=r+s,v=r-s,b=o+l,y=o-l,w=i+a,x=i-a,C=h+w,S=h-w,E=g+b,N=g-b;e[p]=C+E,e[p+4]=C-E;var M=.707106781*(N+S);e[p+2]=S+M,e[p+6]=S-M;var I=.382683433*((C=x+y)-(N=v+m)),A=.5411961*C+I,k=1.306562965*N+I,P=.707106781*(E=y+v),L=m+P,R=m-P;e[p+5]=R+A,e[p+3]=R-A,e[p+1]=L+k,e[p+7]=L-k,p+=8}for(p=0,u=0;u<8;++u){n=e[p],r=e[p+8],o=e[p+16],i=e[p+24],a=e[p+32],l=e[p+40],s=e[p+48];var T=n+(c=e[p+56]),D=n-c,O=r+s,j=r-s,F=o+l,_=o-l,Z=i+a,z=i-a,B=T+Z,H=T-Z,$=O+F,q=O-F;e[p]=B+$,e[p+32]=B-$;var W=.707106781*(q+H);e[p+16]=H+W,e[p+48]=H-W;var V=.382683433*((B=z+_)-(q=j+D)),U=.5411961*B+V,G=1.306562965*q+V,Y=.707106781*($=_+j),K=D+Y,Q=D-Y;e[p+40]=Q+U,e[p+24]=Q-U,e[p+8]=K+G,e[p+56]=K-G,p++}for(u=0;u<64;++u)d=e[u]*t[u],f[u]=d>0?d+.5|0:d-.5|0;return f}(e,t),c=0;c<64;++c)h[S[c]]=s[c];var u=h[0]-n;n=h[0],0==u?T(r[0]):(T(r[p[i=32767+u]]),T(d[i]));for(var m=63;m>0&&0==h[m];)m--;if(0==m)return T(a),n;for(var g,v=1;v<=m;){for(var b=v;0==h[v]&&v<=m;)++v;var y=v-b;if(y>=16){g=y>>4;for(var w=1;w<=g;++w)T(l);y&=15}i=32767+h[v],T(o[(y<<4)+p[i]]),T(d[i]),v++}return 63!=m&&T(a),n}function F(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),l[S[n]]=r}for(var o=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var d=a((o[i]*e+50)/100);d=Math.min(Math.max(d,1),255),s[S[i]]=d}for(var p=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,h=0;h<8;h++)for(var m=0;m<8;m++)c[f]=1/(l[S[f]]*p[h]*p[m]*8),u[f]=1/(s[S[f]]*p[h]*p[m]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&F(i),m=new Array,g=0,v=7,O(65496),O(65504),O(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),O(1),O(1),D(0),D(0),function(){O(65499),O(132),D(0);for(var e=0;e<64;e++)D(l[e]);D(1);for(var t=0;t<64;t++)D(s[t])}(),function(e,t){O(65472),O(17),D(8),O(t),O(e),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1)}(e.width,e.height),function(){O(65476),O(418),D(0);for(var e=0;e<16;e++)D(E[e+1]);for(var t=0;t<=11;t++)D(N[t]);D(16);for(var n=0;n<16;n++)D(M[n+1]);for(var r=0;r<=161;r++)D(I[r]);D(1);for(var o=0;o<16;o++)D(A[o+1]);for(var i=0;i<=11;i++)D(k[i]);D(17);for(var a=0;a<16;a++)D(P[a+1]);for(var l=0;l<=161;l++)D(L[l])}(),O(65498),O(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var a=0,d=0,p=0;g=0,v=7,this.encode.displayName="_encode_";for(var f,h,x,S,R,_,Z,z,B,H=e.data,$=e.width,q=e.height,W=4*$,V=0;V<q;){for(f=0;f<W;){for(R=W*V+f,Z=-1,z=0,B=0;B<64;B++)_=R+(z=B>>3)*W+(Z=4*(7&B)),V+z>=q&&(_-=W*(V+1+z-q)),f+Z>=W&&(_-=f+Z-W+4),h=H[_++],x=H[_++],S=H[_++],b[B]=(C[h]+C[x+256>>0]+C[S+512>>0]>>16)-128,y[B]=(C[h+768>>0]+C[x+1024>>0]+C[S+1280>>0]>>16)-128,w[B]=(C[h+1280>>0]+C[x+1536>>0]+C[S+1792>>0]>>16)-128;a=j(b,c,a,t,r),d=j(y,u,d,n,o),p=j(w,u,p,n,o),f+=32}V+=8}if(v>=0){var U=[];U[1]=v+1,U[0]=(1<<v+1)-1,T(U)}return O(65497),new Uint8Array(m)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=R(E,N),n=R(A,k),r=R(M,I),o=R(P,L),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)p[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var o=-(t-1);o<=-e;o++)p[32767+o]=n,d[32767+o]=[],d[32767+o][1]=n,d[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)C[e]=19595*e,C[e+256>>0]=38470*e,C[e+512>>0]=7471*e+32768,C[e+768>>0]=-11059*e,C[e+1024>>0]=-21709*e,C[e+1280>>0]=32768*e+8421375,C[e+1536>>0]=-27439*e,C[e+1792>>0]=-5329*e}(),F(e)}function Bt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ht(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,o){for(var i=0;i<o;i++)e[t+i]=n[r+i]}function o(e,t,n,r){for(var o=0;o<r;o++)e[t+o]=n}function i(e){return new Int32Array(e)}function a(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function l(e,t){var n=[];return function e(n,r,o){for(var i=o[r],a=0;a<i&&(n.push(o.length>r+1?[]:new t),!(o.length<r+1));a++)e(n[a],r+1,o)}(n,0,e),n}var s=function(){var e=this;function s(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function c(e,n,r,o,i){t(!(o%r));do{e[n+(o-=r)]=i}while(0<o)}function u(e,n,r,o,a){if(t(2328>=a),512>=a)var l=i(512);else if(null==(l=i(a)))return 0;return function(e,n,r,o,a,l){var u,p,f=n,h=1<<r,m=i(16),g=i(16);for(t(0!=a),t(null!=o),t(null!=e),t(0<r),p=0;p<a;++p){if(15<o[p])return 0;++m[o[p]]}if(m[0]==a)return 0;for(g[1]=0,u=1;15>u;++u){if(m[u]>1<<u)return 0;g[u+1]=g[u]+m[u]}for(p=0;p<a;++p)u=o[p],0<o[p]&&(l[g[u]++]=p);if(1==g[15])return(o=new d).g=0,o.value=l[0],c(e,f,1,h,o),h;var v,b=-1,y=h-1,w=0,x=1,C=1,S=1<<r;for(p=0,u=1,a=2;u<=r;++u,a<<=1){if(x+=C<<=1,0>(C-=m[u]))return 0;for(;0<m[u];--m[u])(o=new d).g=u,o.value=l[p++],c(e,f+w,a,S,o),w=s(w,u)}for(u=r+1,a=2;15>=u;++u,a<<=1){if(x+=C<<=1,0>(C-=m[u]))return 0;for(;0<m[u];--m[u]){if(o=new d,(w&y)!=b){for(f+=S,v=1<<(b=u)-r;15>b&&!(0>=(v-=m[b]));)++b,v<<=1;h+=S=1<<(v=b-r),e[n+(b=w&y)].g=v+r,e[n+b].value=f-n-b}o.g=u-r,o.value=l[p++],c(e,f+(w>>r),a,S,o),w=s(w,u)}}return x!=2*g[15]-1?0:h}(e,n,r,o,a,l)}function d(){this.value=this.g=0}function p(){this.value=this.g=0}function f(){this.G=a(5,d),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(zn,p)}function h(e,n,r,o){t(null!=e),t(null!=n),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+o,e.Zc=4<=o?r+o-4+1:r,M(e)}function m(e,t){for(var n=0;0<t--;)n|=A(e,128)<<t;return n}function g(e,t){var n=m(e,t);return I(e)?-n:n}function v(e,n,r,o){var i,a=0;for(t(null!=e),t(null!=n),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),i=0;i<o;++i)a+=n[r+i]<<8*i;e.Ra=a,e.bb=o,e.oa=n,e.pa=r}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<$n-8>>>0,++e.bb,e.u-=8;S(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Hn){var r=C(e)&Bn[n];return e.u+=n,b(e),r}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function C(e){return e.Ra>>>(e.u&$n-1)>>>0}function S(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>$n}function E(e,t){e.u=t,e.h=S(e)}function N(e){e.u>=qn&&(t(e.u>=qn),b(e))}function M(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function I(e){return m(e,1)}function A(e,t){var n=e.Ca;0>e.b&&M(e);var r=e.b,o=n*t>>>8,i=(e.I>>>r>o)+0;for(i?(n-=o,e.I-=o+1<<r>>>0):n=o+1,r=n,o=0;256<=r;)o+=8,r>>=8;return r=7^o+Wn[r],e.b-=r,e.Ca=(n<<r)-1,i}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255}function P(e,t){return e[t+0]<<0|e[t+1]<<8}function L(e,t){return P(e,t)|e[t+2]<<16}function R(e,t){return P(e,t)|P(e,t+2)<<16}function T(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=i(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function D(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function j(e,n,r,o){t(null!=r),t(null!=o);var i=r[0],a=o[0];return 0==i&&(i=(e*a+n/2)/n),0==a&&(a=(n*i+e/2)/e),0>=i||0>=a?0:(r[0]=i,o[0]=a,1)}function F(e,t){return e+(1<<t)-1>>>t}function _(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function Z(t,n){e[n]=function(n,r,o,i,a,l,s){var c;for(c=0;c<a;++c){var u=e[t](l[s+c-1],o,i+c);l[s+c]=_(n[r+c],u)}}}function z(){this.ud=this.hd=this.jd=0}function B(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function $(e,t){return H(e+(e-t+.5>>1))}function q(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function W(e,t,n,r,o,i,a){for(r=i[a-1],n=0;n<o;++n)i[a+n]=r=_(e[t+n],r)}function V(e,t,n,r,o){var i;for(i=0;i<n;++i){var a=e[t+i],l=a>>8&255,s=16711935&(s=(s=16711935&a)+((l<<16)+l));r[o+i]=(4278255360&a)+s>>>0}}function U(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function G(e,t,n,r,o,i){var a;for(a=0;a<r;++a){var l=t[n+a],s=l>>>8,c=l,u=255&(u=(u=l>>>16)+((e.jd<<24>>24)*(s<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(s<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),o[i+a]=(4278255360&l)+(u<<16)+c}}function Y(t,n,r,o,i){e[n]=function(e,t,n,r,a,l,s,c,u){for(r=s;r<c;++r)for(s=0;s<u;++s)a[l++]=i(n[o(e[t++])])},e[t]=function(t,n,a,l,s,c,u){var d=8>>t.b,p=t.Ea,f=t.K[0],h=t.w;if(8>d)for(t=(1<<t.b)-1,h=(1<<d)-1;n<a;++n){var m,g=0;for(m=0;m<p;++m)m&t||(g=o(l[s++])),c[u++]=i(f[g&h]),g>>=d}else e["VP8LMapColor"+r](l,s,f,h,c,u,n,a,p)}}function K(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=i>>0&255}}function Q(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=i>>0&255,r[o++]=i>>24&255}}function X(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[o++]=i,r[o++]=a}}function J(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[o++]=i,r[o++]=a}}function ee(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>0&255,r[o++]=i>>8&255,r[o++]=i>>16&255}}function te(e,t,n,o,i,a){if(0==a)for(n=t+n;t<n;)k(o,((a=e[t++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),i+=32;else r(o,i,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==$r||e==qr||e==Wr||e==Vr}function oe(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new ie,this.sd=null}function le(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function se(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var n=e.T,o=t.ba.f.RGBA,i=o.eb,a=o.fb+e.ka*o.A,l=bo[t.ba.S],s=e.y,c=e.O,u=e.f,d=e.N,p=e.ea,f=e.W,h=t.cc,m=t.dc,g=t.Mc,v=t.Nc,b=e.ka,y=e.ka+e.T,w=e.U,x=w+1>>1;for(0==b?l(s,c,null,null,u,d,p,f,u,d,p,f,i,a,null,null,w):(l(t.ec,t.fc,s,c,h,m,g,v,u,d,p,f,i,a-o.A,i,a,w),++n);b+2<y;b+=2)h=u,m=d,g=p,v=f,d+=e.Rc,f+=e.Rc,a+=2*o.A,l(s,(c+=2*e.fa)-e.fa,s,c,h,m,g,v,u,d,p,f,i,a-o.A,i,a,w);return c+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,s,c,w),r(t.cc,t.dc,u,d,x),r(t.Mc,t.Nc,p,f,x),n--):1&y||l(s,c,null,null,u,d,p,f,u,d,p,f,i,a+o.A,null,null,w),n}function de(e,n,r){var o=e.F,i=[e.J];if(null!=o){var a=e.U,l=n.ba.S,s=l==zr||l==Wr;n=n.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=Mr(o,i[0],e.width,a,c,d,u+(s?0:3),n.A),t(r==c),e&&re(l)&&Er(d,u,s,a,c,n.A)}return 0}function pe(e){var t=e.ma,n=t.ba.S,r=11>n,o=n==Fr||n==Zr||n==zr||n==Br||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!jn(t.Oa,e,o?11:12))return 0;if(o&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ce,e.Kb){if(n=e.U+1>>1,t.memory=i(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ue,yn()}}else alert("todo:EmitYUV");o&&(t.Jb=de,r&&vn())}if(r&&!Ro){for(e=0;256>e;++e)To[e]=89858*(e-128)+Io>>Mo,jo[e]=-22014*(e-128)+Io,Oo[e]=-45773*(e-128),Do[e]=113618*(e-128)+Io>>Mo;for(e=Ao;e<ko;++e)t=76283*(e-16)+Io>>Mo,Fo[e-Ao]=We(t,255),_o[e-Ao]=We(t+8>>4,15);Ro=1}return 1}function fe(e){var n=e.ma,r=e.U,o=e.T;return t(!(1&e.ka)),0>=r||0>=o?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function he(e){e.ma.memory=null}function me(e,t,n,r){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),0!=y(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ve(e,t){return 120<t?t-120:1<=(n=((n=Xr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function be(e,t,n){var r=C(n),o=e[t+=255&r].g-8;return 0<o&&(E(n,n.u+8),r=C(n),t+=e[t].value,t+=r&(1<<o)-1),E(n,n.u+e[t].g),e[t].value}function ye(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function we(e,n,r){var o=e.xc;return t((n=0==o?0:e.vc[e.md*(r>>o)+(n>>o)])<e.Wb),e.Ya[n]}function xe(e,n,o,i){var a=e.ab,l=e.c*n,s=e.C;n=s+n;var c=o,u=i;for(i=e.Ta,o=e.Ua;0<a--;){var d=e.gc[a],p=s,f=n,h=c,m=u,g=(u=i,c=o,d.Ea);switch(t(p<f),t(f<=d.nc),d.hc){case 2:Gn(h,m,(f-p)*g,u,c);break;case 0:var v=p,b=f,y=u,w=c,x=(M=d).Ea;0==v&&(Vn(h,m,null,null,1,y,w),W(h,m+1,0,0,x-1,y,w+1),m+=x,w+=x,++v);for(var C=1<<M.b,S=C-1,E=F(x,M.b),N=M.K,M=M.w+(v>>M.b)*E;v<b;){var I=N,A=M,k=1;for(Un(h,m,y,w-x,1,y,w);k<x;){var P=(k&~S)+C;P>x&&(P=x),(0,Jn[I[A++]>>8&15])(h,m+ +k,y,w+k-x,P-k,y,w+k),k=P}m+=x,w+=x,++v&S||(M+=E)}f!=d.nc&&r(u,c-g,u,c+(f-p-1)*g,g);break;case 1:for(g=h,b=m,x=(h=d.Ea)-(w=h&~(y=(m=1<<d.b)-1)),v=F(h,d.b),C=d.K,d=d.w+(p>>d.b)*v;p<f;){for(S=C,E=d,N=new z,M=b+w,I=b+h;b<M;)U(S[E++],N),er(N,g,b,m,u,c),b+=m,c+=m;b<I&&(U(S[E++],N),er(N,g,b,x,u,c),b+=x,c+=x),++p&y||(d+=v)}break;case 3:if(h==u&&m==c&&0<d.b){for(b=u,h=g=c+(f-p)*g-(w=(f-p)*F(d.Ea,d.b)),m=u,y=c,v=[],w=(x=w)-1;0<=w;--w)v[w]=m[y+w];for(w=x-1;0<=w;--w)b[h+w]=v[w];Yn(d,p,f,u,g,u,c)}else Yn(d,p,f,h,m,u,c)}c=i,u=o}u!=o&&r(i,o,c,u,l)}function Ce(e,n){var r=e.V,o=e.Ba+e.c*e.C,i=n-e.C;if(t(n<=e.l.o),t(16>=i),0<i){var a=e.l,l=e.Ta,s=e.Ua,c=a.width;if(xe(e,i,r,o),i=s=[s],t((r=e.C)<(o=n)),t(a.v<a.va),o>a.o&&(o=a.o),r<a.j){var u=a.j-r;r=a.j,i[0]+=u*c}if(r>=o?r=0:(i[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=o-r,r=1),r){if(s=s[0],11>(r=e.ca).S){var d=r.f.RGBA,p=(o=r.S,i=a.U,a=a.T,u=d.eb,d.A),f=a;for(d=d.fb+e.Ma*d.A;0<f--;){var h=l,m=s,g=i,v=u,b=d;switch(o){case jr:tr(h,m,g,v,b);break;case Fr:nr(h,m,g,v,b);break;case $r:nr(h,m,g,v,b),Er(v,b,0,g,1,0);break;case _r:ir(h,m,g,v,b);break;case Zr:te(h,m,g,v,b,1);break;case qr:te(h,m,g,v,b,1),Er(v,b,0,g,1,0);break;case zr:te(h,m,g,v,b,0);break;case Wr:te(h,m,g,v,b,0),Er(v,b,1,g,1,0);break;case Br:rr(h,m,g,v,b);break;case Vr:rr(h,m,g,v,b),Nr(v,b,g,1,0);break;case Hr:or(h,m,g,v,b);break;default:t(0)}s+=c,d+=p}e.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Se(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Ee(e,n,r,o,i,a){if(0!=e.Z){var l=e.qd,s=e.rd;for(t(null!=vo[e.Z]);n<r;++n)vo[e.Z](l,s,o,i,o,i,a),l=o,s=i,i+=a;e.qd=l,e.rd=s}}function Ne(e,n){var r=e.l.ma,o=0==r.Z||1==r.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(n<=e.l.o),n>o){var i=e.l.width,a=r.ca,l=r.tb+i*o,s=e.V,c=e.Ba+e.c*o,u=e.gc;t(1==e.ab),t(3==u[0].hc),Qn(u[0],o,n,s,c,a,l),Ee(r,o,n,a,l,i)}e.C=e.Ma=n}function Me(e,n,r,o,i,a,l){var s=e.$/o,c=e.$%o,u=e.m,d=e.s,p=r+e.$,f=p;i=r+o*i;var h=r+o*a,m=280+d.ua,g=e.Pb?s:16777216,v=0<d.ua?d.Wa:null,b=d.wc,y=p<h?we(d,c,s):null;t(e.C<a),t(h<=i);var w=!1;e:for(;;){for(;w||p<h;){var x=0;if(s>=g){var M=p-r;t((g=e).Pb),g.wd=g.m,g.xd=M,0<g.s.ua&&D(g.s.Wa,g.s.vb),g=s+eo}if(c&b||(y=we(d,c,s)),t(null!=y),y.Qb&&(n[p]=y.qb,w=!0),!w)if(N(u),y.jc){x=u,M=n;var I=p,A=y.pd[C(x)&zn-1];t(y.jc),256>A.g?(E(x,x.u+A.g),M[I]=A.value,x=0):(E(x,x.u+A.g-256),t(256<=A.value),x=A.value),0==x&&(w=!0)}else x=be(y.G[0],y.H[0],u);if(u.h)break;if(w||256>x){if(!w)if(y.nd)n[p]=(y.qb|x<<8)>>>0;else{if(N(u),w=be(y.G[1],y.H[1],u),N(u),M=be(y.G[2],y.H[2],u),I=be(y.G[3],y.H[3],u),u.h)break;n[p]=(I<<24|w<<16|x<<8|M)>>>0}if(w=!1,++p,++c>=o&&(c=0,++s,null!=l&&s<=a&&!(s%16)&&l(e,s),null!=v))for(;f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=ge(x-256,u),M=be(y.G[4],y.H[4],u),N(u),M=ve(o,M=ge(M,u)),u.h)break;if(p-r<M||i-p<x)break e;for(I=0;I<x;++I)n[p+I]=n[p+I-M];for(p+=x,c+=x;c>=o;)c-=o,++s,null!=l&&s<=a&&!(s%16)&&l(e,s);if(t(p<=i),c&b&&(y=we(d,c,s)),null!=v)for(;f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<m))break e;for(w=x-280,t(null!=v);f<p;)x=n[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=p,t(!(w>>>(M=v).Xa)),n[x]=M.X[w],w=!0}w||t(u.h==S(u))}if(e.Pb&&u.h&&p<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&D(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=l&&l(e,s>a?a:s),e.a=0,e.$=p-r}return 1}return e.a=3,0}function Ie(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Ae(){var t=new ln;return null==t?null:(t.a=0,t.xb=go,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Gn=V,er=G,tr=K,nr=Q,rr=X,or=J,ir=ee,e.VP8LMapColor32b=Kn,e.VP8LMapColor8b=Xn,t)}function ke(e,n,r,l,s){var c=1,p=[e],h=[n],m=l.m,g=l.s,v=null,b=0;e:for(;;){if(r)for(;c&&y(m,1);){var w=p,x=h,S=l,M=1,I=S.m,A=S.gc[S.ab],k=y(I,2);if(S.Oc&1<<k)c=0;else{switch(S.Oc|=1<<k,A.hc=k,A.Ea=w[0],A.nc=x[0],A.K=[null],++S.ab,t(4>=S.ab),k){case 0:case 1:A.b=y(I,3)+2,M=ke(F(A.Ea,A.b),F(A.nc,A.b),0,S,A.K),A.K=A.K[0];break;case 3:var P,L=y(I,8)+1,R=16<L?0:4<L?1:2<L?2:3;if(w[0]=F(A.Ea,R),A.b=R,P=M=ke(L,1,0,S,A.K)){var D,O=L,j=A,Z=1<<(8>>j.b),z=i(Z);if(null==z)P=0;else{var B=j.K[0],H=j.w;for(z[0]=j.K[0][0],D=1;D<1*O;++D)z[D]=_(B[H+D],z[D-1]);for(;D<4*Z;++D)z[D]=0;j.K[0]=null,j.K[0]=z,P=1}}M=P;break;case 2:break;default:t(0)}c=M}}if(p=p[0],h=h[0],c&&y(m,1)&&!(c=1<=(b=y(m,4))&&11>=b)){l.a=3;break e}var $;if($=c)t:{var q,W,V,U=l,G=p,Y=h,K=b,Q=r,X=U.m,J=U.s,ee=[null],te=1,ne=0,re=Jr[K];n:for(;;){if(Q&&y(X,1)){var oe=y(X,3)+2,ie=F(G,oe),ae=F(Y,oe),le=ie*ae;if(!ke(ie,ae,0,U,ee))break n;for(ee=ee[0],J.xc=oe,q=0;q<le;++q){var se=ee[q]>>8&65535;ee[q]=se,se>=te&&(te=se+1)}}if(X.h)break n;for(W=0;5>W;++W){var ce=Yr[W];!W&&0<K&&(ce+=1<<K),ne<ce&&(ne=ce)}var ue=a(te*re,d),de=te,pe=a(de,f);if(null==pe)var fe=null;else t(65536>=de),fe=pe;var he=i(ne);if(null==fe||null==he||null==ue){U.a=1;break n}var me=ue;for(q=V=0;q<te;++q){var ge=fe[q],ve=ge.G,be=ge.H,we=0,xe=1,Ce=0;for(W=0;5>W;++W){ce=Yr[W],ve[W]=me,be[W]=V,!W&&0<K&&(ce+=1<<K);r:{var Se,Ee=ce,Ne=U,Ae=he,Pe=me,Le=V,Re=0,Te=Ne.m,De=y(Te,1);if(o(Ae,0,0,Ee),De){var Oe=y(Te,1)+1,je=y(Te,1),Fe=y(Te,0==je?1:8);Ae[Fe]=1,2==Oe&&(Ae[Fe=y(Te,8)]=1);var _e=1}else{var Ze=i(19),ze=y(Te,4)+4;if(19<ze){Ne.a=3;var Be=0;break r}for(Se=0;Se<ze;++Se)Ze[Qr[Se]]=y(Te,3);var He=void 0,$e=void 0,qe=Ne,We=Ze,Ve=Ee,Ue=Ae,Ge=0,Ye=qe.m,Ke=8,Qe=a(128,d);o:for(;u(Qe,0,7,We,19);){if(y(Ye,1)){var Xe=2+2*y(Ye,3);if((He=2+y(Ye,Xe))>Ve)break o}else He=Ve;for($e=0;$e<Ve&&He--;){N(Ye);var Je=Qe[0+(127&C(Ye))];E(Ye,Ye.u+Je.g);var et=Je.value;if(16>et)Ue[$e++]=et,0!=et&&(Ke=et);else{var tt=16==et,nt=et-16,rt=Gr[nt],ot=y(Ye,Ur[nt])+rt;if($e+ot>Ve)break o;for(var it=tt?Ke:0;0<ot--;)Ue[$e++]=it}}Ge=1;break o}Ge||(qe.a=3),_e=Ge}(_e=_e&&!Te.h)&&(Re=u(Pe,Le,8,Ae,Ee)),_e&&0!=Re?Be=Re:(Ne.a=3,Be=0)}if(0==Be)break n;if(xe&&1==Kr[W]&&(xe=0==me[V].g),we+=me[V].g,V+=Be,3>=W){var at,lt=he[0];for(at=1;at<ce;++at)he[at]>lt&&(lt=he[at]);Ce+=lt}}if(ge.nd=xe,ge.Qb=0,xe&&(ge.qb=(ve[3][be[3]+0].value<<24|ve[1][be[1]+0].value<<16|ve[2][be[2]+0].value)>>>0,0==we&&256>ve[0][be[0]+0].value&&(ge.Qb=1,ge.qb+=ve[0][be[0]+0].value<<8)),ge.jc=!ge.Qb&&6>Ce,ge.jc){var st,ct=ge;for(st=0;st<zn;++st){var ut=st,dt=ct.pd[ut],pt=ct.G[0][ct.H[0]+ut];256<=pt.value?(dt.g=pt.g+256,dt.value=pt.value):(dt.g=0,dt.value=0,ut>>=ye(pt,8,dt),ut>>=ye(ct.G[1][ct.H[1]+ut],16,dt),ut>>=ye(ct.G[2][ct.H[2]+ut],0,dt),ye(ct.G[3][ct.H[3]+ut],24,dt))}}}J.vc=ee,J.Wb=te,J.Ya=fe,J.yc=ue,$=1;break t}$=0}if(!(c=$)){l.a=3;break e}if(0<b){if(g.ua=1<<b,!T(g.Wa,b)){l.a=1,c=0;break e}}else g.ua=0;var ft=l,ht=p,mt=h,gt=ft.s,vt=gt.xc;if(ft.c=ht,ft.i=mt,gt.md=F(ht,vt),gt.wc=0==vt?-1:(1<<vt)-1,r){l.xb=mo;break e}if(null==(v=i(p*h))){l.a=1,c=0;break e}c=(c=Me(l,v,0,p,h,h,null))&&!m.h;break e}return c?(null!=s?s[0]=v:(t(null==v),t(r)),l.$=0,r||Ie(g)):Ie(g),c}function Pe(e,n){var r=e.c*e.i,o=r+n+16*n;return t(e.c<=n),e.V=i(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Le(e,n){var r=e.C,o=n-r,i=e.V,a=e.Ba+e.c*r;for(t(n<=e.l.o);0<o;){var l=16<o?16:o,s=e.l.ma,c=e.l.width,u=c*l,d=s.ca,p=s.tb+c*r,f=e.Ta,h=e.Ua;xe(e,l,i,a),_n(f,h,d,p,u),Ee(s,r,r+l,d,p,c),o-=l,i+=l*e.c,r+=l}t(r==n),e.C=e.Ma=n}function Re(){this.ub=this.yd=this.td=this.Rb=0}function Te(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function De(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Oe(){this.Yb=function(){var e=[];return function e(t,n,r){for(var o=r[n],i=0;i<o&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));i++)e(t[i],n+1,r)}(e,0,[3,11]),e}()}function je(){this.jb=i(3),this.Wc=l([4,8],Oe),this.Xc=l([4,17],Oe)}function Fe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function _e(){this.ld=this.La=this.dd=this.tc=0}function Ze(){this.Na=this.la=0}function ze(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Be(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new _e),this.Y=0,this.ya=Array(new Be),this.aa=0,this.l=new Ve}function $e(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Re,this.Kc=new Te,this.ed=new Fe,this.Qa=new De,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,ze),this.Pa=new je,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new $e),this.Hd=0,this.rb=Array(new Ze),this.sb=0,this.wa=Array(new _e),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Be),this.L=this.aa=0,this.gd=l([4,2],_e),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function We(e,t){return 0>e?0:e>t?t:e}function Ve(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ue(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ro||(ro=Qe)),e}function Ge(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ye(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ke(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ge(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,i=n.w,a=n.ha;if(4>a)return Ge(e,7,"Truncated header.");var l=r[i+0]|r[i+1]<<8|r[i+2]<<16,s=e.Od;if(s.Rb=!(1&l),s.td=l>>1&7,s.yd=l>>4&1,s.ub=l>>5,3<s.td)return Ge(e,3,"Incorrect keyframe parameters.");if(!s.yd)return Ge(e,4,"Frame not displayable.");i+=3,a-=3;var c=e.Kc;if(s.Rb){if(7>a)return Ge(e,7,"cannot parse picture header");if(!Ye(r,i,a))return Ge(e,3,"Bad code word");c.c=16383&(r[i+4]<<8|r[i+3]),c.Td=r[i+4]>>6,c.i=16383&(r[i+6]<<8|r[i+5]),c.Ud=r[i+6]>>6,i+=7,a-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,o((l=e.Pa).jb,0,255,l.jb.length),t(null!=(l=e.Qa)),l.Cb=0,l.Bb=0,l.Fb=1,o(l.Zb,0,0,l.Zb.length),o(l.Lb,0,0,l.Lb)}if(s.ub>a)return Ge(e,7,"bad partition length");h(l=e.m,r,i,s.ub),i+=s.ub,a-=s.ub,s.Rb&&(c.Ld=I(l),c.Kd=I(l)),c=e.Qa;var u,d=e.Pa;if(t(null!=l),t(null!=c),c.Cb=I(l),c.Cb){if(c.Bb=I(l),I(l)){for(c.Fb=I(l),u=0;4>u;++u)c.Zb[u]=I(l)?g(l,7):0;for(u=0;4>u;++u)c.Lb[u]=I(l)?g(l,6):0}if(c.Bb)for(u=0;3>u;++u)d.jb[u]=I(l)?m(l,8):255}else c.Bb=0;if(l.Ka)return Ge(e,3,"cannot parse segment header");if((c=e.ed).zd=I(l),c.Tb=m(l,6),c.wb=m(l,3),c.Pc=I(l),c.Pc&&I(l)){for(d=0;4>d;++d)I(l)&&(c.vd[d]=g(l,6));for(d=0;4>d;++d)I(l)&&(c.od[d]=g(l,6))}if(e.L=0==c.Tb?0:c.zd?1:2,l.Ka)return Ge(e,3,"cannot parse filter header");var p=a;if(a=u=i,i=u+p,c=p,e.Xb=(1<<m(e.m,2))-1,p<3*(d=e.Xb))r=7;else{for(u+=3*d,c-=3*d,p=0;p<d;++p){var f=r[a+0]|r[a+1]<<8|r[a+2]<<16;f>c&&(f=c),h(e.Jc[+p],r,u,f),u+=f,c-=f,a+=3}h(e.Jc[+d],r,u,c),r=u<i?0:5}if(0!=r)return Ge(e,r,"cannot parse partitions");for(r=m(u=e.m,7),a=I(u)?g(u,4):0,i=I(u)?g(u,4):0,c=I(u)?g(u,4):0,d=I(u)?g(u,4):0,u=I(u)?g(u,4):0,p=e.Qa,f=0;4>f;++f){if(p.Cb){var v=p.Zb[f];p.Fb||(v+=r)}else{if(0<f){e.pb[f]=e.pb[0];continue}v=r}var b=e.pb[f];b.Sc[0]=to[We(v+a,127)],b.Sc[1]=no[We(v+0,127)],b.Eb[0]=2*to[We(v+i,127)],b.Eb[1]=101581*no[We(v+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=to[We(v+d,117)],b.Qc[1]=no[We(v+u,127)],b.lc=v+u}if(!s.Rb)return Ge(e,4,"Not a key frame.");for(I(l),s=e.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(i=0;3>i;++i)for(c=0;11>c;++c)d=A(l,co[r][a][i][c])?m(l,8):lo[r][a][i][c],s.Wc[r][a].Yb[i][c]=d;for(a=0;17>a;++a)s.Xc[r][a]=s.Wc[r][uo[a]]}return e.kc=I(l),e.kc&&(e.Bd=m(l,8)),e.cb=1}function Qe(e,t,n,r,o,i,a){var l=t[o].Yb[n];for(n=0;16>o;++o){if(!A(e,l[n+0]))return o;for(;!A(e,l[n+1]);)if(l=t[++o].Yb[0],n=0,16==o)return 16;var s=t[o+1].Yb;if(A(e,l[n+2])){var c=e,u=0;if(A(c,(p=l)[(d=n)+3]))if(A(c,p[d+6])){for(l=0,d=2*(u=A(c,p[d+8]))+(p=A(c,p[d+9+u])),u=0,p=oo[d];p[l];++l)u+=u+A(c,p[l]);u+=3+(8<<d)}else A(c,p[d+7])?(u=7+2*A(c,165),u+=A(c,145)):u=5+A(c,159);else u=A(c,p[d+4])?3+A(c,p[d+5]):2;l=s[2]}else u=1,l=s[1];s=a+io[o],0>(c=e).b&&M(c);var d,p=c.b,f=(d=c.Ca>>1)-(c.I>>p)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(d+1&f)<<p,i[s]=((u^f)-f)*r[(0<o)+0]}return 16}function Xe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function Je(e,n){if(null==e)return 0;if(null==n)return Ge(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ke(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var l=zo[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-l>>4,e.zb=n.j-l>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+l>>4,e.Hb=n.va+15+l>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var s=e.ed;for(l=0;4>l;++l){var c;if(e.Qa.Cb){var u=e.Qa.Lb[l];e.Qa.Fb||(u+=s.Tb)}else u=s.Tb;for(c=0;1>=c;++c){var d=e.gd[l][c],p=u;if(s.Pc&&(p+=s.vd[0],c&&(p+=s.od[0])),0<(p=0>p?0:63<p?63:p)){var f=p;0<s.wb&&(f=4<s.wb?f>>2:f>>1)>9-s.wb&&(f=9-s.wb),1>f&&(f=1),d.dd=f,d.tc=2*p+f,d.ld=40<=p?2:15<=p?1:0}else d.tc=0;d.La=c}}}l=0}else Ge(e,6,"Frame setup failed"),l=e.a;if(l=0==l){if(l){e.$c=0,0<e.Aa||(e.Ic=Ho);e:{l=e.Ic,s=4*(f=e.za);var h=32*f,m=f+1,g=0<e.L?f*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*f;if((d=s+832+(c=3*(16*l+zo[e.L])/2*h)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)l=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=i(d),e.Fc=0,null==e.Ec){l=Ge(e,1,"no memory during frame initialization.");break e}e.Vb=d}d=e.Ec,p=e.Fc,e.Ac=d,e.Bc=p,p+=s,e.Gd=a(h,$e),e.Hd=0,e.rb=a(m+1,Ze),e.sb=1,e.wa=g?a(g,_e):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=d,e.pc=p,p+=832,e.ya=a(v,Be),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(h=zo[e.L])*e.R,h=h/2*e.B,e.sa=d,e.ta=p+f,e.qa=e.sa,e.ra=e.ta+16*l*e.R+h,e.Ha=e.qa,e.Ia=e.ra+8*l*e.B+h,e.$c=0,p+=c,e.mb=u?d:null,e.nb=u?p:null,t(p+u<=e.Fc+e.Vb),Xe(e),o(e.Ac,e.Bc,0,s),l=1}}if(l){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Lr){for(l=-255;255>=l;++l)Ir[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)Ar[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)kr[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Pr[255+l]=0>l?0:255<l?255:l;Lr=1}ar=ct,lr=it,cr=at,ur=lt,dr=st,sr=ot,pr=Gt,fr=Yt,hr=Xt,mr=Jt,gr=Kt,vr=Qt,br=en,yr=tn,wr=Ht,xr=$t,Cr=qt,Sr=Wt,fo[0]=Et,fo[1]=dt,fo[2]=Ct,fo[3]=St,fo[4]=Nt,fo[5]=It,fo[6]=Mt,fo[7]=At,fo[8]=Pt,fo[9]=kt,po[0]=vt,po[1]=ft,po[2]=ht,po[3]=mt,po[4]=bt,po[5]=yt,po[6]=wt,ho[0]=Dt,ho[1]=pt,ho[2]=Lt,ho[3]=Rt,ho[4]=jt,ho[5]=Ot,ho[6]=Ft,l=1}else l=0}l&&(l=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var a,l=e.Jc[e.M&e.Xb],s=e.m,c=e;for(a=0;a<c.za;++a){var u=s,d=c,p=d.Ac,f=d.Bc+4*a,h=d.zc,m=d.ya[d.aa+a];if(d.Qa.Bb?m.$b=A(u,d.Pa.jb[0])?2+A(u,d.Pa.jb[2]):A(u,d.Pa.jb[1]):m.$b=0,d.kc&&(m.Ad=A(u,d.Bd)),m.Za=!A(u,145)+0,m.Za){var g=m.Ob,v=0;for(d=0;4>d;++d){var b,y=h[0+d];for(b=0;4>b;++b){y=so[p[f+b]][y];for(var w=ao[A(u,y[0])];0<w;)w=ao[2*w+A(u,y[w])];y=-w,p[f+b]=y}r(g,v,p,f,4),v+=4,h[0+d]=y}}else y=A(u,156)?A(u,128)?1:3:A(u,163)?2:0,m.Ob[0]=y,o(p,f,y,4),o(h,0,y,4);m.Dd=A(u,142)?A(u,114)?A(u,183)?1:3:2:0}if(c.m.Ka)return Ge(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=l,u=(s=e).rb[s.sb-1],p=s.rb[s.sb+s.ja],a=s.ya[s.aa+s.ja],f=s.kc?a.Ad:0)u.la=p.la=0,a.Za||(u.Na=p.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var x,C;if(u=p,p=c,f=s.Pa.Xc,h=s.ya[s.aa+s.ja],m=s.pb[h.$b],d=h.ad,g=0,v=s.rb[s.sb-1],y=b=0,o(d,g,0,384),h.Za)var S=0,E=f[3];else{w=i(16);var N=u.Na+v.Na;if(N=ro(p,f[1],N,m.Eb,0,w,0),u.Na=v.Na=(0<N)+0,1<N)ar(w,0,d,g);else{var M=w[0]+3>>3;for(w=0;256>w;w+=16)d[g+w]=M}S=1,E=f[0]}var I=15&u.la,k=15&v.la;for(w=0;4>w;++w){var P=1&k;for(M=C=0;4>M;++M)I=I>>1|(P=(N=ro(p,E,N=P+(1&I),m.Sc,S,d,g))>S)<<7,C=C<<2|(3<N?3:1<N?2:0!=d[g+0]),g+=16;I>>=4,k=k>>1|P<<7,b=(b<<8|C)>>>0}for(E=I,S=k>>4,x=0;4>x;x+=2){for(C=0,I=u.la>>4+x,k=v.la>>4+x,w=0;2>w;++w){for(P=1&k,M=0;2>M;++M)N=P+(1&I),I=I>>1|(P=0<(N=ro(p,f[2],N,m.Qc,0,d,g)))<<3,C=C<<2|(3<N?3:1<N?2:0!=d[g+0]),g+=16;I>>=2,k=k>>1|P<<5}y|=C<<4*x,E|=I<<4<<x,S|=(240&k)<<x}u.la=E,v.la=S,h.Hc=b,h.Gc=y,h.ia=43690&y?0:m.ia,f=!(b|y)}if(0<s.L&&(s.wa[s.Y+s.ja]=s.gd[a.$b][a.Za],s.wa[s.Y+s.ja].La|=!f),c.Ka)return Ge(e,7,"Premature end-of-file encountered.")}if(Xe(e),s=n,c=1,a=(l=e).D,u=0<l.L&&l.M>=l.zb&&l.M<=l.Va,0==l.Aa)e:{if(a.M=l.M,a.uc=u,Dn(l,a),c=1,a=(C=l.D).Nb,u=(y=zo[l.L])*l.R,p=y/2*l.B,w=16*a*l.R,M=8*a*l.B,f=l.sa,h=l.ta-u+w,m=l.qa,d=l.ra-p+M,g=l.Ha,v=l.Ia-p+M,k=0==(I=C.M),b=I>=l.Va-1,2==l.Aa&&Dn(l,C),C.uc)for(P=(N=l).D.M,t(N.D.uc),C=N.yb;C<N.Hb;++C){S=C,E=P;var L=(R=(B=N).D).Nb;x=B.R;var R=R.wa[R.Y+S],T=B.sa,D=B.ta+16*L*x+16*S,O=R.dd,j=R.tc;if(0!=j)if(t(3<=j),1==B.L)0<S&&xr(T,D,x,j+4),R.La&&Sr(T,D,x,j),0<E&&wr(T,D,x,j+4),R.La&&Cr(T,D,x,j);else{var F=B.B,_=B.qa,Z=B.ra+8*L*F+8*S,z=B.Ha,B=B.Ia+8*L*F+8*S;L=R.ld,0<S&&(fr(T,D,x,j+4,O,L),mr(_,Z,z,B,F,j+4,O,L)),R.La&&(vr(T,D,x,j,O,L),yr(_,Z,z,B,F,j,O,L)),0<E&&(pr(T,D,x,j+4,O,L),hr(_,Z,z,B,F,j+4,O,L)),R.La&&(gr(T,D,x,j,O,L),br(_,Z,z,B,F,j,O,L))}}if(l.ia&&alert("todo:DitherRow"),null!=s.put){if(C=16*I,I=16*(I+1),k?(s.y=l.sa,s.O=l.ta+w,s.f=l.qa,s.N=l.ra+M,s.ea=l.Ha,s.W=l.Ia+M):(C-=y,s.y=f,s.O=h,s.f=m,s.N=d,s.ea=g,s.W=v),b||(I-=y),I>s.o&&(I=s.o),s.F=null,s.J=null,null!=l.Fa&&0<l.Fa.length&&C<I&&(s.J=pn(l,s,C,I-C),s.F=l.mb,null==s.F&&0==s.F.length)){c=Ge(l,3,"Could not decode alpha data.");break e}C<s.j&&(y=s.j-C,C=s.j,t(!(1&y)),s.O+=l.R*y,s.N+=l.B*(y>>1),s.W+=l.B*(y>>1),null!=s.F&&(s.J+=s.width*y)),C<I&&(s.O+=s.v,s.N+=s.v>>1,s.W+=s.v>>1,null!=s.F&&(s.J+=s.v),s.ka=C-s.j,s.U=s.va-s.v,s.T=I-C,c=s.put(s))}a+1!=l.Ic||b||(r(l.sa,l.ta-u,f,h+16*l.R,u),r(l.qa,l.ra-p,m,d+8*l.B,p),r(l.Ha,l.Ia-p,g,v+8*l.B,p))}if(!c)return Ge(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),l&=1}return l?(e.cb=0,l):0}function et(e,t,n,r,o){o=e[t+n+32*r]+(o>>3),e[t+n+32*r]=-256&o?0>o?0:255:o}function tt(e,t,n,r,o,i){et(e,t,0,n,r+o),et(e,t,1,n,r+i),et(e,t,2,n,r-i),et(e,t,3,n,r-o)}function nt(e){return(20091*e>>16)+e}function rt(e,t,n,r){var o,a=0,l=i(16);for(o=0;4>o;++o){var s=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-nt(e[t+12]),d=nt(e[t+4])+(35468*e[t+12]>>16);l[a+0]=s+d,l[a+1]=c+u,l[a+2]=c-u,l[a+3]=s-d,a+=4,t++}for(o=a=0;4>o;++o)s=(e=l[a+0]+4)+l[a+8],c=e-l[a+8],u=(35468*l[a+4]>>16)-nt(l[a+12]),et(n,r,0,0,s+(d=nt(l[a+4])+(35468*l[a+12]>>16))),et(n,r,1,0,c+u),et(n,r,2,0,c-u),et(n,r,3,0,s-d),a++,r+=32}function ot(e,t,n,r){var o=e[t+0]+4,i=35468*e[t+4]>>16,a=nt(e[t+4]),l=35468*e[t+1]>>16;tt(n,r,0,o+a,e=nt(e[t+1]),l),tt(n,r,1,o+i,e,l),tt(n,r,2,o-i,e,l),tt(n,r,3,o-a,e,l)}function it(e,t,n,r,o){rt(e,t,n,r),o&&rt(e,t+16,n,r+4)}function at(e,t,n,r){lr(e,t+0,n,r,1),lr(e,t+32,n,r+128,1)}function lt(e,t,n,r){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)et(n,r,t,o,e)}function st(e,t,n,r){e[t+0]&&ur(e,t+0,n,r),e[t+16]&&ur(e,t+16,n,r+4),e[t+32]&&ur(e,t+32,n,r+128),e[t+48]&&ur(e,t+48,n,r+128+4)}function ct(e,t,n,r){var o,a=i(16);for(o=0;4>o;++o){var l=e[t+0+o]+e[t+12+o],s=e[t+4+o]+e[t+8+o],c=e[t+4+o]-e[t+8+o],u=e[t+0+o]-e[t+12+o];a[0+o]=l+s,a[8+o]=l-s,a[4+o]=u+c,a[12+o]=u-c}for(o=0;4>o;++o)l=(e=a[0+4*o]+3)+a[3+4*o],s=a[1+4*o]+a[2+4*o],c=a[1+4*o]-a[2+4*o],u=e-a[3+4*o],n[r+0]=l+s>>3,n[r+16]=u+c>>3,n[r+32]=l-s>>3,n[r+48]=u-c>>3,r+=64}function ut(e,t,n){var r,o=t-32,i=Dr,a=255-e[o-1];for(r=0;r<n;++r){var l,s=i,c=a+e[t-1];for(l=0;l<n;++l)e[t+l]=s[c+e[o+l]];t+=32}}function dt(e,t){ut(e,t,4)}function pt(e,t){ut(e,t,8)}function ft(e,t){ut(e,t,16)}function ht(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function mt(e,t){var n;for(n=16;0<n;--n)o(e,t,e[t-1],16),t+=32}function gt(e,t,n){var r;for(r=0;16>r;++r)o(t,n+32*r,e,16)}function vt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];gt(r>>5,e,t)}function bt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];gt(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];gt(r>>4,e,t)}function wt(e,t){gt(128,e,t)}function xt(e,t,n){return e+2*t+n+2>>2}function Ct(e,t){var n,o=t-32;for(o=new Uint8Array([xt(e[o-1],e[o+0],e[o+1]),xt(e[o+0],e[o+1],e[o+2]),xt(e[o+1],e[o+2],e[o+3]),xt(e[o+2],e[o+3],e[o+4])]),n=0;4>n;++n)r(e,t+32*n,o,0,o.length)}function St(e,t){var n=e[t-1],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];k(e,t+0,16843009*xt(e[t-1-32],n,r)),k(e,t+32,16843009*xt(n,r,o)),k(e,t+64,16843009*xt(r,o,i)),k(e,t+96,16843009*xt(o,i,i))}function Et(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)o(e,t+32*n,r,4)}function Nt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],l=e[t+1-32],s=e[t+2-32],c=e[t+3-32];e[t+0+96]=xt(r,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=xt(n,r,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=xt(i,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=xt(a,i,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=xt(l,a,i),e[t+3+32]=e[t+2+0]=xt(s,l,a),e[t+3+0]=xt(c,s,l)}function Mt(e,t){var n=e[t+1-32],r=e[t+2-32],o=e[t+3-32],i=e[t+4-32],a=e[t+5-32],l=e[t+6-32],s=e[t+7-32];e[t+0+0]=xt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=xt(n,r,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=xt(r,o,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=xt(o,i,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=xt(i,a,l),e[t+3+64]=e[t+2+96]=xt(a,l,s),e[t+3+96]=xt(l,s,s)}function It(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],l=e[t+1-32],s=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=i+a+1>>1,e[t+1+0]=e[t+2+64]=a+l+1>>1,e[t+2+0]=e[t+3+64]=l+s+1>>1,e[t+3+0]=s+c+1>>1,e[t+0+96]=xt(o,r,n),e[t+0+64]=xt(r,n,i),e[t+0+32]=e[t+1+96]=xt(n,i,a),e[t+1+32]=e[t+2+96]=xt(i,a,l),e[t+2+32]=e[t+3+96]=xt(a,l,s),e[t+3+32]=xt(l,s,c)}function At(e,t){var n=e[t+0-32],r=e[t+1-32],o=e[t+2-32],i=e[t+3-32],a=e[t+4-32],l=e[t+5-32],s=e[t+6-32],c=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+o+1>>1,e[t+2+0]=e[t+1+64]=o+i+1>>1,e[t+3+0]=e[t+2+64]=i+a+1>>1,e[t+0+32]=xt(n,r,o),e[t+1+32]=e[t+0+96]=xt(r,o,i),e[t+2+32]=e[t+1+96]=xt(o,i,a),e[t+3+32]=e[t+2+96]=xt(i,a,l),e[t+3+64]=xt(a,l,s),e[t+3+96]=xt(l,s,c)}function kt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+o+1>>1,e[t+2+32]=e[t+0+64]=o+i+1>>1,e[t+1+0]=xt(n,r,o),e[t+3+0]=e[t+1+32]=xt(r,o,i),e[t+3+32]=e[t+1+64]=xt(o,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Pt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96],a=e[t-1-32],l=e[t+0-32],s=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=n+a+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=o+r+1>>1,e[t+0+96]=i+o+1>>1,e[t+3+0]=xt(l,s,c),e[t+2+0]=xt(a,l,s),e[t+1+0]=e[t+3+32]=xt(n,a,l),e[t+1+32]=e[t+3+64]=xt(r,n,a),e[t+1+64]=e[t+3+96]=xt(o,r,n),e[t+1+96]=xt(i,o,r)}function Lt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Rt(e,t){var n;for(n=0;8>n;++n)o(e,t,e[t-1],8),t+=32}function Tt(e,t,n){var r;for(r=0;8>r;++r)o(t,n+32*r,e,8)}function Dt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Tt(r>>4,e,t)}function Ot(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Tt(r>>3,e,t)}function jt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Tt(r>>3,e,t)}function Ft(e,t){Tt(128,e,t)}function _t(e,t,n){var r=e[t-n],o=e[t+0],i=3*(o-r)+Rr[1020+e[t-2*n]-e[t+n]],a=Tr[112+(i+4>>3)];e[t-n]=Dr[255+r+Tr[112+(i+3>>3)]],e[t+0]=Dr[255+o-a]}function Zt(e,t,n,r){var o=e[t+0],i=e[t+n];return Or[255+e[t-2*n]-e[t-n]]>r||Or[255+i-o]>r}function zt(e,t,n,r){return 4*Or[255+e[t-n]-e[t+0]]+Or[255+e[t-2*n]-e[t+n]]<=r}function Bt(e,t,n,r,o){var i=e[t-3*n],a=e[t-2*n],l=e[t-n],s=e[t+0],c=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*Or[255+l-s]+Or[255+a-c]>r?0:Or[255+e[t-4*n]-i]<=o&&Or[255+i-a]<=o&&Or[255+a-l]<=o&&Or[255+d-u]<=o&&Or[255+u-c]<=o&&Or[255+c-s]<=o}function Ht(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)zt(e,t+r,n,o)&&_t(e,t+r,n)}function $t(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)zt(e,t+r*n,1,o)&&_t(e,t+r*n,1)}function qt(e,t,n,r){var o;for(o=3;0<o;--o)Ht(e,t+=4*n,n,r)}function Wt(e,t,n,r){var o;for(o=3;0<o;--o)$t(e,t+=4,n,r)}function Vt(e,t,n,r,o,i,a,l){for(i=2*i+1;0<o--;){if(Bt(e,t,n,i,a))if(Zt(e,t,n,l))_t(e,t,n);else{var s=e,c=t,u=n,d=s[c-2*u],p=s[c-u],f=s[c+0],h=s[c+u],m=s[c+2*u],g=27*(b=Rr[1020+3*(f-p)+Rr[1020+d-h]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;s[c-3*u]=Dr[255+s[c-3*u]+b],s[c-2*u]=Dr[255+d+v],s[c-u]=Dr[255+p+g],s[c+0]=Dr[255+f-g],s[c+u]=Dr[255+h-v],s[c+2*u]=Dr[255+m-b]}t+=r}}function Ut(e,t,n,r,o,i,a,l){for(i=2*i+1;0<o--;){if(Bt(e,t,n,i,a))if(Zt(e,t,n,l))_t(e,t,n);else{var s=e,c=t,u=n,d=s[c-u],p=s[c+0],f=s[c+u],h=Tr[112+(4+(m=3*(p-d))>>3)],m=Tr[112+(m+3>>3)],g=h+1>>1;s[c-2*u]=Dr[255+s[c-2*u]+g],s[c-u]=Dr[255+d+m],s[c+0]=Dr[255+p-h],s[c+u]=Dr[255+f-g]}t+=r}}function Gt(e,t,n,r,o,i){Vt(e,t,n,1,16,r,o,i)}function Yt(e,t,n,r,o,i){Vt(e,t,1,n,16,r,o,i)}function Kt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Ut(e,t+=4*n,n,1,16,r,o,i)}function Qt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Ut(e,t+=4,1,n,16,r,o,i)}function Xt(e,t,n,r,o,i,a,l){Vt(e,t,o,1,8,i,a,l),Vt(n,r,o,1,8,i,a,l)}function Jt(e,t,n,r,o,i,a,l){Vt(e,t,1,o,8,i,a,l),Vt(n,r,1,o,8,i,a,l)}function en(e,t,n,r,o,i,a,l){Ut(e,t+4*o,o,1,8,i,a,l),Ut(n,r+4*o,o,1,8,i,a,l)}function tn(e,t,n,r,o,i,a,l){Ut(e,t+4,1,o,8,i,a,l),Ut(n,r+4,1,o,8,i,a,l)}function nn(){this.ba=new ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new se,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new d}function ln(){this.xb=this.a=0,this.l=new Ve,this.ca=new ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,on),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ve,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(e,t,n,r,o,i,a){for(e=null==e?0:e[t+0],t=0;t<a;++t)o[i+t]=e+n[r+t]&255,e=o[i+t]}function un(e,t,n,r,o,i,a){var l;if(null==e)cn(null,null,n,r,o,i,a);else for(l=0;l<a;++l)o[i+l]=e[t+l]+n[r+l]&255}function dn(e,t,n,r,o,i,a){if(null==e)cn(null,null,n,r,o,i,a);else{var l,s=e[t+0],c=s,u=s;for(l=0;l<a;++l)c=u+(s=e[t+l])-c,u=n[r+l]+(-256&c?0>c?0:255:c)&255,c=s,o[i+l]=u}}function pn(e,n,o,a){var l=n.width,s=n.o;if(t(null!=e&&null!=n),0>o||0>=a||o+a>s)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new sn,(c=null==e.ga)||(c=n.width*n.o,t(0==e.Gb.length),e.Gb=i(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,d=e.P,p=e.qc,f=e.mb,h=e.nb,m=d+1,g=p-1,b=c.l;if(t(null!=u&&null!=f&&null!=n),vo[0]=null,vo[1]=cn,vo[2]=un,vo[3]=dn,c.ca=f,c.tb=h,c.c=n.width,c.i=n.height,t(0<c.c&&0<c.i),1>=p)n=0;else if(c.$a=u[d+0]>>0&3,c.Z=u[d+0]>>2&3,c.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||d)n=0;else if(b.put=fe,b.ac=pe,b.bc=he,b.ma=c,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,c.$a)e:{t(1==c.$a),n=Ae();t:for(;;){if(null==n){n=0;break e}if(t(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,v(n.m,u,m,g),!ke(c.c,c.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&Se(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Pe(n,c.c)),!n)break t;n=1;break e}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=e.ga.Lc?e.Ga=0:a=s-o}t(null!=e.ga),t(o+a<=s);e:{if(n=(u=e.ga).c,s=u.l.o,0==u.$a){if(m=e.rc,g=e.Vc,b=e.Fa,d=e.P+1+o*n,p=e.mb,f=e.nb+o*n,t(d<=e.P+e.qc),0!=u.Z)for(t(null!=vo[u.Z]),c=0;c<a;++c)vo[u.Z](m,g,b,d,p,f,n),m=p,g=f,f+=n,d+=n;else for(c=0;c<a;++c)r(p,f,b,d,n),m=p,g=f,f+=n,d+=n;e.rc=m,e.Vc=g}else{if(t(null!=u.mc),n=o+a,t(null!=(c=u.mc)),t(n<=c.i),c.C>=n)n=1;else if(u.ic||vn(),u.ic){u=c.V,m=c.Ba,g=c.c;var y=c.i,w=(b=1,d=c.$/g,p=c.$%g,f=c.m,h=c.s,c.$),x=g*y,C=g*n,E=h.wc,M=w<C?we(h,p,d):null;t(w<=x),t(n<=y),t(Se(h));t:for(;;){for(;!f.h&&w<C;){if(p&E||(M=we(h,p,d)),t(null!=M),N(f),256>(y=be(M.G[0],M.H[0],f)))u[m+w]=y,++w,++p>=g&&(p=0,++d<=n&&!(d%16)&&Ne(c,d));else{if(!(280>y)){b=0;break t}y=ge(y-256,f);var I,A=be(M.G[4],M.H[4],f);if(N(f),!(w>=(A=ve(g,A=ge(A,f)))&&x-w>=y)){b=0;break t}for(I=0;I<y;++I)u[m+w+I]=u[m+w+I-A];for(w+=y,p+=y;p>=g;)p-=g,++d<=n&&!(d%16)&&Ne(c,d);w<C&&p&E&&(M=we(h,p,d))}t(f.h==S(f))}Ne(c,d>n?n:d);break t}!b||f.h&&w<x?(b=0,c.a=f.h?5:3):c.$=w,n=b}else n=Me(c,c.V,c.Ba,c.c,c.i,n,Le);if(!n){a=0;break e}}o+a>=s&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*l}function fn(e,t,n,r,o,i){for(;0<o--;){var a,l=e,s=t+(n?1:0),c=e,u=t+(n?0:3);for(a=0;a<r;++a){var d=c[u+4*a];255!=d&&(d*=32897,l[s+4*a+0]=l[s+4*a+0]*d>>23,l[s+4*a+1]=l[s+4*a+1]*d>>23,l[s+4*a+2]=l[s+4*a+2]*d>>23)}t+=i}}function hn(e,t,n,r,o){for(;0<r--;){var i;for(i=0;i<n;++i){var a=e[t+2*i+0],l=15&(c=e[t+2*i+1]),s=4369*l,c=(240&c|c>>4)*s>>16;e[t+2*i+0]=(240&a|a>>4)*s>>16&240|(15&a|a<<4)*s>>16>>4&15,e[t+2*i+1]=240&c|l}t+=o}}function mn(e,t,n,r,o,i,a,l){var s,c,u=255;for(c=0;c<o;++c){for(s=0;s<r;++s){var d=e[t+s];i[a+4*s]=d,u&=d}t+=n,a+=l}return 255!=u}function gn(e,t,n,r,o){var i;for(i=0;i<o;++i)n[r+i]=e[t+i]>>8}function vn(){Er=fn,Nr=hn,Mr=mn,_n=gn}function bn(n,r,o){e[n]=function(e,n,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y){var w,x=y-1>>1,C=l[s+0]|c[u+0]<<16,S=d[p+0]|f[h+0]<<16;t(null!=e);var E=3*C+S+131074>>2;for(r(e[n+0],255&E,E>>16,m,g),null!=i&&(E=3*S+C+131074>>2,r(i[a+0],255&E,E>>16,v,b)),w=1;w<=x;++w){var N=l[s+w]|c[u+w]<<16,M=d[p+w]|f[h+w]<<16,I=C+N+S+M+524296,A=I+2*(N+S)>>3;E=A+C>>1,C=(I=I+2*(C+M)>>3)+N>>1,r(e[n+2*w-1],255&E,E>>16,m,g+(2*w-1)*o),r(e[n+2*w-0],255&C,C>>16,m,g+(2*w-0)*o),null!=i&&(E=I+S>>1,C=A+M>>1,r(i[a+2*w-1],255&E,E>>16,v,b+(2*w-1)*o),r(i[a+2*w+0],255&C,C>>16,v,b+(2*w+0)*o)),C=N,S=M}1&y||(E=3*C+S+131074>>2,r(e[n+y-1],255&E,E>>16,m,g+(y-1)*o),null!=i&&(E=3*S+C+131074>>2,r(i[a+y-1],255&E,E>>16,v,b+(y-1)*o)))}}function yn(){bo[jr]=yo,bo[Fr]=xo,bo[_r]=wo,bo[Zr]=Co,bo[zr]=So,bo[Br]=Eo,bo[Hr]=No,bo[$r]=xo,bo[qr]=Co,bo[Wr]=So,bo[Vr]=Eo}function wn(e){return e&~Lo?0>e?0:255:e>>Po}function xn(e,t){return wn((19077*e>>8)+(26149*t>>8)-14234)}function Cn(e,t,n){return wn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Sn(e,t){return wn((19077*e>>8)+(33050*t>>8)-17685)}function En(e,t,n,r,o){r[o+0]=xn(e,n),r[o+1]=Cn(e,t,n),r[o+2]=Sn(e,t)}function Nn(e,t,n,r,o){r[o+0]=Sn(e,t),r[o+1]=Cn(e,t,n),r[o+2]=xn(e,n)}function Mn(e,t,n,r,o){var i=Cn(e,t,n);t=i<<3&224|Sn(e,t)>>3,r[o+0]=248&xn(e,n)|i>>5,r[o+1]=t}function In(e,t,n,r,o){var i=240&Sn(e,t)|15;r[o+0]=240&xn(e,n)|Cn(e,t,n)>>4,r[o+1]=i}function An(e,t,n,r,o){r[o+0]=255,En(e,t,n,r,o+1)}function kn(e,t,n,r,o){Nn(e,t,n,r,o),r[o+3]=255}function Pn(e,t,n,r,o){En(e,t,n,r,o),r[o+3]=255}function We(e,t){return 0>e?0:e>t?t:e}function Ln(t,n,r){e[t]=function(e,t,o,i,a,l,s,c,u){for(var d=c+(-2&u)*r;c!=d;)n(e[t+0],o[i+0],a[l+0],s,c),n(e[t+1],o[i+0],a[l+0],s,c+r),t+=2,++i,++l,c+=2*r;1&u&&n(e[t+0],o[i+0],a[l+0],s,c)}}function Rn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Tn(e,t,n,r,o){switch(e>>>30){case 3:lr(t,n,r,o,0);break;case 2:sr(t,n,r,o);break;case 1:ur(t,n,r,o)}}function Dn(e,t){var n,i,a=t.M,l=t.Nb,s=e.oc,c=e.pc+40,u=e.oc,d=e.pc+584,p=e.oc,f=e.pc+600;for(n=0;16>n;++n)s[c+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,p[f+32*n-1]=129;for(0<a?s[c-1-32]=u[d-1-32]=p[f-1-32]=129:(o(s,c-32-1,127,21),o(u,d-32-1,127,9),o(p,f-32-1,127,9)),i=0;i<e.za;++i){var h=t.ya[t.aa+i];if(0<i){for(n=-1;16>n;++n)r(s,c+32*n-4,s,c+32*n+12,4);for(n=-1;8>n;++n)r(u,d+32*n-4,u,d+32*n+4,4),r(p,f+32*n-4,p,f+32*n+4,4)}var m=e.Gd,g=e.Hd+i,v=h.ad,b=h.Hc;if(0<a&&(r(s,c-32,m[g].y,0,16),r(u,d-32,m[g].f,0,8),r(p,f-32,m[g].ea,0,8)),h.Za){var y=s,w=c-32+16;for(0<a&&(i>=e.za-1?o(y,w,m[g].y[15],4):r(y,w,m[g+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=s,w=c+Zo[n],fo[h.Ob[n]](y,w),Tn(b,v,16*+n,y,w)}else if(y=Rn(i,a,h.Ob[0]),po[y](s,c),0!=b)for(n=0;16>n;++n,b<<=2)Tn(b,v,16*+n,s,c+Zo[n]);for(n=h.Gc,y=Rn(i,a,h.Dd),ho[y](u,d),ho[y](p,f),b=v,y=u,w=d,255&(h=n>>0)&&(170&h?cr(b,256,y,w):dr(b,256,y,w)),h=p,b=f,255&(n>>=8)&&(170&n?cr(v,320,h,b):dr(v,320,h,b)),a<e.Ub-1&&(r(m[g].y,0,s,c+480,16),r(m[g].f,0,u,d+224,8),r(m[g].ea,0,p,f+224,8)),n=8*l*e.B,m=e.sa,g=e.ta+16*i+16*l*e.R,v=e.qa,h=e.ra+8*i+n,b=e.Ha,y=e.Ia+8*i+n,n=0;16>n;++n)r(m,g+n*e.R,s,c+32*n,16);for(n=0;8>n;++n)r(v,h+n*e.B,u,d+32*n,8),r(b,y+n*e.B,p,f+32*n,8)}}function On(e,r,o,i,a,l,s,c,u){var d=[0],p=[0],f=0,h=null!=u?u.kd:0,m=null!=u?u:new rn;if(null==e||12>o)return 7;m.data=e,m.w=r,m.ha=o,r=[r],o=[o],m.gb=[m.gb];e:{var g=r,b=o,y=m.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){y=3;break e}var w=R(e,g[0]+4);if(12>w||4294967286<w){y=3;break e}if(h&&w>b[0]-8){y=7;break e}y[0]=w,g[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<m.gb[0],o=o[0];;){e:{var C=e;b=r,y=o;var S=d,E=p,N=g=[0];if((A=f=[f])[0]=0,8>y[0])y=7;else{if(!n(C,b[0],"VP8X")){if(10!=R(C,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var M=R(C,b[0]+8),I=1+L(C,b[0]+12);if(2147483648<=I*(C=1+L(C,b[0]+15))){y=3;break e}null!=N&&(N[0]=M),null!=S&&(S[0]=I),null!=E&&(E[0]=C),b[0]+=18,y[0]-=18,A[0]=1}y=0}}if(f=f[0],g=g[0],0!=y)return y;if(b=!!(2&g),!w&&f)return 3;if(null!=l&&(l[0]=!!(16&g)),null!=s&&(s[0]=b),null!=c&&(c[0]=0),s=d[0],g=p[0],f&&b&&null==u){y=0;break}if(4>o){y=7;break}if(w&&f||!w&&!f&&!n(e,r[0],"ALPH")){o=[o],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];e:{M=e,y=r,w=o;var A=m.gb;S=m.na,E=m.P,N=m.Sa,I=22,t(null!=M),t(null!=w),C=y[0];var k=w[0];for(t(null!=S),t(null!=N),S[0]=null,E[0]=null,N[0]=0;;){if(y[0]=C,w[0]=k,8>k){y=7;break e}var P=R(M,C+4);if(4294967286<P){y=3;break e}var T=8+P+1&-2;if(I+=T,0<A&&I>A){y=3;break e}if(!n(M,C,"VP8 ")||!n(M,C,"VP8L")){y=0;break e}if(k[0]<T){y=7;break e}n(M,C,"ALPH")||(S[0]=M,E[0]=C+8,N[0]=P),C+=T,k-=T}}if(o=o[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=y)break}o=[o],m.Ja=[m.Ja],m.xa=[m.xa];e:if(A=e,y=r,w=o,S=m.gb[0],E=m.Ja,N=m.xa,M=y[0],C=!n(A,M,"VP8 "),I=!n(A,M,"VP8L"),t(null!=A),t(null!=w),t(null!=E),t(null!=N),8>w[0])y=7;else{if(C||I){if(A=R(A,M+4),12<=S&&A>S-12){y=3;break e}if(h&&A>w[0]-8){y=7;break e}E[0]=A,y[0]+=8,w[0]-=8,N[0]=I}else N[0]=5<=w[0]&&47==A[M+0]&&!(A[M+4]>>5),E[0]=w[0];y=0}if(o=o[0],m.Ja=m.Ja[0],m.xa=m.xa[0],r=r[0],0!=y)break;if(4294967286<m.Ja)return 3;if(null==c||b||(c[0]=m.xa?2:1),s=[s],g=[g],m.xa){if(5>o){y=7;break}c=s,h=g,b=l,null==e||5>o?e=0:5<=o&&47==e[r+0]&&!(e[r+4]>>5)?(w=[0],A=[0],S=[0],v(E=new x,e,r,o),me(E,w,A,S)?(null!=c&&(c[0]=w[0]),null!=h&&(h[0]=A[0]),null!=b&&(b[0]=S[0]),e=1):e=0):e=0}else{if(10>o){y=7;break}c=g,null==e||10>o||!Ye(e,r+3,o-3)?e=0:(h=e[r+0]|e[r+1]<<8|e[r+2]<<16,b=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&h||3<(h>>1&7)||!(h>>4&1)||h>>5>=m.Ja||!b||!e?e=0:(s&&(s[0]=b),c&&(c[0]=e),e=1))}if(!e)return 3;if(s=s[0],g=g[0],f&&(d[0]!=s||p[0]!=g))return 3;null!=u&&(u[0]=m,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-o));break}return 0==y||7==y&&f&&null==u?(null!=l&&(l[0]|=null!=m.na&&0<m.na.length),null!=i&&(i[0]=s),null!=a&&(a[0]=g),0):y}function jn(e,t,n){var r=t.width,o=t.height,i=0,a=0,l=r,s=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(l=e.cd,s=e.bd,i=e.v,a=e.j,11>n||(i&=-2,a&=-2),0>i||0>a||0>=l||0>=s||i+l>r||a+s>o))return 0;if(t.v=i,t.j=a,t.va=i+l,t.o=a+s,t.U=l,t.T=s,t.da=null!=e&&0<e.da,t.da){if(!j(l,s,n=[e.ib],i=[e.hb]))return 0;t.ib=n[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*o/4,t.Kb=0),1}function Fn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Zn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var o=n.cd,a=n.bd,l=-2&n.v,s=-2&n.j;if(0>l||0>s||0>=o||0>=a||l+o>e||s+a>t)return 2;e=o,t=a}if(n.da){if(!j(e,t,o=[n.ib],a=[n.hb]))return 2;e=o[0],t=a[0]}}r.width=e,r.height=t;e:{var c=r.width,u=r.height;if(e=r.S,0>=c||0>=u||!(e>=jr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){l=a=o=t=0;var d=(s=c*$o[e])*u;if(11>e||(a=(u+1)/2*(t=(c+1)/2),12==e&&(l=(o=c)*u)),null==(u=i(d+2*a+l))){e=1;break e}r.sd=u,11>e?((c=r.f.RGBA).eb=u,c.fb=0,c.A=s,c.size=d):((c=r.f.kb).y=u,c.O=0,c.fa=s,c.Fd=d,c.f=u,c.N=0+d,c.Ab=t,c.Cd=a,c.ea=u,c.W=0+d+a,c.Db=t,c.Ed=a,12==e&&(c.F=u,c.J=0+d+2*a),c.Tc=l,c.lb=o)}if(t=1,o=r.S,a=r.width,l=r.height,o>=jr&&13>o)if(11>o)e=r.f.RGBA,t&=(s=Math.abs(e.A))*(l-1)+a<=e.size,t&=s>=a*$o[o],t&=null!=e.eb;else{e=r.f.kb,s=(a+1)/2,d=(l+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var p=Math.abs(e.Db),f=Math.abs(e.lb),h=f*(l-1)+a;t&=c*(l-1)+a<=e.Fd,t&=u*(d-1)+s<=e.Cd,t=(t&=p*(d-1)+s<=e.Ed)&c>=a&u>=s&p>=s,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=f>=a,t&=h<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Fn(r)),e}var zn=64,Bn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Hn=24,$n=32,qn=8,Wn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Z("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return B(B(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return B(e,t[n-1])},e.Predictor7=function(e,t,n){return B(e,t[n+0])},e.Predictor8=function(e,t,n){return B(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return B(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return B(B(e,t[n-1]),B(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=q(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+q(r>>16&255,e>>16&255,t>>16&255)+q(r>>8&255,e>>8&255,t>>8&255)+q(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(H((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|H((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return($((e=B(e,t[n+0]))>>24&255,r>>24&255)<<24|$(e>>16&255,r>>16&255)<<16|$(e>>8&255,r>>8&255)<<8|$(e>>0&255,r>>0&255))>>>0};var Vn=e.PredictorAdd0;e.PredictorAdd1=W,Z("Predictor2","PredictorAdd2"),Z("Predictor3","PredictorAdd3"),Z("Predictor4","PredictorAdd4"),Z("Predictor5","PredictorAdd5"),Z("Predictor6","PredictorAdd6"),Z("Predictor7","PredictorAdd7"),Z("Predictor8","PredictorAdd8"),Z("Predictor9","PredictorAdd9"),Z("Predictor10","PredictorAdd10"),Z("Predictor11","PredictorAdd11"),Z("Predictor12","PredictorAdd12"),Z("Predictor13","PredictorAdd13");var Un=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Gn,Yn=e.ColorIndexInverseTransform,Kn=e.MapARGB,Qn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Jn=e.VP8LPredictorsAdd=[];Jn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var er,tr,nr,rr,or,ir,ar,lr,sr,cr,ur,dr,pr,fr,hr,mr,gr,vr,br,yr,wr,xr,Cr,Sr,Er,Nr,Mr,_n,Ir=i(511),Ar=i(2041),kr=i(225),Pr=i(767),Lr=0,Rr=Ar,Tr=kr,Dr=Pr,Or=Ir,jr=0,Fr=1,_r=2,Zr=3,zr=4,Br=5,Hr=6,$r=7,qr=8,Wr=9,Vr=10,Ur=[2,3,7],Gr=[3,3,11],Yr=[280,256,256,256,40],Kr=[0,1,1,1,0],Qr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Jr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],eo=8,to=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],no=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ro=null,oo=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],io=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ao=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],lo=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],so=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],co=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],uo=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],po=[],fo=[],ho=[],mo=1,go=2,vo=[],bo=[];bn("UpsampleRgbLinePair",En,3),bn("UpsampleBgrLinePair",Nn,3),bn("UpsampleRgbaLinePair",Pn,4),bn("UpsampleBgraLinePair",kn,4),bn("UpsampleArgbLinePair",An,4),bn("UpsampleRgba4444LinePair",In,2),bn("UpsampleRgb565LinePair",Mn,2);var yo=e.UpsampleRgbLinePair,wo=e.UpsampleBgrLinePair,xo=e.UpsampleRgbaLinePair,Co=e.UpsampleBgraLinePair,So=e.UpsampleArgbLinePair,Eo=e.UpsampleRgba4444LinePair,No=e.UpsampleRgb565LinePair,Mo=16,Io=1<<Mo-1,Ao=-227,ko=482,Po=6,Lo=(256<<Po)-1,Ro=0,To=i(256),Do=i(256),Oo=i(256),jo=i(256),Fo=i(ko-Ao),_o=i(ko-Ao);Ln("YuvToRgbRow",En,3),Ln("YuvToBgrRow",Nn,3),Ln("YuvToRgbaRow",Pn,4),Ln("YuvToBgraRow",kn,4),Ln("YuvToArgbRow",An,4),Ln("YuvToRgba4444Row",In,2),Ln("YuvToRgb565Row",Mn,2);var Zo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],zo=[0,2,8],Bo=[8,7,6,4,4,2,2,2,1,1,1,1],Ho=1;this.WebPDecodeRGBA=function(e,n,r,o,i){var a=Fr,l=new nn,s=new ae;l.ba=s,s.S=a,s.width=[s.width],s.height=[s.height];var c=s.width,u=s.height,d=new le;if(null==d||null==e)var p=2;else t(null!=d),p=On(e,n,r,d.width,d.height,d.Pd,d.Qd,d.format,null);if(0!=p?c=0:(null!=c&&(c[0]=d.width[0]),null!=u&&(u[0]=d.height[0]),c=1),c){s.width=s.width[0],s.height=s.height[0],null!=o&&(o[0]=s.width),null!=i&&(i[0]=s.height);e:{if(o=new Ve,(i=new rn).data=e,i.w=n,i.ha=r,i.kd=1,n=[0],t(null!=i),(0==(e=On(i.data,i.w,i.ha,null,null,null,n,null,i))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=l),o.data=i.data,o.w=i.w+i.offset,o.ha=i.ha-i.offset,o.put=fe,o.ac=pe,o.bc=he,o.ma=l,i.xa){if(null==(e=Ae())){l=1;break e}if(function(e,n){var r=[0],o=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,v(e.m,n.data,n.w,n.ha),!me(e.m,r,o,i)){e.a=3;break t}if(e.xb=go,n.width=r[0],n.height=o[0],!ke(r[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(n=Zn(o.width,o.height,l.Oa,l.ba))){t:{o=e;n:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(r=o.l)),t(null!=(i=r.ma)),0!=o.xb){if(o.ca=i.ba,o.tb=i.tb,t(null!=o.ca),!jn(i.Oa,r,Zr)){o.a=2;break n}if(!Pe(o,r.width))break n;if(r.da)break n;if((r.da||re(o.ca.S))&&vn(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&vn()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!T(o.s.vb,o.s.Wa.Xa)){o.a=1;break n}o.xb=0}if(!Me(o,o.V,o.Ba,o.c,o.i,r.o,Ce))break n;i.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(n=e.a)}else n=e.a}else{if(null==(e=new Ue)){l=1;break e}if(e.Fa=i.na,e.P=i.P,e.qc=i.Sa,Ke(e,o)){if(0==(n=Zn(o.width,o.height,l.Oa,l.ba))){if(e.Aa=0,r=l.Oa,t(null!=(i=e)),null!=r){if(0<(c=0>(c=r.Md)?0:100<c?255:255*c/100)){for(u=d=0;4>u;++u)12>(p=i.pb[u]).lc&&(p.ia=c*Bo[0>p.lc?0:p.lc]>>3),d|=p.ia;d&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=r.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}Je(e,o)||(n=e.a)}}else n=e.a}0==n&&null!=l.Oa&&l.Oa.fd&&(n=Fn(l.ba))}l=n}a=0!=l?null:11>a?s.f.RGBA.eb:s.f.kb.y}else a=null;return a};var $o=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function d(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new s;var p=[0],f=[0],h=[],m=new s,g=e,v=function(e,t){var n={},r=0,o=!1,i=0,a=0;if(n.frames=[],!function(e,t,n,r){for(var o=0;o<4;o++)if(e[t+o]!="RIFF".charCodeAt(o))return!0;return!1}(e,t)){var l,s;for(d(e,t+=4),t+=8;t<e.length;){var p=c(e,t),f=d(e,t+=4);t+=4;var h=f+(1&f);switch(p){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=o?a:t-8,v.src_size=i+f+8,r++,o&&(o=!1,i=0,a=0);break;case"VP8X":(v=n.header={}).feature_flags=e[t];var m=t+4;v.canvas_width=1+u(e,m),m+=3,v.canvas_height=1+u(e,m),m+=3;break;case"ALPH":o=!0,i=h+8,a=t-8;break;case"ANIM":(v=n.header).bgcolor=d(e,t),m=t+4,v.loop_count=(l=e)[(s=m)+0]<<0|l[s+1]<<8,m+=2;break;case"ANMF":var g,v;(v=n.frames[r]={}).offset_x=2*u(e,t),t+=3,v.offset_y=2*u(e,t),t+=3,v.width=1+u(e,t),t+=3,v.height=1+u(e,t),t+=3,v.duration=u(e,t),t+=3,g=e[t++],v.dispose=1&g,v.blend=g>>1&1}"ANMF"!=p&&(t+=h)}return n}}(g,0);v.response=g,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,p=[b.canvas_height],f=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],C=m.WebPDecodeRGBA(g,x.src_off,x.src_size,f,p);x.rgba=C,x.imgwidth=f[0],x.imgheight=p[0];for(var S=0;S<f[0]*p[0]*4;S++)h[S]=C[S];return this.width=f,this.height=p,this.data=h,this}!function(e){var t=function(t,r,s,c){var u=4,d=i;switch(c){case e.image_compression.FAST:u=1,d=o;break;case e.image_compression.MEDIUM:u=6,d=a;break;case e.image_compression.SLOW:u=9,d=l}var p=$(t=n(t,r,s,d),{level:u});return e.__addimage__.arrayBufferToBinaryString(p)},n=function(e,t,n,r){for(var o,i,a,l=e.length/t,s=new Uint8Array(e.length+l),d=c(),p=0;p<l;p+=1){if(a=p*t,o=e.subarray(a,a+t),r)s.set(r(o,n,i),a+p);else{for(var f,h=d.length,m=[];f<h;f+=1)m[f]=d[f](o,n,i);var g=u(m.concat());s.set(m[g],a+p)}i=o}return s},r=function(e){var t=Array.apply([],e);return t.unshift(0),t},o=function(e,t){var n,r=[],o=e.length;r[0]=1;for(var i=0;i<o;i+=1)n=e[i-t]||0,r[i+1]=e[i]-n+256&255;return r},i=function(e,t,n){var r,o=[],i=e.length;o[0]=2;for(var a=0;a<i;a+=1)r=n&&n[a]||0,o[a+1]=e[a]-r+256&255;return o},a=function(e,t,n){var r,o,i=[],a=e.length;i[0]=3;for(var l=0;l<a;l+=1)r=e[l-t]||0,o=n&&n[l]||0,i[l+1]=e[l]+256-(r+o>>>1)&255;return i},l=function(e,t,n){var r,o,i,a,l=[],c=e.length;l[0]=4;for(var u=0;u<c;u+=1)r=e[u-t]||0,o=n&&n[u]||0,i=n&&n[u-t]||0,a=s(r,o,i),l[u+1]=e[u]-a+256&255;return l},s=function(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),o=Math.abs(e-n),i=Math.abs(e+t-n-n);return r<=o&&r<=i?e:o<=i?t:n},c=function(){return[r,o,i,a,l]},u=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(n,r,o,i){var a,l,s,c,u,d,p,f,h,m,g,v,b,y,w,x=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(s=new Ft(n)).imgData,l=s.bits,a=s.colorSpace,u=s.colors,-1!==[4,6].indexOf(s.colorType)){if(8===s.bits){h=(f=32==s.pixelBitlength?new Uint32Array(s.decodePixels().buffer):16==s.pixelBitlength?new Uint16Array(s.decodePixels().buffer):new Uint8Array(s.decodePixels().buffer)).length,g=new Uint8Array(h*s.colors),m=new Uint8Array(h);var S,E=s.pixelBitlength-s.bits;for(y=0,w=0;y<h;y++){for(b=f[y],S=0;S<E;)g[w++]=b>>>S&255,S+=s.bits;m[y]=b>>>S&255}}if(16===s.bits){h=(f=new Uint32Array(s.decodePixels().buffer)).length,g=new Uint8Array(h*(32/s.pixelBitlength)*s.colors),m=new Uint8Array(h*(32/s.pixelBitlength)),v=s.colors>1,y=0,w=0;for(var N=0;y<h;)b=f[y++],g[w++]=b>>>0&255,v&&(g[w++]=b>>>16&255,b=f[y++],g[w++]=b>>>0&255),m[N++]=b>>>16&255;l=8}i!==e.image_compression.NONE?(n=t(g,s.width*s.colors,s.colors,i),p=t(m,s.width,1,i)):(n=g,p=m,x=void 0)}if(3===s.colorType&&(a=this.color_spaces.INDEXED,d=s.palette,s.transparency.indexed)){var M=s.transparency.indexed,I=0;for(y=0,h=M.length;y<h;++y)I+=M[y];if((I/=255)==h-1&&-1!==M.indexOf(0))c=[M.indexOf(0)];else if(I!==h){for(f=s.decodePixels(),m=new Uint8Array(f.length),y=0,h=f.length;y<h;y++)m[y]=M[f[y]];p=t(m,s.width,1)}}var A=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(i);return x===this.decode.FLATE_DECODE&&(C="/Predictor "+A+" "),C+="/Colors "+u+" /BitsPerComponent "+l+" /Columns "+s.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:o,data:n,index:r,filter:x,decodeParameters:C,transparency:c,palette:d,sMask:p,predictor:A,width:s.width,height:s.height,bitsPerComponent:l,colorSpace:a}}}}(Ee.API),function(e){e.processGIF89A=function(t,n,r,o){var i=new _t(t),a=i.width,l=i.height,s=[];i.decodeAndBlitFrameRGBA(0,s);var c={data:s,width:a,height:l},u=new zt(100).encode(c,100);return e.processJPEG.call(this,u,n,r,o)},e.processGIF87A=e.processGIF89A}(Ee.API),Bt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:r,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Bt.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){U.log("bit decode error:"+e)}},Bt.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*o*4,l=0;l<8&&8*o+l<this.width;l++){var s=this.palette[i>>7-l&1];this.data[a+4*l]=s.blue,this.data[a+4*l+1]=s.green,this.data[a+4*l+2]=s.red,this.data[a+4*l+3]=255}0!==n&&(this.pos+=4-n)}},Bt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*o*4,l=i>>4,s=15&i,c=this.palette[l];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*o+1>=this.width)break;c=this.palette[s],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},Bt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*r;if(o<this.palette.length){var a=this.palette[o];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},Bt.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,l=(i>>5&t)/t*255|0,s=(i>>10&t)/t*255|0,c=i>>15?255:0,u=r*this.width*4+4*o;this.data[u]=s,this.data[u+1]=l,this.data[u+2]=a,this.data[u+3]=c}this.pos+=e}},Bt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(a&t)/t*255|0,s=(a>>5&n)/n*255|0,c=(a>>11)/t*255|0,u=o*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=l,this.data[u+3]=255}this.pos+=e}},Bt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=i,this.data[a+1]=o,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Bt.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=i,this.data[l+1]=o,this.data[l+2]=r,this.data[l+3]=a}},Bt.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,o){var i=new Bt(t,!1),a=i.width,l=i.height,s={data:i.getData(),width:a,height:l},c=new zt(100).encode(s,100);return e.processJPEG.call(this,c,n,r,o)}}(Ee.API),Ht.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,o){var i=new Ht(t,!1),a=i.width,l=i.height,s={data:i.getData(),width:a,height:l},c=new zt(100).encode(s,100);return e.processJPEG.call(this,c,n,r,o)}}(Ee.API),Ee.API.processRGBA=function(e,t,n){for(var r=e.data,o=r.length,i=new Uint8Array(o/4*3),a=new Uint8Array(o/4),l=0,s=0,c=0;c<o;c+=4){var u=r[c],d=r[c+1],p=r[c+2],f=r[c+3];i[l++]=u,i[l++]=d,i[l++]=p,a[s++]=f}var h=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:h,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ee.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Rt=Ee.API,Tt=Rt.getCharWidthsArray=function(e,t){var n,o,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),l=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,p=!1!==t.doKerning,f=0,h=e.length,m=0,g=s[0]||c,v=[];for(n=0;n<h;n++)o=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(o))+l*(1e3/a)||0)/1e3):(f=p&&"object"===(0,r.Z)(u[o])&&!isNaN(parseInt(u[o][m],10))?u[o][m]/d:0,v.push((s[o]||g)/c+f)),m=o;return v},Dt=Rt.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return Rt.processArabic&&(e=Rt.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,o)/n:Tt.apply(this,arguments).reduce((function(e,t){return e+t}),0)},Ot=function(e,t,n,r){for(var o=[],i=0,a=e.length,l=0;i!==a&&l+t[i]<n;)l+=t[i],i++;o.push(e.slice(0,i));var s=i;for(l=0;i!==a;)l+t[i]>r&&(o.push(e.slice(s,i)),l=0,s=i),l+=t[i],i++;return s!==i&&o.push(e.slice(s,i)),o},jt=function(e,t,n){n||(n={});var r,o,i,a,l,s,c,u=[],d=[u],p=n.textIndent||0,f=0,h=0,m=e.split(" "),g=Tt.apply(this,[" ",n])[0];if(s=-1===n.lineIndent?m[0].length+2:n.lineIndent||0){var v=Array(s).join(" "),b=[];m.map((function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):b.push(e[0])})),m=b,s=Dt.apply(this,[v,n])}for(i=0,a=m.length;i<a;i++){var y=0;if(r=m[i],s&&"\n"==r[0]&&(r=r.substr(1),y=1),p+f+(h=(o=Tt.apply(this,[r,n])).reduce((function(e,t){return e+t}),0))>t||y){if(h>t){for(l=Ot.apply(this,[r,o,t-(p+f),t]),u.push(l.shift()),u=[l.pop()];l.length;)d.push([l.shift()]);h=o.slice(r.length-(u[0]?u[0].length:0)).reduce((function(e,t){return e+t}),0)}else u=[r];d.push(u),p=h+s,f=g}else u.push(r),p+=f+h,f=g}return c=s?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},d.map(c)},Rt.splitTextToSize=function(e,t,n){var r,o=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/o;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,i.lineIndent=n.lineIndent;var l,s,c=[];for(l=0,s=r.length;l<s;l++)c=c.concat(jt.apply(this,[r[l],a,i]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},o={},i=0;i<16;i++)n[t[i]]="0123456789abcdef"[i],o["0123456789abcdef"[i]]=t[i];var a=function(e){return"0x"+parseInt(e,10).toString(16)},l=e.__fontmetrics__.compress=function(e){var t,n,i,s,c=["{"];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?n="'"+u+"'":(u=parseInt(u,10),n=(n=a(u).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof t)t<0?(i=a(t).slice(3),s="-"):(i=a(t).slice(2),s=""),i=s+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==(0,r.Z)(t))throw new Error("Don't know what to do with value type "+(0,r.Z)(t)+".");i=l(t)}c.push(n+i)}return c.push("}"),c.join("")},s=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,o,i,a={},l=1,s=a,c=[],u="",d="",p=e.length-1,f=1;f<p;f+=1)"'"==(i=e[f])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(c.push([s,o]),s={},o=void 0):"}"==i?((r=c.pop())[0][r[1]]=s,o=void 0,s=r[0]):"-"==i?l=-1:void 0===o?n.hasOwnProperty(i)?(u+=n[i],o=parseInt(u,16)*l,l=1,u=""):u+=i:n.hasOwnProperty(i)?(d+=n[i],s[o]=parseInt(d,16)*l,l=1,o=void 0,d=""):d+=i;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=u.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(Ee.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,o=n.font,i=n.instance;if(!o.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(o.postScriptName)?i.loadFile(o.postScriptName):i.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(Q(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(o,r)}}])}(Ee),function(e){function t(){return(W.canvg?Promise.resolve(W.canvg):n.e(820).then(n.bind(n,4820))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e}))}Ee.API.addSvgAsImage=function(e,n,r,o,i,a,l,s){if(isNaN(n)||isNaN(r))throw U.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(i))throw U.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=o,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return t().then((function(t){return t.fromString(u,e,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(d)})).then((function(){p.addImage(c.toDataURL("image/jpeg",1),n,r,o,i,l,s)}))}}(),Ee.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var o=0;o<this.internal.pages[r].length;o++)this.internal.pages[r][o]=this.internal.pages[r][o].replace(t,n);return this},Ee.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var o,i,a,l={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(l),c=[],u=0,d=0,p=0;function f(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var h=s.length;for(p=0;p<h;p+=1)n[s[p]].value=n[s[p]].defaultValue,n[s[p]].explicitSet=!1}if("object"===(0,r.Z)(e))for(i in e)if(a=e[i],f(s,i)&&void 0!==a){if("boolean"===n[i].type&&"boolean"==typeof a)n[i].value=a;else if("name"===n[i].type&&f(n[i].valueSet,a))n[i].value=a;else if("integer"===n[i].type&&Number.isInteger(a))n[i].value=a;else if("array"===n[i].type){for(u=0;u<a.length;u+=1)if(o=!0,1===a[u].length&&"number"==typeof a[u][0])c.push(String(a[u]-1));else if(a[u].length>1){for(d=0;d<a[u].length;d+=1)"number"!=typeof a[u][d]&&(o=!1);!0===o&&c.push([a[u][0]-1,a[u][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+o.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+o+i),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(Ee.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],a=0,l=e.length;a<l;++a){if(n=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(o[4-n.length],n)}return i.join("")},r=function(e){var t,n,r,o,i,a,l;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,l=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;a<l;a++)t=n[a],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+o+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var l=n.metadata.Unicode.widths,s=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var d=i();a({data:c,addLength1:!0,objectId:d}),o("endobj");var p=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:p}),o("endobj");var f=i();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+be(n.fontName)),o("/FontFile2 "+d+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/Flags "+n.metadata.flags),o("/StemV "+n.metadata.stemV),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o(">>"),o("endobj");var h=i();o("<<"),o("/Type /Font"),o("/BaseFont /"+be(n.fontName)),o("/FontDescriptor "+f+" 0 R"),o("/W "+e.API.PDFObject.convert(l)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+n.encoding+")"),o(">>"),o(">>"),o("endobj"),n.objectNumber=i(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+p+" 0 R"),o("/BaseFont /"+be(n.fontName)),o("/Encoding /"+n.encoding),o("/DescendantFonts ["+h+" 0 R]"),o(">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var l=n.metadata.rawData,s="",c=0;c<l.length;c++)s+=String.fromCharCode(l[c]);var u=i();a({data:s,addLength1:!0,objectId:u}),o("endobj");var d=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var p=i();o("<<"),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o("/StemV "+n.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+u+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/FontName /"+be(n.fontName)),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o(">>"),o("endobj"),n.objectNumber=i();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+be(n.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,r=e.text||"",o=e.x,i=e.y,a=e.options||{},l=e.mutex||{},s=l.pdfEscape,c=l.activeFontKey,u=l.fonts,d=c,p="",f=0,h="",m=u[d].encoding;if("Identity-H"!==u[d].encoding)return{text:r,x:o,y:i,options:a,mutex:l};for(h=r,d=c,Array.isArray(r)&&(h=r[0]),f=0;f<h.length;f+=1)u[d].metadata.hasOwnProperty("cmap")&&(t=u[d].metadata.cmap.unicode.codeMap[h[f].charCodeAt(0)]),t||h[f].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty("Unicode")?p+=h[f]:p+="";var g="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===m?g=s(p,d).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===m&&(g=n(p,u[d])),l.isHex=!0,{text:g,x:o,y:i,options:a,mutex:l}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?n.push([o(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):n.push(o(Object.assign({},r,{text:t[i]})).text);e.text=n}else e.text=o(Object.assign({},r,{text:t})).text}])}(Ee),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(Ee.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,o,i,a,l,s,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,v=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),n=t>>8,r=f[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":m.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=b(e.charAt(n))))return!1;if("R"===t)return!0}return!1},w=function(e,t,a,l){var s,c,u,d,p=t[l];switch(p){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(p="AN");break;case"AL":g=!0,p="R";break;case"WS":case"BN":p="N";break;case"CS":l<1||l+1>=t.length||"EN"!==(s=a[l-1])&&"AN"!==s||"EN"!==(c=t[l+1])&&"AN"!==c?p="N":g&&(c="AN"),p=c===s?c:"N";break;case"ES":p="EN"===(s=l>0?a[l-1]:"B")&&l+1<t.length&&"EN"===t[l+1]?"EN":"N";break;case"ET":if(l>0&&"EN"===a[l-1]){p="EN";break}if(g){p="N";break}for(u=l+1,d=t.length;u<d&&"ET"===t[u];)u++;p=u<d&&"EN"===t[u]?"EN":"N";break;case"NSM":if(o&&!i){for(d=t.length,u=l+1;u<d&&"NSM"===t[u];)u++;if(u<d){var f=e[l],h=f>=1425&&f<=2303||64286===f;if(s=t[u],h&&("R"===s||"AL"===s)){p="R";break}}}p=l<1||"B"===(s=t[l-1])?"N":a[l-1];break;case"B":g=!1,n=!0,p=v;break;case"S":r=!0,p="N"}return p},x=function(e,t,n){var r=e.split("");return n&&C(r,n,{hiLevel:v}),r.reverse(),t&&t.reverse(),r.join("")},C=function(e,t,o){var i,a,l,s,c,f=-1,h=e.length,m=0,y=[],x=v?d:u,C=[];for(g=!1,n=!1,r=!1,a=0;a<h;a++)C[a]=b(e[a]);for(l=0;l<h;l++){if(c=m,y[l]=w(e,C,y,l),i=240&(m=x[c][p[y[l]]]),m&=15,t[l]=s=x[m][5],i>0)if(16===i){for(a=f;a<l;a++)t[a]=1;f=-1}else f=-1;if(x[m][6])-1===f&&(f=l);else if(f>-1){for(a=f;a<l;a++)t[a]=s;f=-1}"B"===C[l]&&(t[l]=0),o.hiLevel|=s}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=v;for(var o=r-1;o>=0&&"WS"===e[o];o--)t[o]=v}}(C,t,h)},S=function(e,t,r,o,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!n)return t.reverse(),void(r&&r.reverse());for(var a,l,s,c,u=t.length,d=0;d<u;){if(o[d]>=e){for(s=d+1;s<u&&o[s]>=e;)s++;for(c=d,l=s-1;c<l;c++,l--)a=t[c],t[c]=t[l],t[l]=a,r&&(a=r[c],r[c]=r[l],r[l]=a);d=s}d++}}},E=function(e,t,n){var r=e.split(""),o={hiLevel:v};return n||(n=[]),C(r,n,o),function(e,t,n){if(0!==n.hiLevel&&s)for(var r,o=0;o<e.length;o++)1===t[o]&&(r=h.indexOf(e[o]))>=0&&(e[o]=h[r+1])}(r,n,o),S(2,r,t,n,o),S(1,r,t,n,o),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===i&&(i=y(e)),void 0===l&&(l=y(e))}(e,t),o||!a||l)if(o&&a&&i^l)v=i?1:0,e=x(e,t,n);else if(!o&&a&&l)v=i?1:0,e=E(e,t,n),e=x(e,t);else if(!o||i||a||l){if(o&&!a&&i^l)e=x(e,t),i?(v=0,e=E(e,t,n)):(v=1,e=E(e,t,n),e=x(e,t));else if(o&&i&&!a&&l)v=1,e=E(e,t,n),e=x(e,t);else if(!o&&!a&&i^l){var r=s;i?(v=1,e=E(e,t,n),v=0,s=!1,e=E(e,t,n),s=r):(v=0,e=E(e,t,n),e=x(e,t),v=1,s=!1,e=E(e,t,n),s=r,e=x(e,t))}}else v=0,e=E(e,t,n);else v=i?1:0,e=E(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,a=e.isOutputVisual,i=e.isInputRtl,l=e.isOutputRtl,s=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,r=(e.x,e.y,e.options||{}),o=(e.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(o=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?o.push([n.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):o.push([n.doBidiReorder(t[i])]);e.text=o}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(Ee),Ee.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new qt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new un(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Wt(this.contents),this.head=new Gt(this),this.name=new tn(this),this.cmap=new Kt(this),this.toUnicode={},this.hhea=new Qt(this),this.maxp=new nn(this),this.hmtx=new rn(this),this.post=new Jt(this),this.os2=new Xt(this),this.loca=new cn(this),this.glyf=new an(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,o;for(o=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(t=r>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,o,i,a;for(i=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)r=e.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var $t,qt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,o,i,a,l;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),i=this.readByte(),a=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^i)+256*(255^a)+(255^l)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*o+65536*i+256*a+l},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,o;for(o=[],n=0,r=e.length;n<r;n++)t=e[n],o.push(this.writeByte(t));return o},e}(),Wt=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,o,i,a,l,s,c,u,d,p,f,h;for(h in p=Object.keys(t).length,l=Math.log(2),u=16*Math.floor(Math.log(p)/l),i=Math.floor(u/l),c=16*p-u,(r=new qt).writeInt(this.scalarType),r.writeShort(p),r.writeShort(u),r.writeShort(i),r.writeShort(c),o=16*p,s=r.pos+o,a=null,f=[],t)for(d=t[h],r.writeString(h),r.writeInt(e(d)),r.writeInt(s),r.writeInt(d.length),f=f.concat(d),"head"===h&&(a=s),s+=d.length;s%4;)f.push(0),s++;return r.write(f),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,o;for(e=on.call(e);e.length%4;)e.push(0);for(r=new qt(e),n=0,t=0,o=e.length;t<o;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Vt={}.hasOwnProperty,Ut=function(e,t){for(var n in t)Vt.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};$t=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Gt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new qt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),Yt=function(){function e(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(p=e.readUInt16(),d=p/2,e.pos+=6,o=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,h=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),s=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],l=t=0;0<=d?t<d:t>d;l=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,a=function(){var t,n;for(n=[],l=t=0;0<=r?t<r:t>r;l=0<=r?++t:--t)n.push(e.readUInt16());return n}(),l=g=0,b=o.length;g<b;l=++g)for(m=o[l],n=v=f=h[l];f<=m?v<=m:v>=m;n=f<=m?++v:--v)0===c[l]?i=n+s[l]:0!==(i=a[c[l]/2+(n-f)-(d-l)]||0)&&(i+=s[l]),this.codeMap[n]=65535&i}e.pos=u}return e.encode=function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,w,x,C,S,E,N,M,I,A,k,P,L,R,T,D,O,j,F,_,Z,z,B,H,$,q,W,V,U;switch(k=new qt,i=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(h=0,m=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),v={0:0},o={},P=0,D=i.length;P<D;P++)null==v[q=e[r=i[P]]]&&(v[q]=++h),o[r]={old:e[r],new:v[e[r]]},m[r]=v[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(m),{charMap:o,subtable:k.data,maxGlyphID:h+1};case"unicode":for(I=[],u=[],b=0,v={},n={},g=s=null,L=0,O=i.length;L<O;L++)null==v[w=e[r=i[L]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},a=v[w]-r,null!=g&&a===s||(g&&u.push(g),I.push(r),s=a),g=r;for(g&&u.push(g),u.push(65535),I.push(65535),N=2*(E=I.length),S=2*Math.pow(Math.log(E)/Math.LN2,2),d=Math.log(S/2)/Math.LN2,C=2*E-S,l=[],x=[],p=[],f=R=0,j=I.length;R<j;f=++R){if(M=I[f],c=u[f],65535===M){l.push(0),x.push(0);break}if(M-(A=n[M].new)>=32768)for(l.push(0),x.push(2*(p.length+E-f)),r=T=M;M<=c?T<=c:T>=c;r=M<=c?++T:--T)p.push(n[r].new);else l.push(A-M),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*E+2*p.length),k.writeUInt16(0),k.writeUInt16(N),k.writeUInt16(S),k.writeUInt16(d),k.writeUInt16(C),H=0,F=u.length;H<F;H++)r=u[H],k.writeUInt16(r);for(k.writeUInt16(0),$=0,_=I.length;$<_;$++)r=I[$],k.writeUInt16(r);for(W=0,Z=l.length;W<Z;W++)a=l[W],k.writeUInt16(a);for(V=0,z=x.length;V<z;V++)y=x[V],k.writeUInt16(y);for(U=0,B=p.length;U<B;U++)h=p[U],k.writeUInt16(h);return{charMap:n,subtable:k.data,maxGlyphID:b+1}}},e}(),Kt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new Yt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=Yt.encode(e,t),(r=new qt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),Qt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),Xt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),Jt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="post",t.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(n=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],o=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;o=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},t}(),en=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},tn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="name",t.prototype.parse=function(e){var t,n,r,o,i,a,l,s,c,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),n=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(l={},o=c=0,u=n.length;c<u;o=++c)r=n[o],e.pos=r.offset,s=e.readString(r.length),i=new en(s,r),null==l[d=r.nameID]&&(l[d]=[]),l[r.nameID].push(i);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},t}(),nn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),rn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,n,r,o,i,a,l;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,o;for(o=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)o=n[e],r.push(o.advance);return r}.call(this),n=this.widths[this.widths.length-1],l=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)l.push(this.widths.push(n));return l},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),on=[].slice,an=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,n,r,o,i,a,l,s,c,u;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,n=o.indexOf(e),0===(r=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,i=(a=new qt(t.read(r))).readShort(),s=a.readShort(),u=a.readShort(),l=a.readShort(),c=a.readShort(),this.cache[e]=-1===i?new sn(a,s,u,l,c):new ln(a,i,s,u,l,c),this.cache[e]))},t.prototype.encode=function(e,t,n){var r,o,i,a,l;for(i=[],o=[],a=0,l=t.length;a<l;a++)r=e[t[a]],o.push(i.length),r&&(i=i.concat(r.encode(n)));return o.push(i.length),{table:i,offsets:o}},t}(),ln=function(){function e(e,t,n,r,o,i){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),sn=function(){function e(e,t,n,r,o){var i,a;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;a=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&a;)i.pos+=1&a?4:2,128&a?i.pos+=8:64&a?i.pos+=4:8&a&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new qt(on.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),cn=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ut(t,$t),t.prototype.tag="loca",t.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,o=0,i=0;i<n.length;++i)if(n[i]=r,o<t.length&&t[o]==i){++o,n[i]=r;var a=this.offsets[i],l=this.offsets[i+1]-a;l>0&&(r+=l)}for(var s=new Array(4*n.length),c=0;c<n.length;++c)s[4*c+3]=255&n[c],s[4*c+2]=(65280&n[c])>>8,s[4*c+1]=(16711680&n[c])>>16,s[4*c]=(4278190080&n[c])>>24;return s},t}(),un=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,o;for(t in r=this.font.cmap.tables[0].codeMap,e={},o=this.subset)n=o[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,o,i,a,l;for(r={},i=0,a=e.length;i<a;i++)r[o=e[i]]=this.font.glyf.glyphFor(o);for(o in t=[],r)(null!=(n=r[o])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(o in l=this.glyphsFor(t))n=l[o],r[o]=n;return r},e.prototype.encode=function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g;for(r in n=Kt.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),p={0:0},g=n.charMap)p[(l=g[r]).old]=l.new;for(f in d=n.maxGlyphID,i)f in p||(p[f]=d++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(p),u=Object.keys(c).sort((function(e,t){return e-t})),h=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)a=u[e],n.push(c[a]);return n}(),o=this.font.glyf.encode(i,h,p),s=this.font.loca.encode(o.offsets,h),m={cmap:this.font.cmap.raw(),glyf:o.table,loca:s,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e}();Ee.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,o,i,a;if(Array.isArray(n))return"["+function(){var e,o,i;for(i=[],e=0,o=n.length;e<o;e++)r=n[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(o in i=["<<"],n)a=n[o],i.push("/"+o+" "+t.convert(a));return i.push(">>"),i.join("\n")}return""+n},t}();var dn=Ee},2970:function(e,t,n){e.exports=n(2970)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5251:function(e,t,n){"use strict";var r=n(9196),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},5893:function(e,t,n){"use strict";e.exports=n(5251)},5475:function(e,t,n){"use strict";e.exports=n.p+"images/No-form.e2774f90.gif"},5704:function(e,t,n){"use strict";e.exports=n.p+"images/Settings.4cc21716.gif"},2773:function(e,t,n){"use strict";e.exports=n.p+"images/laptop.2d1f5b9c.png"},9196:function(e){"use strict";e.exports=window.React},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},3961:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.Z=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},9050:function(e,t,n){"use strict";n.r(t),n.d(t,{VERSION:function(){return o},after:function(){return Dt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return De},before:function(){return Ot},bind:function(){return Ct},bindAll:function(){return Nt},chain:function(){return bt},chunk:function(){return Zn},clone:function(){return _e},collect:function(){return Gt},compact:function(){return In},compose:function(){return Tt},constant:function(){return X},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return Pt},default:function(){return qn},defaults:function(){return Oe},defer:function(){return At},delay:function(){return It},detect:function(){return Wt},difference:function(){return kn},drop:function(){return Nn},each:function(){return Ut},escape:function(){return at},every:function(){return en},extend:function(){return Te},extendOwn:function(){return De},filter:function(){return Xt},find:function(){return Wt},findIndex:function(){return Zt},findKey:function(){return Ft},findLastIndex:function(){return zt},findWhere:function(){return Vt},first:function(){return En},flatten:function(){return An},foldl:function(){return Kt},foldr:function(){return Qt},forEach:function(){return Ut},functions:function(){return Le},get:function(){return $e},groupBy:function(){return mn},has:function(){return qe},head:function(){return En},identity:function(){return We},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return $t},initial:function(){return Sn},inject:function(){return Kt},intersection:function(){return Tn},invert:function(){return Pe},invoke:function(){return rn},isArguments:function(){return Y},isArray:function(){return V},isArrayBuffer:function(){return F},isBoolean:function(){return A},isDataView:function(){return W},isDate:function(){return T},isElement:function(){return k},isEmpty:function(){return se},isEqual:function(){return me},isError:function(){return O},isFinite:function(){return K},isFunction:function(){return z},isMap:function(){return Ee},isMatch:function(){return ce},isNaN:function(){return Q},isNull:function(){return M},isNumber:function(){return R},isObject:function(){return N},isRegExp:function(){return D},isSet:function(){return Me},isString:function(){return L},isSymbol:function(){return j},isTypedArray:function(){return oe},isUndefined:function(){return I},isWeakMap:function(){return Ne},isWeakSet:function(){return Ie},iteratee:function(){return Ke},keys:function(){return le},last:function(){return Mn},lastIndexOf:function(){return qt},map:function(){return Gt},mapObject:function(){return Xe},matcher:function(){return Ve},matches:function(){return Ve},max:function(){return ln},memoize:function(){return Mt},methods:function(){return Le},min:function(){return sn},mixin:function(){return Bn},negate:function(){return Rt},noop:function(){return Je},now:function(){return rt},object:function(){return jn},omit:function(){return Cn},once:function(){return jt},pairs:function(){return ke},partial:function(){return xt},partition:function(){return bn},pick:function(){return xn},pluck:function(){return on},property:function(){return Ue},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Kt},reduceRight:function(){return Qt},reject:function(){return Jt},rest:function(){return Nn},restArguments:function(){return E},result:function(){return mt},sample:function(){return dn},select:function(){return Xt},shuffle:function(){return pn},size:function(){return yn},some:function(){return tn},sortBy:function(){return fn},sortedIndex:function(){return Bt},tail:function(){return Nn},take:function(){return En},tap:function(){return Ze},template:function(){return ht},templateSettings:function(){return st},throttle:function(){return kt},times:function(){return tt},toArray:function(){return un},toPath:function(){return ze},transpose:function(){return Dn},unescape:function(){return lt},union:function(){return Rn},uniq:function(){return Ln},unique:function(){return Ln},uniqueId:function(){return vt},unzip:function(){return Dn},values:function(){return Ae},where:function(){return an},without:function(){return Pn},wrap:function(){return Lt},zip:function(){return On}});var r={};n.r(r),n.d(r,{VERSION:function(){return o},after:function(){return Dt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return De},before:function(){return Ot},bind:function(){return Ct},bindAll:function(){return Nt},chain:function(){return bt},chunk:function(){return Zn},clone:function(){return _e},collect:function(){return Gt},compact:function(){return In},compose:function(){return Tt},constant:function(){return X},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return Pt},default:function(){return Hn},defaults:function(){return Oe},defer:function(){return At},delay:function(){return It},detect:function(){return Wt},difference:function(){return kn},drop:function(){return Nn},each:function(){return Ut},escape:function(){return at},every:function(){return en},extend:function(){return Te},extendOwn:function(){return De},filter:function(){return Xt},find:function(){return Wt},findIndex:function(){return Zt},findKey:function(){return Ft},findLastIndex:function(){return zt},findWhere:function(){return Vt},first:function(){return En},flatten:function(){return An},foldl:function(){return Kt},foldr:function(){return Qt},forEach:function(){return Ut},functions:function(){return Le},get:function(){return $e},groupBy:function(){return mn},has:function(){return qe},head:function(){return En},identity:function(){return We},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return $t},initial:function(){return Sn},inject:function(){return Kt},intersection:function(){return Tn},invert:function(){return Pe},invoke:function(){return rn},isArguments:function(){return Y},isArray:function(){return V},isArrayBuffer:function(){return F},isBoolean:function(){return A},isDataView:function(){return W},isDate:function(){return T},isElement:function(){return k},isEmpty:function(){return se},isEqual:function(){return me},isError:function(){return O},isFinite:function(){return K},isFunction:function(){return z},isMap:function(){return Ee},isMatch:function(){return ce},isNaN:function(){return Q},isNull:function(){return M},isNumber:function(){return R},isObject:function(){return N},isRegExp:function(){return D},isSet:function(){return Me},isString:function(){return L},isSymbol:function(){return j},isTypedArray:function(){return oe},isUndefined:function(){return I},isWeakMap:function(){return Ne},isWeakSet:function(){return Ie},iteratee:function(){return Ke},keys:function(){return le},last:function(){return Mn},lastIndexOf:function(){return qt},map:function(){return Gt},mapObject:function(){return Xe},matcher:function(){return Ve},matches:function(){return Ve},max:function(){return ln},memoize:function(){return Mt},methods:function(){return Le},min:function(){return sn},mixin:function(){return Bn},negate:function(){return Rt},noop:function(){return Je},now:function(){return rt},object:function(){return jn},omit:function(){return Cn},once:function(){return jt},pairs:function(){return ke},partial:function(){return xt},partition:function(){return bn},pick:function(){return xn},pluck:function(){return on},property:function(){return Ue},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Kt},reduceRight:function(){return Qt},reject:function(){return Jt},rest:function(){return Nn},restArguments:function(){return E},result:function(){return mt},sample:function(){return dn},select:function(){return Xt},shuffle:function(){return pn},size:function(){return yn},some:function(){return tn},sortBy:function(){return fn},sortedIndex:function(){return Bt},tail:function(){return Nn},take:function(){return En},tap:function(){return Ze},template:function(){return ht},templateSettings:function(){return st},throttle:function(){return kt},times:function(){return tt},toArray:function(){return un},toPath:function(){return ze},transpose:function(){return Dn},unescape:function(){return lt},union:function(){return Rn},uniq:function(){return Ln},unique:function(){return Ln},uniqueId:function(){return vt},unzip:function(){return Dn},values:function(){return Ae},where:function(){return an},without:function(){return Pn},wrap:function(){return Lt},zip:function(){return On}});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,l=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,d=l.toString,p=l.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,b=f&&ArrayBuffer.isView,y=isNaN,w=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function E(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function N(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function M(e){return null===e}function I(e){return void 0===e}function A(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function k(e){return!(!e||1!==e.nodeType)}function P(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}var L=P("String"),R=P("Number"),T=P("Date"),D=P("RegExp"),O=P("Error"),j=P("Symbol"),F=P("ArrayBuffer"),_=P("Function"),Z=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof Z&&(_=function(e){return"function"==typeof e||!1});var z=_,B=P("Object"),H=h&&B(new DataView(new ArrayBuffer(8))),$="undefined"!=typeof Map&&B(new Map),q=P("DataView"),W=H?function(e){return null!=e&&z(e.getInt8)&&F(e.buffer)}:q,V=m||P("Array");function U(e,t){return null!=e&&p.call(e,t)}var G=P("Arguments");!function(){G(arguments)||(G=function(e){return U(e,"callee")})}();var Y=G;function K(e){return!j(e)&&w(e)&&!isNaN(parseFloat(e))}function Q(e){return R(e)&&y(e)}function X(e){return function(){return e}}function J(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=S}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=J(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,oe=f?function(e){return b?b(e)&&!W(e):ne(e)&&re.test(d.call(e))}:X(!1),ie=ee("length");function ae(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=C.length,r=e.constructor,o=z(r)&&r.prototype||l,i="constructor";for(U(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=C[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function le(e){if(!N(e))return[];if(g)return g(e);var t=[];for(var n in e)U(e,n)&&t.push(n);return x&&ae(e,t),t}function se(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(V(e)||L(e)||Y(e))?0===t:0===ie(le(e))}function ce(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=o,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var pe="[object DataView]";function fe(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var o=d.call(e);if(o!==d.call(t))return!1;if(H&&"[object Object]"==o&&W(e)){if(!W(t))return!1;o=pe}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case pe:return he(de(e),de(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,l=t.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),i){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fe(e[c],t[c],n,r))return!1}else{var u,p=le(e);if(c=p.length,le(t).length!==c)return!1;for(;c--;)if(!U(t,u=p[c])||!fe(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return fe(e,t)}function ge(e){if(!N(e))return[];var t=[];for(var n in e)t.push(n);return x&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!z(n[e[o]]))return!1;return e!==Ce||!z(n[be])}}var be="forEach",ye=["clear","delete"],we=["get","has","set"],xe=ye.concat(be,we),Ce=ye.concat(we),Se=["add"].concat(ye,be,"has"),Ee=$?ve(xe):P("Map"),Ne=$?ve(Ce):P("WeakMap"),Me=$?ve(Se):P("Set"),Ie=P("WeakSet");function Ae(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function ke(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Pe(e){for(var t={},n=le(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function Le(e){var t=[];for(var n in e)z(e[n])&&t.push(n);return t.sort()}function Re(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),l=a.length,s=0;s<l;s++){var c=a[s];t&&void 0!==n[c]||(n[c]=i[c])}return n}}var Te=Re(ge),De=Re(le),Oe=Re(ge,!0);function je(e){if(!N(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=je(e);return t&&De(n,t),n}function _e(e){return N(e)?V(e)?e.slice():Te({},e):e}function Ze(e,t){return t(e),e}function ze(e){return V(e)?e:[e]}function Be(e){return ue.toPath(e)}function He(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function $e(e,t,n){var r=He(e,Be(t));return I(r)?n:r}function qe(e,t){for(var n=(t=Be(t)).length,r=0;r<n;r++){var o=t[r];if(!U(e,o))return!1;e=e[o]}return!!n}function We(e){return e}function Ve(e){return e=De({},e),function(t){return ce(t,e)}}function Ue(e){return e=Be(e),function(t){return He(t,e)}}function Ge(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function Ye(e,t,n){return null==e?We:z(e)?Ge(e,t,n):N(e)&&!V(e)?Ve(e):Ue(e)}function Ke(e,t){return Ye(e,t,1/0)}function Qe(e,t,n){return ue.iteratee!==Ke?ue.iteratee(e,t):Ye(e,t,n)}function Xe(e,t,n){t=Qe(t,n);for(var r=le(e),o=r.length,i={},a=0;a<o;a++){var l=r[a];i[l]=t(e[l],l,e)}return i}function Je(){}function et(e){return null==e?Je:function(t){return $e(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=Ge(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=ze,ue.iteratee=Ke;var rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}var it={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},at=ot(it),lt=ot(Pe(it)),st=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function pt(e){return"\\"+ut[e]}var ft=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=Oe({},t,ue.templateSettings);var r=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,a,l){return i+=e.slice(o,l).replace(dt,pt),o=l+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t})),i+="';\n";var a,l=t.variable;if(l){if(!ft.test(l))throw new Error("variable is not a bare identifier: "+l)}else i="with(obj||{}){\n"+i+"}\n",l="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(l,"_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,ue)};return s.source="function("+l+"){\n"+i+"}",s}function mt(e,t,n){var r=(t=Be(t)).length;if(!r)return z(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=z(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function bt(e){var t=ue(e);return t._chain=!0,t}function yt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=je(e.prototype),a=e.apply(i,o);return N(a)?a:i}var wt=E((function(e,t){var n=wt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),l=0;l<i;l++)a[l]=t[l]===n?arguments[o++]:t[l];for(;o<arguments.length;)a.push(arguments[o++]);return yt(e,r,this,this,a)};return r}));wt.placeholder=ue;var xt=wt,Ct=E((function(e,t,n){if(!z(e))throw new TypeError("Bind must be called on a function");var r=E((function(o){return yt(e,r,t,this,n.concat(o))}));return r})),St=J(ie);function Et(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,a=ie(e);i<a;i++){var l=e[i];if(St(l)&&(V(l)||Y(l)))if(t>1)Et(l,t-1,n,r),o=r.length;else for(var s=0,c=l.length;s<c;)r[o++]=l[s++];else n||(r[o++]=l)}return r}var Nt=E((function(e,t){var n=(t=Et(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Ct(e[r],e)}return e}));function Mt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return U(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}var It=E((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),At=xt(It,ue,1);function kt(e,t,n){var r,o,i,a,l=0;n||(n={});var s=function(){l=!1===n.leading?0:rt(),r=null,a=e.apply(o,i),r||(o=i=null)},c=function(){var c=rt();l||!1!==n.leading||(l=c);var u=t-(c-l);return o=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),l=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return c.cancel=function(){clearTimeout(r),l=0,r=o=i=null},c}function Pt(e,t,n){var r,o,i,a,l,s=function(){var c=rt()-o;t>c?r=setTimeout(s,t-c):(r=null,n||(a=e.apply(l,i)),r||(i=l=null))},c=E((function(c){return l=this,i=c,o=rt(),r||(r=setTimeout(s,t),n&&(a=e.apply(l,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=l=null},c}function Lt(e,t){return xt(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Tt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Dt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ot(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var jt=xt(Ot,2);function Ft(e,t,n){t=Qe(t,n);for(var r,o=le(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r}function _t(e){return function(t,n,r){n=Qe(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}var Zt=_t(1),zt=_t(-1);function Bt(e,t,n,r){for(var o=(n=Qe(n,r,1))(t),i=0,a=ie(e);i<a;){var l=Math.floor((i+a)/2);n(e[l])<o?i=l+1:a=l}return i}function Ht(e,t,n){return function(r,o,i){var a=0,l=ie(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+l,a):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(u.call(r,a,l),Q))>=0?i+a:-1;for(i=e>0?a:l-1;i>=0&&i<l;i+=e)if(r[i]===o)return i;return-1}}var $t=Ht(1,Zt,Bt),qt=Ht(-1,zt);function Wt(e,t,n){var r=(St(e)?Zt:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Vt(e,t){return Wt(e,Ve(t))}function Ut(e,t,n){var r,o;if(t=Ge(t,n),St(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=le(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function Gt(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var l=r?r[a]:a;i[a]=t(e[l],l,e)}return i}function Yt(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!St(t)&&le(t),a=(i||t).length,l=e>0?0:a-1;for(o||(r=t[i?i[l]:l],l+=e);l>=0&&l<a;l+=e){var s=i?i[l]:l;r=n(r,t[s],s,t)}return r}(t,Ge(n,o,4),r,i)}}var Kt=Yt(1),Qt=Yt(-1);function Xt(e,t,n){var r=[];return t=Qe(t,n),Ut(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Jt(e,t,n){return Xt(e,Rt(Qe(t)),n)}function en(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function tn(e,t,n){t=Qe(t,n);for(var r=!St(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function nn(e,t,n,r){return St(e)||(e=Ae(e)),("number"!=typeof n||r)&&(n=0),$t(e,t,n)>=0}var rn=E((function(e,t,n){var r,o;return z(t)?o=t:(t=Be(t),r=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=He(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return Gt(e,Ue(t))}function an(e,t){return Xt(e,Ve(t))}function ln(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=St(e)?e:Ae(e)).length;l<s;l++)null!=(r=e[l])&&r>i&&(i=r);else t=Qe(t,n),Ut(e,(function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)}));return i}function sn(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=St(e)?e:Ae(e)).length;l<s;l++)null!=(r=e[l])&&r<i&&(i=r);else t=Qe(t,n),Ut(e,(function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)}));return i}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?V(e)?u.call(e):L(e)?e.match(cn):St(e)?Gt(e,We):Ae(e):[]}function dn(e,t,n){if(null==t||n)return St(e)||(e=Ae(e)),e[nt(e.length-1)];var r=un(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var l=nt(a,i),s=r[a];r[a]=r[l],r[l]=s}return r.slice(0,t)}function pn(e){return dn(e,1/0)}function fn(e,t,n){var r=0;return t=Qe(t,n),on(Gt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Qe(r,o),Ut(n,(function(t,o){var a=r(t,o,n);e(i,t,a)})),i}}var mn=hn((function(e,t,n){U(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){U(e,n)?e[n]++:e[n]=1})),bn=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:St(e)?e.length:le(e).length}function wn(e,t,n){return t in n}var xn=E((function(e,t){var n={},r=t[0];if(null==e)return n;z(r)?(t.length>1&&(r=Ge(r,t[1])),t=ge(e)):(r=wn,t=Et(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],l=e[a];r(l,a,e)&&(n[a]=l)}return n})),Cn=E((function(e,t){var n,r=t[0];return z(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Gt(Et(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),xn(e,r,n)}));function Sn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function En(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Sn(e,e.length-t)}function Nn(e,t,n){return u.call(e,null==t||n?1:t)}function Mn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Nn(e,Math.max(0,e.length-t))}function In(e){return Xt(e,Boolean)}function An(e,t){return Et(e,t,!1)}var kn=E((function(e,t){return t=Et(t,!0,!0),Xt(e,(function(e){return!nn(t,e)}))})),Pn=E((function(e,t){return kn(e,t)}));function Ln(e,t,n,r){A(t)||(r=n,n=t,t=!1),null!=n&&(n=Qe(n,r));for(var o=[],i=[],a=0,l=ie(e);a<l;a++){var s=e[a],c=n?n(s,a,e):s;t&&!n?(a&&i===c||o.push(s),i=c):n?nn(i,c)||(i.push(c),o.push(s)):nn(o,s)||o.push(s)}return o}var Rn=E((function(e){return Ln(Et(e,!0,!0))}));function Tn(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&t.push(i)}}return t}function Dn(e){for(var t=e&&ln(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}var On=E(Dn);function jn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function Zn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(u.call(e,r,r+=t));return n}function zn(e,t){return e._chain?ue(t).chain():t}function Bn(e){return Ut(Le(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),zn(this,n.apply(ue,e))}})),ue}Ut(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),zn(this,n)}})),Ut(["concat","join","slice"],(function(e){var t=a[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),zn(this,e)}}));var Hn=ue,$n=Bn(r);$n._=$n;var qn=$n}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.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 o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},a.d(o,i),o},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="react:",a.l=function(e,t,o,i){if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=e),n[e]=[t];var p=function(t,r){l.onerror=l.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((function(e){return e(r)})),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e}(),function(){var e={826:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,(function(n){if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],l=n[1],s=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);s&&s(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkreact=self.webpackChunkreact||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";var e,t=window.wp.element,n=a(9196),r=a.n(n);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const i="popstate";function l(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 c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,r){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var f;function h(e,t,n){void 0===n&&(n="/");let r=A(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=N(o[e],I(r));return i}function m(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(l(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=R([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),m(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of g(e.path))o(e,t,n);else o(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=g(r.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const v=/^:\w+$/,b=3,y=2,w=1,x=10,C=-2,S=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=C),t&&(r+=y),n.filter((e=>!S(e))).reduce(((e,t)=>e+(v.test(t)?b:""===t?w:x)),r)}function N(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,s="/"===o?t:t.slice(o.length)||"/",c=M({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},s);if(!c)return null;Object.assign(r,c.params);let u=a.route;i.push({params:r,pathname:R([o,c.pathname]),pathnameBase:T(R([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=R([o,c.pathnameBase]))}return i}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const c=l[n];return e[r]=o&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c||"",r),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function I(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(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)||"/"}function k(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 P(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function L(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=p(e):(i=o({},e),l(!i.pathname||!i.pathname.includes("?"),k("?","pathname","search",i)),l(!i.pathname||!i.pathname.includes("#"),k("#","pathname","hash",i)),l(!i.search||!i.search.includes("#"),k("#","search","hash",i)));let a,s=""===e||""===i.pathname,c=s?"/":i.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:i,search:D(r),hash:O(o)}}(i,a),d=c&&"/"!==c&&c.endsWith("/"),f=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const R=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const j=["post","put","patch","delete"],F=(new Set(j),["get",...j]);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const Z=n.createContext(null),z=n.createContext(null),B=n.createContext(null),H=n.createContext(null),$=n.createContext({outlet:null,matches:[],isDataRoute:!1}),q=n.createContext(null);function W(){return null!=n.useContext(H)}function V(){return W()||l(!1),n.useContext(H).location}function U(e){n.useContext(B).static||n.useLayoutEffect(e)}function G(){let{isDataRoute:e}=n.useContext($);return e?function(){let{router:e}=function(e){let t=n.useContext(Z);return t||l(!1),t}(te.UseNavigateStable),t=re(ne.UseNavigateStable),r=n.useRef(!1);return U((()=>{r.current=!0})),n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,_({fromRouteId:t},o)))}),[e,t])}():function(){W()||l(!1);let e=n.useContext(Z),{basename:t,future:r,navigator:o}=n.useContext(B),{matches:i}=n.useContext($),{pathname:a}=V(),s=JSON.stringify(P(i,r.v7_relativeSplatPath)),c=n.useRef(!1);return U((()=>{c.current=!0})),n.useCallback((function(n,r){if(void 0===r&&(r={}),!c.current)return;if("number"==typeof n)return void o.go(n);let i=L(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:R([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[t,o,s,a,e])}()}function Y(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(B),{matches:i}=n.useContext($),{pathname:a}=V(),l=JSON.stringify(P(i,o.v7_relativeSplatPath));return n.useMemo((()=>L(e,JSON.parse(l),a,"path"===r)),[e,l,a,r])}function K(t,r,o,i){W()||l(!1);let{navigator:a}=n.useContext(B),{matches:s}=n.useContext($),c=s[s.length-1],u=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let f,m=V();if(r){var g;let e="string"==typeof r?p(r):r;"/"===d||(null==(g=e.pathname)?void 0:g.startsWith(d))||l(!1),f=e}else f=m;let v=f.pathname||"/",b=h(t,{pathname:"/"===d?v:v.slice(d.length)||"/"}),y=function(e,t,r,o){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,c=null==(i=r)?void 0:i.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,o,i)=>{let a,l=!1,p=null,f=null;var h;r&&(a=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||X,u&&(d<0&&0===i?(oe[h="route-fallback"]||(oe[h]=!0),l=!0,f=null):d===i&&(l=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?p:l?f:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(ee,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(J,{location:r.location,revalidation:r.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:R([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:R([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,i);return r&&y?n.createElement(H.Provider,{value:{location:_({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:e.Pop}},y):y}function Q(){let e=function(){var e;let t=n.useContext(q),r=function(e){let t=n.useContext(z);return t||l(!1),t}(ne.UseRouteError),o=re(ne.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[o]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,null)}const X=n.createElement(Q,null);class J extends n.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){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement($.Provider,{value:this.props.routeContext},n.createElement(q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ee(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(Z);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement($.Provider,{value:t},o)}var te=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(te||{}),ne=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ne||{});function re(e){let t=function(e){let t=n.useContext($);return t||l(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||l(!1),r.route.id}const oe={};function ie(e){l(!1)}function ae(t){let{basename:r="/",children:o=null,location:i,navigationType:a=e.Pop,navigator:s,static:c=!1,future:u}=t;W()&&l(!1);let d=r.replace(/^\/*/,"/"),f=n.useMemo((()=>({basename:d,navigator:s,static:c,future:_({v7_relativeSplatPath:!1},u)})),[d,u,s,c]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:m="",hash:g="",state:v=null,key:b="default"}=i,y=n.useMemo((()=>{let e=A(h,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:b},navigationType:a}}),[d,h,m,g,v,b,a]);return null==y?null:n.createElement(B.Provider,{value:f},n.createElement(H.Provider,{children:o,value:y}))}function le(e){let{children:t,location:n}=e;return K(se(t),n)}function se(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,o)=>{if(!n.isValidElement(e))return;let i=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,se(e.props.children,i));e.type!==ie&&l(!1),e.props.index&&e.props.children&&l(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=se(e.props.children,i)),r.push(a)})),r}function ce(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ce(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}n.startTransition,new Promise((()=>{})),n.Component;var ue=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ce(e))&&(r&&(r+=" "),r+=t);return r};const de=e=>"number"==typeof e&&!isNaN(e),pe=e=>"string"==typeof e,fe=e=>"function"==typeof e,he=e=>pe(e)||fe(e)?e:null,me=e=>(0,n.isValidElement)(e)||pe(e)||fe(e)||de(e);function ge(e){let{enter:t,exit:r,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:l,position:s,preventExitTransition:c,done:u,nodeRef:d,isIn:p}=e;const f=o?`${t}--${s}`:t,h=o?`${r}--${s}`:r,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,n.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,a):u()};p||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),n.createElement(n.Fragment,null,l)}}function ve(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const be={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},ye=e=>{let{theme:t,type:r,...o}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...o})},we={info:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(ye,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function xe(e){const[,t]=(0,n.useReducer)((e=>e+1),0),[r,o]=(0,n.useState)([]),i=(0,n.useRef)(null),a=(0,n.useRef)(new Map).current,l=e=>-1!==r.indexOf(e),s=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:e=>a.get(e)}).current;function c(e){let{containerId:t}=e;const{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function u(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function d(){const{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();f(e,t,n)}function p(e,r){let{delay:o,staleId:l,...c}=r;if(!me(e)||function(e){return!i.current||s.props.enableMultiContainer&&e.containerId!==s.props.containerId||a.has(e.toastId)&&null==e.updateId}(c))return;const{toastId:p,updateId:h,data:m}=c,{props:g}=s,v=()=>u(p),b=null==h;b&&s.count++;const y={...g,style:g.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(c).filter((e=>{let[t,n]=e;return null!=n}))),toastId:p,updateId:h,data:m,closeToast:v,isIn:!1,className:he(c.className||g.toastClassName),bodyClassName:he(c.bodyClassName||g.bodyClassName),progressClassName:he(c.progressClassName||g.progressClassName),autoClose:!c.isLoading&&(w=c.autoClose,x=g.autoClose,!1===w||de(w)&&w>0?w:x),deleteToast(){const e=ve(a.get(p),"removed");a.delete(p),be.emit(4,e);const n=s.queue.length;if(s.count=null==p?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),n>0){const e=null==p?s.props.limit:1;if(1===n||1===e)s.displayedToast++,d();else{const t=e>n?n:e;s.displayedToast=t;for(let e=0;e<t;e++)d()}}else t()}};var w,x;y.iconOut=function(e){let{theme:t,type:r,isLoading:o,icon:i}=e,a=null;const l={theme:t,type:r};return!1===i||(fe(i)?a=i(l):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,l):pe(i)||de(i)?a=i:o?a=we.spinner():(e=>e in we)(r)&&(a=we[r](l))),a}(y),fe(c.onOpen)&&(y.onOpen=c.onOpen),fe(c.onClose)&&(y.onClose=c.onClose),y.closeButton=g.closeButton,!1===c.closeButton||me(c.closeButton)?y.closeButton=c.closeButton:!0===c.closeButton&&(y.closeButton=!me(g.closeButton)||g.closeButton);let C=e;(0,n.isValidElement)(e)&&!pe(e.type)?C=(0,n.cloneElement)(e,{closeToast:v,toastProps:y,data:m}):fe(e)&&(C=e({closeToast:v,toastProps:y,data:m})),g.limit&&g.limit>0&&s.count>g.limit&&b?s.queue.push({toastContent:C,toastProps:y,staleId:l}):de(o)?setTimeout((()=>{f(C,y,l)}),o):f(C,y,l)}function f(e,t,n){const{toastId:r}=t;n&&a.delete(n);const i={content:e,props:t};a.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),be.emit(4,ve(i,null==i.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(s.containerId=e.containerId,be.cancelEmit(3).on(0,p).on(1,(e=>i.current&&u(e))).on(5,c).emit(2,s),()=>{a.clear(),be.emit(3,s)})),[]),(0,n.useEffect)((()=>{s.props=e,s.isToastActive=l,s.displayedToast=r.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:l}}function Ce(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Se(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ee(e){const[t,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(!1),a=(0,n.useRef)(null),l=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,n.useRef)(e),{autoClose:c,pauseOnHover:u,closeToast:d,onClick:p,closeOnClick:f}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.addEventListener("touchmove",b),document.addEventListener("touchend",y);const n=a.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=Ce(t.nativeEvent),l.y=Se(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(l.boundingRect){const{top:n,bottom:r,left:o,right:i}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=o&&l.x<=i&&l.y>=n&&l.y<=r?v():g()}}function g(){r(!0)}function v(){r(!1)}function b(n){const r=a.current;l.canDrag&&r&&(l.didMove=!0,t&&v(),l.x=Ce(n),l.y=Se(n),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function y(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",y);const t=a.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{s.current=e})),(0,n.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),fe(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=s.current;fe(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m};return c&&u&&(w.onMouseEnter=v,w.onMouseLeave=g),f&&(w.onClick=e=>{p&&p(e),l.canCloseOnClick&&d()}),{playToast:g,pauseToast:v,isRunning:t,preventExitTransition:o,toastRef:a,eventHandlers:w}}function Ne(e){let{closeToast:t,theme:r,ariaLabel:o="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Me(e){let{delay:t,isRunning:r,closeToast:o,type:i="default",hide:a,className:l,style:s,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:f}=e;const h=a||c&&0===u,m={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:h?0:1};c&&(m.transform=`scaleX(${u})`);const g=ue("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),v=fe(l)?l({rtl:d,type:i,defaultClassName:g}):ue(g,l);return n.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:v,style:m,[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&o()}})}const Ie=e=>{const{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:i}=Ee(e),{closeButton:a,children:l,autoClose:s,onClick:c,type:u,hideProgressBar:d,closeToast:p,transition:f,position:h,className:m,style:g,bodyClassName:v,bodyStyle:b,progressClassName:y,progressStyle:w,updateId:x,role:C,progress:S,rtl:E,toastId:N,deleteToast:M,isIn:I,isLoading:A,iconOut:k,closeOnClick:P,theme:L}=e,R=ue("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":P}),T=fe(m)?m({rtl:E,position:h,type:u,defaultClassName:R}):ue(R,m),D=!!S||!s,O={closeToast:p,type:u,theme:L};let j=null;return!1===a||(j=fe(a)?a(O):(0,n.isValidElement)(a)?(0,n.cloneElement)(a,O):Ne(O)),n.createElement(f,{isIn:I,done:M,position:h,preventExitTransition:r,nodeRef:o},n.createElement("div",{id:N,onClick:c,className:T,...i,style:g,ref:o},n.createElement("div",{...I&&{role:C},className:fe(v)?v({type:u}):ue("Toastify__toast-body",v),style:b},null!=k&&n.createElement("div",{className:ue("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},k),n.createElement("div",null,l)),j,n.createElement(Me,{...x&&!D?{key:`pb-${x}`}:{},rtl:E,theme:L,delay:s,isRunning:t,isIn:I,closeToast:p,hide:d,type:u,style:w,className:y,controlledProgress:D,progress:S||0})))},Ae=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},ke=ge(Ae("bounce",!0)),Pe=(ge(Ae("slide",!0)),ge(Ae("zoom")),ge(Ae("flip")),(0,n.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:o,isToastActive:i}=xe(e),{className:a,style:l,rtl:s,containerId:c}=e;function u(e){const t=ue("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":s});return fe(a)?a({position:e,rtl:s,defaultClassName:t}):ue(t,he(a))}return(0,n.useEffect)((()=>{t&&(t.current=o.current)}),[]),n.createElement("div",{ref:o,className:"Toastify",id:c},r(((e,t)=>{const r=t.length?{...l}:{...l,pointerEvents:"none"};return n.createElement("div",{className:u(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:o,props:a}=e;return n.createElement(Ie,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":r+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))})));Pe.displayName="ToastContainer",Pe.defaultProps={position:"top-right",transition:ke,autoClose:5e3,closeButton:Ne,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Le,Re=new Map,Te=[],De=1;function Oe(){return""+De++}function je(e){return e&&(pe(e.toastId)||de(e.toastId))?e.toastId:Oe()}function Fe(e,t){return Re.size>0?be.emit(0,e,t):Te.push({content:e,options:t}),t.toastId}function _e(e,t){return{...t,type:t&&t.type||e,toastId:je(t)}}function Ze(e){return(t,n)=>Fe(t,_e(e,n))}function ze(e,t){return Fe(e,_e("default",t))}ze.loading=(e,t)=>Fe(e,_e("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ze.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=pe(o)?ze.loading(o,n):ze.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,o)=>{if(null==t)return void ze.dismiss(r);const i={type:e,...l,...n,data:o},a=pe(t)?{render:t}:t;return r?ze.update(r,{...i,...a}):ze(a.render,{...i,...a}),o},c=fe(e)?e():e;return c.then((e=>s("success",a,e))).catch((e=>s("error",i,e))),c},ze.success=Ze("success"),ze.info=Ze("info"),ze.error=Ze("error"),ze.warning=Ze("warning"),ze.warn=ze.warning,ze.dark=(e,t)=>Fe(e,_e("default",{theme:"dark",...t})),ze.dismiss=e=>{Re.size>0?be.emit(1,e):Te=Te.filter((t=>null!=e&&t.options.toastId!==e))},ze.clearWaitingQueue=function(e){return void 0===e&&(e={}),be.emit(5,e)},ze.isActive=e=>{let t=!1;return Re.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},ze.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=Re.get(n||Le);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Oe()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Fe(a,i)}}),0)},ze.done=e=>{ze.update(e,{progress:1})},ze.onChange=e=>(be.on(4,e),()=>{be.off(4,e)}),ze.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ze.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},be.on(2,(e=>{Le=e.containerId||e,Re.set(Le,e),Te.forEach((e=>{be.emit(0,e.content,e.options)})),Te=[]})).on(3,(e=>{Re.delete(e.containerId||e),0===Re.size&&be.off(0).off(1).off(5)}));var Be=({firstXs:e,lastXs:n,firstSm:r,lastSm:o,firstMd:i,lastMd:a,firstLg:l,lastLg:s,firstXl:c,lastXl:u,xsOffset:d,smOffset:p,mdOffset:f,lgOffset:h,xlOffset:m,xs:g,sm:v,md:b,lg:y,xl:w,textXs:x,textSm:C,textMd:S,textLg:E,textXl:N,alignSelf:M,customClass:I,children:A})=>(0,t.createElement)("div",{className:`${(()=>{let t="simpleform-col";return t+=e?" first-xs":n?" last-xs":"",t+=r?" first-sm":o?" last-sm":"",t+=i?" first-md":a?" last-md":"",t+=l?" first-lg":s?" last-lg":"",t+=c?" first-xl":u?" last-xl":"",t+=d?" col-xs-offset-"+d:"",t+=p?" col-sm-offset-"+p:"",t+=f?" col-md-offset-"+f:"",t+=h?" col-lg-offset-"+h:"",t+=m?" col-xl-offset-"+m:"",t+=g?" col-xs-"+g:"",t+=v?" col-sm-"+v:"",t+=b?" col-md-"+b:"",t+=y?" col-lg-"+y:"",t+=w?" col-xl-"+w:"",t+=x?" text-xs-"+x:"",t+=C?" text-sm-"+C:"",t+=S?" text-md-"+S:"",t+=E?" text-lg-"+E:"",t+=N?" text-xl-"+N:"",t+=M?" align-self-"+M:"",t})()} ${I||""}`},A),He=({fluid:e,hero:n,fullWidth:r,small:o,children:i})=>(0,t.createElement)("div",{className:(()=>{let t=e?"simpleform-container-fluid ":"simpleform-container ";return t+=n?"simpleform-hero ":"",t+=r?"full-width ":"",t+=o?"small ":"",t})()},i),$e=({reverse:e,startXs:n,centerXs:r,endXs:o,topXs:i,middleXs:a,bottomXs:l,aroundXs:s,betweenXs:c,startSm:u,centerSm:d,endSm:p,topSm:f,middleSm:h,bottomSm:m,aroundSm:g,betweenSm:v,startMd:b,centerMd:y,endMd:w,topMd:x,middleMd:C,bottomMd:S,aroundMd:E,betweenMd:N,startLg:M,centerLg:I,endLg:A,topLg:k,middleLg:P,bottomLg:L,aroundLg:R,betweenLg:T,customClass:D,children:O})=>(0,t.createElement)("div",{className:`${(()=>{let t=e?"simpleform-row reverse":"simpleform-row ";return t+=n?" start-xs":r?" center-xs":o?" end-xs":"",t+=u?" start-sm":d?" center-sm":p?" end-sm":"",t+=b?" start-md":y?" center-md":w?" end-md":"",t+=M?" start-lg":I?" center-lg":A?" end-lg":"",t+=i?" top-xs":a?" middle-xs":l?" bottom-xs":"",t+=f?" top-sm":h?" middle-sm":m?" bottom-sm":"",t+=x?" top-md":C?" middle-md":S?" bottom-md":"",t+=k?" top-lg":P?" middle-lg":L?" bottom-lg":"",t+=s?" around-xs":c?" between-xs":"",t+=g?" around-sm":v?" between-sm":"",t+=E?" around-md":N?" between-md":"",t+=R?" around-lg":T?" between-lg":"",t})()} ${D||""}`},O),qe=window.ReactDOM,We=a.n(qe);function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ve.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];new Map;const Ge=n.startTransition;qe.flushSync;const Ye="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=n.forwardRef((function(e,t){let r,{onClick:o,relative:i,reloadDocument:a,replace:s,state:c,target:u,to:p,preventScrollReset:f,unstable_viewTransition:h}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Ue),{basename:g}=n.useContext(B),v=!1;if("string"==typeof p&&Ke.test(p)&&(r=p,Ye))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),n=A(t.pathname,g);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:v=!0}catch(e){}let b=function(e,t){let{relative:r}=void 0===t?{}:t;W()||l(!1);let{basename:o,navigator:i}=n.useContext(B),{hash:a,pathname:s,search:c}=Y(e,{relative:r}),u=s;return"/"!==o&&(u="/"===s?o:R([o,s])),i.createHref({pathname:u,search:c,hash:a})}(p,{relative:i}),y=function(e,t){let{target:r,replace:o,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s}=void 0===t?{}:t,c=G(),u=V(),p=Y(e,{relative:l});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:d(u)===d(p);c(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s})}}),[u,c,p,o,i,r,e,a,l,s])}(p,{replace:s,state:c,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});return n.createElement("a",Ve({},m,{href:r||b,onClick:v||a?o:function(e){o&&o(e),e.defaultPrevented||y(e)},ref:t,target:u}))}));var Xe,Je;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xe||(Xe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Je||(Je={}));var et=({colored:e,children:n,customClass:r})=>{let o="simpleform-card";return e&&(o+=" colored-bg"),r&&(o+=" "+r),(0,t.createElement)("div",{className:o},n)};const tt=Object.assign({},window.SIMPLEFORM_APP);function nt(){return tt.nonce}function rt(){return tt.isPro}function ot(){return tt.turnsTile}function it(){return tt.tables}var at=a(940),lt=a(3592),st=a(3591),ct=a(6907),ut=({tagName:e,children:n})=>{const r=()=>`simpleform-title ${e||""}`;return e?"h1"===e?(0,t.createElement)("h1",{className:`${r()}`},n):"h2"===e?(0,t.createElement)("h2",{className:`${r()}`},n):"h3"===e?(0,t.createElement)("h3",{className:`${r()}`},n):"h4"===e?(0,t.createElement)("h4",{className:`${r()}`},n):(0,t.createElement)("p",{className:`${r()}`},n):(0,t.createElement)("h1",{className:`${r()}`},n)},dt=a(594),pt=({onClose:e,children:n})=>(0,qe.createPortal)((0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"modal-overlay"}),(0,t.createElement)("div",{className:"modal-content"},(0,t.createElement)("div",null,(0,t.createElement)("button",{className:"modal-close",onClick:e},(0,t.createElement)(dt.Z,null)),(0,t.createElement)("div",{className:"modal-body"},n)))),document.getElementById("simpleform-app-portal")),ft=function({table:e,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}){const l=(0,n.useRef)(),[s,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),p=()=>{d(!1)};function f(e){l.current&&!l.current.contains(e.target)&&p()}return(0,n.useEffect)((()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)})),[f]),(0,t.createElement)("div",{className:"table_info-action_box_wrapper"},u&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"delete-table-modal-wrap modal-content",ref:l},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>p()},(0,t.createElement)(lt.Z,{className:"scf-delete-btn"})),(0,t.createElement)("div",{className:"delete-table-modal"},(0,t.createElement)("div",{className:"modal-media"},(0,t.createElement)(st.Z,{fontSize:"large",htmlColor:"secondary",className:"scf-form-delete"})),(0,t.createElement)("h2",null,"Are you sure to delete the Form? "),(0,t.createElement)("div",{className:"action-buttons"},(0,t.createElement)("button",{className:"simpleform-button cancel-button",onClick:p},"Cancel"),(0,t.createElement)("button",{className:"simpleform-button confirm-button",onClick:()=>{return t=e.id,void wp.ajax.send("simpleform_delete_table",{data:{nonce:nt(),id:t},success(){d(!1),a(!0),wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success({tables:e,tables_count:t}){i(e),r(e),o(t),a(!1)},error(e){console.error(e)}})},error(e){console.error(e)}});var t}},"Delete"))))),(0,t.createElement)("div",{className:"table_info-action_box"},(0,t.createElement)("div",{className:"table-info-box"},(0,t.createElement)("div",{className:"table-info"},(0,t.createElement)(Qe,{to:`/edit/${e.id}`,className:"table-edit"},(0,t.createElement)(ut,{tagName:"h4"},e.form_name)),(0,t.createElement)(ut,{tagName:"p"},"Form ID : ",e.id))),(0,t.createElement)("div",{className:"table-action-box"},(0,t.createElement)("button",{className:"copy-shortcode btn-shortcode "+(s?"btn-success":""),onClick:()=>(async e=>{const t=`[simple_form id="${e}"]`;try{await navigator.clipboard.writeText(t),c(!0),setTimeout((()=>{c(!1)}),1e3)}catch(e){c(!1)}})(e.id)},s?(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.6 0H5.6C4.8279 0 4.2 0.6279 4.2 1.4V4.2H1.4C0.6279 4.2 0 4.8279 0 5.6V12.6C0 13.3721 0.6279 14 1.4 14H8.4C9.1721 14 9.8 13.3721 9.8 12.6V9.8H12.6C13.3721 9.8 14 9.1721 14 8.4V1.4C14 0.6279 13.3721 0 12.6 0ZM1.4 12.6V5.6H8.4L8.4014 12.6H1.4ZM12.6 8.4H9.8V5.6C9.8 4.8279 9.1721 4.2 8.4 4.2H5.6V1.4H12.6V8.4Z",fill:"#FF7E47"})):(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.6 0H5.6C4.8279 0 4.2 0.6279 4.2 1.4V4.2H1.4C0.6279 4.2 0 4.8279 0 5.6V12.6C0 13.3721 0.6279 14 1.4 14H8.4C9.1721 14 9.8 13.3721 9.8 12.6V9.8H12.6C13.3721 9.8 14 9.1721 14 8.4V1.4C14 0.6279 13.3721 0 12.6 0ZM1.4 12.6V5.6H8.4L8.4014 12.6H1.4ZM12.6 8.4H9.8V5.6C9.8 4.8279 9.1721 4.2 8.4 4.2H5.6V1.4H12.6V8.4Z",fill:"#1E1E1E"})),"Copy Shortcode"),(0,t.createElement)(Qe,{to:`/edit/${e.id}`,className:"table-edit"},(0,t.createElement)(at.Z,{className:"sf-edit-form"})),(0,t.createElement)("button",{className:"table-delete",onClick:()=>{d(!0)}},(0,t.createElement)(ct.Z,{className:"scf-delete-btn"})))))},ht=function({copiedTables:e,tables:n,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}){return(0,t.createElement)(et,{customClass:"table-item-card"},n&&n.map((e=>(0,t.createElement)(ft,{key:e.id,table:e,setCopiedTables:r,setTableCount:o,setTables:i,setLoader:a}))))};const mt=a(5475);var gt=function(){const[e,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(it()),[a,l]=(0,n.useState)(it()),[s,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(0);return(0,n.useEffect)((()=>{r(!0),wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){i(e.tables),l(e.tables),d(e.tables_count),r(!1)},error(e){console.error(e)}})}),[]),(0,n.useEffect)((()=>{if(""!==s){const e=o.filter((({form_name:e})=>e.toLowerCase().includes(s.toString().toLowerCase())));l(e)}else l(o)}),[s]),(0,t.createElement)(t.Fragment,null,o.length<1?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"no-tables-created-intro text-center"},(0,t.createElement)("div",{className:"no-tables-intro-img"},(0,t.createElement)("img",{style:{width:"42vh",height:"40vh"},src:mt,alt:"Cloud Icon"})),(0,t.createElement)("h2",null,"Please create one"),(0,t.createElement)(Qe,{className:"btn btn-lg",to:"/create-form"},"Add Form"),(0,t.createElement)("p",{className:"help"},"Need help? ",(0,t.createElement)("a",{href:"https://youtu.be/1PnGVuAqIxk",target:"_blank"},"Watch Now")))):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"table-header"},(0,t.createElement)("div",{className:"table-search-box"},(0,t.createElement)("input",{type:"text",placeholder:"Search tables",onChange:e=>c(e.target.value.trim())}),(0,t.createElement)("div",{className:"table-create-form"},(0,t.createElement)(Qe,{className:"create-table btn btn-md",to:"/create-form"},"Create form")))),e?(0,t.createElement)(et,null,(0,t.createElement)("h1",null,"Loading...")):(0,t.createElement)("div",null,(0,t.createElement)(ht,{tables:a,copiedTables:a,setCopiedTables:l,setTables:i,setTableCount:d,setLoader:r}))))};function vt(e,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vt(e,t)}function bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vt(e,t)}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(this,arguments)}function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function xt(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wt(t)?t:String(t)}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=xt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Nt="function"==typeof Symbol&&Symbol.observable||"@@observable",Mt=function(){return Math.random().toString(36).substring(7).split("").join(".")},It={INIT:"@@redux/INIT"+Mt(),REPLACE:"@@redux/REPLACE"+Mt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mt()}};function At(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Et(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Et(1));return n(At)(e,t)}if("function"!=typeof e)throw new Error(Et(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function u(){if(s)throw new Error(Et(3));return i}function d(e){if("function"!=typeof e)throw new Error(Et(4));if(s)throw new Error(Et(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(Et(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Et(7));if(void 0===e.type)throw new Error(Et(8));if(s)throw new Error(Et(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:It.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Et(10));o=e,p({type:It.REPLACE})}})[Nt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Et(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Nt]=function(){return this},e},r}function kt(e,t){return function(){return t(e.apply(this,arguments))}}function Pt(e,t){if("function"==typeof e)return kt(e,t);if("object"!=typeof e||null===e)throw new Error(Et(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=kt(o,t))}return n}function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Rt=r().createContext(null),Tt=function(e){e()},Dt=function(){return Tt},Ot={notify:function(){},get:function(){return[]}};function jt(e,t){var n,r=Ot;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=Dt(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Ot)},getListeners:function(){return r}};return a}var Ft="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,_t=function(e){var t=e.store,o=e.context,i=e.children,a=(0,n.useMemo)((function(){var e=jt(t);return{store:t,subscription:e}}),[t]),l=(0,n.useMemo)((function(){return t.getState()}),[t]);Ft((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var s=o||Rt;return r().createElement(s.Provider,{value:a},i)};function Zt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var zt=a(5839),Bt=a.n(zt),Ht=a(3910),$t=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],qt=["reactReduxForwardedRef"],Wt=[],Vt=[null,null];function Ut(e,t){var n=e[1];return[t.payload,n+1]}function Gt(e,t,n){Ft((function(){return e.apply(void 0,t)}),n)}function Yt(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Kt(e,t,n,r,o,i,a,l,s,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var Qt=function(){return[null,0]};function Xt(e,t){void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=o.methodName,s=void 0===l?"connectAdvanced":l,c=o.renderCountProp,u=void 0===c?void 0:c,d=o.shouldHandleStateChanges,p=void 0===d||d,f=o.storeKey,h=void 0===f?"store":f,m=(o.withRef,o.forwardRef),g=void 0!==m&&m,v=o.context,b=void 0===v?Rt:v,y=Zt(o,$t),w=b;return function(t){var o=t.displayName||t.name||"Component",i=a(o),l=yt({},y,{getDisplayName:a,methodName:s,renderCountProp:u,shouldHandleStateChanges:p,storeKey:h,displayName:i,wrappedComponentName:o,WrappedComponent:t}),c=y.pure,d=c?n.useMemo:function(e){return e()};function f(o){var i=(0,n.useMemo)((function(){var e=o.reactReduxForwardedRef,t=Zt(o,qt);return[o.context,e,t]}),[o]),a=i[0],s=i[1],c=i[2],u=(0,n.useMemo)((function(){return a&&a.Consumer&&(0,Ht.isContextConsumer)(r().createElement(a.Consumer,null))?a:w}),[a,w]),f=(0,n.useContext)(u),h=Boolean(o.store)&&Boolean(o.store.getState)&&Boolean(o.store.dispatch);Boolean(f)&&Boolean(f.store);var m=h?o.store:f.store,g=(0,n.useMemo)((function(){return function(t){return e(t.dispatch,l)}(m)}),[m]),v=(0,n.useMemo)((function(){if(!p)return Vt;var e=jt(m,h?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,h,f]),b=v[0],y=v[1],x=(0,n.useMemo)((function(){return h?f:yt({},f,{subscription:b})}),[h,f,b]),C=(0,n.useReducer)(Ut,Wt,Qt),S=C[0][0],E=C[1];if(S&&S.error)throw S.error;var N=(0,n.useRef)(),M=(0,n.useRef)(c),I=(0,n.useRef)(),A=(0,n.useRef)(!1),k=d((function(){return I.current&&c===M.current?I.current:g(m.getState(),c)}),[m,S,c]);Gt(Yt,[M,N,A,c,k,I,y]),Gt(Kt,[p,m,b,g,M,N,A,I,y,E],[m,b,g]);var P=(0,n.useMemo)((function(){return r().createElement(t,yt({},k,{ref:s}))}),[s,t,k]);return(0,n.useMemo)((function(){return p?r().createElement(u.Provider,{value:x},P):P}),[u,P,x])}var m=c?r().memo(f):f;if(m.WrappedComponent=t,m.displayName=f.displayName=i,g){var v=r().forwardRef((function(e,t){return r().createElement(m,yt({},e,{reactReduxForwardedRef:t}))}));return v.displayName=i,v.WrappedComponent=t,Bt()(v,t)}return Bt()(m,t)}}function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(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(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Jt(e[n[o]],t[n[o]]))return!1;return!0}function tn(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function nn(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function rn(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=nn(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=nn(o),o=r(t,n)),o},r}}var on=[function(e){return"function"==typeof e?rn(e):void 0},function(e){return e?void 0:tn((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?tn((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],an=[function(e){return"function"==typeof e?rn(e):void 0},function(e){return e?void 0:tn((function(){return{}}))}];function ln(e,t,n){return yt({},n,e,t)}var sn=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return ln}}],cn=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function un(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function dn(e,t,n,r,o){var i,a,l,s,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;return function(o,h){return f?function(o,f){var h,m,g=!d(f,a),v=!u(o,i,f,a);return i=o,a=f,g&&v?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),c=n(l,s,a)):g?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),c=n(l,s,a)):v?(h=e(i,a),m=!p(h,l),l=h,m&&(c=n(l,s,a)),c):c}(o,h):(l=e(i=o,a=h),s=t(r,a),c=n(l,s,a),f=!0,c)}}function pn(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Zt(t,cn),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?dn:un)(a,l,s,e,i)}var fn=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function hn(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function mn(e,t){return e===t}function gn(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Xt:n,o=t.mapStateToPropsFactories,i=void 0===o?an:o,a=t.mapDispatchToPropsFactories,l=void 0===a?on:a,s=t.mergePropsFactories,c=void 0===s?sn:s,u=t.selectorFactory,d=void 0===u?pn:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,u=void 0===s||s,p=a.areStatesEqual,f=void 0===p?mn:p,h=a.areOwnPropsEqual,m=void 0===h?en:h,g=a.areStatePropsEqual,v=void 0===g?en:g,b=a.areMergedPropsEqual,y=void 0===b?en:b,w=Zt(a,fn),x=hn(e,i,"mapStateToProps"),C=hn(t,l,"mapDispatchToProps"),S=hn(n,c,"mergeProps");return r(d,yt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:C,initMergeProps:S,pure:u,areStatesEqual:f,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:y},w))}}var vn,bn=gn();function yn(e,t){var r=(0,n.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,n.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}vn=qe.unstable_batchedUpdates,Tt=vn;var wn=yn,xn=function(e,t){return yn((function(){return e}),t)},Cn=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Sn=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},En=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Nn={top:0,right:0,bottom:0,left:0},Mn=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Nn:n,o=e.border,i=void 0===o?Nn:o,a=e.padding,l=void 0===a?Nn:a,s=Cn(Sn(t,r)),c=Cn(En(t,i)),u=Cn(En(c,l));return{marginBox:s,borderBox:Cn(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:l}},In=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},An=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Mn({borderBox:s,border:i,margin:a,padding:l})},kn=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),An(e,t)},Pn=function(e,t){var n={top:In(t.marginTop),right:In(t.marginRight),bottom:In(t.marginBottom),left:In(t.marginLeft)},r={top:In(t.paddingTop),right:In(t.paddingRight),bottom:In(t.paddingBottom),left:In(t.paddingLeft)},o={top:In(t.borderTopWidth),right:In(t.borderRightWidth),bottom:In(t.borderBottomWidth),left:In(t.borderLeftWidth)};return Mn({borderBox:e,margin:n,padding:r,border:o})},Ln=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Pn(t,n)},Rn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Tn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Rn(r)&&Rn(o)))return!1;var r,o;return!0}var Dn=function(e,t){var n;void 0===t&&(t=Tn);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},On=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function jn(e,t){}function Fn(){}function Zn(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,yt({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}jn.bind(null,"warn"),jn.bind(null,"error");var zn=!0,Bn="Invariant failed";function Hn(e){this.message=e}function $n(e,t){if(!e)throw new Hn(zn?Bn:Bn+": "+(t||""))}Hn.prototype.toString=function(){return this.message};var qn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Fn,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Hn&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}bt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Zn(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Hn))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r().Component),Wn=function(e){return e+1},Vn=function(e,t){var n=e.droppableId===t.droppableId,r=Wn(e.index),o=Wn(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},Un=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},Gn=function(e){return"\n  The item has returned to its starting position\n  of "+Wn(e.index)+"\n"},Yn=function(e){return"\n  You have lifted an item in position "+Wn(e.source.index)+"\n"},Kn=function(e){var t=e.destination;if(t)return Vn(e.source,t);var n=e.combine;return n?Un(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Qn=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Gn(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+Vn(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+Un(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Gn(e.source)+"\n  "},Xn={x:0,y:0},Jn=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},er=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},tr=function(e,t){return e.x===t.x&&e.y===t.y},nr=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},rr=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},or=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ir=function(e,t){return Math.min.apply(Math,t.map((function(t){return or(e,t)})))},ar=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},lr=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},sr=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},cr=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Cn({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Cn(e)},ur=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?lr(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?yt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:cr(a,o)}},dr=function(e,t){e.frame||$n(!1);var n=e.frame,r=er(t,n.scroll.initial),o=nr(r),i=yt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return yt({},e,{frame:i,subject:ur({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function pr(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function fr(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function hr(e,t){if(e.find)return e.find(t);var n=fr(e,t);return-1!==n?e[n]:void 0}function mr(e){return Array.prototype.slice.call(e)}var gr=Dn((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),vr=Dn((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),br=Dn((function(e){return pr(e)})),yr=Dn((function(e){return pr(e)})),wr=Dn((function(e,t){var n=yr(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function xr(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Cr(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Sr=Dn((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Er=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Nr={point:Xn,value:0},Mr={invisible:{},visible:{},all:[]},Ir={displaced:Mr,displacedBy:Nr,at:null},Ar=function(e,t){return function(n){return e<=n&&n<=t}},kr=function(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||a&&i||l&&o}},Pr=function(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Lr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Tr=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Xn;return lr(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},Dr=function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:kr}))},Or=function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:Pr}))},jr=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function Fr(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Cn(Sn(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!Dr({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:s,shouldAnimate:jr(s,a,i)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function _r(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Mr,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Zr(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=Er(t,r);if(null==l)return _r({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=hr(n,(function(e){return e.descriptor.index===l}));if(!u)return _r({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=Sr(t,n),p=n.indexOf(u);return{displaced:Fr({afterDragging:d.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function zr(e,t){return Boolean(t.effected[e])}var Br=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Hr=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},$r=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return rr(t.line,n.marginBox[t.end]+Br(t,r),Hr(t,n.marginBox,r))},qr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return rr(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Hr(t,n.marginBox,r))},Wr=function(e,t){var n=e.frame;return n?Jn(t,n.scroll.diff.displacement):t},Vr=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=wr(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return rr(t.line,n.contentBox[t.start]+Br(t,r),Hr(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(zr(d,i))return qr({axis:s,moveRelativeTo:p.page,isMoving:l});var f=An(p.page,u.point);return qr({axis:s,moveRelativeTo:f,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(zr(h.descriptor.id,i)){var m=An(h.page,nr(i.displacedBy.point));return $r({axis:s,moveRelativeTo:m,isMoving:l})}return $r({axis:s,moveRelativeTo:h.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Cr(n);o||$n(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return zr(r,n)?i?Xn:nr(o.point):i?o.point:Xn}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Jn(a,l)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Wr(n,t):t},Ur=function(e,t){var n=er(t,e.scroll.initial),r=nr(n);return{frame:Cn({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Gr(e,t){return e.map((function(e){return t[e]}))}var Yr=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Jn(e.scroll.diff.displacement,t)}(e.viewport,t),o=er(r,n.page.borderBox.center);return Jn(n.client.borderBox.center,o)},Kr=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=er(r,t.page.borderBox.center),c={target:lr(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return Tr(yt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Ar(e.top,e.bottom),r=Ar(e.left,e.right);return function(e){return t===Lr?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):Or(c)},Qr=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=wr(r.descriptor.id,o),d=Er(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!xr(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return yt({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var c=Sr(n,o);if(!s)return c.length?a(c[c.length-1].descriptor.id):null;var u=fr(c,(function(e){return e.descriptor.id===s}));-1===u&&$n(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||$n(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:Zr({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return zr(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==p?null:Zr({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:p})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!p)return null;var f=Vr({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Kr({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Yr({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var h=er(f,l),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=Ur(n,Jn(n.scroll.current,i)),l=r.frame?dr(r,Jn(r.frame.scroll.current,i)):r,s=t.displaced,c=Fr({afterDragging:Gr(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=Fr({afterDragging:Gr(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},p={},f=[s,c,u];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,f);t?p[e]=t:d[e]=!0})),yt({},t,{displaced:{all:s.all,invisible:d,visible:p}})}({impact:p,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:s,impact:m,scrollJumpRequest:h}},Xr=function(e){var t=e.subject.active;return t||$n(!1),t},Jr=function(e,t){var n=e.page.borderBox.center;return zr(e.descriptor.id,t)?er(n,t.displacedBy.point):n},eo=function(e,t){var n=e.page.borderBox;return zr(e.descriptor.id,t)?lr(n,nr(t.displacedBy.point)):n},to=Dn((function(e,t){var n=t[e.line];return{value:n,point:rr(e.line,n)}})),no=function(e,t){return yt({},e,{scroll:yt({},e.scroll,{max:t})})},ro=function(e,t,n){var r=e.frame;Er(t,e)&&$n(!1),e.subject.withPlaceholder&&$n(!1);var o=to(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return rr(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=wr(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:rr(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return yt({},e,{subject:ur({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?Jn(r.scroll.max,i):r.scroll.max,s=no(r,l);return yt({},e,{subject:ur({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s}),frame:s})},oo=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},io=function(e){var t=e.state,n=e.type,r=function(e,t){var n=oo(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,h=p.droppables;return s?Qr({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=Ar(a[l.start],a[l.end]),c=br(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return kr(i.frame)(Xr(e))})).filter((function(e){var n=Xr(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=Xr(e),n=Ar(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=Xr(e)[l.crossAxisStart],o=Xr(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Xr(e)[l.crossAxisStart]===Xr(n[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Ar(Xr(e)[l.start],Xr(e)[l.end])(n[l.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Xr(e)[l.start]-Xr(t)[l.start]}))[0]:c.sort((function(e,t){var r=ir(n,sr(Xr(e))),o=ir(n,sr(Xr(t)));return r!==o?r-o:Xr(e)[l.start]-Xr(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!c)return null;var u=wr(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return Or({target:eo(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=or(t,Wr(r,Jr(e,o))),a=or(t,Wr(r,Jr(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:u,afterCritical:s}),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Mr,displacedBy:Nr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Vr({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:s}),d=Er(o,a)?a:ro(a,o,i);return Kr({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?p:p+1);return Zr({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:to(a.axis,o.displaceBy),last:Mr,index:h})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!p)return null;var f=Vr({impact:p,draggable:r,droppable:c,draggables:i,afterCritical:s});return{clientSelection:Yr({pageBorderBoxCenter:f,draggable:r,viewport:l}),impact:p,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function ao(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function lo(e){var t=Ar(e.top,e.bottom),n=Ar(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var so=function(e,t){return Cn(lr(e,t))};function co(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var uo=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=so(n.page.borderBox,t),c=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=br(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(lo(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],c=Ar(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=rr(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:or(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:s,draggable:n,droppables:o});if(!c)return Ir;var u=o[c],d=wr(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?so(t,n.scroll.diff.value):t}(u,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=to(o.axis,t.displaceBy),c=s.value,u=n[l.start],d=n[l.end],p=hr(Sr(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=zr(t,a),s=co({displaced:r.displaced,id:t});return i?s?d>n[l.start]+o&&d<n[l.end]-o:u>n[l.start]-c+o&&u<n[l.end]-c-o:s?d>n[l.start]+c+o&&d<n[l.end]+c-o:u>n[l.start]+o&&u<n[l.end]-o}));return p?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,c=to(r.axis,n.displaceBy),u=c.value,d=t[s.start],p=t[s.end],f=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:hr(Sr(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=zr(t,l),o=co({displaced:i,id:t});return r?o?p<=n:d<n-u:o?p<=n+u:d<n})),inHomeList:Er(n,r)});return Zr({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:l})},po=function(e,t){var n;return yt({},e,((n={})[t.descriptor.id]=t,n))},fo=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=r||t.dimensions,c=n||t.current.client.selection,u=er(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Jn(t.initial.client.borderBoxCenter,u)},p={selection:Jn(d.selection,l.scroll.current),borderBoxCenter:Jn(d.borderBoxCenter,l.scroll.current),offset:Jn(d.offset,l.scroll.diff.value)},f={client:d,page:p};if("COLLECTING"===t.phase)return yt({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:f});var h=s.draggables[t.critical.draggable.id],m=i||uo({pageOffset:p.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=oo(t),i=oo(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||$n(!1);var n=e.frame;if(!n)return yt({},e,{subject:ur({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||$n(!1);var o=no(n,r);return yt({},e,{subject:ur({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return po(r,l)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=oo(o);if(!a)return i;var l=r[a];if(Er(t,l))return i;if(l.subject.withPlaceholder)return i;var s=ro(l,t,n);return po(i,s)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return yt({},t,{current:f,dimensions:{draggables:s.draggables,droppables:g},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},ho=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return yt({},t,{displaced:Fr({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},mo=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=Vr({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Yr({pageBorderBoxCenter:l,draggable:n,viewport:i})},go=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&$n(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=oo(o);u||$n(!1);var d=s[u],p=ho({impact:o,viewport:i,destination:d,draggables:l}),f=mo({impact:p,draggable:c,droppable:d,draggables:l,viewport:i,afterCritical:t.afterCritical});return fo({impact:p,clientSelection:f,state:t,dimensions:a,viewport:i})},vo=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=to(n.axis,t.displaceBy),a=wr(n.descriptor.id,r),l=a.indexOf(t);-1===l&&$n(!1);var s,c=a.slice(l+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:Fr({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:d}},bo=function(e){return"SNAP"===e.movementMode},yo=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:po(e.droppables,t)}}(e.dimensions,t);return!bo(e)||n?fo({state:e,dimensions:r}):go({state:e,dimensions:r})};function wo(e){return e.isDragging&&"SNAP"===e.movementMode?yt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var xo={phase:"IDLE",completed:null,shouldFlush:!1},Co=function(e,t){if(void 0===e&&(e=xo),"FLUSH"===t.type)return yt({},xo,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&$n(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:s.client.borderBox.center,offset:Xn},d={client:u,page:{selection:Jn(u.selection,i.scroll.initial),borderBoxCenter:Jn(u.selection,i.scroll.initial),offset:Jn(u.selection,i.scroll.diff.value)}},p=br(a.droppables).every((function(e){return!e.isFixedOnPage})),f=vo({draggable:s,home:c,draggables:a.draggables,viewport:i}),h=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:h,afterCritical:f.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&$n(!1),yt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&$n(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return dr(n,e.scroll)})),o=yt({},t.dimensions.droppables,{},gr(r)),i=vr(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||$n(!1),t}(n[t]),a=i.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=An(t.client,n),i=kn(o,r);return yt({},t,{placeholder:yt({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Jn(o,a),initialWindowScroll:r.scroll.initial});return l}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=yt({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=oo(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],p=vo({draggable:u,home:d,draggables:a,viewport:t.viewport}),f=p.impact,h=p.afterCritical,m=c&&c.isCombineEnabled?t.impact:f,g=uo({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),v=yt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:yt({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var m=t.payload.client;return tr(m,e.current.client.selection)?e:fo({state:e,clientSelection:m,impact:bo(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return wo(e);if("COLLECTING"===e.phase)return wo(e);ao(e)||$n(!1);var g=t.payload,v=g.id,b=g.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var w=dr(y,b);return yo(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var x=t.payload,C=x.id,S=x.isEnabled,E=e.dimensions.droppables[C];E||$n(!1),E.isEnabled===S&&$n(!1);var N=yt({},E,{isEnabled:S});return yo(e,N,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ao(e)||$n(!1);var M=t.payload,I=M.id,A=M.isCombineEnabled,k=e.dimensions.droppables[I];k||$n(!1),k.isCombineEnabled===A&&$n(!1);var P=yt({},k,{isCombineEnabled:A});return yo(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ao(e)||$n(!1),e.isWindowScrollAllowed||$n(!1);var L=t.payload.newScroll;if(tr(e.viewport.scroll.current,L))return wo(e);var R=Ur(e.viewport,L);return bo(e)?go({state:e,viewport:R}):fo({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ao(e))return e;var T=t.payload.maxScroll;if(tr(T,e.viewport.scroll.max))return e;var D=yt({},e.viewport,{scroll:yt({},e.viewport.scroll,{max:T})});return yt({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&$n(!1);var O=io({state:e,type:t.type});return O?fo({state:e,impact:O.impact,clientSelection:O.clientSelection,scrollJumpRequest:O.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var j=t.payload.reason;return"COLLECTING"!==e.phase&&$n(!1),yt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:j})}if("DROP_ANIMATE"===t.type){var F=t.payload,_=F.completed,Z=F.dropDuration,z=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&$n(!1),{phase:"DROP_ANIMATING",completed:_,dropDuration:Z,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},So=function(e){return{type:"LIFT",payload:e}},Eo=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},No=function(){return{type:"COLLECTION_STARTING",payload:null}},Mo=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Io=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Ao=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ko=function(e){return{type:"MOVE",payload:e}},Po=function(){return{type:"MOVE_UP",payload:null}},Lo=function(){return{type:"MOVE_DOWN",payload:null}},Ro=function(){return{type:"MOVE_RIGHT",payload:null}},To=function(){return{type:"MOVE_LEFT",payload:null}},Do=function(){return{type:"FLUSH",payload:null}},Oo=function(e){return{type:"DROP_COMPLETE",payload:e}},jo=function(e){return{type:"DROP",payload:e}},Fo="cubic-bezier(.2,1,.1,1)",_o=0,Zo=.7,zo=.75,Bo="0.2s cubic-bezier(0.2, 0, 0, 1)",Ho={fluid:"opacity "+Bo,snap:"transform "+Bo+", opacity "+Bo,drop:function(e){var t=e+"s "+Fo;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Bo,placeholder:"height "+Bo+", width "+Bo+", margin "+Bo},$o=function(e){return tr(e,Xn)?null:"translate("+e.x+"px, "+e.y+"px)"},qo=$o,Wo=function(e,t){var n=$o(e);return n?t?n+" scale("+zo+")":n:null},Vo=.33,Uo=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&$n(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&$n(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:yt({},r,{displaced:Mr}),didDropInsideDroppable:!0}:{impact:ho({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,p=d?xr(u):null,f=d?Cr(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:p,combine:f},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=oo(t),c=s?l[s]:null,u=l[n.descriptor.droppableId],d=mo({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return er(d,n.client.borderBox.center)}({impact:u,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:u};if(!tr(o.current.client.offset,g)||Boolean(m.combine)){var b=function(e){var t=e.reason,n=or(e.current,e.destination);if(n<=0)return Vo;if(n>=1500)return.55;var r=Vo+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:b,completed:v}})}else n(Oo({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Go=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Yo=function(e){var t=function(e){var t=e.onWindowScroll,n=On((function(){t(Go())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Fn;function i(){return o!==Fn}return{start:function(){i()&&$n(!1),o=Zn(window,[r])},stop:function(){i()||$n(!1),n.cancel(),o(),o=Fn},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Ko=function(e,t){t()},Qo=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Xo=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Jo=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=fr(n,(function(t){return t.timerId===e}));-1===t&&$n(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(n){o||$n(!1),o=null,Ko(0,(function(){return Xo(e().onDragEnd,n,t,Qn)}))};return{beforeCapture:function(t,n){o&&$n(!1),Ko(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&$n(!1),Ko(0,(function(){var r=e().onBeforeDragStart;r&&r(Qo(t,n))}))},start:function(n,i){o&&$n(!1);var a=Qo(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add((function(){Ko(0,(function(){return Xo(e().onDragStart,a,t,Yn)}))}))},update:function(n,i){var a=xr(i),l=Cr(i);o||$n(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);s&&(o.lastCritical=n);var c,u,d=(u=a,!(null==(c=o.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(o.lastLocation=a);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(p&&(o.lastCombine=l),s||d||p){var f=yt({},Qo(n,o.mode),{combine:l,destination:a});r.add((function(){Ko(0,(function(){return Xo(e().onDragUpdate,f,t,Kn)}))}))}},flush:function(){o||$n(!1),r.flush()},drop:i,abort:function(){if(o){var e=yt({},Qo(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},ei=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&$n(!1),e.dispatch(Oo({completed:r.completed}))}else t(n)}}},ti=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Zn(window,[i])}))}}}},ni=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(jo({reason:r.reason})))}}}},ri=Lt,oi=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return At(Co,ri(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Et(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Lt.apply(void 0,i)(n.dispatch),St(St({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(Oo({completed:c.completed})),"IDLE"!==n().phase&&$n(!1),r(Do()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},d=e.startPublishing(u),p=d.critical,f=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:s,viewport:h}})}else t(o)}}}}(n),Uo,ei,ti,ni,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&$n(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Yo,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Jo(i,a))))},ii=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=er({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ai=function(){var e=document.documentElement;return e||$n(!1),e},li=function(){var e=ai();return ii({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function si(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var ci,ui,di=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Xn)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:s,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||$n(!1);var o=n.critical.draggable;"ADDITION"===t.type&&si(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&si(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||$n(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||$n(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||$n(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&$n(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,o=function(){var e=Go(),t=li(),n=e.y,r=e.x,o=ai(),i=o.clientWidth,a=o.clientHeight;return{frame:Cn({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Xn,displacement:Xn}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)}));return{dimensions:{draggables:vr(s),droppables:gr(l)},critical:t,viewport:o}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},pi=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},fi=function(e){window.scrollBy(e.x,e.y)},hi=Dn((function(e){return br(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),mi=function(e){return Math.pow(e,2)},gi=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},vi=360,bi=1200,yi=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=gi({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*mi(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=bi,o=Date.now()-n;if(o>=bi)return e;if(o<vi)return 1;var i=gi({startOfRange:vi,endOfRange:r,current:o}),a=e*mi(i);return Math.ceil(a)}(i,r),1):i},wi=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?yi({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*yi({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},xi=ar((function(e){return 0===e?0:e})),Ci=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=wi({container:n,distanceToEdges:a,dragStartTime:t,axis:Lr,shouldUseTimeDampening:i}),s=wi({container:n,distanceToEdges:a,dragStartTime:t,axis:Rr,shouldUseTimeDampening:i}),c=xi({x:s,y:l});if(tr(c,Xn))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?tr(u,Xn)?null:u:null},Si=ar((function(e){return 0===e?0:e>0?1:-1})),Ei=(ci=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Jn(t,r),i={x:ci(o.x,n.x),y:ci(o.y,n.y)};return tr(i,Xn)?null:i}),Ni=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Si(r),a=Ei({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Mi=function(e,t){return Ni({current:e.scroll.current,max:e.scroll.max,change:t})},Ii=function(e,t){var n=e.frame;return!!n&&Ni({current:n.scroll.current,max:n.scroll.max,change:t})},Ai=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=Ci({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&Mi(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=hr(hi(t),(function(t){return t.frame||$n(!1),lo(t.frame.pageMarginBox)(e)}));return n}(t,r);return i}({center:a,destination:oo(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Ci({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Ii(t,l)?l:null}({dragStartTime:n,droppable:c,subject:l,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},ki=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=oo(e.impact);i||$n(!1);var a=function(e,t){if(!Ii(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Ii(e,t)?Ei({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=er(t,r);return n(e.descriptor.id,o),er(t,o)}(e.dimensions.droppables[i],o);if(a){var l=e.viewport,s=function(e,t,n){if(!e)return n;if(!Mi(t,n))return n;var o=function(e,t){if(!Mi(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Ei({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=er(n,o);return r(i),er(n,i)}(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=Jn(e.current.client.selection,n);t({client:r})}(e,s)}}}},Pi=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=On(e.scrollWindow),r=On(t),o=null,i=function(e){o||$n(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Ai({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&$n(!1);var t=Date.now(),n=!1,r=function(){n=!0};Ai({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=ki({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Li="data-rbd",Ri={base:ui=Li+"-drag-handle",draggableId:ui+"-draggable-id",contextId:ui+"-context-id"},Ti=function(){var e=Li+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Di=function(){var e=Li+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Oi={contextId:Li+"-scroll-container-context-id"},ji=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Fi=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(Ri.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n      transition: "+Ho.outOfTheWay+";\n    ",{selector:o(Ti.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Di.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:ji(a,"always"),resting:ji(a,"resting"),dragging:ji(a,"dragging"),dropAnimating:ji(a,"dropAnimating"),userCancel:ji(a,"userCancel")}},_i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Zi=function(){var e=document.querySelector("head");return e||$n(!1),e},zi=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},Bi=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Hi(e){return e instanceof Bi(e).HTMLElement}function $i(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||$n(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return pr(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||$n(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return pr(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var qi=r().createContext(null),Wi=function(){var e=document.body;return e||$n(!1),e},Vi={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ui=function(e){return"rbd-announcement-"+e},Gi=0,Yi={separator:"::"};function Ki(e,t){return void 0===t&&(t=Yi),wn((function(){return""+e+t.separator+Gi++}),[t.separator,e])}var Qi=r().createContext(null);function Xi(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),t}var Ji,ea,ta=((Ji={})[13]=!0,Ji[9]=!0,Ji),na=function(e){ta[e.keyCode]&&e.preventDefault()},ra=function(){var e="visibilitychange";return"undefined"==typeof document?e:hr([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),oa={type:"IDLE"};function ia(){}var aa=((ea={})[34]=!0,ea[33]=!0,ea[36]=!0,ea[35]=!0,ea);var la={type:"IDLE"},sa={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ca(e,t){if(null==t)return!1;if(Boolean(sa[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ca(e,t.parentElement)}function ua(e,t){var n=t.target;return!!Hi(n)&&ca(e,n)}var da=function(e){return Cn(e.getBoundingClientRect()).center},pa=function(){var e="matches";return"undefined"==typeof document?e:hr([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function fa(e,t){return null==e?null:e[pa](t)?e:fa(e.parentElement,t)}function ha(e,t){return e.closest?e.closest(t):fa(e,t)}function ma(e){e.preventDefault()}function ga(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function va(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!pi(n.getState(),o)}var ba=[function(e){var t=(0,n.useRef)(oa),r=(0,n.useRef)(Fn),o=wn((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),u(o,i)}}}}}}),[e]),i=wn((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=xn((function(){r.current=Zn(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=xn((function(){"IDLE"!==t.current.type&&(t.current=oa,r.current(),a())}),[a]),s=xn((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=xn((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&$n(!1),s=l.point,c=a,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,c;e.preventDefault();var u=l.actions.fluidLift(a);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void na(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&$n(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ra,fn:t}]}({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=Zn(window,e,{capture:!0,passive:!1})}),[s,l]),u=xn((function(e,n){"IDLE"!==t.current.type&&$n(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);_i((function(){return a(),function(){r.current()}}),[a])},function(e){var t=(0,n.useRef)(ia),r=wn((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=Zn(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(aa[r.keyCode]?r.preventDefault():na(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ra,fn:n}]}(l,s),{capture:!0,passive:!1})}}}function s(){a||$n(!1),a=!1,t.current(),o()}}}}),[e]),o=xn((function(){t.current=Zn(window,[r],{passive:!1,capture:!0})}),[r]);_i((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,n.useRef)(la),r=(0,n.useRef)(Fn),o=xn((function(){return t.current}),[]),i=xn((function(e){t.current=e}),[]),a=wn((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};r.current(),p(o,a)}}}}}}),[e]),l=xn((function(){r.current=Zn(window,[a],{capture:!0,passive:!1})}),[a]),s=xn((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(la),r.current(),l())}),[l,i]),c=xn((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=xn((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=Zn(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&$n(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ra,fn:t}]}(t),e),i=Zn(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ra,fn:t}]}(t),e);r.current=function(){n(),i()}}),[c,o,s]),d=xn((function(){var e=o();"PENDING"!==e.type&&$n(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),p=xn((function(e,t){"IDLE"!==o().type&&$n(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);_i((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(la))}}),[o,l,i]),_i((function(){return Zn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function ya(e){var t=e.contextId,r=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?ba:[],i||[]),s=(0,n.useState)((function(){return function(){var e=null;function t(){e||$n(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&$n(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=xn((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);_i((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[s,r,c]),_i((function(){return s.tryAbandon}),[s.tryAbandon]);for(var u=xn((function(e){return va({lockAPI:s,registry:o,store:r,draggableId:e})}),[s,o,r]),d=xn((function(e,n,i){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!va({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),c=function(e,t){var n="["+Ti.contextId+'="'+e+'"]',r=hr(mr(document.querySelectorAll(n)),(function(e){return e.getAttribute(Ti.id)===t}));return r&&Hi(r)?r:null}(n,s.descriptor.id);if(!c)return null;if(l&&!s.options.canDragInteractiveElements&&ua(c,l))return null;var u=t.claim(a||Fn),d="PRE_DRAG";function p(){return s.options.shouldRespectForcePress}function f(){return t.isActive(u)}var h=function(e,t){ga({expected:e,phase:d,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Zn(window,[{eventName:"click",fn:ma,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(jo({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&$n(!1)),r.dispatch(So(e.liftActionArgs)),d="DRAGGING",yt({isActive:function(){return ga({expected:"DRAGGING",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return ga({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=On((function(e){h((function(){return ko({client:e})}))}));return yt({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(Po)},moveRight:function(){return h(Ro)},moveDown:function(){return h(Lo)},moveLeft:function(){return h(To)}};return m({liftActionArgs:{id:i,clientSelection:da(c),movementMode:"SNAP"},cleanup:Fn,actions:e})},abort:function(){ga({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!0})&&t.release()}}}({lockAPI:s,registry:o,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,r]),p=xn((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof Bi(n).Element))return null;var o=function(e){return"["+Ri.contextId+'="'+e+'"]'}(e),i=ha(r,o);return i&&Hi(i)?i:null}(e,t);return n?n.getAttribute(Ri.draggableId):null}(t,e)}),[t]),f=xn((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=xn((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(Do()))}),[s,r]),m=xn(s.isClaimed,[s]),g=wn((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:m}}),[u,d,p,f,h,m]),v=0;v<l.length;v++)l[v](g)}var wa=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function xa(e){return e.current||$n(!1),e.current}function Ca(e){var t=e.contextId,o=e.setCallbacks,i=e.sensors,a=e.nonce,l=e.dragHandleUsageInstructions,s=(0,n.useRef)(null),c=Xi(e),u=xn((function(){return wa(c.current)}),[c]),d=function(e){var t=wn((function(){return Ui(e)}),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),yt(e.style,Vi),Wi().appendChild(e),function(){setTimeout((function(){var t=Wi();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),xn((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),p=function(e){var t=e.contextId,r=e.text,o=Ki("hidden-text",{separator:"-"}),i=wn((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",Wi().appendChild(e),function(){var t=Wi();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:t,text:l}),f=function(e,t){var r=wn((function(){return Fi(e)}),[e]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=xn(Dn((function(e){var t=i.current;t||$n(!1),t.textContent=e})),[]),l=xn((function(e){var t=o.current;t||$n(!1),t.textContent=e}),[]);_i((function(){(o.current||i.current)&&$n(!1);var n=zi(t),s=zi(t);return o.current=n,i.current=s,n.setAttribute(Li+"-always",e),s.setAttribute(Li+"-dynamic",e),Zi().appendChild(n),Zi().appendChild(s),l(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||$n(!1),Zi().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,r.always,r.resting,e]);var s=xn((function(){return a(r.dragging)}),[a,r.dragging]),c=xn((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),u=xn((function(){i.current&&a(r.resting)}),[a,r.resting]);return wn((function(){return{dragging:s,dropping:c,resting:u}}),[s,c,u])}(t,a),h=xn((function(e){xa(s).dispatch(e)}),[]),m=wn((function(){return Pt({publishWhileDragging:Eo,updateDroppableScroll:Mo,updateDroppableIsEnabled:Io,updateDroppableIsCombineEnabled:Ao,collectionStarting:No},h)}),[h]),g=function(){var e=wn($i,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),v=wn((function(){return di(g,m)}),[g,m]),b=wn((function(){return Pi(yt({scrollWindow:fi,scrollDroppable:v.scrollDroppable},Pt({move:ko},h)))}),[v.scrollDroppable,h]),y=function(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=xn((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=xn((function(t){var n=function(e,t){var n="["+Ri.contextId+'="'+e+'"]',r=mr(document.querySelectorAll(n));if(!r.length)return null;var o=hr(r,(function(e){return e.getAttribute(Ri.draggableId)===t}));return o&&Hi(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=xn((function(e,t){r.current===e&&(r.current=t)}),[]),c=xn((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&l(e)})))}),[l]),u=xn((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Ri.draggableId)===e&&(r.current=e)}),[]);return _i((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),wn((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s}}),[a,u,c,s])}(t),w=wn((function(){return oi({announce:d,autoScroller:b,dimensionMarshal:v,focusMarshal:y,getResponders:u,styleMarshal:f})}),[d,b,v,y,u,f]);s.current=w;var x=xn((function(){var e=xa(s);"IDLE"!==e.getState().phase&&e.dispatch(Do())}),[]),C=xn((function(){var e=xa(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);o(wn((function(){return{isDragging:C,tryAbort:x}}),[C,x]));var S=xn((function(e){return pi(xa(s).getState(),e)}),[]),E=xn((function(){return ao(xa(s).getState())}),[]),N=wn((function(){return{marshal:v,focus:y,contextId:t,canLift:S,isMovementAllowed:E,dragHandleUsageInstructionsId:p,registry:g}}),[t,v,p,y,S,E,g]);return ya({contextId:t,store:w,registry:g,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return x}),[x]),r().createElement(Qi.Provider,{value:N},r().createElement(_t,{context:qi,store:w},e.children))}var Sa=0;function Ea(e){var t=wn((function(){return""+Sa++}),[]),n=e.dragHandleUsageInstructions||"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n";return r().createElement(qn,null,(function(o){return r().createElement(Ca,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Na=function(e){return function(t){return e===t}},Ma=Na("scroll"),Ia=Na("auto"),Aa=(Na("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),ka=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Aa(n,Ma)||Aa(n,Ia)}(t)?t:e(t.parentElement)},Pa=function(e){return{x:e.scrollLeft,y:e.scrollTop}},La=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Ra={passive:!1},Ta={passive:!0},Da=function(e){return e.shouldPublishImmediately?Ra:Ta};function Oa(e){var t=(0,n.useContext)(e);return t||$n(!1),t}var ja=function(e){return e&&e.env.closestScrollable||null};function Fa(){}var _a={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Za=r().memo((function(e){var t=(0,n.useRef)(null),o=xn((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,l=e.onClose,s=e.contextId,c=(0,n.useState)("open"===e.animate),u=c[0],d=c[1];(0,n.useEffect)((function(){return u?"open"!==i?(o(),d(!1),Fa):t.current?Fa:(t.current=setTimeout((function(){t.current=null,d(!1)})),o):Fa}),[i,u,o]);var p=xn((function(e){"height"===e.propertyName&&(a(),"close"===i&&l())}),[i,l,a]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?_a:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Ho.placeholder:null}}({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return r().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:p,ref:e.innerRef})})),za=r().createContext(null),Ba=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return bt(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r().PureComponent),Ha=5e3,$a=4500,qa=function(e,t){return t?Ho.drop(t.duration):e?Ho.snap:Ho.fluid},Wa=function(e,t){return e?t?_o:Zo:null};function Va(e){e.preventDefault()}var Ua=function(e,t){return e===t},Ga=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Ya(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Ka={mapped:{type:"SECONDARY",offset:Xn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ya(null)}},Qa=bn((function(){var e,t,n,r=(e=Dn((function(e,t){return{x:e,y:t}})),t=Dn((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Dn((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=oo(r.impact),s=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,s,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,f=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Ga(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:r.dropDuration,curve:Fo,moveTo:r.newHomeClientOffset,opacity:v?_o:null,scale:v?zo:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:b,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,v,b)}}}return null}),o=function(){var e=Dn((function(e,t){return{x:e,y:t}})),t=Dn(Ya),n=Dn((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Xn,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),c=Cr(i),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(i.displaced.invisible[t])return null;var d=nr(a.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(s)return r(u);var f=i.displacedBy.point,h=e(f.x,f.y);return n(h,u,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Ka}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:qi,pure:!0,areStatePropsEqual:Ua})((function(e){var t=(0,n.useRef)(null),r=xn((function(e){t.current=e}),[]),o=xn((function(){return t.current}),[]),i=Oa(Qi),a=i.contextId,l=i.dragHandleUsageInstructionsId,s=i.registry,c=Oa(za),u=c.type,d=c.droppableId,p=wn((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),f=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,w=e.dropAnimationFinished;b||function(e){var t=Ki("draggable"),r=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,c=wn((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}}),[a,s,l]),u=xn((function(e){var t=i();return t||$n(!1),function(e,t,n){void 0===n&&(n=Xn);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Pn(o,r),a=kn(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),d=wn((function(){return{uniqueId:t,descriptor:r,options:c,getDimension:u}}),[r,u,c,t]),p=(0,n.useRef)(d),f=(0,n.useRef)(!0);_i((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),_i((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}(wn((function(){return{descriptor:p,registry:s,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[p,s,o,v,g,m]));var x=wn((function(){return m?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Va}:null}),[a,l,h,m]),C=xn((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&w()}),[w,y]),S=wn((function(){var e=function(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),s=l?Wo(n,i):qo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:qa(a,o),transform:s,opacity:Wa(i,l),zIndex:l?$a:Ha,pointerEvents:"none"}}(e):{transform:qo((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}(y),t="DRAGGING"===y.type&&y.dropping?C:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,y,C,r]),E=wn((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(S,y.snapshot,E)}));function Xa(e){return Oa(za).isUsingCloneFor!==e.draggableId||e.isClone?r().createElement(Qa,e):null}function Ja(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r().createElement(Xa,yt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var el=function(e,t){return e===t.droppable.type},tl=function(e,t){return t.draggables[e.draggable.id]},nl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||$n(!1),document.body}},rl=bn((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=yt({},e,{shouldAnimatePlaceholder:!1}),n=Dn((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Dn((function(r,o,i,a,l,s){var c=l.descriptor.id;if(l.descriptor.droppableId===r){var u=s?{render:s,dragging:n(l.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(n.isDragging){var c=n.critical;if(!el(a,c))return t;var u=tl(c,n.dimensions),d=oo(n.impact)===i;return r(i,l,d,d,u,s)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!el(a,p.critical))return t;var f=tl(p.critical,n.dimensions);return r(i,l,Ga(p.result)===i,oo(p.impact)===i,f,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!el(a,h.critical))return t;var m=oo(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:qi,pure:!0,areStatePropsEqual:Ua})((function(e){var t=(0,n.useContext)(Qi);t||$n(!1);var o=t.contextId,i=t.isMovementAllowed,a=(0,n.useRef)(null),l=(0,n.useRef)(null),s=e.children,c=e.droppableId,u=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,h=e.isDropDisabled,m=e.isCombineEnabled,g=e.snapshot,v=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,w=xn((function(){return a.current}),[]),x=xn((function(e){a.current=e}),[]),C=(xn((function(){return l.current}),[]),xn((function(e){l.current=e}),[])),S=xn((function(){i()&&b({maxScroll:li()})}),[i,b]);!function(e){var t=(0,n.useRef)(null),r=Oa(Qi),o=Ki("droppable"),i=r.registry,a=r.marshal,l=Xi(e),s=wn((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,n.useRef)(s),u=wn((function(){return Dn((function(e,n){t.current||$n(!1);var r={x:e,y:n};a.updateDroppableScroll(s.id,r)}))}),[s.id,a]),d=xn((function(){var e=t.current;return e&&e.env.closestScrollable?Pa(e.env.closestScrollable):Xn}),[]),p=xn((function(){var e=d();u(e.x,e.y)}),[d,u]),f=wn((function(){return On(p)}),[p]),h=xn((function(){var e=t.current,n=ja(e);e&&n||$n(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),m=xn((function(e,n){t.current&&$n(!1);var o=l.current,i=o.getDroppableRef();i||$n(!1);var a=function(e){return{closestScrollable:ka(e),isFixedOnPage:La(e)}}(i),c={ref:i,descriptor:s,env:a,scrollOptions:n};t.current=c;var u=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=Ln(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Sn({top:r,right:a,bottom:i,left:o},n.border);return Mn({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=kn(u,o),p=function(){if(!c)return null;var e=Ln(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:kn(e,o),scroll:Pa(c),scrollSize:t,shouldClipSubject:s}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,c=function(){if(!s)return null;var e=s.scrollSize,t=s.client,n=ii({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:Xn,displacement:Xn}}}}(),u="vertical"===i?Lr:Rr;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:l,frame:c,subject:ur({page:l,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p});return f}({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(Oi.contextId,r.contextId),d.addEventListener("scroll",h,Da(c.scrollOptions))),u}),[r.contextId,s,h,l]),g=xn((function(){var e=t.current,n=ja(e);return e&&n||$n(!1),Pa(n)}),[]),v=xn((function(){var e=t.current;e||$n(!1);var n=ja(e);t.current=null,n&&(f.cancel(),n.removeAttribute(Oi.contextId),n.removeEventListener("scroll",h,Da(e.scrollOptions)))}),[h,f]),b=xn((function(e){var n=t.current;n||$n(!1);var r=ja(n);r||$n(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=wn((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:b}}),[v,m,g,b]),w=wn((function(){return{uniqueId:o,descriptor:s,callbacks:y}}),[y,s,o]);_i((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[y,s,v,w,a,i.droppable]),_i((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),_i((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:c,type:u,mode:d,direction:p,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:w});var E=r().createElement(Ba,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,i=e.animate;return r().createElement(Za,{placeholder:n,onClose:t,innerRef:C,animate:i,contextId:o,onTransitionEnd:S})})),N=wn((function(){return{innerRef:x,placeholder:E,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":o}}}),[o,c,E,x]),M=v?v.dragging.draggableId:null,I=wn((function(){return{droppableId:c,type:u,isUsingCloneFor:M}}),[c,M,u]);return r().createElement(za.Provider,{value:I},s(N,g),function(){if(!v)return null;var e=v.dragging,t=v.render,n=r().createElement(Xa,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return We().createPortal(n,y())}())}));rl.defaultProps=nl;const ol=(0,t.createElement)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M14.5011 3.08825L11.923 0.510192C11.5865 0.194141 11.1456 0.0127958 10.6842 0.000651813C10.2227 -0.0114921 9.77286 0.146413 9.42023 0.444329L0.952174 8.91239C0.648045 9.21909 0.458679 9.62108 0.415864 10.0509L0.0112788 13.9744C-0.00139608 14.1122 0.016486 14.2511 0.0636501 14.3812C0.110814 14.5113 0.186099 14.6294 0.284138 14.7271C0.372056 14.8143 0.476322 14.8833 0.590959 14.9301C0.705595 14.977 0.828346 15.0007 0.952174 15H1.03686L4.96039 14.6424C5.39019 14.5996 5.79217 14.4103 6.09887 14.1061L14.5669 5.63807C14.8956 5.29085 15.0732 4.8275 15.0609 4.34955C15.0485 3.8716 14.8472 3.41804 14.5011 3.08825ZM4.79103 12.7607L1.96834 13.0241L2.22238 10.2014L7.53844 4.95122L10.0789 7.49164L4.79103 12.7607ZM11.302 6.23084L8.78043 3.70924L10.6152 1.82745L13.1838 4.39609L11.302 6.23084Z",fill:"#7E8AA2"})),il=(0,t.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.75 2.25C12.9489 2.25 13.1397 2.32902 13.2803 2.46967C13.421 2.61032 13.5 2.80109 13.5 3C13.5 3.19891 13.421 3.38968 13.2803 3.53033C13.1397 3.67098 12.9489 3.75 12.75 3.75H12L11.9977 3.80325L11.298 13.6065C11.2711 13.9849 11.1017 14.3391 10.8241 14.5977C10.5465 14.8563 10.1811 15 9.80175 15H3.6975C3.3181 15 2.9528 14.8563 2.67516 14.5977C2.39753 14.3391 2.22819 13.9849 2.20125 13.6065L1.5015 3.804C1.50036 3.78602 1.49986 3.76801 1.5 3.75H0.75C0.551088 3.75 0.360322 3.67098 0.21967 3.53033C0.0790176 3.38968 0 3.19891 0 3C0 2.80109 0.0790176 2.61032 0.21967 2.46967C0.360322 2.32902 0.551088 2.25 0.75 2.25H12.75ZM10.4977 3.75H3.00225L3.69825 13.5H9.80175L10.4977 3.75ZM8.25 0C8.44891 0 8.63968 0.0790176 8.78033 0.21967C8.92098 0.360322 9 0.551088 9 0.75C9 0.948912 8.92098 1.13968 8.78033 1.28033C8.63968 1.42098 8.44891 1.5 8.25 1.5H5.25C5.05109 1.5 4.86032 1.42098 4.71967 1.28033C4.57902 1.13968 4.5 0.948912 4.5 0.75C4.5 0.551088 4.57902 0.360322 4.71967 0.21967C4.86032 0.0790176 5.05109 0 5.25 0H8.25Z",fill:"#7E8AA2"})),al=(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{fill:"#000000",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2zm5.4 21L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4l-1.6 1.6z"})),ll=((0,t.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M17.5645 3.27888C17.2852 2.63724 16.8825 2.0558 16.379 1.56709C15.875 1.07693 15.2808 0.6874 14.6288 0.419693C13.9526 0.140996 13.2274 -0.0016576 12.4952 1.45314e-05C11.468 1.45314e-05 10.4658 0.279111 9.59485 0.806293C9.38649 0.932404 9.18855 1.07092 9.00103 1.22184C8.81351 1.07092 8.61557 0.932404 8.40721 0.806293C7.53628 0.279111 6.53408 1.45314e-05 5.50688 1.45314e-05C4.76721 1.45314e-05 4.05046 0.140597 3.3733 0.419693C2.71906 0.688453 2.12941 1.07505 1.6231 1.56709C1.11887 2.05524 0.716078 2.63683 0.43755 3.27888C0.147934 3.94665 0 4.65576 0 5.38554C0 6.07398 0.141683 6.79136 0.422965 7.52115C0.658409 8.13103 0.995947 8.76365 1.42725 9.40247C2.11066 10.4134 3.05035 11.4678 4.21715 12.5366C6.1507 14.3084 8.06551 15.5323 8.14677 15.5819L8.64057 15.8961C8.85935 16.0346 9.14063 16.0346 9.35941 15.8961L9.85321 15.5819C9.93447 15.5302 11.8472 14.3084 13.7828 12.5366C14.9496 11.4678 15.8893 10.4134 16.5727 9.40247C17.004 8.76365 17.3437 8.13103 17.577 7.52115C17.8583 6.79136 18 6.07398 18 5.38554C18.0021 4.65576 17.8541 3.94665 17.5645 3.27888Z",fill:"url(#paint0_linear_1465_710)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_1465_710",x1:"9",y1:"0",x2:"9",y2:"16",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{"stop-color":"#FF3939"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#D819DC"})))),(0,t.createElement)("svg",{width:"133",height:"131",viewBox:"0 0 133 131",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.2003 0.0460557C90.3852 -0.886378 120.219 12.3367 129.638 39.9755C139.418 68.6725 125.74 99.465 101.106 117.137C76.9495 134.466 44.0949 136.321 20.444 118.309C-1.81872 101.354 -4.10116 70.414 5.01657 43.9571C13.5787 19.1124 34.9351 0.885209 61.2003 0.0460557Z",fill:"#FAFAFA"}),(0,t.createElement)("path",{d:"M34.6494 50.915L39.8253 102.482C40.1121 104.662 50.5768 111.828 65.7285 111.838C80.8896 111.828 91.3543 104.662 91.6364 102.482L96.817 50.915C88.9003 55.3683 77.0676 57.472 65.7285 57.472C54.3988 57.472 42.5614 55.3683 34.6494 50.915ZM80.6216 24.427L76.5834 19.9312C75.0226 17.6951 73.3302 17.2886 70.0347 17.2886H61.427C58.1362 17.2886 56.4391 17.6951 54.883 19.9312L50.8448 24.427C38.7629 26.5497 30 32.1801 30 36.3355V37.1392C30 44.4526 45.9979 50.3808 65.7285 50.3808C85.4638 50.3808 101.462 44.4526 101.462 37.1392V36.3355C101.462 32.1801 92.7035 26.5497 80.6216 24.427ZM75.4598 37.8058L70.4296 31.471H61.0274L56.0066 37.8058H48.0147C48.0147 37.8058 56.7682 27.3061 57.9387 25.8831C58.832 24.7958 59.744 24.3798 60.9287 24.3798H70.533C71.7224 24.3798 72.6344 24.7958 73.5276 25.8831C74.6935 27.3061 83.4517 37.8058 83.4517 37.8058H75.4598Z",fill:"#EBECEE"})),(0,t.createElement)("svg",{width:"123",height:"116",viewBox:"0 0 123 116",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M9.1579 97.6842C11.5867 97.6842 13.9161 98.6491 15.6335 100.367C17.351 102.084 18.3158 104.413 18.3158 106.842C18.3158 109.271 17.351 111.6 15.6335 113.318C13.9161 115.035 11.5867 116 9.1579 116C6.72907 116 4.39973 115.035 2.68229 113.318C0.964848 111.6 0 109.271 0 106.842C0 104.413 0.964848 102.084 2.68229 100.367C4.39973 98.6491 6.72907 97.6842 9.1579 97.6842ZM39.6842 79.3685C43.7323 79.3685 47.6145 80.9765 50.4769 83.8389C53.3393 86.7013 54.9474 90.5836 54.9474 94.6316C54.9474 98.6797 53.3393 102.562 50.4769 105.424C47.6145 108.287 43.7323 109.895 39.6842 109.895C35.6362 109.895 31.7539 108.287 28.8915 105.424C26.0291 102.562 24.4211 98.6797 24.4211 94.6316C24.4211 90.5836 26.0291 86.7013 28.8915 83.8389C31.7539 80.9765 35.6362 79.3685 39.6842 79.3685ZM76.3158 73.2632C69.0506 73.2632 62.4569 70.2106 58 65.0211C53.5432 70.2106 46.9495 73.2632 39.6842 73.2632C27.7179 73.2632 17.7663 64.6548 15.6905 53.36C11.0798 51.5769 7.11504 48.4431 4.31535 44.3688C1.51565 40.2945 0.0115481 35.4698 0 30.5263C0 24.0495 2.57293 17.8379 7.15276 13.258C11.7326 8.67819 17.9442 6.10527 24.4211 6.10527C26.0084 6.10527 27.4737 6.28842 29.1221 6.53264C33.579 2.50316 39.379 0 45.7895 0C53.0548 0 59.6484 3.05263 64.1053 8.24211C68.5621 3.05263 75.1558 0 82.4211 0C94.3874 0 104.339 8.60843 106.415 19.9032C111.025 21.6862 114.99 24.8201 117.79 28.8944C120.59 32.9686 122.094 37.7934 122.105 42.7369C122.105 49.2137 119.532 55.4253 114.953 60.0052C110.373 64.585 104.161 67.1579 97.6842 67.1579L92.9832 66.7306C88.5264 70.76 82.7263 73.2632 76.3158 73.2632Z",fill:"#DDE4E8"})),(0,t.createElement)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M17.2689 7.71154H11.2876V1.73023C11.2876 -0.576213 7.7107 -0.576213 7.7107 1.73023V7.71154H1.72939C-0.576462 7.71154 -0.576462 11.2884 1.72939 11.2884H7.7107V17.2698C7.7107 19.5762 11.2876 19.5762 11.2876 17.2698V11.2884H17.2689C19.5751 11.2884 19.5751 7.71154 17.2689 7.71154Z",fill:"white"})),(0,t.createElement)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M16 16L12.4584 12.4521L16 16ZM14.4211 7.71053C14.4211 9.49027 13.7141 11.1971 12.4556 12.4556C11.1971 13.7141 9.49027 14.4211 7.71053 14.4211C5.93078 14.4211 4.22394 13.7141 2.96547 12.4556C1.707 11.1971 1 9.49027 1 7.71053C1 5.93078 1.707 4.22394 2.96547 2.96547C4.22394 1.707 5.93078 1 7.71053 1C9.49027 1 11.1971 1.707 12.4556 2.96547C13.7141 4.22394 14.4211 5.93078 14.4211 7.71053V7.71053Z",stroke:"#AFB0B8","stroke-width":"2","stroke-linecap":"round"})),(0,t.createElement)("svg",{width:"17",height:"19",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M7.75874 0.604637H9.2413C9.37308 0.604637 9.43898 0.670529 9.43898 0.802312V18.1977C9.43898 18.3295 9.37308 18.3954 9.2413 18.3954H7.75874C7.62696 18.3954 7.56107 18.3295 7.56107 18.1977V0.802312C7.56107 0.670529 7.62696 0.604637 7.75874 0.604637Z",fill:"#939393"}),(0,t.createElement)("path",{d:"M0.197675 8.56104H16.8024C16.9341 8.56104 17 8.62693 17 8.75872V10.2413C17 10.3731 16.9341 10.439 16.8024 10.439H0.197675C0.0658916 10.439 0 10.3731 0 10.2413V8.75872C0 8.62693 0.0658916 8.56104 0.197675 8.56104Z",fill:"#939393"})),(0,t.createElement)("svg",{width:"59",height:"46",viewBox:"0 0 59 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M44.2701 0.486084C39.0382 0.486084 33.4038 1.5593 29.5134 4.51064C25.623 1.5593 19.9886 0.486084 14.7567 0.486084C10.8663 0.486084 6.73442 1.07635 3.27331 2.60568C1.31469 3.49109 0 5.39604 0 7.5693V37.834C0 41.3219 3.27331 43.8976 6.65393 43.0391C9.28331 42.3683 12.0737 42.0732 14.7567 42.0732C18.9422 42.0732 23.3961 42.7708 26.9914 44.5416C28.6012 45.3465 30.4256 45.3465 32.0086 44.5416C35.6039 42.7439 40.0578 42.0732 44.2433 42.0732C46.9263 42.0732 49.7167 42.3683 52.3461 43.0391C55.7267 43.9245 59 41.3487 59 37.834V7.5693C59 5.39604 57.6853 3.49109 55.7267 2.60568C52.2924 1.07635 48.1605 0.486084 44.2701 0.486084ZM53.6608 34.6412C53.6608 36.3315 52.1046 37.5657 50.4411 37.2705C48.4288 36.8949 46.3361 36.7339 44.2701 36.7339C39.709 36.7339 33.1355 38.4779 29.5134 40.7585V9.87672C33.1355 7.59613 39.709 5.85216 44.2701 5.85216C46.7385 5.85216 49.1801 6.09363 51.5143 6.60341C52.7485 6.87171 53.6608 7.97176 53.6608 9.23279V34.6412Z",fill:"url(#paint0_linear_2854_839)"}),(0,t.createElement)("path",{d:"M34.8258 17.9527C33.9673 17.9527 33.1892 17.4161 32.9209 16.5575C32.5721 15.5111 33.1624 14.3574 34.2087 14.0354C38.3406 12.6939 43.6799 12.2646 48.5898 12.8281C49.6899 12.9622 50.4948 13.955 50.3606 15.055C50.2265 16.155 49.2338 16.96 48.1337 16.8258C43.7872 16.316 39.0382 16.7185 35.4429 17.8722C35.2283 17.899 35.0137 17.9527 34.8258 17.9527ZM34.8258 25.0896C33.9673 25.0896 33.1892 24.553 32.9209 23.6944C32.5721 22.648 33.1624 21.4943 34.2087 21.1723C38.3138 19.8308 43.6799 19.4015 48.5898 19.965C49.6899 20.0991 50.4948 21.0918 50.3606 22.1919C50.2265 23.2919 49.2338 24.0968 48.1337 23.9627C43.7872 23.4529 39.0382 23.8554 35.4429 25.0091C35.2412 25.0605 35.034 25.0875 34.8258 25.0896ZM34.8258 32.2264C33.9673 32.2264 33.1892 31.6898 32.9209 30.8313C32.5721 29.7849 33.1624 28.6312 34.2087 28.3092C38.3138 26.9677 43.6799 26.5384 48.5898 27.1018C49.6899 27.236 50.4948 28.2287 50.3606 29.3288C50.2265 30.4288 49.2338 31.2069 48.1337 31.0996C43.7872 30.5898 39.0382 30.9922 35.4429 32.146C35.2412 32.1974 35.034 32.2244 34.8258 32.2264Z",fill:"url(#paint1_linear_2854_839)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_2854_839",x1:"-52.4316",y1:"-20.099",x2:"2.48406",y2:"80.5656",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{offset:"0.00359712","stop-color":"#514EFF"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#9571F6"})),(0,t.createElement)("linearGradient",{id:"paint1_linear_2854_839",x1:"17.2199",y1:"3.53352",x2:"45.2894",y2:"38.3454",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{offset:"0.00359712","stop-color":"#514EFF"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#9571F6"}))))),sl=(0,t.createElement)("svg",{width:"55",height:"45",viewBox:"0 0 55 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M50.6334 3.16432C50.3251 1.95336 48.8279 0.965332 47.3032 0.965332H7.69951C6.17206 0.965332 4.67487 1.95336 4.36938 3.16432L3.8162 6.46967H51.1838L50.6334 3.16432ZM53.4048 9.22184H1.5952C1.3729 9.22199 1.15308 9.26857 0.949829 9.35859C0.746575 9.44861 0.564365 9.5801 0.414871 9.74462C0.265376 9.90914 0.151893 10.1031 0.08169 10.314C0.0114874 10.5249 -0.0138866 10.7482 0.00719339 10.9695L2.54745 43.0845C2.59805 43.6087 2.84198 44.0952 3.23171 44.4493C3.62143 44.8034 4.12903 44.9998 4.65561 45.0001H50.3444C50.871 44.9998 51.3786 44.8034 51.7683 44.4493C52.158 44.0952 52.4019 43.6087 52.4525 43.0845L54.9928 10.9695C55.0139 10.7482 54.9885 10.5249 54.9183 10.314C54.8481 10.1031 54.7346 9.90914 54.5851 9.74462C54.4356 9.5801 54.2534 9.44861 54.0502 9.35859C53.8469 9.26857 53.6271 9.22199 53.4048 9.22184ZM21.997 33.9914V20.2305L34.0598 27.111L21.997 33.9914Z",fill:"url(#paint0_linear_2854_832)"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_2854_832",x1:"-33.6368",y1:"-9.06092",x2:"-16.1758",y2:"39.2147",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{"stop-color":"#A737D5"}),(0,t.createElement)("stop",{offset:"1","stop-color":"#EF497A"})))),cl=(0,t.createElement)("svg",{width:"78",height:"78",viewBox:"0 0 78 78",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"39",cy:"39",r:"39",fill:"white"}),(0,t.createElement)("path",{d:"M37.8821 19C35.3236 19 32.8699 20.0164 31.0607 21.8255C29.2516 23.6346 28.2352 26.0884 28.2352 28.6469C28.2352 31.2054 29.2516 33.6591 31.0607 35.4683C32.8699 37.2774 35.3236 38.2938 37.8821 38.2938C40.4407 38.2938 42.8944 37.2774 44.7036 35.4683C46.5127 33.6591 47.5291 31.2054 47.5291 28.6469C47.5291 26.0884 46.5127 23.6346 44.7036 21.8255C42.8944 20.0164 40.4407 19 37.8821 19ZM25.8452 40.7055C25.21 40.7029 24.5806 40.8258 23.993 41.067C23.4054 41.3083 22.8713 41.6631 22.4211 42.1113C21.971 42.5594 21.6137 43.0919 21.3699 43.6784C21.126 44.2649 21.0003 44.8938 21 45.5289C21 49.6071 23.009 52.6821 26.1491 54.6862C29.2409 56.6566 33.4084 57.5875 37.8821 57.5875C40.0045 57.5875 42.0569 57.3777 43.9597 56.9484C43.815 55.9041 43.9983 54.8189 44.5096 53.8687L44.5385 53.8156L44.7387 53.4852L46.1544 51.4087C46.6747 50.6309 47.4155 50.0262 48.2818 49.6721C49.148 49.3181 50.1003 49.2308 51.0164 49.4214L51.084 49.4359L51.4554 49.5372L52.7432 49.9665C53.134 49.5437 53.4761 49.0786 53.7634 48.5798C54.0649 48.0588 54.2843 47.5572 54.4387 47.0676L53.2811 45.9703C52.6422 45.357 52.1778 44.5849 51.9354 43.7331C51.693 42.8814 51.6813 41.9805 51.9016 41.1227C51.2846 40.8474 50.6165 40.7052 49.9408 40.7055H25.8452ZM54.3639 41.3446L55.3286 39.0752C55.7796 38.0092 56.8601 37.4304 57.9212 37.6522L58.1479 37.7101L59.3538 38.096C60.55 38.4795 61.4641 39.502 61.7607 40.7875C62.4625 43.8431 61.6208 47.5644 59.2308 51.9489C56.8456 56.3286 54.2337 58.9598 51.3903 59.8473C50.2857 60.1922 49.0991 59.9438 48.2068 59.1937L47.9728 58.9767L47.0564 58.0578C46.6714 57.6614 46.4227 57.1527 46.3463 56.6054C46.27 56.0582 46.37 55.5008 46.6319 55.0142L46.767 54.7923L48.1465 52.7665C48.3973 52.3841 48.7571 52.0857 49.1793 51.9098C49.6014 51.734 50.0667 51.6888 50.5148 51.7801L50.756 51.8452L53.3052 52.6966C54.3205 51.9248 55.1695 50.9601 55.8472 49.7904C56.4284 48.7896 56.8118 47.7766 56.9879 46.7493L57.0603 46.2331L54.9403 44.2194C54.5982 43.8859 54.3549 43.4643 54.2374 43.0013C54.12 42.5382 54.1329 42.0516 54.2747 41.5954L54.3639 41.3446Z",fill:"#3FA3FF"})),ul=((0,t.createElement)("svg",{width:"20",height:"22",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"22",cy:"24",r:"2",fill:"#ef4444"}),(0,t.createElement)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4a4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2a2.003 2.003 0 0 0-2-2Z"}),(0,t.createElement)("path",{fill:"#ef4444",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4Z"}),(0,t.createElement)("path",{fill:"#ef4444",d:"M12 28H7V7h3v3h12V7h3v9h2V7a2 2 0 0 0-2-2h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h5Zm0-24h8v4h-8Z"})),(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-file-earmark-text",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5"}),(0,t.createElement)("path",{d:"M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5zm0 1v2A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z"}))),dl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-123",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M2.873 11.297V4.142H1.699L0 5.379v1.137l1.64-1.18h.06v5.961zm3.213-5.09v-.063c0-.618.44-1.169 1.196-1.169.676 0 1.174.44 1.174 1.106 0 .624-.42 1.101-.807 1.526L4.99 10.553v.744h4.78v-.99H6.643v-.069L8.41 8.252c.65-.724 1.237-1.332 1.237-2.27C9.646 4.849 8.723 4 7.308 4c-1.573 0-2.36 1.064-2.36 2.15v.057zm6.559 1.883h.786c.823 0 1.374.481 1.379 1.179.01.707-.55 1.216-1.421 1.21-.77-.005-1.326-.419-1.379-.953h-1.095c.042 1.053.938 1.918 2.464 1.918 1.478 0 2.642-.839 2.62-2.144-.02-1.143-.922-1.651-1.551-1.714v-.063c.535-.09 1.347-.66 1.326-1.678-.026-1.053-.933-1.855-2.359-1.845-1.5.005-2.317.88-2.348 1.898h1.116c.032-.498.498-.944 1.206-.944.703 0 1.206.435 1.206 1.07.005.64-.504 1.106-1.2 1.106h-.75z"})),pl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-envelope",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"})),fl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-card-image",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),(0,t.createElement)("path",{d:"M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2zm13 1a.5.5 0 0 1 .5.5v6l-3.775-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12v.54L1 12.5v-9a.5.5 0 0 1 .5-.5z"})),hl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-textarea",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M1.5 2.5A1.5 1.5 0 0 1 3 1h10a1.5 1.5 0 0 1 1.5 1.5v3.563a2 2 0 0 1 0 3.874V13.5A1.5 1.5 0 0 1 13 15H3a1.5 1.5 0 0 1-1.5-1.5V9.937a2 2 0 0 1 0-3.874zm1 3.563a2 2 0 0 1 0 3.874V13.5a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V9.937a2 2 0 0 1 0-3.874V2.5A.5.5 0 0 0 13 2H3a.5.5 0 0 0-.5.5zM2 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2m12 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})),ml=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-ui-radios",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M7 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zM0 12a3 3 0 1 1 6 0 3 3 0 0 1-6 0m7-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5M3 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"})),gl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-check2-square",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M3 14.5A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5h8a.5.5 0 0 1 0 1H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V8a.5.5 0 0 1 1 0v5a1.5 1.5 0 0 1-1.5 1.5z"}),(0,t.createElement)("path",{d:"m8.354 10.354 7-7a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0"})),vl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-check2",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0"})),bl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-robot",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135"}),(0,t.createElement)("path",{d:"M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5"})),yl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-file-break",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M0 10.5a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5M12 0H4a2 2 0 0 0-2 2v7h1V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v7h1V2a2 2 0 0 0-2-2m2 12h-1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H2v2a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2z"})),wl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-file-earmark-binary-fill",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M5.526 10.273c-.542 0-.832.563-.832 1.612q0 .133.006.252l1.559-1.143c-.126-.474-.375-.72-.733-.72zm-.732 2.508c.126.472.372.718.732.718.54 0 .83-.563.83-1.614q0-.129-.006-.25z"}),(0,t.createElement)("path",{d:"M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0M9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1m-2.45 8.385c0 1.415-.548 2.206-1.524 2.206C4.548 14.09 4 13.3 4 11.885c0-1.412.548-2.203 1.526-2.203.976 0 1.524.79 1.524 2.203m3.805 1.52V14h-3v-.595h1.181V10.5h-.05l-1.136.747v-.688l1.19-.786h.69v3.633z"})),xl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-cloud-fog2-fill",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8.5 3a5 5 0 0 1 4.905 4.027A3 3 0 0 1 13 13h-1.5a.5.5 0 0 0 0-1H1.05a3.5 3.5 0 0 1-.713-1H9.5a.5.5 0 0 0 0-1H.035a3.5 3.5 0 0 1 0-1H7.5a.5.5 0 0 0 0-1H.337a3.5 3.5 0 0 1 3.57-1.977A5 5 0 0 1 8.5 3"})),Cl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-plus-square-dotted",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M2.5 0q-.25 0-.487.048l.194.98A1.5 1.5 0 0 1 2.5 1h.458V0zm2.292 0h-.917v1h.917zm1.833 0h-.917v1h.917zm1.833 0h-.916v1h.916zm1.834 0h-.917v1h.917zm1.833 0h-.917v1h.917zM13.5 0h-.458v1h.458q.151 0 .293.029l.194-.981A2.5 2.5 0 0 0 13.5 0m2.079 1.11a2.5 2.5 0 0 0-.69-.689l-.556.831q.248.167.415.415l.83-.556zM1.11.421a2.5 2.5 0 0 0-.689.69l.831.556c.11-.164.251-.305.415-.415zM16 2.5q0-.25-.048-.487l-.98.194q.027.141.028.293v.458h1zM.048 2.013A2.5 2.5 0 0 0 0 2.5v.458h1V2.5q0-.151.029-.293zM0 3.875v.917h1v-.917zm16 .917v-.917h-1v.917zM0 5.708v.917h1v-.917zm16 .917v-.917h-1v.917zM0 7.542v.916h1v-.916zm15 .916h1v-.916h-1zM0 9.375v.917h1v-.917zm16 .917v-.917h-1v.917zm-16 .916v.917h1v-.917zm16 .917v-.917h-1v.917zm-16 .917v.458q0 .25.048.487l.98-.194A1.5 1.5 0 0 1 1 13.5v-.458zm16 .458v-.458h-1v.458q0 .151-.029.293l.981.194Q16 13.75 16 13.5M.421 14.89c.183.272.417.506.69.689l.556-.831a1.5 1.5 0 0 1-.415-.415zm14.469.689c.272-.183.506-.417.689-.69l-.831-.556c-.11.164-.251.305-.415.415l.556.83zm-12.877.373Q2.25 16 2.5 16h.458v-1H2.5q-.151 0-.293-.029zM13.5 16q.25 0 .487-.048l-.194-.98A1.5 1.5 0 0 1 13.5 15h-.458v1zm-9.625 0h.917v-1h-.917zm1.833 0h.917v-1h-.917zm1.834-1v1h.916v-1zm1.833 1h.917v-1h-.917zm1.833 0h.917v-1h-.917zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z"})),Sl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-arrows-expand-vertical",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5M.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L1.707 7.5H5.5a.5.5 0 0 1 0 1H1.707l1.147 1.146a.5.5 0 0 1-.708.708zM10 8a.5.5 0 0 1 .5-.5h3.793l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L14.293 8.5H10.5A.5.5 0 0 1 10 8"})),El=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-calendar2-week",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1z"}),(0,t.createElement)("path",{d:"M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5zM11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"})),Nl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-browser-chrome",viewBox:"0 0 16 16"},(0,t.createElement)("path",{"fill-rule":"evenodd",d:"M16 8a8 8 0 0 1-7.022 7.94l1.902-7.098a3 3 0 0 0 .05-1.492A3 3 0 0 0 10.237 6h5.511A8 8 0 0 1 16 8M0 8a8 8 0 0 0 7.927 8l1.426-5.321a3 3 0 0 1-.723.255 3 3 0 0 1-1.743-.147 3 3 0 0 1-1.043-.7L.633 4.876A8 8 0 0 0 0 8m5.004-.167L1.108 3.936A8.003 8.003 0 0 1 15.418 5H8.066a3 3 0 0 0-1.252.243 2.99 2.99 0 0 0-1.81 2.59M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4"})),Ml=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-link",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M6.354 5.5H4a3 3 0 0 0 0 6h3a3 3 0 0 0 2.83-4H9q-.13 0-.25.031A2 2 0 0 1 7 10.5H4a2 2 0 1 1 0-4h1.535c.218-.376.495-.714.82-1z"}),(0,t.createElement)("path",{d:"M9 5.5a3 3 0 0 0-2.83 4h1.098A2 2 0 0 1 9 6.5h3a2 2 0 1 1 0 4h-1.535a4 4 0 0 1-.82 1H12a3 3 0 1 0 0-6z"})),Il=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-alarm",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8.5 5.5a.5.5 0 0 0-1 0v3.362l-1.429 2.38a.5.5 0 1 0 .858.515l1.5-2.5A.5.5 0 0 0 8.5 9z"}),(0,t.createElement)("path",{d:"M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 .707.708l.746-.746A6.97 6.97 0 0 0 8 16a6.97 6.97 0 0 0 3.422-.892l.746.746a.5.5 0 0 0 .707-.708l-.601-.602A7.001 7.001 0 0 0 9 2.07V1h.5a.5.5 0 0 0 0-1zm1.038 3.018a6 6 0 0 1 .924 0 6 6 0 1 1-.924 0M0 3.5c0 .753.333 1.429.86 1.887A8.04 8.04 0 0 1 4.387 1.86 2.5 2.5 0 0 0 0 3.5M13.5 1c-.753 0-1.429.333-1.887.86a8.04 8.04 0 0 1 3.527 3.527A2.5 2.5 0 0 0 13.5 1"})),Al=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-telephone-x",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"}),(0,t.createElement)("path",{"fill-rule":"evenodd",d:"M11.146 1.646a.5.5 0 0 1 .708 0L13 2.793l1.146-1.147a.5.5 0 0 1 .708.708L13.707 3.5l1.147 1.146a.5.5 0 0 1-.708.708L13 4.207l-1.146 1.147a.5.5 0 0 1-.708-.708L12.293 3.5l-1.147-1.146a.5.5 0 0 1 0-.708"})),kl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-send-arrow-up",viewBox:"0 0 16 16"},(0,t.createElement)("path",{"fill-rule":"evenodd",d:"M15.854.146a.5.5 0 0 1 .11.54l-2.8 7a.5.5 0 1 1-.928-.372l1.895-4.738-7.494 7.494 1.376 2.162a.5.5 0 1 1-.844.537l-1.531-2.407L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM5.93 9.363l7.494-7.494L1.591 6.602z"}),(0,t.createElement)("path",{"fill-rule":"evenodd",d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m.354-5.354a.5.5 0 0 0-.722.016l-1.149 1.25a.5.5 0 1 0 .737.676l.28-.305V14a.5.5 0 0 0 1 0v-1.793l.396.397a.5.5 0 0 0 .708-.708z"})),Pl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-pause-btn",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5m3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5"}),(0,t.createElement)("path",{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 0a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1z"})),Ll=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-asterisk",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8 0a1 1 0 0 1 1 1v5.268l4.562-2.634a1 1 0 1 1 1 1.732L10 8l4.562 2.634a1 1 0 1 1-1 1.732L9 9.732V15a1 1 0 1 1-2 0V9.732l-4.562 2.634a1 1 0 1 1-1-1.732L6 8 1.438 5.366a1 1 0 0 1 1-1.732L7 6.268V1a1 1 0 0 1 1-1"})),Rl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-calendar-date",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M6.445 11.688V6.354h-.633A13 13 0 0 0 4.5 7.16v.695c.375-.257.969-.62 1.258-.777h.012v4.61zm1.188-1.305c.047.64.594 1.406 1.703 1.406 1.258 0 2-1.066 2-2.871 0-1.934-.781-2.668-1.953-2.668-.926 0-1.797.672-1.797 1.809 0 1.16.824 1.77 1.676 1.77.746 0 1.23-.376 1.383-.79h.027c-.004 1.316-.461 2.164-1.305 2.164-.664 0-1.008-.45-1.05-.82zm2.953-2.317c0 .696-.559 1.18-1.184 1.18-.601 0-1.144-.383-1.144-1.2 0-.823.582-1.21 1.168-1.21.633 0 1.16.398 1.16 1.23"}),(0,t.createElement)("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"})),Tl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-calendar2-month",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"m2.56 12.332.54-1.602h1.984l.54 1.602h.718L4.444 7h-.696L1.85 12.332zm1.544-4.527L4.9 10.18H3.284l.8-2.375zm5.746.422h-.676v2.543c0 .652-.414 1.023-1.004 1.023-.539 0-.98-.246-.98-1.012V8.227h-.676v2.746c0 .941.606 1.425 1.453 1.425.656 0 1.043-.28 1.188-.605h.027v.539h.668zm2.258 5.046c-.563 0-.91-.304-.985-.636h-.687c.094.683.625 1.199 1.668 1.199.93 0 1.746-.527 1.746-1.578V8.227h-.649v.578h-.019c-.191-.348-.637-.64-1.195-.64-.965 0-1.64.679-1.64 1.886v.34c0 1.23.683 1.902 1.64 1.902.558 0 1.008-.293 1.172-.648h.02v.605c0 .645-.423 1.023-1.071 1.023m.008-4.53c.648 0 1.062.527 1.062 1.359v.253c0 .848-.39 1.364-1.062 1.364-.692 0-1.098-.512-1.098-1.364v-.253c0-.868.406-1.36 1.098-1.36z"}),(0,t.createElement)("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1z"}),(0,t.createElement)("path",{d:"M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5z"})),Dl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-palette",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8 5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m4 3a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M5.5 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m.5 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),(0,t.createElement)("path",{d:"M16 8c0 3.15-1.866 2.585-3.567 2.07C11.42 9.763 10.465 9.473 10 10c-.603.683-.475 1.819-.351 2.92C9.826 14.495 9.996 16 8 16a8 8 0 1 1 8-8m-8 7c.611 0 .654-.171.655-.176.078-.146.124-.464.07-1.119-.014-.168-.037-.37-.061-.591-.052-.464-.112-1.005-.118-1.462-.01-.707.083-1.61.704-2.314.369-.417.845-.578 1.272-.618.404-.038.812.026 1.16.104.343.077.702.186 1.025.284l.028.008c.346.105.658.199.953.266.653.148.904.083.991.024C14.717 9.38 15 9.161 15 8a7 7 0 1 0-7 7"})),Ol=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-eraser",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8.086 2.207a2 2 0 0 1 2.828 0l3.879 3.879a2 2 0 0 1 0 2.828l-5.5 5.5A2 2 0 0 1 7.879 15H5.12a2 2 0 0 1-1.414-.586l-2.5-2.5a2 2 0 0 1 0-2.828zm2.121.707a1 1 0 0 0-1.414 0L4.16 7.547l5.293 5.293 4.633-4.633a1 1 0 0 0 0-1.414zM8.746 13.547 3.453 8.254 1.914 9.793a1 1 0 0 0 0 1.414l2.5 2.5a1 1 0 0 0 .707.293H7.88a1 1 0 0 0 .707-.293z"})),jl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-type-h1",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M7.648 13V3H6.3v4.234H1.348V3H0v10h1.348V8.421H6.3V13zM14 13V3h-1.333l-2.381 1.766V6.12L12.6 4.443h.066V13z"})),Fl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-bookmark-plus",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v13.5a.5.5 0 0 1-.777.416L8 13.101l-5.223 2.815A.5.5 0 0 1 2 15.5zm2-1a1 1 0 0 0-1 1v12.566l4.723-2.482a.5.5 0 0 1 .554 0L13 14.566V2a1 1 0 0 0-1-1z"}),(0,t.createElement)("path",{d:"M8 4a.5.5 0 0 1 .5.5V6H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V7H6a.5.5 0 0 1 0-1h1.5V4.5A.5.5 0 0 1 8 4"})),_l=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-film",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M0 1a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm4 0v6h8V1zm8 8H4v6h8zM1 1v2h2V1zm2 3H1v2h2zM1 7v2h2V7zm2 3H1v2h2zm-2 3v2h2v-2zM15 1h-2v2h2zm-2 3v2h2V4zm2 3h-2v2h2zm-2 3v2h2v-2zm2 3h-2v2h2z"})),Zl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-mic",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5"}),(0,t.createElement)("path",{d:"M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3"})),zl=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-youtube",viewBox:"0 0 16 16"},(0,t.createElement)("path",{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"}));var Bl=a(2894);const Hl=ot(),$l="1"===rt()?"pro-active":"pro-inactive";var ql=[{id:"text-input",name:"name-text-input",label:"Text Input",type:"text",placeholder:"Enter text...",className:"custom-input",required:!0,pro:$l,profeature:"false",value:"",subtype:"text",isNew:"old"},{id:"number-input",name:"number-text-input",label:"Number",type:"number",placeholder:"Enter no...",className:"custom-input",required:!0,pro:$l,value:"",isNew:"old"},{id:"email-input",name:"email-text-input",label:"Email",type:"email",placeholder:"Enter email...",className:"custom-input",required:!0,pro:$l,profeature:"false",value:"",subtype:"email",isNew:"old"},{id:"image-input",name:"image-text-input",label:"Image",type:"image",placeholder:"Enter image ...",className:"image-field",required:!0,pro:$l,profeature:"false",value:"",src:"https://wpxperties.com/wp-content/themes/wpxperties/assets/img/simple-form/Drag-drop.png",width:"150",height:"100",subtype:"image",isNew:"old"},{id:"text-field",name:"textfield-text-input",label:"Text Field",type:"text",placeholder:"",className:"custom-input",required:!0,pro:$l,profeature:"false",value:"",subtype:"text",isNew:"old"},{id:"text-area",name:"textarea-text-input",label:"Text Area",type:"textarea",placeholder:"",className:"custom-input-text-area",required:!0,pro:$l,profeature:"false",value:"",subtype:"textarea",isNew:"old"},{id:"radio-button",className:"radio-inputs",label:"Radio Button",type:"radio",required:!1,name:"radio-button",pro:$l,profeature:"false",isNew:"old",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}],subtype:"radio"},{id:"checkbox",className:"checkbox-inputs",label:"Checkbox",type:"checkbox",name:"checkbox-button",toggle:!1,required:!1,pro:$l,profeature:"false",isNew:"old",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}]},{id:"select-input",className:"select-inputs",name:"select-input",label:"Select",type:"select",required:!1,pro:$l,isNew:"old",profeature:"false",options:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"}]},{id:"custom-captcha",name:"custom-captcha-input",label:"Custom Captcha",type:"customcaptcha",className:"custom-captch",required:!0,subtype:"customcaptcha",pro:$l,profeature:"false",isNew:"old"},{id:"page_break_id",name:"page_break_name",label:"Page Break",type:"page_break",required:!1,subtype:"page_break",pro:$l,profeature:"false",isNew:"old"},{id:"simple-form-turnstile",name:"cloudflare-input",label:"Cloudflare Captcha",className:"sf-turnstile-container",type:"cloudflare",sitekey:Hl.siteKey?Hl.siteKey:"",positioned:"above-btn",theme:"auto",btnaccess:"false",size:"normal",error:"",required:!0,subtype:"cloudflare",pro:$l,profeature:"false",isNew:"old"},{id:"esignature",name:"esignature-input",label:"E-Signature",type:"esignature",className:"esignature-field",required:!1,subtype:"esignature",pro:$l,profeature:"false",isNew:"old"},{id:"range-input",name:"range-text-input",label:"Range",type:"range",placeholder:"Enter range ...",className:"range-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"range",isNew:"old"},{id:"week-input",name:"week-text-input",label:"Week Field",type:"week",placeholder:"Enter week...",className:"week-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"week",isNew:"old"},{id:"url-input",name:"url-text-input",label:"URL",type:"url",placeholder:"Enter url...",className:"url-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"url",isNew:"old"},{id:"time-input",name:"time-text-input",label:"Time Field",type:"time",placeholder:"Enter time...",className:"time-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"time",isNew:"old"},{id:"tel-input",name:"tel-text-input",label:"Telephone",type:"tel",placeholder:"Enter tel...",className:"tel-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"tel",isNew:"old"},{id:"submit-btn",name:"submit-btn",label:"Submit",type:"submit",placeholder:"Enter submit ...",className:"submit-btn",required:!0,pro:$l,profeature:"false",value:"Submit",subtype:"submit",isNew:"old"},{id:"button-input",name:"button-text-input",label:"Button",type:"button",placeholder:"button field...",className:"button-field",required:!0,pro:$l,profeature:"false",value:"Click",subtype:"button",isNew:"old"},{id:"password-input",name:"password-text-input",label:"Password",type:"password",placeholder:"Enter password ...",className:"password-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"password",isNew:"old"},{id:"date-input",name:"date-text-input",label:"Date",type:"date",placeholder:"Enter date ...",className:"date-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"date",isNew:"old"},{id:"datetime-local-input",name:"datetime-local-text-input",label:"Datetime-local",type:"datetime-local",placeholder:"Enter datetime-local ...",className:"datetime-local-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"datetime-local",isNew:"old"},{id:"color-input",name:"color-text-input",label:"Color",type:"color",placeholder:"Enter color ...",className:"color-field",required:!0,pro:$l,profeature:"false",value:"",subtype:"color",isNew:"old"},{id:"text-hidden",name:"hidden-text-input",label:"Hidden Field",type:"hidden",placeholder:"",className:"custom-input",required:!1,value:"",pro:$l,profeature:"false",isNew:"old"},{label:"Heading",content:"This is Heading 1",id:"heading-input",name:"heading-text-input",type:"heading",headingtype:"h1",className:"heading-input",pro:$l,profeature:"false",value:"",subtype:"heading",isNew:"old"},{label:"label",id:"label-input",name:"label-text-input",type:"label",className:"label-input",for:"",content:"This is Label",value:"",pro:$l,profeature:"false",subtype:"label",isNew:"old"},{label:"Links",content:"View",id:"link-ids",name:"link-text",type:"link",href:"",target:"_blank",className:"link-classes",pro:$l,profeature:"false",subtype:"link",isNew:"old"},{label:"Video",content:"Check the video",id:"video-ids",name:"video-text",type:"video",width:"",height:"",src:"",className:"video-classes",pro:$l,profeature:"false",subtype:"video",isNew:"old"},{label:"Audio",content:"Check the audio",id:"audio-ids",name:"audio-text",type:"audio",width:"",height:"",src:"",className:"audio-classes",pro:$l,profeature:"false",subtype:"audio",isNew:"old"},{label:"Iframe",content:"Check the Content",id:"iframe-ids",name:"iframe-text",type:"iframe",width:"",height:"",src:"https://wpxperties.com/simple-form/",className:"iframe-classes",pro:$l,profeature:"false",subtype:"iframe",isNew:"old"}];rt();var Wl=({field:e})=>{switch(e.type){case"text":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"text",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value,subtype:e.subtype}));case"textarea":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("textarea",{type:"textarea",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value,subtype:e.subtype}));case"number":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"number",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId,value:e.value}));case"button":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"button",value:e.value,className:e.className,required:e.required,id:e.id,"data-unique-id":e.uniqueId}));case"hidden":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"hidden",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"page_break":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label));case"esignature":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," ✍️"));case"customcaptcha":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," 🤖"));case"cloudflare":return"pro-inactive"===e.pro&&"true"===e.profeature?(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,"This is Pro feature. It wont work if you add it forcefully")):(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label," ⚙️"));case"email":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"email",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId,subtype:e.subtype}));case"date":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"date",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"color":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"color",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"datetime-local":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"datetime-local",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"password":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"password",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId}));case"tel":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"tel",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"submit":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"submit",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,value:e.value,"data-unique-id":e.uniqueId}));case"time":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"time",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"url":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"url",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"week":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"week",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"search":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"search",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"reset":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"reset",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"range":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"range",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"image":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"image",src:e.src,alt:e.alt,width:e.width,height:e.height,className:e.className,required:e.required,id:e.id,name:e.name,"data-unique-id":e.uniqueId}));case"month":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-text"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"month",placeholder:e.placeholder,className:e.className,required:e.required,id:e.id,name:e.name,value:e.value,"data-unique-id":e.uniqueId}));case"radio":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-radio"},(0,t.createElement)("label",null,e.label),e.options.map(((n,r)=>(0,t.createElement)("label",{key:r},(0,t.createElement)("input",{type:"radio",name:e.name,subtype:e.subtype,required:e.required,id:e.id,"data-unique-id":e.uniqueId,value:n.value}),n.label))));case"checkbox":return(0,t.createElement)("div",{key:e.uniqueId},"true"===e.toggle?(e=>(0,t.createElement)("div",{className:"simple-form-checkbox-toggle"},(0,t.createElement)("label",{className:"switch-label"},e.label,(0,t.createElement)("input",{type:"checkbox",id:e.id,name:e.name,className:`switch-input ${e.className}`,required:e.required}),(0,t.createElement)("span",{className:"slider round"})),e.toggle?null:(0,t.createElement)("div",null,e.options.map((n=>(0,t.createElement)("label",{key:n.value},n.label,(0,t.createElement)("input",{type:"checkbox",name:`${e.name}[]`,value:n.value})))))))(e):(e=>(0,t.createElement)("div",{className:"simple-form-checkbox-default"},(0,t.createElement)("label",{htmlFor:e.id},e.label),(0,t.createElement)("div",null,e.options.map((n=>(0,t.createElement)("label",{key:n.value},(0,t.createElement)("input",{type:"checkbox",id:n.value,name:`${e.name}[]`,value:n.value,className:e.className,required:e.required}),n.label))))))(e));case"select":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-select"},(0,t.createElement)("label",null,e.label),e.options.map((n=>(0,t.createElement)("div",{key:n.value,className:"simple-form-fields"},(0,t.createElement)("input",{type:"radio",id:n.value,name:e.name,value:n.value}),(0,t.createElement)("label",{htmlFor:n.value},n.label)))));case"file":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-file"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("input",{type:"file"}));case"heading":return"h1"===e.headingtype?(0,t.createElement)("h1",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h2"===e.headingtype?(0,t.createElement)("h2",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h3"===e.headingtype?(0,t.createElement)("h3",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h4"===e.headingtype?(0,t.createElement)("h4",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h5"===e.headingtype?(0,t.createElement)("h5",{key:e.uniqueId,id:e.id,className:e.className},e.content):"h6"===e.headingtype?(0,t.createElement)("h6",{key:e.uniqueId,id:e.id,className:e.className},e.content):(0,t.createElement)("p",{key:e.uniqueId,id:e.id,className:e.className},e.content);case"label":return(0,t.createElement)("label",{key:e.uniqueId,id:e.id,for:e.for,className:e.className},e.content);case"link":return(0,t.createElement)("div",{key:e.uniqueId,className:"simple-form-file"},(0,t.createElement)("label",null,e.label),(0,t.createElement)("a",{id:e.id,href:e.href,target:e.target,className:e.className},e.content));case"video":return(0,t.createElement)("video",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,controls:!0,src:e.src,className:e.className},e.content);case"audio":return(0,t.createElement)("audio",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,controls:!0,src:e.src,className:e.className},e.content);case"iframe":return(0,t.createElement)("iframe",{key:e.uniqueId,id:e.id,width:e.width,height:e.height,src:e.src,className:e.className},e.content);default:return null}},Vl=()=>{const e=it().length,r=rt(),o=G(),[i,a]=(0,n.useState)(e),[l,s]=(0,n.useState)(ql),[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(),[p,f]=(0,n.useState)([]),[h,m]=(0,n.useState)([]),[g,v]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[w,x]=(0,n.useState)(null),[C,S]=(0,n.useState)(!1),E=()=>{u(!1),y((e=>!e))};function N(e){d.current&&!d.current.contains(e.target)&&E()}(0,n.useEffect)((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[N]);const M=()=>{m(p),y((e=>!e)),u(!0)},I=()=>{wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){a(e.tables_count)},error({message:e}){}})};return(0,n.useEffect)((()=>{I()}),[]),(0,t.createElement)("div",{className:"simple-form-builder"},(0,t.createElement)("div",{className:"form-header"},(0,t.createElement)("h2",null,(0,t.createElement)(Bl.Z,null)," Drag and Drop Form Builder"),(0,t.createElement)("div",{className:"checkbox-wrapper"},(0,t.createElement)("span",{className:"formname"},(0,t.createElement)("input",{type:"text",placeholder:"Add form name",name:"simpleformname",className:"js-open-modal",id:"formName"})),!g&&(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json"),(0,t.createElement)("button",{className:"js-open-modal saveData",onClick:()=>{i>2&&!r?Swal.fire({icon:"warning",title:"Need Pro to create more forms!",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'}):(m(p),y((e=>!e)),Swal.fire({text:"Are you done!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Save!"}).then((e=>{if(e.isConfirmed){const e=p,t=document.getElementById("formName").value;wp.ajax.send("simpleform_create_form",{data:{nonce:nt(),name:t||"Untitled",formdata:e},success({id:e}){Swal.fire({position:"center",icon:"success",title:"Your Form has been saved",showConfirmButton:!1,timer:1500}),I(),o("/")},error({message:e}){}})}})))},id:"saveData",type:"button"},"Save"))),(0,t.createElement)("div",{className:"form-builder-container"},(0,t.createElement)(Ea,{onDragEnd:e=>{if(!e.destination)return;const t=e.source.index,n=e.destination.index;if("available-fields"===e.source.droppableId){const e=l[t],r={...e,id:`${e.id}-${(new Date).getTime()}`,name:`${e.name}-${(new Date).getTime()}`,uniqueId:`field-${(new Date).getTime()}`};f((e=>{const t=[...e];return t.splice(n,0,r),t}))}else"form-canvas"===e.source.droppableId&&f((e=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r}))}},(0,t.createElement)("div",{className:"form-builder"},(0,t.createElement)("div",{className:"form-fields"},(0,t.createElement)("h3",null,"Available Fields"),(0,t.createElement)(rl,{droppableId:"available-fields",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"draggable-field-container"},l.map(((e,n)=>(0,t.createElement)(Ja,{key:e.id,draggableId:e.id,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+("pro-inactive"===e.pro&&"true"===e.profeature?"locked":"")},(0,t.createElement)("div",{className:"field-icons"},"text"===e.type&&(0,t.createElement)("button",{className:"field-icon"},ul),"number"===e.type&&(0,t.createElement)("button",{className:"field-icon"},dl),"email"===e.type&&(0,t.createElement)("button",{className:"field-icon"},pl),"image"===e.type&&(0,t.createElement)("button",{className:"field-icon"},fl),"textarea"===e.type&&(0,t.createElement)("button",{className:"field-icon"},hl),"radio"===e.type&&(0,t.createElement)("button",{className:"field-icon"},ml),"checkbox"===e.type&&(0,t.createElement)("button",{className:"field-icon"},gl),"select"===e.type&&(0,t.createElement)("button",{className:"field-icon"},vl),"customcaptcha"===e.type&&(0,t.createElement)("button",{className:"field-icon"},bl),"page_break"===e.type&&(0,t.createElement)("button",{className:"field-icon"},yl),"file"===e.type&&(0,t.createElement)("button",{className:"field-icon"},wl),"cloudflare"===e.type&&(0,t.createElement)("button",{className:"field-icon"},xl),"esignature"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Cl),"range"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Sl),"week"===e.type&&(0,t.createElement)("button",{className:"field-icon"},El),"url"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Nl),"time"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Il),"tel"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Al),"submit"===e.type&&(0,t.createElement)("button",{className:"field-icon"},kl),"button"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Pl),"password"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ll),"date"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Rl),"datetime-local"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Tl),"color"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Dl),"hidden"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ol),"heading"===e.type&&(0,t.createElement)("button",{className:"field-icon"},jl),"label"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Fl),"link"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ml),"video"===e.type&&(0,t.createElement)("button",{className:"field-icon"},_l),"audio"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Zl),"iframe"===e.type&&(0,t.createElement)("button",{className:"field-icon"},zl)),e.label,"pro-inactive"===e.pro&&"true"===e.profeature&&(0,t.createElement)("div",{className:"PRO_TAG"},"PRO")))))),e.placeholder)))),(0,t.createElement)("div",{className:"form-canvas"},(0,t.createElement)("h3",null,"Form Canvas"),(0,t.createElement)(rl,{droppableId:"form-canvas",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"form-canvas-container"},p.map(((e,n)=>(0,t.createElement)(Ja,{key:e.uniqueId,draggableId:e.uniqueId,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":"")},(0,t.createElement)(Wl,{field:e}),(0,t.createElement)("button",{className:"form-edit "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":""),onClick:()=>{(e=>{const t=p.find((t=>t.uniqueId===e));v({...t})})(e.uniqueId),S(!0)}},ol),(0,t.createElement)("button",{className:"form-remove",onClick:()=>(e=>{const t=p.filter((t=>t.uniqueId!==e));f(t),v(null)})(e.uniqueId)},il)))))),e.placeholder)))))),g&&(0,t.createElement)("div",{className:"edit-field-form"},(0,t.createElement)("div",{className:"form-btn-group"},(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{(()=>{const e=p.map((e=>e.uniqueId===g.uniqueId?{...g}:e));f(e),v(null)})(),S(!1)}},"Update"),(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json")),(0,t.createElement)("h3",null,"Edit Field"),(0,t.createElement)("div",{className:"edit-fields-section"},(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"ID:"),(0,t.createElement)("input",{type:"text",value:g.id,onChange:e=>v({...g,id:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Name:"),(0,t.createElement)("input",{type:"text",value:g.name,onChange:e=>v({...g,name:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:g.label,onChange:e=>v({...g,label:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Type:"),"file"!==g.type&&"select"!==g.type&&"checkbox"!==g.type&&"radio"!==g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.type,onChange:e=>v({...g,type:e.target.value})},(0,t.createElement)("option",{value:"button"},"Button"),(0,t.createElement)("option",{value:"color"},"Color"),(0,t.createElement)("option",{value:"date"},"Date"),(0,t.createElement)("option",{value:"datetime-local"},"Datetime-local"),(0,t.createElement)("option",{value:"email"},"Email"),(0,t.createElement)("option",{value:"hidden"},"Hidden"),(0,t.createElement)("option",{value:"image"},"Image"),(0,t.createElement)("option",{value:"month"},"Month"),(0,t.createElement)("option",{value:"number"},"Number"),(0,t.createElement)("option",{value:"password"},"Password"),(0,t.createElement)("option",{value:"range"},"Range"),(0,t.createElement)("option",{value:"reset"},"Reset"),(0,t.createElement)("option",{value:"search"},"Search"),(0,t.createElement)("option",{value:"submit"},"Submit"),(0,t.createElement)("option",{value:"tel"},"Tel"),(0,t.createElement)("option",{value:"text"},"Text"),(0,t.createElement)("option",{value:"text"},"Text Input"),(0,t.createElement)("option",{value:"textarea"},"Text Area"),(0,t.createElement)("option",{value:"time"},"Time"),(0,t.createElement)("option",{value:"url"},"URL"),(0,t.createElement)("option",{value:"week"},"Week"),(0,t.createElement)("option",{value:"cloudflare"},"Cloudflare"),(0,t.createElement)("option",{value:"esignature"},"E-signature"),(0,t.createElement)("option",{value:"customcaptcha"},"Custom captcha"),(0,t.createElement)("option",{value:"page_break"},"Page break"),(0,t.createElement)("option",{value:"heading"},"Heading"),(0,t.createElement)("option",{value:"label"},"Label"),(0,t.createElement)("option",{value:"link"},"Link"),(0,t.createElement)("option",{value:"video"},"Video"),(0,t.createElement)("option",{value:"audio"},"Audio"),(0,t.createElement)("option",{value:"iframe"},"iframe")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Subtype:"),(0,t.createElement)("input",{type:"text",value:g.subtype,onChange:e=>v({...g,subtype:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Placeholder:"),(0,t.createElement)("input",{type:"text",value:g.placeholder,onChange:e=>v({...g,placeholder:e.target.value})})),"image"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Sorce:"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Alt:"),(0,t.createElement)("input",{type:"text",value:g.alt,onChange:e=>v({...g,alt:e.target.value})}))),"heading"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"label"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"For value:"),(0,t.createElement)("input",{type:"text",value:g.for,onChange:e=>v({...g,for:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"link"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"href:"),(0,t.createElement)("input",{type:"text",value:g.href,onChange:e=>v({...g,href:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Redirection Type:"),"link"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.target,onChange:e=>v({...g,target:e.target.value})},(0,t.createElement)("option",{value:"_blank"},"New Tab"),(0,t.createElement)("option",{value:"_self"},"Same Tab")):(0,t.createElement)("input",{type:"text",value:g.target,onChange:e=>v({...g,target:e.target.value})}))),"video"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"audio"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"iframe"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"cloudflare"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Site Key:"),(0,t.createElement)("input",{type:"text",value:g.sitekey,onChange:e=>v({...g,sitekey:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Positioned:"),(0,t.createElement)("select",{className:"select-type-class",value:g.positioned,onChange:e=>v({...g,positioned:e.target.value})},(0,t.createElement)("option",{value:"top"},"Top of the Form"),(0,t.createElement)("option",{value:"above-btn"},"Above Button"),(0,t.createElement)("option",{value:"below-btn"},"Below Button"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Theme:"),(0,t.createElement)("select",{className:"select-type-class",value:g.theme,onChange:e=>v({...g,theme:e.target.value})},(0,t.createElement)("option",{value:"light"},"Light"),(0,t.createElement)("option",{value:"dark"},"Dark"),(0,t.createElement)("option",{value:"auto"},"Auto"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Button access:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.btnaccess,onChange:e=>v({...g,btnaccess:e.target.checked?"true":"false"})}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Error message:"),(0,t.createElement)("input",{type:"text",value:g.error,onChange:e=>v({...g,error:e.target.value})}))),"checkbox"===g.type&&(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Toggle:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.toggle,onChange:e=>{v({...g,toggle:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Required:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.required,onChange:e=>{v({...g,required:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Class Name:"),(0,t.createElement)("input",{type:"text",value:g.className,onChange:e=>v({...g,className:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:g.value,onChange:e=>v({...g,value:e.target.value})})),["select","radio","checkbox"].includes(g.type)&&(0,t.createElement)("div",null,(0,t.createElement)("h4",null,"select"===g.type?"Select Options":"Options"),g.options.map(((e,n)=>(0,t.createElement)("div",{className:"simple-form-id-panel select-fields-panel",key:n},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:e.label,onChange:t=>{const r=[...g.options];r[n]={...e,label:t.target.value},v({...g,options:r})}}),(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:e.value,onChange:t=>{const r=[...g.options];r[n]={...e,value:t.target.value},v({...g,options:r})}}),(0,t.createElement)("button",{className:"option-remover-multiple",onClick:()=>(e=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)&&null!==e){const t=[...g.options];t.splice(e,1),v({...g,options:t}),x(null)}})(n)},il)))),(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)){const e=[...g.options,{label:"New Option",value:"New Option"}];v({...g,options:e})}}},"Add Option")))),c&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"create-table-modal-wrap modal-content manage-modal-content",ref:d},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>E()},al),(0,t.createElement)("pre",null,"Form Data: ",JSON.stringify(h,null,2))))))},Ul=()=>{rt(),G();const{id:e}=function(){let{matches:e}=n.useContext($),t=e[e.length-1];return t?t.params:{}}(),[r,o]=(0,n.useState)(""),[i,a]=(0,n.useState)({}),[l,s]=(0,n.useState)(ql),[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(),[p,f]=(0,n.useState)([]),[h,m]=(0,n.useState)([]),[g,v]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[w,x]=(0,n.useState)(null),[C,S]=(0,n.useState)(!1),E=()=>{u(!1),y((e=>!e))};function N(e){d.current&&!d.current.contains(e.target)&&E()}(0,n.useEffect)((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[N]);const M=()=>{m(p),y((e=>!e)),u(!0)};return(0,n.useEffect)((()=>{wp.ajax.send("simpleform_edit_table",{data:{nonce:nt(),id:e},success(t){o(t.form_name),a({...t,id:e}),f(t.table_settings)},error(e){console.error("Error:",e)}})}),[]),(0,t.createElement)("div",{className:"simple-form-builder"},(0,t.createElement)("div",{className:"form-header"},(0,t.createElement)("h2",null,(0,t.createElement)(Bl.Z,null)," Drag and Drop Form Builder"),(0,t.createElement)("div",{className:"checkbox-wrapper"},(0,t.createElement)("span",{className:"formname"},(0,t.createElement)("input",{type:"text",value:r,placeholder:"Add form name",name:"simpleformname",className:"js-open-modal",id:"formName",onChange:e=>o(e.target.value)}),(0,t.createElement)("input",{type:"hidden",name:"formid",id:"formid",value:i.id||""})),(0,t.createElement)("div",{className:"button-sub-group-simple-form"},!g&&(0,t.createElement)("button",{className:"jsonbtn",onClick:M},b?"Hide Json":"Show Json"),(0,t.createElement)("button",{className:"js-open-modal saveData",onClick:()=>{m(p),y((e=>!e)),Swal.fire({text:"Are you done!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Save!"}).then((e=>{if(e.isConfirmed){const e=p,t=document.getElementById("formName").value,n=document.getElementById("formid").value;wp.ajax.send("simpleform_save_table",{data:{nonce:nt(),id:n,name:t,formdata:e},success({id:e}){Swal.fire({position:"center",icon:"success",title:"Your Form has been saved",showConfirmButton:!1,timer:1500})},error({message:e}){console.log(e)}})}}))},id:"saveData",type:"button"},"Update")))),(0,t.createElement)("div",{className:"form-builder-container"},(0,t.createElement)(Ea,{onDragEnd:e=>{if(!e.destination)return;const t=e.source.index,n=e.destination.index;if("available-fields"===e.source.droppableId){const e=l[t],r={...e,id:`${e.id}-${(new Date).getTime()}`,name:`${e.name}-${(new Date).getTime()}`,uniqueId:`field-${(new Date).getTime()}`};f((e=>{const t=[...e];return t.splice(n,0,r),t}))}else"form-canvas"===e.source.droppableId&&f((e=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r}))}},(0,t.createElement)("div",{className:"form-builder"},(0,t.createElement)("div",{className:"form-fields"},(0,t.createElement)("h3",null,"Available Fields"),(0,t.createElement)(rl,{droppableId:"available-fields",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"draggable-field-container"},l.map(((e,n)=>(0,t.createElement)(Ja,{key:e.id,draggableId:e.id,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+("pro-inactive"===e.pro&&"true"===e.profeature?"locked":"")},(0,t.createElement)("div",{className:"field-icons"},"text"===e.type&&(0,t.createElement)("button",{className:"field-icon"},ul),"number"===e.type&&(0,t.createElement)("button",{className:"field-icon"},dl),"email"===e.type&&(0,t.createElement)("button",{className:"field-icon"},pl),"image"===e.type&&(0,t.createElement)("button",{className:"field-icon"},fl),"textarea"===e.type&&(0,t.createElement)("button",{className:"field-icon"},hl),"radio"===e.type&&(0,t.createElement)("button",{className:"field-icon"},ml),"checkbox"===e.type&&(0,t.createElement)("button",{className:"field-icon"},gl),"select"===e.type&&(0,t.createElement)("button",{className:"field-icon"},vl),"customcaptcha"===e.type&&(0,t.createElement)("button",{className:"field-icon"},bl),"page_break"===e.type&&(0,t.createElement)("button",{className:"field-icon"},yl),"file"===e.type&&(0,t.createElement)("button",{className:"field-icon"},wl),"cloudflare"===e.type&&(0,t.createElement)("button",{className:"field-icon"},xl),"esignature"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Cl),"range"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Sl),"week"===e.type&&(0,t.createElement)("button",{className:"field-icon"},El),"url"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Nl),"time"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Il),"tel"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Al),"submit"===e.type&&(0,t.createElement)("button",{className:"field-icon"},kl),"button"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Pl),"password"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ll),"date"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Rl),"datetime-local"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Tl),"color"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Dl),"hidden"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ol),"heading"===e.type&&(0,t.createElement)("button",{className:"field-icon"},jl),"label"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Fl),"link"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Ml),"video"===e.type&&(0,t.createElement)("button",{className:"field-icon"},_l),"audio"===e.type&&(0,t.createElement)("button",{className:"field-icon"},Zl),"iframe"===e.type&&(0,t.createElement)("button",{className:"field-icon"},zl)),e.label,"pro-inactive"===e.pro&&"true"===e.profeature&&(0,t.createElement)("div",{className:"PRO_TAG"},"PRO")))))),e.placeholder)))),(0,t.createElement)("div",{className:"form-canvas"},(0,t.createElement)("h3",null,"Form Canvas"),(0,t.createElement)(rl,{droppableId:"form-canvas",direction:"vertical"},(e=>(0,t.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"form-canvas-container"},Array.isArray(p)&&p.map(((e,n)=>(0,t.createElement)(Ja,{key:e.uniqueId,draggableId:e.uniqueId,index:n},(n=>(0,t.createElement)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"draggable-field "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":"")},(0,t.createElement)(Wl,{field:e}),(0,t.createElement)("button",{className:"form-edit "+(C&&e&&g&&e.uniqueId===g.uniqueId?"remove-background":""),onClick:()=>{(e=>{const t=p.find((t=>t.uniqueId===e));v({...t})})(e.uniqueId),S(!0)}},ol),(0,t.createElement)("button",{className:"form-remove",onClick:()=>(e=>{const t=p.filter((t=>t.uniqueId!==e));f(t),v(null)})(e.uniqueId)},il)))))),e.placeholder)))))),g&&(0,t.createElement)("div",{className:"edit-field-form"},(0,t.createElement)("div",{className:"form-btn-group"},(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{(()=>{const e=p.map((e=>e.uniqueId===g.uniqueId?{...g}:e));f(e),v(null)})(),S(!1)}},"Update"),(0,t.createElement)("button",{className:"jsonbtn",onClick:M},"  ",b?"Hide Json":"Show Json")),(0,t.createElement)("h3",null,"Edit Field"),(0,t.createElement)("div",{className:"edit-fields-section"},(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"ID:"),(0,t.createElement)("input",{type:"text",value:g.id,onChange:e=>v({...g,id:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Name:"),(0,t.createElement)("input",{type:"text",value:g.name,onChange:e=>v({...g,name:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:g.label,onChange:e=>v({...g,label:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Type:"),"file"!==g.type&&"select"!==g.type&&"checkbox"!==g.type&&"radio"!==g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.type,onChange:e=>v({...g,type:e.target.value})},(0,t.createElement)("option",{value:"button"},"Button"),(0,t.createElement)("option",{value:"color"},"Color"),(0,t.createElement)("option",{value:"date"},"Date"),(0,t.createElement)("option",{value:"datetime-local"},"Datetime-local"),(0,t.createElement)("option",{value:"email"},"Email"),(0,t.createElement)("option",{value:"hidden"},"Hidden"),(0,t.createElement)("option",{value:"image"},"Image"),(0,t.createElement)("option",{value:"month"},"Month"),(0,t.createElement)("option",{value:"number"},"Number"),(0,t.createElement)("option",{value:"password"},"Password"),(0,t.createElement)("option",{value:"range"},"Range"),(0,t.createElement)("option",{value:"reset"},"Reset"),(0,t.createElement)("option",{value:"search"},"Search"),(0,t.createElement)("option",{value:"submit"},"Submit"),(0,t.createElement)("option",{value:"tel"},"Tel"),(0,t.createElement)("option",{value:"text"},"Text"),(0,t.createElement)("option",{value:"text"},"Text Input"),(0,t.createElement)("option",{value:"textarea"},"Text Area"),(0,t.createElement)("option",{value:"time"},"Time"),(0,t.createElement)("option",{value:"url"},"URL"),(0,t.createElement)("option",{value:"week"},"Week"),(0,t.createElement)("option",{value:"cloudflare"},"Cloudflare"),(0,t.createElement)("option",{value:"esignature"},"E-signature"),(0,t.createElement)("option",{value:"customcaptcha"},"Custom captcha"),(0,t.createElement)("option",{value:"page_break"},"Page break"),(0,t.createElement)("option",{value:"heading"},"Heading"),(0,t.createElement)("option",{value:"label"},"Label"),(0,t.createElement)("option",{value:"link"},"Link"),(0,t.createElement)("option",{value:"video"},"Video"),(0,t.createElement)("option",{value:"audio"},"Audio"),(0,t.createElement)("option",{value:"iframe"},"iframe")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Subtype:"),(0,t.createElement)("input",{type:"text",value:g.subtype,onChange:e=>v({...g,subtype:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Placeholder:"),(0,t.createElement)("input",{type:"text",value:g.placeholder,onChange:e=>v({...g,placeholder:e.target.value})})),"image"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Sorce:"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Alt:"),(0,t.createElement)("input",{type:"text",value:g.alt,onChange:e=>v({...g,alt:e.target.value})}))),"heading"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"label"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"For value:"),(0,t.createElement)("input",{type:"text",value:g.for,onChange:e=>v({...g,for:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Heading Type:"),"heading"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.headingtype,onChange:e=>v({...g,headingtype:e.target.value})},(0,t.createElement)("option",{value:"h1"},"H1"),(0,t.createElement)("option",{value:"h2"},"H2"),(0,t.createElement)("option",{value:"h3"},"H3"),(0,t.createElement)("option",{value:"h4"},"H4"),(0,t.createElement)("option",{value:"h5"},"H5"),(0,t.createElement)("option",{value:"h6"},"H6")):(0,t.createElement)("input",{type:"text",value:g.type,onChange:e=>v({...g,type:e.target.value})}))),"link"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"href:"),(0,t.createElement)("input",{type:"text",value:g.href,onChange:e=>v({...g,href:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel type-dropdown"},(0,t.createElement)("label",null,"Redirection Type:"),"link"===g.type?(0,t.createElement)("select",{className:"select-type-class",value:g.target,onChange:e=>v({...g,target:e.target.value})},(0,t.createElement)("option",{value:"_blank"},"New Tab"),(0,t.createElement)("option",{value:"_self"},"Same Tab")):(0,t.createElement)("input",{type:"text",value:g.target,onChange:e=>v({...g,target:e.target.value})}))),"video"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"audio"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"iframe"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Content:"),(0,t.createElement)("input",{type:"text",value:g.content,onChange:e=>v({...g,content:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Width:"),(0,t.createElement)("input",{type:"text",value:g.width,onChange:e=>v({...g,width:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Height:"),(0,t.createElement)("input",{type:"text",value:g.height,onChange:e=>v({...g,height:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Source (src):"),(0,t.createElement)("input",{type:"text",value:g.src,onChange:e=>v({...g,src:e.target.value})}))),"cloudflare"===g.type&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Site Key:"),(0,t.createElement)("input",{type:"text",value:g.sitekey,onChange:e=>v({...g,sitekey:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Positioned:"),(0,t.createElement)("select",{className:"select-type-class",value:g.positioned,onChange:e=>v({...g,positioned:e.target.value})},(0,t.createElement)("option",{value:"top"},"Top of the Form"),(0,t.createElement)("option",{value:"above-btn"},"Above Button"),(0,t.createElement)("option",{value:"below-btn"},"Below Button"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Widgets Theme:"),(0,t.createElement)("select",{className:"select-type-class",value:g.theme,onChange:e=>v({...g,theme:e.target.value})},(0,t.createElement)("option",{value:"light"},"Light"),(0,t.createElement)("option",{value:"dark"},"Dark"),(0,t.createElement)("option",{value:"auto"},"Auto"))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Button access:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.btnaccess,onChange:e=>v({...g,btnaccess:e.target.checked?"true":"false"})}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Error message:"),(0,t.createElement)("input",{type:"text",value:g.error,onChange:e=>v({...g,error:e.target.value})}))),"checkbox"===g.type&&(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Toggle:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.toggle,onChange:e=>{v({...g,toggle:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Required:",(0,t.createElement)("input",{type:"checkbox",checked:"true"===g.required,onChange:e=>{v({...g,required:e.target.checked?"true":"false"})}}))),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Class Name:"),(0,t.createElement)("input",{type:"text",value:g.className,onChange:e=>v({...g,className:e.target.value})})),(0,t.createElement)("div",{className:"simple-form-id-panel"},(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:g.value,onChange:e=>v({...g,value:e.target.value})})),["select","radio","checkbox"].includes(g.type)&&(0,t.createElement)("div",null,(0,t.createElement)("h4",null,"select"===g.type?"Select Options":"Options"),g.options.map(((e,n)=>(0,t.createElement)("div",{className:"simple-form-id-panel select-fields-panel",key:n},(0,t.createElement)("label",null,"Label:"),(0,t.createElement)("input",{type:"text",value:e.label,onChange:t=>{const r=[...g.options];r[n]={...e,label:t.target.value},v({...g,options:r})}}),(0,t.createElement)("label",null,"Value:"),(0,t.createElement)("input",{type:"text",value:e.value,onChange:t=>{const r=[...g.options];r[n]={...e,value:t.target.value},v({...g,options:r})}}),(0,t.createElement)("button",{className:"option-remover-multiple",onClick:()=>(e=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)&&null!==e){const t=[...g.options];t.splice(e,1),v({...g,options:t}),x(null)}})(n)},il)))),(0,t.createElement)("button",{className:"jsonbtn",onClick:()=>{if(g&&("select"===g.type||"radio"===g.type||"checkbox"===g.type)){const e=[...g.options,{label:"New Option",value:"New Option"}];v({...g,options:e})}}},"Add Option")))),c&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"create-table-modal-wrap modal-content manage-modal-content",ref:d},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>E()},al),(0,t.createElement)("pre",null,"Form Data: ",JSON.stringify(h,null,2))))))},Gl=a(3366),Yl=a(7462),Kl=a(3961),Ql=a(4780),Xl=a(5260),Jl=a(444),es=a(7278),ts=a(6797),ns=(a(6751),a(8679),(0,Xl.w)((function(e,t){var r=e.styles,o=(0,ts.O)([r],void 0,n.useContext(Xl.T));if(!Xl.i){for(var i,a=o.name,l=o.styles,s=o.next;void 0!==s;)a+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:a,styles:l},t.sheet,c);return c?null:n.createElement("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var d=n.useRef();return(0,es.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,r],function(){n.flush()}}),[t]),(0,es.j)((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,Jl.My)(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null})));function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ts.O)(t)}var os=function(){var e=rs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},is=a(8216),as=a(1657),ls=a(948),ss=a(1588),cs=a(4867);function us(e){return(0,cs.Z)("MuiCircularProgress",e)}(0,ss.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var ds=a(5893);const ps=["className","color","disableShrink","size","style","thickness","value","variant"];let fs,hs,ms,gs,vs=e=>e;const bs=os(fs||(fs=vs`
    22  0% {
    33    transform: rotate(0deg);
     
    77    transform: rotate(360deg);
    88  }
    9 `)),Hl=Il(Fl||(Fl=Bl`
     9`)),`
    1010  0% {
    1111    stroke-dasharray: 1px, 200px;
     
    2222    stroke-dashoffset: -125px;
    2323  }
    24 `)),$l=(0,Pl.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,Al.Z)(n.color)}`]]}})((({ownerState:e,theme:t})=>(0,bl.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Ml(_l||(_l=Bl`
     24`)),`
    2525      animation: ${0} 1.4s linear infinite;
    26     `),zl))),ql=(0,Pl.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Wl=(0,Pl.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Al.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,bl.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Ml(Zl||(Zl=Bl`
     26    `),`
    2727      animation: ${0} 1.4s ease-in-out infinite;
    28     `),Hl)));var Ul=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=n,d=(0,vl.Z)(n,Ol),p=(0,bl.Z)({},n,{color:o,disableShrink:i,size:a,thickness:s,value:u,variant:c}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,Al.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,Al.Z)(n)}`,o&&"circleDisableShrink"]};return(0,wl.Z)(i,Tl,t)})(p),h={},m={},g={};if("determinate"===c){const e=2*Math.PI*((44-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Dl.jsx)($l,(0,bl.Z)({className:(0,yl.Z)(f.root,r),style:(0,bl.Z)({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,Dl.jsx)(ql,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,Dl.jsx)(Wl,{className:f.circle,style:h,ownerState:p,cx:44,cy:44,r:(44-s)/2,fill:"none",strokeWidth:s})})}))})),Vl=a(5863),Gl=a(2800),Yl=a(5697),Kl=a.n(Yl),Ql=a(1705),Xl=a(8974),Jl=a(1796);function es(e){return(0,Rl.Z)("MuiDataGrid",e)}const ts=(0,Ll.Z)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),ns=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ts.autoHeight}`]:t.autoHeight},{[`&.${ts.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ts["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ts["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ts["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ts.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${ts.editBooleanCell}`]:t.editBooleanCell},{[`& .${ts["cell--editing"]}`]:t["cell--editing"]},{[`& .${ts["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ts["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ts["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ts["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ts.cell}`]:t.cell},{[`& .${ts.cellContent}`]:t.cellContent},{[`& .${ts.cellCheckbox}`]:t.cellCheckbox},{[`& .${ts.cellSkeleton}`]:t.cellSkeleton},{[`& .${ts.checkboxInput}`]:t.checkboxInput},{[`& .${ts["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ts["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ts["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ts["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ts["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ts["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ts["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ts["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ts.columnHeader}`]:t.columnHeader},{[`& .${ts.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ts.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ts.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ts["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ts["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ts.columnSeparator}`]:t.columnSeparator},{[`& .${ts.filterIcon}`]:t.filterIcon},{[`& .${ts.iconSeparator}`]:t.iconSeparator},{[`& .${ts.menuIcon}`]:t.menuIcon},{[`& .${ts.menuIconButton}`]:t.menuIconButton},{[`& .${ts.menuOpen}`]:t.menuOpen},{[`& .${ts.menuList}`]:t.menuList},{[`& .${ts["row--editable"]}`]:t["row--editable"]},{[`& .${ts["row--editing"]}`]:t["row--editing"]},{[`& .${ts["row--dragging"]}`]:t["row--dragging"]},{[`& .${ts.row}`]:t.row},{[`& .${ts.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ts.rowReorderCell}`]:t.rowReorderCell},{[`& .${ts["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ts.sortIcon}`]:t.sortIcon},{[`& .${ts.withBorder}`]:t.withBorder},{[`& .${ts.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ts.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ts.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ts["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t="light"===e.palette.mode?(0,Jl.$n)((0,Jl.Fq)(e.palette.divider,1),.88):(0,Jl._j)((0,Jl.Fq)(e.palette.divider,1),.68);return(0,bl.Z)({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${ts.autoHeight}`]:{height:"auto",[`& .${ts["row--lastVisible"]} .${ts.cell}`]:{borderBottomColor:"transparent"}},[`& .${ts["virtualScrollerContent--overflowed"]} .${ts["row--lastVisible"]} .${ts.cell}`]:{borderBottomColor:"transparent"},[`& .${ts.columnHeader}, & .${ts.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ts.columnHeader}:focus-within, & .${ts.cell}:focus-within`]:{outline:`solid ${(0,Jl.Fq)(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ts.columnHeader}:focus, & .${ts.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ts.columnHeaderCheckbox}, & .${ts.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ts.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ts["columnHeader--sorted"]} .${ts.iconButtonContainer}, & .${ts["columnHeader--filtered"]} .${ts.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ts.columnHeader}:not(.${ts["columnHeader--sorted"]}) .${ts.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ts.columnHeader}:not(.${ts["columnHeader--sorted"]}):hover .${ts.sortIcon}`]:{opacity:.5},[`& .${ts.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ts.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ts["columnHeader--filledGroup"]} .${ts.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ts["columnHeader--filledGroup"]}.${ts["columnHeader--showColumnBorder"]} .${ts.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ts["columnHeader--filledGroup"]}.${ts["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ts.sortIcon}, & .${ts.filterIcon}`]:{fontSize:"inherit"},[`& .${ts["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ts["columnHeader--alignCenter"]} .${ts.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ts["columnHeader--alignRight"]} .${ts.columnHeaderDraggableContainer}, & .${ts["columnHeader--alignRight"]} .${ts.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ts["columnHeader--alignCenter"]} .${ts.menuIcon}, & .${ts["columnHeader--alignRight"]} .${ts.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ts["columnHeader--alignRight"]} .${ts.menuIcon}, & .${ts["columnHeader--alignRight"]} .${ts.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ts["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${ts.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${ts["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ts["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ts["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ts["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ts.iconSeparator}`]:{color:"inherit"},[`& .${ts.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${ts.columnHeader}:hover`]:{[`& .${ts.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ts.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${ts.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ts.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ts.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${ts.row}:not(.${ts["row--dynamicHeight"]}) > .${ts.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ts.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ts.cell}.${ts["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ts["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ts["row--editing"]} .${ts.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${ts.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ts.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${ts.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${ts.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ts.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${ts["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ts.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${ts.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${ts["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ts["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ts["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ts.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ts.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ts["columnHeader--dragging"]}, & .${ts["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${ts["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${ts.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ts.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ts.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ts.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ts.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}));var rs="NOT_FOUND",os=function(e,t){return e===t};function is(e,t){var n,r,o="object"==typeof t?t:{equalityCheck:t},i=o.equalityCheck,a=void 0===i?os:i,l=o.maxSize,s=void 0===l?1:l,u=o.resultEqualityCheck,c=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(a),d=1===s?(n=c,{get:function(e){return r&&n(r.key,e)?r.value:rs},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return rs}return{get:r,put:function(t,o){r(t)===rs&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,c);function p(){var t=d.get(arguments);if(t===rs){if(t=e.apply(null,arguments),u){var n=d.getEntries().find((function(e){return u(e.value,t)}));n&&(t=n.value)}d.put(arguments,t)}return t}return p.clearCache=function(){return d.clear()},p}function as(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,l={memoizeOptions:void 0},s=r.pop();if("object"==typeof s&&(l=s,s=r.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=l.memoizeOptions,c=void 0===u?n:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),f=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:f,dependencies:p,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var ls=as(is);const ss=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}},us=(e,t)=>e,cs={cache:null},ds=(ss(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),(...e)=>{null===cs.cache&&(cs.cache={});const t=(...t)=>{const[n,r]=t,o=!!n.current,i=o?n.current.instanceId:null!=r?r:"default",a=o?n.current.state:n;null===cs.cache&&(cs.cache={});const{cache:l}=cs;if(l[i]&&l[i].get(e))return l[i].get(e)(a,i);const s=ls(...e);return l[i]||(l[i]=new Map),l[i].set(e,s),s(a,i)};return t.acceptsApiRef=!0,t}),ps=e=>e.columns,fs=ds(ps,(e=>e.all)),hs=ds(ps,(e=>e.lookup)),ms=ds(fs,hs,((e,t)=>e.map((e=>t[e])))),gs=ds(ps,(e=>e.columnVisibilityModel)),vs=ds(ms,gs,((e,t)=>e.filter((e=>!1!==t[e.field])))),bs=(ds(vs,(e=>e.map((e=>e.field)))),ds(vs,(e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}))),ys=ds(vs,bs,((e,t)=>{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),ws=ds(ms,(e=>e.filter((e=>e.filterable)))),xs=ds(ms,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),Cs=(us(fs),us(ms),us(vs),us(ws),us(ds(ws,(e=>e.map((e=>e.field))))),us(ds(vs,(e=>e.length))),us(ds(bs,ys,((e,t)=>({totalWidth:t,positions:e})))));ss(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Ss=(e,t)=>function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state),Es=n.createContext(void 0);function Ns(){const e=n.useContext(Es);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const Ms=n.createContext(void 0),Is=()=>{const e=n.useContext(Ms);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},As=e=>e.density,ks=ds(As,(e=>e.value)),Ps=ds(As,(e=>e.rowHeight)),Ls=ds(As,(e=>e.headerHeight)),Rs=ds(As,(e=>e.headerGroupingMaxDepth)),Ts=ds(As,(e=>e.factor)),Ds=ds(As,(e=>e.headerHeight*(1+e.headerGroupingMaxDepth))),Os=e=>e.rows,js=ds(Os,(e=>e.totalRowCount)),Fs=ds(Os,(e=>e.loading)),_s=ds(Os,(e=>e.totalTopLevelRowCount)),Zs=ds(Os,(e=>e.idRowsLookup)),Bs=ds(Os,(e=>e.idToIdLookup)),zs=ds(Os,(e=>e.tree)),Hs=ds(Os,(e=>e.groupingName)),$s=ds(Os,(e=>e.treeDepth)),qs=ds(Os,(e=>e.ids)),Ws=ds(Os,(e=>null==e?void 0:e.additionalRowGroups)),Us=ds(Ws,(e=>null==e?void 0:e.pinnedRows)),Vs=ds(Us,(e=>{var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),Gs=["children","className"],Ys=n.forwardRef((function(e,t){const r=Is(),{children:o,className:i}=e,a=(0,vl.Z)(e,Gs),l=Ns(),s=Ss(l,vs),u=Ss(l,js),c=Ss(l,ks),d=Ss(l,Rs),p=n.useRef(null),f=(0,Ql.Z)(p,t),h=Ss(l,Vs),m=(0,bl.Z)({},r,{density:c}),g=(e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${(0,Al.Z)(n)}`]};return(0,wl.Z)(o,es,r)})(m);l.current.rootElementRef=p;const[v,b]=n.useState(!1);return(0,Xl.Z)((()=>{b(!0)}),[]),(0,Xl.Z)((()=>{v&&l.current.unstable_updateGridDimensionsRef()}),[l,v]),v?(0,Dl.jsx)(ns,(0,bl.Z)({ref:f,className:ce(i,g.root),ownerState:m,role:"grid","aria-colcount":s.length,"aria-rowcount":d+1+h+u,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},a,{children:o})):null}));function Ks(e,t){const r=n.useRef(null);if(r.current)return r.current;const o=e.current.getLogger(t);return r.current=o,o}const Qs=e=>{const{classes:t}=e;return(0,wl.Z)({root:["main"]},es,t)},Xs=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})));function Js(e){const t=Is(),n=Qs(t);return(0,Dl.jsx)(Xs,{className:n.root,ownerState:t,children:e.children})}class eu extends n.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}logError(e,t){this.props.logger.error(`An unexpected error occurred. Error: ${e&&e.message}. `,e,t)}render(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.state):this.props.children}}function tu(e){const{children:t}=e,n=Ns(),r=Ks(n,"GridErrorHandler"),o=Is(),i=n.current.state.error;return(0,Dl.jsx)(eu,{hasError:null!=i,api:n,logger:r,render:e=>{var t;return(0,Dl.jsx)(Js,{children:(0,Dl.jsx)(o.components.ErrorOverlay,(0,bl.Z)({},e,i,null==(t=o.componentsProps)?void 0:t.errorOverlay))})},children:t})}function nu(){var e;const t=Ns(),r=Is(),o=n.useRef(null);return t.current.headerRef=o,(0,Dl.jsx)("div",{ref:o,children:(0,Dl.jsx)(r.components.Header,(0,bl.Z)({},null==(e=r.componentsProps)?void 0:e.header))})}var ru=a(2068),ou=a(5340);const iu=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],au=n.forwardRef((function(e,t){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:a=!1,disableWidth:l=!1,nonce:s,onResize:u,style:c}=e,d=(0,vl.Z)(e,iu),[p,f]=n.useState({height:o,width:i}),h=n.useRef(null),m=n.useRef(null),g=(0,ru.Z)((()=>{if(m.current){const e=m.current.offsetHeight||0,t=m.current.offsetWidth||0,n=(0,ou.Z)(m.current).getComputedStyle(m.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,i=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),s=t-r-o;(!a&&p.height!==i||!l&&p.width!==s)&&(f({height:i,width:s}),u&&u({height:i,width:s}))}}));(0,Xl.Z)((()=>{var e;if(m.current=h.current.parentElement,!m)return;const t=(0,ou.Z)(null!=(e=m.current)?e:void 0),n=function(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,i="",a="animationstart",l="Webkit Moz O ms".split(" "),s="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(o=!0),!1===o)for(var c=0;c<l.length;c++)if(void 0!==u.style[l[c]+"AnimationName"]){i="-"+l[c].toLowerCase()+"-",a=s[c],o=!0;break}var d="resizeanim",p="@"+i+"keyframes "+d+" { from { opacity: 0; } to { opacity: 0; } } ",f=i+"animation: 1ms "+d+"; ";return{addResizeListener:function(o,i){if(!o.__resizeTriggers__){var l=o.ownerDocument,s=t.getComputedStyle(o);s&&"static"==s.position&&(o.style.position="relative"),function(t,n){if(!n.getElementById("muiDetectElementResize")){var r=(p||"")+".Mui-resizeTriggers { "+(f||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o="ShadowRoot"===n.constructor.name?n:t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="muiDetectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(t.createTextNode(r)),o.appendChild(i)}}(l,o.getRootNode()),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),a&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(o)},o.__resizeTriggers__.addEventListener(a,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(i)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(s,t);return n.addResizeListener(m.current,g),g(),()=>{n.removeResizeListener(m.current,g)}}),[s,g]);const v={overflow:"visible"},b={};a||(v.height=0,b.height=p.height),l||(v.width=0,b.width=p.width);const y=(0,Ql.Z)(h,t);return(0,Dl.jsx)("div",(0,bl.Z)({ref:y,style:(0,bl.Z)({},v,c)},d,{children:null===p.height&&null===p.width?null:r(b)}))})),lu=e=>e.sorting,su=ds(lu,(e=>e.sortedRows)),uu=ds(su,Zs,((e,t)=>e.map((e=>({id:e,model:t[e]}))))),cu=ds(lu,(e=>e.sortModel)),du=ds(cu,(e=>e.reduce(((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t)),{}))),pu=e=>e.filter,fu=ds(pu,(e=>e.filterModel)),hu=(ds(fu,(e=>e.quickFilterValues)),ds(pu,(e=>e.visibleRowsLookup))),mu=ds(pu,(e=>e.filteredRowsLookup)),gu=(ds(pu,(e=>e.filteredDescendantCountLookup)),ds(hu,uu,((e,t)=>t.filter((t=>!1!==e[t.id]))))),vu=ds(gu,(e=>e.map((e=>e.id)))),bu=ds(mu,uu,((e,t)=>t.filter((t=>!1!==e[t.id])))),yu=ds(bu,(e=>e.map((e=>e.id)))),wu=ds(gu,zs,$s,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),xu=ds(gu,(e=>e.length)),Cu=ds(wu,(e=>e.length)),Su=ds(fu,hs,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,r;if(!e.columnField)return!1;const o=t[e.columnField];if(null==o||!o.filterOperators||0===(null==o||null==(n=o.filterOperators)?void 0:n.length))return!1;const i=o.filterOperators.find((t=>t.value===e.operatorValue));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),Eu=ds(Su,(e=>e.reduce(((e,t)=>(e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e)),{})));function Nu(e){var t,r;const o=Ns(),i=Is(),a=Ss(o,Ds),[l,s]=n.useState((()=>{var e,t;return null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),u=n.useCallback((()=>{var e,t;s(null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[o]);(0,Xl.Z)((()=>o.current.subscribeEvent("viewportInnerSizeChange",u)),[o,u]);let c=null!=(t=null==l?void 0:l.height)?t:0;return i.autoHeight&&0===c&&(c="auto"),l?(0,Dl.jsx)("div",(0,bl.Z)({style:{height:c,width:null!=(r=null==l?void 0:l.width)?r:0,position:"absolute",top:a,bottom:"auto"===c?0:void 0}},e)):null}function Mu(){const e=Ns(),t=Is(),n=Ss(e,js),r=Ss(e,xu),o=Ss(e,Fs),i=!o&&n>0&&0===r;let a=null;var l,s,u;return o||0!==n||(a=(0,Dl.jsx)(t.components.NoRowsOverlay,(0,bl.Z)({},null==(l=t.componentsProps)?void 0:l.noRowsOverlay))),i&&(a=(0,Dl.jsx)(t.components.NoResultsOverlay,(0,bl.Z)({},null==(s=t.componentsProps)?void 0:s.noResultsOverlay))),o&&(a=(0,Dl.jsx)(t.components.LoadingOverlay,(0,bl.Z)({},null==(u=t.componentsProps)?void 0:u.loadingOverlay))),null===a?null:(0,Dl.jsx)(Nu,{children:a})}function Iu(e){const{children:t,VirtualScrollerComponent:r,ColumnHeadersComponent:o}=e,i=Ns(),a=Is(),l=Ss(i,Ds),[s,u]=n.useState(a.disableVirtualization),c=n.useCallback((()=>{u(!0)}),[]),d=n.useCallback((()=>{u(!1)}),[]);n.useEffect((()=>{u(a.disableVirtualization)}),[a.disableVirtualization]),i.current.unstable_disableVirtualization=c,i.current.unstable_enableVirtualization=d;const p=n.useRef(null),f=n.useRef(null),h=n.useRef(null),m=n.useRef(null);i.current.columnHeadersContainerElementRef=f,i.current.columnHeadersElementRef=p,i.current.windowRef=h,i.current.renderingZoneRef=m;const g=n.useCallback((e=>{i.current.publishEvent("resize",e)}),[i]);return(0,Dl.jsxs)(Js,{children:[(0,Dl.jsx)(Mu,{}),(0,Dl.jsx)(o,{ref:f,innerRef:p}),(0,Dl.jsx)(au,{nonce:a.nonce,disableHeight:a.autoHeight,onResize:g,children:e=>{const t={width:e.width,height:e.height?e.height-l:"auto",marginTop:l};return(0,Dl.jsx)(r,{ref:h,style:t,disableVirtualization:s})}}),t]})}function Au(){var e;const t=Ns(),r=Is(),o=n.useRef(null);return t.current.footerRef=o,r.hideFooter?null:(0,Dl.jsx)("div",{ref:o,children:(0,Dl.jsx)(r.components.Footer,(0,bl.Z)({},null==(e=r.componentsProps)?void 0:e.footer))})}const ku=({apiRef:e,props:t,children:n})=>(0,Dl.jsx)(Ms.Provider,{value:t,children:(0,Dl.jsx)(Es.Provider,{value:e,children:n})});function Pu(e){return"function"==typeof e}function Lu(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ru=(e,t,n)=>Math.max(t,Math.min(n,e));function Tu(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!Tu(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const r=n[e];if(!Tu(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=0;o<r;o+=1){const r=n[o];if(!Tu(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Du(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const Ou=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),ju=()=>{},Fu={debug:ju,info:ju,warn:ju,error:ju},_u=["debug","info","warn","error"];function Zu(e,t,n=console){const r=_u.indexOf(t);if(-1===r)throw new Error(`MUI: Log level ${t} not recognized.`);return _u.reduce(((t,o,i)=>(t[o]=i>=r?(...t)=>{const[r,...i]=t;n[o](`MUI: ${e} - ${r}`,...i)}:ju,t)),{})}function Bu(e,t,r){const o=n.useRef(t),[i]=n.useState(Object.keys(t)),a=n.useCallback((()=>{e.current&&i.forEach((t=>{e.current.hasOwnProperty(t)||(e.current[t]=(...e)=>o.current[t](...e))}))}),[i,e]);n.useEffect((()=>{o.current=t}),[t]),n.useEffect((()=>{a()}),[a]),a()}class zu{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Hu{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}var $u;!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}($u||($u={}));class qu{}const Wu=function(e){let t=0;return function(r,o,i,a){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new Hu:new zu);const[l]=n.useState(new qu),s=n.useRef(null),u=n.useRef();u.current=i;const c=n.useRef(null);if(!s.current&&u.current){const n=(e,t,n)=>{var r;t.defaultMuiPrevented||null==(r=u.current)||r.call(u,e,t,n)};s.current=r.current.subscribeEvent(o,n,a),t+=1,c.current={cleanupToken:t},e.registry.register(l,(()=>{var e;null==(e=s.current)||e.call(s),s.current=null,c.current=null}),c.current)}else!u.current&&s.current&&(s.current(),s.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));n.useEffect((()=>{if(!s.current&&u.current){const e=(e,t,n)=>{var r;t.defaultMuiPrevented||null==(r=u.current)||r.call(u,e,t,n)};s.current=r.current.subscribeEvent(o,e,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var e;null==(e=s.current)||e.call(s),s.current=null}}),[r,o,a])}}({registry:null}),Uu={isFirst:!0};function Vu(e,t,n){Wu(e,t,n,Uu)}class Gu{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,(function r(...o){n.removeListener(e,r),t.apply(n,o)}))}}let Yu=0;var Ku=a(9142);const Qu="none",Xu={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},Ju=["stateId"],ec=(e,t)=>{const r=function(e,t){const r=n.useRef();r.current||(r.current={unstable_eventManager:new Gu,unstable_caches:{},state:{},instanceId:Yu},Yu+=1),n.useImperativeHandle(e,(()=>r.current),[r]);const o=n.useCallback(((...e)=>{const[n,o,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const a=t.signature===$u.DataGridPro?{api:r.current}:{};r.current.unstable_eventManager.emit(n,o,i,a)}),[r,t.signature]),i=n.useCallback(((e,t,n)=>{r.current.unstable_eventManager.on(e,t,n);const o=r.current;return()=>{o.unstable_eventManager.removeListener(e,t)}}),[r]),a=n.useCallback((e=>{r.current.publishEvent("componentError",e)}),[r]);return Bu(r,{subscribeEvent:i,publishEvent:o,showError:a}),n.useEffect((()=>{const e=r.current;return()=>{var t;void 0!==(t=e.instanceId)?cs.cache&&cs.cache[t]&&delete cs.cache[t]:cs.cache=null,e.publishEvent("unmount")}}),[r]),r}(e,t);return((e,t)=>{e.current.getLogger=n.useCallback((e=>Ou?Zu(e,"debug",t.logger):t.logLevel?Zu(e,t.logLevel.toString(),t.logger):Fu),[t.logLevel,t.logger])})(r,t),function(e,t){const r=n.useCallback((t=>{e.current.setState((e=>(0,bl.Z)({},e,{error:t})))}),[e]);n.useEffect((()=>{t.error?r({error:t.error}):r(null)}),[r,t.error]),Wu(e,"componentError",r)}(r,t),((e,t)=>{const r=n.useRef({}),[,o]=n.useState(),i=n.useCallback((e=>{const{stateId:t}=e,n=(0,vl.Z)(e,Ju);r.current[t]=(0,bl.Z)({},n,{stateId:t})}),[]),a=n.useCallback(((n,o)=>{let i;if(i=Pu(n)?n(e.current.state):n,e.current.state===i)return!1;let a=!1;const l=[];if(Object.keys(r.current).forEach((t=>{const n=r.current[t],o=n.stateSelector(e.current.state,e.current.instanceId),s=n.stateSelector(i,e.current.instanceId);s!==o&&(l.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(a=!0))})),l.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${l[0].stateId}, therefore, you're not allowed to update ${l.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(a||(e.current.state=i,e.current.publishEvent&&e.current.publishEvent("stateChange",i)),1===l.length){const{stateId:n,hasPropChanged:s}=l[0],u=r.current[n],c=u.stateSelector(i,e.current.instanceId);if(u.propOnChange&&s){const n=t.signature===$u.DataGridPro?{api:e.current,reason:o}:{reason:o};u.propOnChange(c,n)}a||e.current.publishEvent(u.changeEvent,c,{reason:o})}return!a}),[e,t.signature]),l=n.useCallback(((t,n,r)=>e.current.setState((e=>(0,bl.Z)({},e,{[t]:n(e[t])})),r)),[e]),s=n.useCallback((()=>o((()=>e.current.state))),[e]);Bu(e,{setState:a,forceUpdate:s,unstable_updateControlState:l,unstable_registerControlState:i})})(r,t),(e=>{const t=n.useRef({}),r=n.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]);Bu(e,{unstable_registerPipeProcessor:n.useCallback(((e,n,o)=>{t.current[e]||(t.current[e]={processors:new Map,appliers:{}});const i=t.current[e];return i.processors.get(n)!==o&&(i.processors.set(n,o),r(i)),()=>{t.current[e].processors.set(n,null)}}),[r]),unstable_registerPipeApplier:n.useCallback(((e,n,r)=>(t.current[e]||(t.current[e]={processors:new Map,appliers:{}}),t.current[e].appliers[n]=r,()=>{const r=t.current[e].appliers,o=(0,vl.Z)(r,[n].map(Ku.Z));t.current[e].appliers=o})),[]),unstable_requestPipeProcessorsApplication:n.useCallback((e=>{const n=t.current[e];r(n)}),[r]),unstable_applyPipeProcessors:n.useCallback(((...e)=>{const[n,r,o]=e;return t.current[n]?Array.from(t.current[n].processors.values()).reduce(((e,t)=>t?t(e,o):e),r):r}),[])})})(r),(e=>{const t=n.useRef(new Map),r=n.useRef({}),o=n.useCallback(((t,n,o)=>{const i=()=>{const e=r.current[n],o=(0,vl.Z)(e,[t].map(Ku.Z));r.current[n]=o};r.current[n]||(r.current[n]={});const a=r.current[n],l=a[t];return a[t]=o,l&&l!==o?(t===e.current.unstable_getActiveStrategy(Xu[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[e]),i=n.useCallback(((t,n)=>{const o=e.current.unstable_getActiveStrategy(Xu[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=r.current[t];if(!i||!i[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,i[o])(n)}),[e]),a=n.useCallback((e=>{var n;const r=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(n=null==r?void 0:r[0])?n:Qu}),[]),l=n.useCallback(((n,r,o)=>{t.current.set(r,{group:n,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Bu(e,{unstable_registerStrategyProcessor:o,unstable_applyStrategyProcessor:i,unstable_getActiveStrategy:a,unstable_setStrategyAvailability:l})})(r),((e,t)=>{const r=n.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.getLocaleText=r})(r,t),r},tc=(e,t,r)=>{const o=n.useRef(!1);o.current||(t.current.state=e(t.current.state,r,t),o.current=!0)};function nc(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const rc=e=>e.columnMenu,oc=e=>(0,bl.Z)({},e,{columnMenu:{open:!1}}),ic=e=>{const t=n.useRef(!0);t.current&&(t.current=!1,e())},ac=(e,t,r)=>{const o=n.useRef(),i=n.useRef(`mui-${Math.round(1e9*Math.random())}`),a=n.useCallback((()=>{o.current=e.current.unstable_registerPipeProcessor(t,i.current,r)}),[e,r,t]);ic((()=>{a()}));const l=n.useRef(!0);n.useEffect((()=>(l.current?l.current=!1:a(),()=>{o.current&&(o.current(),o.current=null)})),[a])},lc=(e,t,r)=>{const o=n.useRef(),i=n.useRef(`mui-${Math.round(1e9*Math.random())}`),a=n.useCallback((()=>{o.current=e.current.unstable_registerPipeApplier(t,i.current,r)}),[e,r,t]);ic((()=>{a()}));const l=n.useRef(!0);n.useEffect((()=>(l.current?l.current=!1:a(),()=>{o.current&&(o.current(),o.current=null)})),[a])};var sc=a(6535),uc=a(3703),cc=a(4161),dc=a(3546),pc=a(9336);const fc=["onChange","maxRows","minRows","style","value"];function hc(e){return parseInt(e,10)||0}const mc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function gc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vc=n.forwardRef((function(e,t){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=e,s=(0,vl.Z)(e,fc),{current:u}=n.useRef(null!=l),c=n.useRef(null),d=(0,uc.Z)(t,c),p=n.useRef(null),f=n.useRef(0),[h,m]=n.useState({outerHeightStyle:0}),g=n.useCallback((()=>{const t=c.current,n=(0,cc.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=p.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,l=hc(n.paddingBottom)+hc(n.paddingTop),s=hc(n.borderBottomWidth)+hc(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=u;return i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d),{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},b=n.useCallback((()=>{const e=g();gc(e)||m((t=>v(t,e)))}),[g]);return(0,dc.Z)((()=>{const e=()=>{f.current=0,(()=>{const e=g();gc(e)||qe.flushSync((()=>{m((t=>v(t,e)))}))})()};const t=(0,pc.Z)(e),n=c.current,r=(0,cc.Z)(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),(0,dc.Z)((()=>{b()})),n.useEffect((()=>{f.current=0}),[l]),(0,Dl.jsxs)(n.Fragment,{children:[(0,Dl.jsx)("textarea",(0,bl.Z)({value:l,onChange:e=>{f.current=0,u||b(),r&&r(e)},ref:d,rows:i,style:(0,bl.Z)({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},a)},s)),(0,Dl.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,bl.Z)({},mc,a,{paddingTop:0,paddingBottom:0})})]})}));function bc(e){return"string"==typeof e}function yc({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var wc=n.createContext(void 0);function xc(){return n.useContext(wc)}function Cc(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,Dl.jsx)(Nl,{styles:r})}var Sc=a(6682),Ec=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,Sc.Z)(n),o="function"==typeof e?e(t&&r[t]||r):e;return(0,Dl.jsx)(Cc,{styles:o})},Nc=a(8794),Mc=a(606),Ic=function(e){return(0,Dl.jsx)(Ec,(0,bl.Z)({},e,{defaultTheme:Nc.Z,themeId:Mc.Z}))};function Ac(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kc(e,t=!1){return e&&(Ac(e.value)&&""!==e.value||t&&Ac(e.defaultValue)&&""!==e.defaultValue)}function Pc(e){return(0,Rl.Z)("MuiInputBase",e)}var Lc=(0,Ll.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Rc=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Tc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,Al.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dc=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Oc=(0,Pl.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Tc})((({theme:e,ownerState:t})=>(0,bl.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Lc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,bl.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),jc=(0,Pl.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dc})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,bl.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,bl.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Lc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Fc=(0,Dl.jsx)(Ic,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_c=n.forwardRef((function(e,t){var r;const o=(0,kl.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:b={},inputRef:y,maxRows:w,minRows:x,multiline:C=!1,name:S,onBlur:E,onChange:N,onClick:M,onFocus:I,onKeyDown:A,onKeyUp:k,placeholder:P,readOnly:L,renderSuffix:R,rows:T,slotProps:D={},slots:O={},startAdornment:j,type:F="text",value:_}=o,Z=(0,vl.Z)(o,Rc),B=null!=b.value?b.value:_,{current:z}=n.useRef(null!=B),H=n.useRef(),$=n.useCallback((e=>{}),[]),q=(0,Ql.Z)(H,y,b.ref,$),[W,U]=n.useState(!1),V=xc(),G=yc({props:o,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=V?V.focused:W,n.useEffect((()=>{!V&&p&&W&&(U(!1),E&&E())}),[V,p,W,E]);const Y=V&&V.onFilled,K=V&&V.onEmpty,Q=n.useCallback((e=>{kc(e)?Y&&Y():K&&K()}),[Y,K]);(0,Xl.Z)((()=>{z&&Q({value:B})}),[B,Q,z]),n.useEffect((()=>{Q(H.current)}),[]);let X=v,J=b;C&&"input"===X&&(J=T?(0,bl.Z)({type:void 0,minRows:T,maxRows:T},J):(0,bl.Z)({type:void 0,maxRows:w,minRows:x},J),X=vc),n.useEffect((()=>{V&&V.setAdornedStart(Boolean(j))}),[V,j]);const ee=(0,bl.Z)({},o,{color:G.color||"primary",disabled:G.disabled,endAdornment:h,error:G.error,focused:G.focused,formControl:V,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:C,size:G.size,startAdornment:j,type:F}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e,m={root:["root",`color${(0,Al.Z)(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${(0,Al.Z)(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,wl.Z)(m,Pc,t)})(ee),ne=O.root||u.Root||Oc,re=D.root||c.root||{},oe=O.input||u.Input||jc;return J=(0,bl.Z)({},J,null!=(r=D.input)?r:c.input),(0,Dl.jsxs)(n.Fragment,{children:[!f&&Fc,(0,Dl.jsxs)(ne,(0,bl.Z)({},re,!bc(ne)&&{ownerState:(0,bl.Z)({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),M&&M(e)}},Z,{className:(0,yl.Z)(te.root,re.className,s,L&&"MuiInputBase-readOnly"),children:[j,(0,Dl.jsx)(wc.Provider,{value:null,children:(0,Dl.jsx)(oe,(0,bl.Z)({ownerState:ee,"aria-invalid":G.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:G.disabled,id:g,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:S,placeholder:P,readOnly:L,required:G.required,rows:T,value:B,onKeyDown:A,onKeyUp:k,type:F},J,!bc(oe)&&{as:X,ownerState:(0,bl.Z)({},ee,J.ownerState)},{ref:q,className:(0,yl.Z)(te.input,J.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),V&&V.onBlur?V.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!z){const t=e.target||H.current;if(null==t)throw new Error((0,sc.Z)(1));Q({value:t.value})}b.onChange&&b.onChange(e,...t),N&&N(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),V&&V.onFocus?V.onFocus(e):U(!0))}}))}),h,R?R((0,bl.Z)({},G,{startAdornment:j})):null]}))]})}));var Zc=_c,Bc=a(5949);const zc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Hc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),$c=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),qc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Wc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Uc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Vc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Gc=((0,Bc.Z)((0,Dl.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,Bc.Z)((0,Dl.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,Bc.Z)((0,Dl.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),Yc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),Kc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Qc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Xc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Jc=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),ed=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),td=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),nd=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),rd=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),od=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),id=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),ad=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ld=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");var sd=a(7909),ud=n.createContext({}),cd=a(3511);function dd(e,t){return dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dd(e,t)}function pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dd(e,t)}var fd=r().createContext(null);function hd(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function md(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gd(e,t,r){var o=hd(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,n.isValidElement)(l)){var s=a in t,u=a in o,c=t[a],d=(0,n.isValidElement)(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,n.isValidElement)(c)&&(i[a]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:c.props.in,exit:md(l,"exit",e),enter:md(l,"enter",e)})):i[a]=(0,n.cloneElement)(l,{in:!1}):i[a]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:md(l,"exit",e),enter:md(l,"enter",e)})}})),i}var vd=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bd=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}pd(t,e);var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(r=e,o=a,hd(r.children,(function(e){return(0,n.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:md(e,"appear",r),enter:md(e,"enter",r),exit:md(e,"exit",r)})}))):gd(e,i,a),firstRender:!1}},o.handleExited=function(e,t){var n=hd(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,bl.Z)({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,vl.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=vd(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r().createElement(fd.Provider,{value:i},a):r().createElement(fd.Provider,{value:i},r().createElement(t,o,a))},t}(r().Component);bd.propTypes={},bd.defaultProps={component:"div",childFactory:function(e){return e}};var yd=bd,wd=(0,Ll.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const xd=["center","classes","className"];let Cd,Sd,Ed,Nd,Md=e=>e;const Id=Il(Cd||(Cd=Md`
     28    `),`
    2929  0% {
    3030    transform: scale(0);
     
    3636    opacity: 0.3;
    3737  }
    38 `)),Ad=Il(Sd||(Sd=Md`
     38`)),`
    3939  0% {
    4040    opacity: 1;
     
    4444    opacity: 0;
    4545  }
    46 `)),kd=Il(Ed||(Ed=Md`
     46`)),`
    4747  0% {
    4848    transform: scale(1);
     
    5656    transform: scale(1);
    5757  }
    58 `)),Pd=(0,Pl.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ld=(0,Pl.ZP)((function(e){const{className:t,classes:r,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=n.useState(!1),f=(0,yl.Z)(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),h={width:l,height:l,top:-l/2+a,left:-l/2+i},m=(0,yl.Z)(r.child,d&&r.childLeaving,o&&r.childPulsate);return s||d||p(!0),n.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),(0,Dl.jsx)("span",{className:f,style:h,children:(0,Dl.jsx)("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Nd||(Nd=Md`
     58`)),`
    5959  opacity: 0;
    6060  position: absolute;
     
    9999    animation-delay: 200ms;
    100100  }
    101 `),wd.rippleVisible,Id,550,(({theme:e})=>e.transitions.easing.easeInOut),wd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wd.child,wd.childLeaving,Ad,550,(({theme:e})=>e.transitions.easing.easeInOut),wd.childPulsate,kd,(({theme:e})=>e.transitions.easing.easeInOut)),Rd=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=(0,vl.Z)(r,xd),[s,u]=n.useState([]),c=n.useRef(0),d=n.useRef(null);n.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=n.useRef(!1),f=n.useRef(0),h=n.useRef(null),m=n.useRef(null);n.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=n.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;u((e=>[...e,(0,Dl.jsx)(Ld,{classes:{ripple:(0,yl.Z)(i.ripple,wd.ripple),rippleVisible:(0,yl.Z)(i.rippleVisible,wd.rippleVisible),ripplePulsate:(0,yl.Z)(i.ripplePulsate,wd.ripplePulsate),child:(0,yl.Z)(i.child,wd.child),childLeaving:(0,yl.Z)(i.childLeaving,wd.childLeaving),childPulsate:(0,yl.Z)(i.childPulsate,wd.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),v=n.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[o,g]),b=n.useCallback((()=>{v({},{pulsate:!0})}),[v]),y=n.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{y(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return n.useImperativeHandle(t,(()=>({pulsate:b,start:v,stop:y})),[b,v,y]),(0,Dl.jsx)(Pd,(0,bl.Z)({className:(0,yl.Z)(wd.root,i.root,a),ref:m},l,{children:(0,Dl.jsx)(yd,{component:null,exit:!0,children:s})}))}));var Td=Rd;function Dd(e){return(0,Rl.Z)("MuiButtonBase",e)}var Od=(0,Ll.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const jd=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Fd=(0,Pl.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Od.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var _d=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:b,onFocusVisible:y,onKeyDown:w,onKeyUp:x,onMouseDown:C,onMouseLeave:S,onMouseUp:E,onTouchEnd:N,onTouchMove:M,onTouchStart:I,tabIndex:A=0,TouchRippleProps:k,touchRippleRef:P,type:L}=r,R=(0,vl.Z)(r,jd),T=n.useRef(null),D=n.useRef(null),O=(0,Ql.Z)(D,P),{isFocusVisibleRef:j,onFocus:F,onBlur:_,ref:Z}=(0,cd.Z)(),[B,z]=n.useState(!1);u&&B&&z(!1),n.useImperativeHandle(o,(()=>({focusVisible:()=>{z(!0),T.current.focus()}})),[]);const[H,$]=n.useState(!1);n.useEffect((()=>{$(!0)}),[]);const q=H&&!c&&!u;function W(e,t,n=d){return(0,ru.Z)((r=>(t&&t(r),!n&&D.current&&D.current[e](r),!0)))}n.useEffect((()=>{B&&p&&!c&&H&&D.current.pulsate()}),[c,p,B,H]);const U=W("start",C),V=W("stop",g),G=W("stop",v),Y=W("stop",E),K=W("stop",(e=>{B&&e.preventDefault(),S&&S(e)})),Q=W("start",I),X=W("stop",N),J=W("stop",M),ee=W("stop",(e=>{_(e),!1===j.current&&z(!1),h&&h(e)}),!1),te=(0,ru.Z)((e=>{T.current||(T.current=e.currentTarget),F(e),!0===j.current&&(z(!0),y&&y(e)),b&&b(e)})),ne=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=n.useRef(!1),oe=(0,ru.Z)((e=>{p&&!re.current&&B&&D.current&&" "===e.key&&(re.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=(0,ru.Z)((e=>{p&&" "===e.key&&D.current&&B&&!e.defaultPrevented&&(re.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(R.href||R.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=u):(R.href||R.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=(0,Ql.Z)(t,Z,T),ue=(0,bl.Z)({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,wl.Z)(i,Dd,o);return n&&r&&(a.root+=` ${r}`),a})(ue);return(0,Dl.jsxs)(Fd,(0,bl.Z)({as:ae,className:(0,yl.Z)(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:V,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:X,onTouchMove:J,onTouchStart:Q,ref:se,tabIndex:u?-1:A,type:L},le,R,{children:[a,q?(0,Dl.jsx)(Td,(0,bl.Z)({ref:O,center:i},k)):null]}))})),Zd=(0,Ll.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bd=(0,Ll.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),zd=(0,Ll.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Hd(e){return(0,Rl.Z)("MuiMenuItem",e)}var $d=(0,Ll.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const qd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Wd=(0,Pl.ZP)(_d,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,bl.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$d.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$d.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$d.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$d.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$d.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Zd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Zd.inset}`]:{marginLeft:52},[`& .${zd.root}`]:{marginTop:0,marginBottom:0},[`& .${zd.inset}`]:{paddingLeft:36},[`& .${Bd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,bl.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Bd.root} svg`]:{fontSize:"1.25rem"}}))));var Ud=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=(0,vl.Z)(r,qd),h=n.useContext(ud),m=n.useMemo((()=>({dense:a||h.dense||!1,disableGutters:s})),[h.dense,a,s]),g=n.useRef(null);(0,Xl.Z)((()=>{o&&g.current&&g.current.focus()}),[o]);const v=(0,bl.Z)({},r,{dense:m.dense,divider:l,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},s=(0,wl.Z)(l,Hd,a);return(0,bl.Z)({},a,s)})(r),y=(0,Ql.Z)(g,t);let w;return r.disabled||(w=void 0!==d?d:-1),(0,Dl.jsx)(ud.Provider,{value:m,children:(0,Dl.jsx)(Wd,(0,bl.Z)({ref:y,role:c,tabIndex:w,component:i,focusVisibleClassName:(0,yl.Z)(b.focusVisible,u),className:(0,yl.Z)(b.root,p)},f,{ownerState:v,classes:b}))})}));function Vd(e){return"object"==typeof e&&null!==e?e.value:e}function Gd(e,t){if(void 0===t)return;const n=t.find((t=>{const n=Vd(t);return String(n)===String(e)}));return Vd(n)}const Yd=["item","applyValue","type","apiRef","focusElementRef"],Kd=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"==typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const i="object"==typeof e,a=i?e.value:e,l=i?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=i?e.label:s;return(0,Dl.jsx)(o,{value:l,children:u},a)})),Qd=500;function Xd(e){var t,r,o,i,a;const{item:l,applyValue:s,type:u,apiRef:c,focusElementRef:d}=e,p=(0,vl.Z)(e,Yd),f=n.useRef(),[h,m]=n.useState(null!=(t=l.value)?t:""),[g,v]=n.useState(!1),b=(0,sd.Z)(),y=Is(),w=null==(o=((null==(r=y.componentsProps)?void 0:r.baseSelect)||{}).native)||o,x="singleSelect"===u?{select:!0,SelectProps:(0,bl.Z)({native:w},null==(i=y.componentsProps)?void 0:i.baseSelect),children:Kd(c.current.getColumn(l.columnField),c.current,w?"option":Ud)}:{},C=n.useCallback((e=>{let t=e.target.value;if("singleSelect"===u){const e=c.current.getColumn(l.columnField),n="function"==typeof e.valueOptions?e.valueOptions({field:e.field}):e.valueOptions;t=Gd(t,n)}clearTimeout(f.current),m(String(t)),v(!0),f.current=setTimeout((()=>{s((0,bl.Z)({},l,{value:t})),v(!1)}),Qd)}),[c,s,l,u]);n.useEffect((()=>()=>{clearTimeout(f.current)}),[]),n.useEffect((()=>{var e;const t=null!=(e=l.value)?e:"";m(String(t))}),[l.value]);const S=g?{endAdornment:(0,Dl.jsx)(rd,{})}:p.InputProps;return(0,Dl.jsx)(y.components.BaseTextField,(0,bl.Z)({id:b,label:c.current.getLocaleText("filterPanelInputLabel"),placeholder:c.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:C,variant:"standard",type:u||"text",InputProps:S,InputLabelProps:{shrink:!0},inputRef:d},x,p,null==(a=y.componentsProps)?void 0:a.baseTextField))}const Jd=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],ep=(0,Pl.ZP)(Zc,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>(0,bl.Z)({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),tp=n.forwardRef(((e,t)=>{var r,o;const i=Is(),{id:a,value:l,field:s,colDef:u,hasFocus:c,debounceMs:d=(null!=(r=i.experimentalFeatures)&&r.newEditingApi?200:Qd),isProcessingProps:p,onValueChange:f}=e,h=(0,vl.Z)(e,Jd),m=Ns(),g=n.useRef(),[v,b]=n.useState(l),y=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["editInputCell"]},es,t)})(i),w=n.useCallback((async e=>{var t;const n=e.target.value;f&&await f(e,n);const r=m.current.getColumn(s);let o=n;r.valueParser&&null!=(t=i.experimentalFeatures)&&t.newEditingApi&&(o=r.valueParser(n,m.current.getCellParams(a,s))),b(o),m.current.setEditCellValue({id:a,field:s,value:o,debounceMs:d,unstable_skipValueParser:!0},e)}),[m,d,s,a,f,null==(o=i.experimentalFeatures)?void 0:o.newEditingApi]),x=m.current.unstable_getEditCellMeta?m.current.unstable_getEditCellMeta(a,s):{};return n.useEffect((()=>{"debouncedSetEditCellValue"!==x.changeReason&&b(l)}),[x.changeReason,l]),(0,Xl.Z)((()=>{c&&g.current.focus()}),[c]),(0,Dl.jsx)(ep,(0,bl.Z)({ref:t,inputRef:g,className:y.root,ownerState:i,fullWidth:!0,type:"number"===u.type?u.type:"text",value:null!=v?v:"",onChange:w,endAdornment:p?(0,Dl.jsx)(rd,{}):void 0},h))})),np=ss(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),rp=(e,t)=>t&&e.length>1?(np(),[e[0]]):e,op=(e,t)=>n=>(0,bl.Z)({},n,{sorting:(0,bl.Z)({},n.sorting,{sortModel:rp(e,t)})}),ip=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},ap=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,lp=new Intl.Collator,sp=(e,t)=>{const n=ap(e,t);return null!==n?n:Number(e)-Number(t)},up=(e,t)=>{const n=ap(e,t);return null!==n?n:e>t?1:e<t?-1:0};var cp=a(2996),dp=a(9032),pp=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current},fp=a(9948),hp=a(7960);function mp(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function gp(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=mp(u));const c=u?e.filter((e=>{let r=(i||s)(e);return n&&(r=r.toLowerCase()),t&&(r=mp(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}function vp(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const bp=gp(),yp=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};var xp=a(2690);function Cp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sp(e){return e instanceof Cp(e).Element||e instanceof Element}function Ep(e){return e instanceof Cp(e).HTMLElement||e instanceof HTMLElement}function Np(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cp(e).ShadowRoot||e instanceof ShadowRoot)}var Mp=Math.max,Ip=Math.min,Ap=Math.round;function kp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Pp(){return!/^((?!chrome|android).)*safari/i.test(kp())}function Lp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ep(e)&&(o=e.offsetWidth>0&&Ap(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ap(r.height)/e.offsetHeight||1);var a=(Sp(e)?Cp(e):window).visualViewport,l=!Pp()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Rp(e){var t=Cp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tp(e){return e?(e.nodeName||"").toLowerCase():null}function Dp(e){return((Sp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Op(e){return Lp(Dp(e)).left+Rp(e).scrollLeft}function jp(e){return Cp(e).getComputedStyle(e)}function Fp(e){var t=jp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _p(e,t,n){void 0===n&&(n=!1);var r,o,i=Ep(t),a=Ep(t)&&function(e){var t=e.getBoundingClientRect(),n=Ap(t.width)/e.offsetWidth||1,r=Ap(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Dp(t),s=Lp(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==Tp(t)||Fp(l))&&(u=(r=t)!==Cp(r)&&Ep(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Rp(r)),Ep(t)?((c=Lp(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Op(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Zp(e){var t=Lp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Bp(e){return"html"===Tp(e)?e:e.assignedSlot||e.parentNode||(Np(e)?e.host:null)||Dp(e)}function zp(e){return["html","body","#document"].indexOf(Tp(e))>=0?e.ownerDocument.body:Ep(e)&&Fp(e)?e:zp(Bp(e))}function Hp(e,t){var n;void 0===t&&(t=[]);var r=zp(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Cp(r),a=o?[i].concat(i.visualViewport||[],Fp(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Hp(Bp(a)))}function $p(e){return["table","td","th"].indexOf(Tp(e))>=0}function qp(e){return Ep(e)&&"fixed"!==jp(e).position?e.offsetParent:null}function Wp(e){for(var t=Cp(e),n=qp(e);n&&$p(n)&&"static"===jp(n).position;)n=qp(n);return n&&("html"===Tp(n)||"body"===Tp(n)&&"static"===jp(n).position)?t:n||function(e){var t=/firefox/i.test(kp());if(/Trident/i.test(kp())&&Ep(e)&&"fixed"===jp(e).position)return null;var n=Bp(e);for(Np(n)&&(n=n.host);Ep(n)&&["html","body"].indexOf(Tp(n))<0;){var r=jp(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Up="top",Vp="bottom",Gp="right",Yp="left",Kp="auto",Qp=[Up,Vp,Gp,Yp],Xp="start",Jp="end",ef="viewport",tf="popper",nf=Qp.reduce((function(e,t){return e.concat([t+"-"+Xp,t+"-"+Jp])}),[]),rf=[].concat(Qp,[Kp]).reduce((function(e,t){return e.concat([t,t+"-"+Xp,t+"-"+Jp])}),[]),of=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function af(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var lf={placement:"bottom",modifiers:[],strategy:"absolute"};function sf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function uf(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?lf:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},lf,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:Sp(e)?Hp(e):e.contextElement?Hp(e.contextElement):[],popper:Hp(t)};var a,u,p=function(e){var t=af(e);return of.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(sf(t,n)){l.rects={reference:_p(t,Wp(n),"fixed"===l.options.strategy),popper:Zp(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!sf(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var cf={passive:!0};function df(e){return e.split("-")[0]}function pf(e){return e.split("-")[1]}function ff(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hf(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?df(o):null,a=o?pf(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Up:t={x:l,y:n.y-r.height};break;case Vp:t={x:l,y:n.y+n.height};break;case Gp:t={x:n.x+n.width,y:s};break;case Yp:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?ff(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Xp:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Jp:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var mf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gf(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Yp,w=Up,x=window;if(u){var C=Wp(n),S="clientHeight",E="clientWidth";C===Cp(n)&&"static"!==jp(C=Dp(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),(o===Up||(o===Yp||o===Gp)&&i===Jp)&&(w=Vp,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[S])-r.height,m*=s?1:-1),o!==Yp&&(o!==Up&&o!==Vp||i!==Jp)||(y=Gp,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[E])-r.width,f*=s?1:-1)}var N,M=Object.assign({position:l},u&&mf),I=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ap(n*o)/o||0,y:Ap(r*o)/o||0}}({x:f,y:m},Cp(n)):{x:f,y:m};return f=I.x,m=I.y,s?Object.assign({},M,((N={})[w]=b?"0":"",N[y]=v?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",N)):Object.assign({},M,((t={})[w]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var vf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=rf.reduce((function(e,n){return e[n]=function(e,t,n){var r=df(e),o=[Yp,Up].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Yp,Gp].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},bf={left:"right",right:"left",bottom:"top",top:"bottom"};function yf(e){return e.replace(/left|right|bottom|top/g,(function(e){return bf[e]}))}var wf={start:"end",end:"start"};function xf(e){return e.replace(/start|end/g,(function(e){return wf[e]}))}function Cf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Np(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Sf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ef(e,t,n){return t===ef?Sf(function(e,t){var n=Cp(e),r=Dp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=Pp();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Op(e),y:s}}(e,n)):Sp(t)?function(e,t){var n=Lp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Sf(function(e){var t,n=Dp(e),r=Rp(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Mp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Op(e),s=-r.scrollTop;return"rtl"===jp(o||n).direction&&(l+=Mp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Dp(e)))}function Nf(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Mf(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function If(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?ef:u,d=n.elementContext,p=void 0===d?tf:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=Nf("number"!=typeof g?g:Mf(g,Qp)),b=p===tf?"reference":tf,y=e.rects.popper,w=e.elements[h?b:p],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Hp(Bp(e)),n=["absolute","fixed"].indexOf(jp(e).position)>=0&&Ep(e)?Wp(e):e;return Sp(n)?t.filter((function(e){return Sp(e)&&Cf(e,n)&&"body"!==Tp(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Ef(e,n,r);return t.top=Mp(o.top,t.top),t.right=Ip(o.right,t.right),t.bottom=Ip(o.bottom,t.bottom),t.left=Mp(o.left,t.left),t}),Ef(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(Sp(w)?w:w.contextElement||Dp(e.elements.popper),s,c,a),C=Lp(e.elements.reference),S=hf({reference:C,element:y,strategy:"absolute",placement:o}),E=Sf(Object.assign({},y,S)),N=p===tf?E:C,M={top:x.top-N.top+v.top,bottom:N.bottom-x.bottom+v.bottom,left:x.left-N.left+v.left,right:N.right-x.right+v.right},I=e.modifiersData.offset;if(p===tf&&I){var A=I[o];Object.keys(M).forEach((function(e){var t=[Gp,Vp].indexOf(e)>=0?1:-1,n=[Up,Vp].indexOf(e)>=0?"y":"x";M[e]+=A[n]*t}))}return M}var Af={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=df(g),b=s||(v!==g&&h?function(e){if(df(e)===Kp)return[];var t=yf(e);return[xf(e),t,xf(t)]}(g):[yf(g)]),y=[g].concat(b).reduce((function(e,n){return e.concat(df(n)===Kp?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?rf:s,c=pf(r),d=c?l?nf:nf.filter((function(e){return pf(e)===c})):Qp,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=If(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[df(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,S=!0,E=y[0],N=0;N<y.length;N++){var M=y[N],I=df(M),A=pf(M)===Xp,k=[Up,Vp].indexOf(I)>=0,P=k?"width":"height",L=If(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),R=k?A?Gp:Yp:A?Vp:Up;w[P]>x[P]&&(R=yf(R));var T=yf(R),D=[];if(i&&D.push(L[I]<=0),l&&D.push(L[R]<=0,L[T]<=0),D.every((function(e){return e}))){E=M,S=!1;break}C.set(M,D)}if(S)for(var O=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},j=h?3:1;j>0&&"break"!==O(j);j--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function kf(e,t,n){return Mp(e,Ip(t,n))}var Pf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=If(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=df(t.placement),b=pf(t.placement),y=!b,w=ff(v),x="x"===w?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,N="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(C){if(i){var k,P="y"===w?Up:Yp,L="y"===w?Vp:Gp,R="y"===w?"height":"width",T=C[w],D=T+g[P],O=T-g[L],j=f?-E[R]/2:0,F=b===Xp?S[R]:E[R],_=b===Xp?-E[R]:-S[R],Z=t.elements.arrow,B=f&&Z?Zp(Z):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=z[P],$=z[L],q=kf(0,S[R],B[R]),W=y?S[R]/2-j-q-H-M.mainAxis:F-q-H-M.mainAxis,U=y?-S[R]/2+j+q+$+M.mainAxis:_+q+$+M.mainAxis,V=t.elements.arrow&&Wp(t.elements.arrow),G=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,Y=null!=(k=null==I?void 0:I[w])?k:0,K=T+U-Y,Q=kf(f?Ip(D,T+W-Y-G):D,T,f?Mp(O,K):O);C[w]=Q,A[w]=Q-T}if(l){var X,J="x"===w?Up:Yp,ee="x"===w?Vp:Gp,te=C[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[Up,Yp].indexOf(v),ae=null!=(X=null==I?void 0:I[x])?X:0,le=ie?re:te-S[ne]-E[ne]-ae+M.altAxis,se=ie?te+S[ne]+E[ne]-ae-M.altAxis:oe,ue=f&&ie?function(e,t,n){var r=kf(e,t,n);return r>n?n:r}(le,te,se):kf(f?le:re,te,f?se:oe);C[x]=ue,A[x]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]},Lf={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=df(n.placement),s=ff(l),u=[Yp,Gp].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Nf("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mf(e,Qp))}(o.padding,n),d=Zp(i),p="y"===s?Up:Yp,f="y"===s?Vp:Gp,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=Wp(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=c[p],w=v-d[u]-c[f],x=v/2-d[u]/2+b,C=kf(y,x,w),S=s;n.modifiersData[r]=((t={})[S]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Cf(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tf(e){return[Up,Gp,Vp,Yp].some((function(t){return e[t]>=0}))}var Df=uf({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Cp(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,cf)})),l&&s.addEventListener("resize",n.update,cf),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,cf)})),l&&s.removeEventListener("resize",n.update,cf)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=hf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:df(t.placement),variation:pf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gf(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gf(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Ep(o)&&Tp(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ep(r)&&Tp(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},vf,Af,Pf,Lf,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=If(t,{elementContext:"reference"}),l=If(t,{altBoundary:!0}),s=Rf(a,r),u=Rf(l,o,i),c=Tf(s),d=Tf(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const Of=n.forwardRef((function(e,t){const{children:r,container:o,disablePortal:i=!1}=e,[a,l]=n.useState(null),s=(0,uc.Z)(n.isValidElement(r)?r.ref:null,t);if((0,dc.Z)((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),(0,dc.Z)((()=>{if(a&&!i)return(0,hp.Z)(t,a),()=>{(0,hp.Z)(t,null)}}),[t,a,i]),i){if(n.isValidElement(r)){const e={ref:s};return n.cloneElement(r,e)}return(0,Dl.jsx)(n.Fragment,{children:r})}return(0,Dl.jsx)(n.Fragment,{children:a?qe.createPortal(r,a):a})}));function jf(e){return(0,Rl.Z)("MuiPopper",e)}function Ff(e,t,n){return void 0===e||bc(e)?t:(0,bl.Z)({},t,{ownerState:(0,bl.Z)({},t.ownerState,n)})}function _f(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Zf(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}(0,Ll.Z)("MuiPopper",["root"]);const Bf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zf(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,vl.Z)(e,Bf),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,void 0):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,yl.Z)(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,bl.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=(0,bl.Z)({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=_f((0,bl.Z)({},o,r)),l=Zf(r),s=Zf(o),u=t(a),c=(0,yl.Z)(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=(0,bl.Z)({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=(0,bl.Z)({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}((0,bl.Z)({},a,{externalSlotProps:l})),c=(0,uc.Z)(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return Ff(n,(0,bl.Z)({},s,{ref:c}),o)}const Hf={disableDefaultClasses:!1},$f=n.createContext(Hf),qf=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Wf=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Uf(e){return"function"==typeof e?e():e}const Vf={},Gf=n.forwardRef((function(e,t){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m}=e,g=(0,vl.Z)(e,qf),v=n.useRef(null),b=(0,uc.Z)(v,t),y=n.useRef(null),w=(0,uc.Z)(y,p),x=n.useRef(w);(0,dc.Z)((()=>{x.current=w}),[w]),n.useImperativeHandle(p,(()=>y.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[S,E]=n.useState(C),[N,M]=n.useState(Uf(o));n.useEffect((()=>{y.current&&y.current.forceUpdate()})),n.useEffect((()=>{o&&M(Uf(o))}),[o]),(0,dc.Z)((()=>{if(!N||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Df(N,v.current,(0,bl.Z)({placement:C},d,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[N,l,s,u,d,C]);const I={placement:S};null!==m&&(I.TransitionProps=m);const A=(0,wl.Z)({root:["root"]},function(e){const{disableDefaultClasses:t}=n.useContext($f);return n=>t?"":e(n)}(jf)),k=null!=(r=h.root)?r:"div",P=zf({elementType:k,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:A.root});return(0,Dl.jsx)(k,(0,bl.Z)({},P,{children:"function"==typeof i?i(I):i}))})),Yf=n.forwardRef((function(e,t){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Vf,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:v={}}=e,b=(0,vl.Z)(e,Wf),[y,w]=n.useState(!0);if(!s&&!c&&(!m||y))return null;let x;if(i)x=i;else if(r){const e=Uf(r);x=e&&void 0!==e.nodeType?(0,xp.Z)(e).body:(0,xp.Z)(null).body}const C=c||!s||m&&!y?void 0:"none",S=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,Dl.jsx)(Of,{disablePortal:l,container:x,children:(0,Dl.jsx)(Gf,(0,bl.Z)({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:t,open:m?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:v},b,{style:(0,bl.Z)({position:"fixed",top:0,left:0,display:C},h),TransitionProps:S,children:o}))})}));var Kf=a(4168);const Qf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Xf=(0,Pl.ZP)(Yf,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Jf=n.forwardRef((function(e,t){var n;const r=(0,Kf.Z)(),o=(0,kl.Z)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,w=(0,vl.Z)(o,Qf),x=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,C=(0,bl.Z)({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},w);return(0,Dl.jsx)(Xf,(0,bl.Z)({as:a,direction:null==r?void 0:r.direction,slots:{root:x},slotProps:null!=y?y:s},C,{ref:t}))}));function eh(e){return(0,Rl.Z)("MuiListSubheader",e)}(0,Ll.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const th=["className","color","component","disableGutters","disableSticky","inset"],nh=(0,Pl.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Al.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,bl.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),rh=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:s=!1}=n,u=(0,vl.Z)(n,th),c=(0,bl.Z)({},n,{color:o,component:i,disableGutters:a,disableSticky:l,inset:s}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root","default"!==n&&`color${(0,Al.Z)(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,wl.Z)(a,eh,t)})(c);return(0,Dl.jsx)(nh,(0,bl.Z)({as:i,className:(0,yl.Z)(d.root,r),ref:t,ownerState:c},u))}));rh.muiSkipListHighlight=!0;var oh=rh,ih=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ah(e){return(0,Rl.Z)("MuiPaper",e)}(0,Ll.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lh=["className","component","elevation","square","variant"],sh=(0,Pl.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,bl.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,bl.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Jl.Fq)("#fff",ih(t.elevation))}, ${(0,Jl.Fq)("#fff",ih(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var uh=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=(0,vl.Z)(n,lh),u=(0,bl.Z)({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,wl.Z)(i,ah,o)})(u);return(0,Dl.jsx)(sh,(0,bl.Z)({as:o,ownerState:u,className:(0,yl.Z)(c.root,r),ref:t},s))}));function ch(e){return(0,Rl.Z)("MuiIconButton",e)}var dh=(0,Ll.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const ph=["edge","children","className","color","disabled","disableFocusRipple","size"],fh=(0,Pl.ZP)(_d,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Al.Z)(n.color)}`],n.edge&&t[`edge${(0,Al.Z)(n.edge)}`],t[`size${(0,Al.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,bl.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,bl.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,bl.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${dh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}));var hh=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=(0,vl.Z)(n,ph),d=(0,bl.Z)({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,Al.Z)(r)}`,o&&`edge${(0,Al.Z)(o)}`,`size${(0,Al.Z)(i)}`]};return(0,wl.Z)(a,ch,t)})(d);return(0,Dl.jsx)(fh,(0,bl.Z)({className:(0,yl.Z)(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},c,{children:o}))})),mh=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function gh(e){return(0,Rl.Z)("MuiChip",e)}var vh=(0,Ll.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);const bh=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],yh=(0,Pl.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:s}=n;return[{[`& .${vh.avatar}`]:t.avatar},{[`& .${vh.avatar}`]:t[`avatar${(0,Al.Z)(l)}`]},{[`& .${vh.avatar}`]:t[`avatarColor${(0,Al.Z)(r)}`]},{[`& .${vh.icon}`]:t.icon},{[`& .${vh.icon}`]:t[`icon${(0,Al.Z)(l)}`]},{[`& .${vh.icon}`]:t[`iconColor${(0,Al.Z)(o)}`]},{[`& .${vh.deleteIcon}`]:t.deleteIcon},{[`& .${vh.deleteIcon}`]:t[`deleteIcon${(0,Al.Z)(l)}`]},{[`& .${vh.deleteIcon}`]:t[`deleteIconColor${(0,Al.Z)(r)}`]},{[`& .${vh.deleteIcon}`]:t[`deleteIcon${(0,Al.Z)(s)}Color${(0,Al.Z)(r)}`]},t.root,t[`size${(0,Al.Z)(l)}`],t[`color${(0,Al.Z)(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${(0,Al.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Al.Z)(r)}`],t[s],t[`${s}${(0,Al.Z)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,bl.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${vh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${vh.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${vh.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${vh.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${vh.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${vh.icon}`]:(0,bl.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,bl.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${vh.deleteIcon}`]:(0,bl.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,Jl.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,Jl.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,Jl.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${vh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Jl.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,bl.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Jl.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${vh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Jl.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,bl.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${vh.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${vh.avatar}`]:{marginLeft:4},[`& .${vh.avatarSmall}`]:{marginLeft:2},[`& .${vh.icon}`]:{marginLeft:4},[`& .${vh.iconSmall}`]:{marginLeft:2},[`& .${vh.deleteIcon}`]:{marginRight:5},[`& .${vh.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Jl.Fq)(e.palette[t.color].main,.7)}`,[`&.${vh.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${vh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Jl.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${vh.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Jl.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),wh=(0,Pl.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Al.Z)(r)}`]]}})((({ownerState:e})=>(0,bl.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function xh(e){return"Backspace"===e.key||"Delete"===e.key}var Ch=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:l="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:g,size:v="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:w=!1}=r,x=(0,vl.Z)(r,bh),C=n.useRef(null),S=(0,Ql.Z)(C,t),E=e=>{e.stopPropagation(),h&&h(e)},N=!(!1===a||!f)||a,M=N||h?_d:s||"div",I=(0,bl.Z)({},r,{component:M,disabled:c,size:v,color:l,iconColor:n.isValidElement(d)&&d.props.color||l,onDelete:!!h,clickable:N,variant:b}),A=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:s}=e,u={root:["root",s,n&&"disabled",`size${(0,Al.Z)(r)}`,`color${(0,Al.Z)(o)}`,l&&"clickable",l&&`clickableColor${(0,Al.Z)(o)}`,a&&"deletable",a&&`deletableColor${(0,Al.Z)(o)}`,`${s}${(0,Al.Z)(o)}`],label:["label",`label${(0,Al.Z)(r)}`],avatar:["avatar",`avatar${(0,Al.Z)(r)}`,`avatarColor${(0,Al.Z)(o)}`],icon:["icon",`icon${(0,Al.Z)(r)}`,`iconColor${(0,Al.Z)(i)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Al.Z)(r)}`,`deleteIconColor${(0,Al.Z)(o)}`,`deleteIcon${(0,Al.Z)(s)}Color${(0,Al.Z)(o)}`]};return(0,wl.Z)(u,gh,t)})(I),k=M===_d?(0,bl.Z)({component:s||"div",focusVisibleClassName:A.focusVisible},h&&{disableRipple:!0}):{};let P=null;h&&(P=u&&n.isValidElement(u)?n.cloneElement(u,{className:(0,yl.Z)(u.props.className,A.deleteIcon),onClick:E}):(0,Dl.jsx)(mh,{className:(0,yl.Z)(A.deleteIcon),onClick:E}));let L=null;o&&n.isValidElement(o)&&(L=n.cloneElement(o,{className:(0,yl.Z)(A.avatar,o.props.className)}));let R=null;return d&&n.isValidElement(d)&&(R=n.cloneElement(d,{className:(0,yl.Z)(A.icon,d.props.className)})),(0,Dl.jsxs)(yh,(0,bl.Z)({as:M,className:(0,yl.Z)(A.root,i),disabled:!(!N||!c)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&xh(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(h&&xh(e)?h(e):"Escape"===e.key&&C.current&&C.current.blur()),g&&g(e)},ref:S,tabIndex:w&&c?-1:y,ownerState:I},k,x,{children:[L||R,(0,Dl.jsx)(wh,{className:(0,yl.Z)(A.label),ownerState:I,children:p}),P]}))}));function Sh(e){return(0,Rl.Z)("MuiInput",e)}var Eh=(0,bl.Z)({},Lc,(0,Ll.Z)("MuiInput",["root","underline","input"]));function Nh(e){return(0,Rl.Z)("MuiOutlinedInput",e)}var Mh=(0,bl.Z)({},Lc,(0,Ll.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));function Ih(e){return(0,Rl.Z)("MuiFilledInput",e)}var Ah=(0,bl.Z)({},Lc,(0,Ll.Z)("MuiFilledInput",["root","underline","input"])),kh=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ph=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Lh(e){return(0,Rl.Z)("MuiAutocomplete",e)}var Rh,Th,Dh=(0,Ll.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const Oh=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],jh=["ref"],Fh=["key"],_h=(0,Pl.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${Dh.tag}`]:t.tag},{[`& .${Dh.tag}`]:t[`tagSize${(0,Al.Z)(l)}`]},{[`& .${Dh.inputRoot}`]:t.inputRoot},{[`& .${Dh.input}`]:t.input},{[`& .${Dh.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((({ownerState:e})=>(0,bl.Z)({[`&.${Dh.focused} .${Dh.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Dh.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Dh.tag}`]:(0,bl.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Dh.inputRoot}`]:{flexWrap:"wrap",[`.${Dh.hasPopupIcon}&, .${Dh.hasClearIcon}&`]:{paddingRight:30},[`.${Dh.hasPopupIcon}.${Dh.hasClearIcon}&`]:{paddingRight:56},[`& .${Dh.input}`]:{width:0,minWidth:30}},[`& .${Eh.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Eh.root}.${Lc.sizeSmall}`]:{[`& .${Eh.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mh.root}`]:{padding:9,[`.${Dh.hasPopupIcon}&, .${Dh.hasClearIcon}&`]:{paddingRight:39},[`.${Dh.hasPopupIcon}.${Dh.hasClearIcon}&`]:{paddingRight:65},[`& .${Dh.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Dh.endAdornment}`]:{right:9}},[`& .${Mh.root}.${Lc.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Dh.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ah.root}`]:{paddingTop:19,paddingLeft:8,[`.${Dh.hasPopupIcon}&, .${Dh.hasClearIcon}&`]:{paddingRight:39},[`.${Dh.hasPopupIcon}.${Dh.hasClearIcon}&`]:{paddingRight:65},[`& .${Ah.input}`]:{padding:"7px 4px"},[`& .${Dh.endAdornment}`]:{right:9}},[`& .${Ah.root}.${Lc.sizeSmall}`]:{paddingBottom:1,[`& .${Ah.input}`]:{padding:"2.5px 4px"}},[`& .${Lc.hiddenLabel}`]:{paddingTop:8},[`& .${Ah.root}.${Lc.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Dh.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ah.root}.${Lc.hiddenLabel}.${Lc.sizeSmall}`]:{[`& .${Dh.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Dh.input}`]:(0,bl.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),Zh=(0,Pl.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bh=(0,Pl.ZP)(hh,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zh=(0,Pl.ZP)(hh,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,bl.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,bl.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),Hh=(0,Pl.ZP)(Jf,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dh.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,bl.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),$h=(0,Pl.ZP)(uh,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,bl.Z)({},e.typography.body1,{overflow:"auto"}))),qh=(0,Pl.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Wh=(0,Pl.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Uh=(0,Pl.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Dh.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Dh.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Dh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dh.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Dh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Jl.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Vh=(0,Pl.ZP)(oh,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Gh=(0,Pl.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Dh.option}`]:{paddingLeft:24}});var Yh=n.forwardRef((function(e,t){var r,o,i,a;const l=(0,kl.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:f,clearIcon:h=Rh||(Rh=(0,Dl.jsx)(kh,{fontSize:"small"})),clearOnBlur:m=!l.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:b="Close",componentsProps:y={},defaultValue:w=(l.multiple?[]:null),disableClearable:x=!1,disableCloseOnSelect:C=!1,disabled:S=!1,disabledItemsFocusable:E=!1,disableListWrap:N=!1,disablePortal:M=!1,filterSelectedOptions:I=!1,forcePopupIcon:A="auto",freeSolo:k=!1,fullWidth:P=!1,getLimitTagsText:L=(e=>`+${e}`),getOptionLabel:R,groupBy:T,handleHomeEndKeys:D=!l.freeSolo,includeInputInList:O=!1,limitTags:j=-1,ListboxComponent:F="ul",ListboxProps:_,loading:Z=!1,loadingText:B="Loading…",multiple:z=!1,noOptionsText:H="No options",openOnFocus:$=!1,openText:q="Open",PaperComponent:W=uh,PopperComponent:U=Jf,popupIcon:V=Th||(Th=(0,Dl.jsx)(Ph,{})),readOnly:G=!1,renderGroup:Y,renderInput:K,renderOption:Q,renderTags:X,selectOnFocus:J=!l.freeSolo,size:ee="medium",slotProps:te={}}=l,ne=(0,vl.Z)(l,Oh),{getRootProps:re,getInputProps:oe,getInputLabelProps:ie,getPopupIndicatorProps:ae,getClearProps:le,getTagProps:se,getListboxProps:ue,getOptionProps:ce,value:de,dirty:pe,expanded:fe,id:he,popupOpen:me,focused:ge,focusedTag:ve,anchorEl:be,setAnchorEl:ye,inputValue:we,groupedOptions:xe}=function(e){const{unstable_isActiveElementInListbox:t=yp,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=bp,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:C=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:S,handleHomeEndKeys:E=!e.freeSolo,id:N,includeInputInList:M=!1,inputValue:I,isOptionEqualToValue:A=((e,t)=>e===t),multiple:k=!1,onChange:P,onClose:L,onHighlightChange:R,onInputChange:T,onOpen:D,open:O,openOnFocus:j=!1,options:F,readOnly:_=!1,selectOnFocus:Z=!e.freeSolo,value:B}=e,z=(0,cp.Z)(N);let H=C;H=e=>{const t=C(e);return"string"!=typeof t?String(t):t};const $=n.useRef(!1),q=n.useRef(!0),W=n.useRef(null),U=n.useRef(null),[V,G]=n.useState(null),[Y,K]=n.useState(-1),Q=i?0:-1,X=n.useRef(Q),[J,ee]=(0,dp.Z)({controlled:B,default:d,name:c}),[te,ne]=(0,dp.Z)({controlled:I,default:"",name:c,state:"inputValue"}),[re,oe]=n.useState(!1),ie=n.useCallback(((e,t)=>{if(!(k?J.length<t.length:null!==t)&&!s)return;let n;if(k)n="";else if(null==t)n="";else{const e=H(t);n="string"==typeof e?e:""}te!==n&&(ne(n),T&&T(e,n,"reset"))}),[H,te,k,T,ne,s,J]),[ae,le]=(0,dp.Z)({controlled:O,default:!1,name:c,state:"open"}),[se,ue]=n.useState(!0),ce=!k&&null!=J&&te===H(J),de=ae&&!_,pe=de?v(F.filter((e=>!b||!(k?J:[J]).some((t=>null!==t&&A(e,t))))),{inputValue:ce&&se?"":te,getOptionLabel:H}):[],fe=pp({filteredOptions:pe,value:J,inputValue:te});n.useEffect((()=>{const e=J!==fe.value;re&&!e||y&&!e||ie(null,J)}),[J,ie,re,fe.value,y]);const he=ae&&pe.length>0&&!_,me=(0,fp.Z)((e=>{-1===e?W.current.focus():V.querySelector(`[data-tag-index="${e}"]`).focus()}));n.useEffect((()=>{k&&Y>J.length-1&&(K(-1),me(-1))}),[J,k,Y,me]);const ge=(0,fp.Z)((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),R&&R(e,-1===t?null:pe[t],n),!U.current)return;const o=U.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let i=U.current;if("listbox"!==U.current.getAttribute("role")&&(i=U.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=U.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${r}-focused`),"keyboard"===n&&a.classList.add(`${r}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}})),ve=(0,fp.Z)((({event:e,diff:t,direction:n="next",reason:r="auto"})=>{if(!de)return;const i=function(e,t){if(!U.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=U.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=X.current+t;return n<0?-1===n&&M?-1:g&&-1!==X.current||Math.abs(t)>1?0:e:n>e?n===e+1&&M?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ge({index:i,reason:r,event:e}),o&&"reset"!==t)if(-1===i)W.current.value=te;else{const e=H(pe[i]);W.current.value=e,0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&W.current.setSelectionRange(te.length,e.length)}})),be=n.useCallback((()=>{if(!de)return;if((()=>{if(-1!==X.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===te&&(k?J.length===fe.value.length&&fe.value.every(((e,t)=>H(J[t])===H(e))):(e=fe.value,t=J,(e?H(e):"")===(t?H(t):"")))){const e=fe.filteredOptions[X.current];if(e&&pe.some((t=>H(t)===H(e))))return!0}var e,t;return!1})())return;const e=k?J[0]:J;if(0!==pe.length&&null!=e){if(U.current)if(null==e)X.current>=pe.length-1?ge({index:pe.length-1}):ge({index:X.current});else{const t=pe[X.current];if(k&&t&&-1!==vp(J,(e=>A(t,e))))return;const n=vp(pe,(t=>A(t,e)));-1===n?ve({diff:"reset"}):ge({index:n})}}else ve({diff:"reset"})}),[pe.length,!k&&J,b,ve,ge,de,te,k]),ye=(0,fp.Z)((e=>{(0,hp.Z)(U,e),e&&be()}));n.useEffect((()=>{be()}),[be]);const we=e=>{ae||(le(!0),ue(!0),D&&D(e))},xe=(e,t)=>{ae&&(le(!1),L&&L(e,t))},Ce=(e,t,n,r)=>{if(k){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;P&&P(e,t,n,r),ee(t)},Se=n.useRef(!1),Ee=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(k){i=Array.isArray(J)?J.slice():[];const e=vp(i,(e=>A(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ie(e,i),Ce(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||xe(e,o),(!0===l||"touch"===l&&Se.current||"mouse"===l&&!Se.current)&&W.current.blur()},Ne=(e,t)=>{if(!k)return;""===te&&xe(e,"toggleInput");let n=Y;-1===Y?""===te&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=V.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),K(n),me(n)},Me=e=>{$.current=!0,ne(""),T&&T(e,"","clear"),Ce(e,k?[]:null,"clear")},Ie=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Y&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(K(-1),me(-1)),229!==t.which))switch(t.key){case"Home":de&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ne(t,"previous");break;case"ArrowRight":Ne(t,"next");break;case"Enter":if(-1!==X.current&&de){const e=pe[X.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),o&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else y&&""!==te&&!1===ce&&(k&&t.preventDefault(),Ee(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),xe(t,"escape")):u&&(""!==te||k&&J.length>0)&&(t.preventDefault(),t.stopPropagation(),Me(t));break;case"Backspace":if(k&&!_&&""===te&&J.length>0){const e=-1===Y?J.length-1:Y,n=J.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:J[e]})}break;case"Delete":if(k&&!_&&""===te&&J.length>0&&-1!==Y){const e=Y,n=J.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:J[e]})}}},Ae=e=>{oe(!0),j&&!$.current&&we(e)},ke=e=>{t(U)?W.current.focus():(oe(!1),q.current=!0,$.current=!1,a&&-1!==X.current&&de?Ee(e,pe[X.current],"blur"):a&&y&&""!==te?Ee(e,te,"blur","freeSolo"):s&&ie(e,J),xe(e,"blur"))},Pe=e=>{const t=e.target.value;te!==t&&(ne(t),ue(!1),T&&T(e,t,"input")),""===t?p||k||Ce(e,null,"clear"):we(e)},Le=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));X.current!==t&&ge({event:e,index:t,reason:"mouse"})},Re=e=>{ge({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Se.current=!0},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),Se.current=!1},De=e=>t=>{const n=J.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:J[e]})},Oe=e=>{ae?xe(e,"toggleInput"):we(e)},je=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==z&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),Z&&q.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),q.current=!1)},_e=e=>{h||""!==te&&ae||Oe(e)};let Ze=y&&te.length>0;Ze=Ze||(k?J.length>0:null!==J);let Be=pe;return S&&(new Map,Be=pe.reduce(((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),h&&re&&ke(),{getRootProps:(e={})=>(0,bl.Z)({"aria-owns":he?`${z}-listbox`:null},e,{onKeyDown:Ie(e),onMouseDown:je,onClick:Fe}),getInputLabelProps:()=>({id:`${z}-label`,htmlFor:z}),getInputProps:()=>({id:z,value:te,onBlur:ke,onFocus:Ae,onChange:Pe,onMouseDown:_e,"aria-activedescendant":de?"":null,"aria-autocomplete":o?"both":"list","aria-controls":he?`${z}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Me}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oe}),getTagProps:({index:e})=>(0,bl.Z)({key:e,"data-tag-index":e,tabIndex:-1},!_&&{onDelete:De(e)}),getListboxProps:()=>({role:"listbox",id:`${z}-listbox`,"aria-labelledby":`${z}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(k?J:[J]).some((e=>null!=e&&A(t,e))),o=!!w&&w(t);return{key:null!=(n=null==x?void 0:x(t))?n:H(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseMove:Le,onClick:Te,onTouchStart:Re,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:z,inputValue:te,value:J,dirty:Ze,expanded:de&&V,popupOpen:de,focused:re||-1!==Y,anchorEl:V,setAnchorEl:G,focusedTag:Y,groupedOptions:Be}}((0,bl.Z)({},l,{componentName:"Autocomplete"})),Ce=!x&&!S&&pe&&!G,Se=(!k||!0===A)&&!1!==A,{onMouseDown:Ee}=oe(),{ref:Ne}=null!=_?_:{},Me=ue(),{ref:Ie}=Me,Ae=(0,vl.Z)(Me,jh),ke=(0,Ql.Z)(Ie,Ne),Pe=R||(e=>{var t;return null!=(t=e.label)?t:e}),Le=(0,bl.Z)({},l,{disablePortal:M,expanded:fe,focused:ge,fullWidth:P,getOptionLabel:Pe,hasClearIcon:Ce,hasPopupIcon:Se,inputFocused:-1===ve,popupOpen:me,size:ee}),Re=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:s,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${(0,Al.Z)(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,wl.Z)(d,Lh,t)})(Le);let Te;if(z&&de.length>0){const e=e=>(0,bl.Z)({className:Re.tag,disabled:S},se(e));Te=X?X(de,e,Le):de.map(((t,n)=>(0,Dl.jsx)(Ch,(0,bl.Z)({label:Pe(t),size:ee},e({index:n}),p))))}if(j>-1&&Array.isArray(Te)){const e=Te.length-j;!ge&&e>0&&(Te=Te.splice(0,j),Te.push((0,Dl.jsx)("span",{className:Re.tag,children:L(e)},Te.length)))}const De=Y||(e=>(0,Dl.jsxs)("li",{children:[(0,Dl.jsx)(Vh,{className:Re.groupLabel,ownerState:Le,component:"div",children:e.group}),(0,Dl.jsx)(Gh,{className:Re.groupUl,ownerState:Le,children:e.children})]},e.key)),Oe=Q||((e,t)=>{const{key:n}=e,r=(0,vl.Z)(e,Fh);return(0,Dl.jsx)("li",(0,bl.Z)({},r,{children:Pe(t)}),n)}),je=(e,t)=>{const n=ce({option:e,index:t});return Oe((0,bl.Z)({},n,{className:Re.option}),e,{selected:n["aria-selected"],index:t,inputValue:we},Le)},Fe=null!=(r=te.clearIndicator)?r:y.clearIndicator,_e=null!=(o=te.paper)?o:y.paper,Ze=null!=(i=te.popper)?i:y.popper,Be=null!=(a=te.popupIndicator)?a:y.popupIndicator;return(0,Dl.jsxs)(n.Fragment,{children:[(0,Dl.jsx)(_h,(0,bl.Z)({ref:t,className:(0,yl.Z)(Re.root,f),ownerState:Le},re(ne),{children:K({id:he,disabled:S,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:ie(),InputProps:(0,bl.Z)({ref:ye,className:Re.inputRoot,startAdornment:Te,onClick:e=>{e.target===e.currentTarget&&Ee(e)}},(Ce||Se)&&{endAdornment:(0,Dl.jsxs)(Zh,{className:Re.endAdornment,ownerState:Le,children:[Ce?(0,Dl.jsx)(Bh,(0,bl.Z)({},le(),{"aria-label":v,title:v,ownerState:Le},Fe,{className:(0,yl.Z)(Re.clearIndicator,null==Fe?void 0:Fe.className),children:h})):null,Se?(0,Dl.jsx)(zh,(0,bl.Z)({},ae(),{disabled:S,"aria-label":me?b:q,title:me?b:q,ownerState:Le},Be,{className:(0,yl.Z)(Re.popupIndicator,null==Be?void 0:Be.className),children:V})):null]})}),inputProps:(0,bl.Z)({className:Re.input,disabled:S,readOnly:G},oe())})})),be?(0,Dl.jsx)(Hh,(0,bl.Z)({as:U,disablePortal:M,style:{width:be?be.clientWidth:null},ownerState:Le,role:"presentation",anchorEl:be,open:me},Ze,{className:(0,yl.Z)(Re.popper,null==Ze?void 0:Ze.className),children:(0,Dl.jsxs)($h,(0,bl.Z)({ownerState:Le,as:W},_e,{className:(0,yl.Z)(Re.paper,null==_e?void 0:_e.className),children:[Z&&0===xe.length?(0,Dl.jsx)(qh,{className:Re.loading,ownerState:Le,children:B}):null,0!==xe.length||k||Z?null:(0,Dl.jsx)(Wh,{className:Re.noOptions,ownerState:Le,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:H}),xe.length>0?(0,Dl.jsx)(Uh,(0,bl.Z)({as:F,className:Re.listbox,ownerState:Le},Ae,_,{ref:ke,children:xe.map(((e,t)=>T?De({key:e.key,group:e.group,children:e.options.map(((t,n)=>je(t,e.index+n)))}):je(e,t)))})):null]}))})):null]})}));const Kh=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Qh(e){const{item:t,applyValue:r,type:o,apiRef:i,focusElementRef:a,color:l,error:s,helperText:u,size:c,variant:d}=e,p=(0,vl.Z)(e,Kh),f={color:l,error:s,helperText:u,size:c,variant:d},[h,m]=n.useState(t.value||[]),g=(0,sd.Z)(),v=Is();n.useEffect((()=>{var e;const n=null!=(e=t.value)?e:[];m(n.map(String))}),[t.value]);const b=n.useCallback(((e,n)=>{m(n.map(String)),r((0,bl.Z)({},t,{value:[...n]}))}),[r,t]);return(0,Dl.jsx)(Yh,(0,bl.Z)({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:n}=t;return null==n||""===n?[]:[n]},id:g,value:h,onChange:b,renderTags:(e,t)=>e.map(((e,n)=>(0,Dl.jsx)(Ch,(0,bl.Z)({variant:"outlined",size:"small",label:e},t({index:n}))))),renderInput:e=>{var t;return(0,Dl.jsx)(v.components.BaseTextField,(0,bl.Z)({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,bl.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:o||"text"},f,null==(t=v.componentsProps)?void 0:t.baseTextField))}},p))}const Xh={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const n=ap(e,t);return null!==n?n:"string"==typeof e?lp.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Lu(n),"i");return({value:e})=>null!=e&&r.test(e.toString())},InputComponent:Xd},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:e})=>null!=e&&0===r.compare(n,e.toString())},InputComponent:Xd},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Lu(n)}.*$`,"i");return({value:e})=>null!=e&&r.test(e.toString())},InputComponent:Xd},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Lu(n)}$`,"i");return({value:e})=>null!=e&&r.test(e.toString())},InputComponent:Xd},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:e})=>null!=e&&n.some((t=>0===r.compare(t,e.toString()||"")))},InputComponent:Qh}])(),renderEditCell:e=>(0,Dl.jsx)(tp,(0,bl.Z)({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(Lu(e),"i");return({value:e})=>null!=e&&t.test(e.toString())}},Jh=e=>null==e?null:Number(e),em=()=>[{label:"=",value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>Jh(t)===e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>Jh(t)!==e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&Jh(t)>e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&Jh(t)>=e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&Jh(t)<e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&Jh(t)<=e.value,InputComponent:Xd,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?({value:t})=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Qh,InputComponentProps:{type:"number"}}],tm=(us(em),(0,bl.Z)({},Xh,{type:"number",align:"right",headerAlign:"right",sortComparator:sp,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"==typeof e}(e)?e.toLocaleString():e||"",filterOperators:em(),getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:({value:t})=>Jh(t)===Jh(e)})),nm=["item","applyValue","type","apiRef","focusElementRef","InputProps"];function rm(e){var t,r;const{item:o,applyValue:i,type:a,apiRef:l,focusElementRef:s,InputProps:u}=e,c=(0,vl.Z)(e,nm),d=n.useRef(),[p,f]=n.useState(null!=(t=o.value)?t:""),[h,m]=n.useState(!1),g=(0,sd.Z)(),v=Is(),b=n.useCallback((e=>{const t=e.target.value;clearTimeout(d.current),f(String(t)),m(!0),d.current=setTimeout((()=>{i((0,bl.Z)({},o,{value:t})),m(!1)}),500)}),[i,o]);return n.useEffect((()=>()=>{clearTimeout(d.current)}),[]),n.useEffect((()=>{var e;const t=null!=(e=o.value)?e:"";f(String(t))}),[o.value]),(0,Dl.jsx)(v.components.BaseTextField,(0,bl.Z)({id:g,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:p,onChange:b,variant:"standard",type:a||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:(0,bl.Z)({},h?{endAdornment:(0,Dl.jsx)(rd,{})}:{},u,{inputProps:(0,bl.Z)({max:"datetime-local"===a?"9999-12-31T23:59":"9999-12-31"},null==u?void 0:u.inputProps)})},c,null==(r=v.componentsProps)?void 0:r.baseTextField))}const om=/(\d+)-(\d+)-(\d+)/,im=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function am(e,t,n,r){if(!e.value)return null;const[o,i,a,l,s]=e.value.match(n?im:om).slice(1).map(Number),u=new Date(o,i-1,a,l||0,s||0).getTime();return({value:e})=>{if(!e)return!1;const o=e instanceof Date?e:new Date(e.toString());if(r)return t(o.getTime(),u);const i=(e instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(i,u)}}const lm=e=>[{value:"is",getApplyFilterFn:t=>am(t,((e,t)=>e===t),e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>am(t,((e,t)=>e!==t),e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>am(t,((e,t)=>e>t),e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>am(t,((e,t)=>e>=t),e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>am(t,((e,t)=>e<t),e,!e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>am(t,((e,t)=>e<=t),e),InputComponent:rm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e,requiresFilterValue:!1}],sm=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],um=(0,Pl.ZP)(Zc)({fontSize:"inherit"});function cm(e){const{id:t,value:r,field:o,colDef:i,hasFocus:a,inputProps:l,onValueChange:s}=e,u=(0,vl.Z)(e,sm),c="dateTime"===i.type,d=Ns(),p=n.useRef(),f=n.useMemo((()=>{let e,t;return e=null==r?null:r instanceof Date?r:new Date((null!=r?r:"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,c?16:10),{parsed:e,formatted:t}}),[r,c]),[h,m]=n.useState(f),g=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["editInputCell"]},es,t)})({classes:Is().classes}),v=n.useCallback((async e=>{const n=e.target.value;let r;if(""===n)r=null;else{const[e,t]=n.split("T"),[o,i,a]=e.split("-");if(r=new Date,r.setFullYear(Number(o),Number(i)-1,Number(a)),r.setHours(0,0,0,0),t){const[e,n]=t.split(":");r.setHours(Number(e),Number(n),0,0)}}s&&await s(e,r),m({parsed:r,formatted:n}),d.current.setEditCellValue({id:t,field:o,value:r},e)}),[d,o,t,s]);return n.useEffect((()=>{m((e=>{var t,n;return f.parsed!==e.parsed&&(null==(t=f.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?f:e}))}),[f]),(0,Xl.Z)((()=>{a&&p.current.focus()}),[a]),(0,Dl.jsx)(um,(0,bl.Z)({inputRef:p,fullWidth:!0,className:g.root,type:c?"datetime-local":"date",inputProps:(0,bl.Z)({max:c?"9999-12-31T23:59":"9999-12-31"},l),value:h.formatted,onChange:v},u))}const dm=e=>(0,Dl.jsx)(cm,(0,bl.Z)({},e)),pm=(0,bl.Z)({},Xh,{type:"date",sortComparator:up,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleDateString():null!=e?e:""},filterOperators:lm(),renderEditCell:dm,getApplyQuickFilterFn:void 0}),fm=(0,bl.Z)({},Xh,{type:"dateTime",sortComparator:up,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleString():null!=e?e:""},filterOperators:lm(!0),renderEditCell:dm,getApplyQuickFilterFn:void 0}),hm=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],mm=e=>{const{value:t}=e,r=(0,vl.Z)(e,hm),o=Ns(),i=Is(),a=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["booleanCell"]},es,t)})({classes:i.classes}),l=n.useMemo((()=>t?i.components.BooleanCellTrueIcon:i.components.BooleanCellFalseIcon),[i.components.BooleanCellFalseIcon,i.components.BooleanCellTrueIcon,t]);return(0,Dl.jsx)(l,(0,bl.Z)({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))},gm=n.memo(mm),vm=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function bm(e){var t;const{id:r,value:o,field:i,className:a,hasFocus:l,onValueChange:s}=e,u=(0,vl.Z)(e,vm),c=Ns(),d=n.useRef(null),p=(0,sd.Z)(),[f,h]=n.useState(o),m=Is(),g=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["editBooleanCell"]},es,t)})({classes:m.classes}),v=n.useCallback((async e=>{const t=e.target.checked;s&&await s(e,t),h(t),await c.current.setEditCellValue({id:r,field:i,value:t},e)}),[c,i,r,s]);return n.useEffect((()=>{h(o)}),[o]),(0,Xl.Z)((()=>{l&&d.current.focus()}),[l]),(0,Dl.jsx)("label",(0,bl.Z)({htmlFor:p,className:ce(g.root,a)},u,{children:(0,Dl.jsx)(m.components.BaseCheckbox,(0,bl.Z)({id:p,inputRef:d,checked:Boolean(f),onChange:v,size:"small"},null==(t=m.componentsProps)?void 0:t.baseCheckbox))}))}const ym=["item","applyValue","apiRef","focusElementRef"];const wm=(0,bl.Z)({},Xh,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>e.rowNode.isAutoGenerated?"":(0,Dl.jsx)(gm,(0,bl.Z)({},e)),renderEditCell:e=>(0,Dl.jsx)(bm,(0,bl.Z)({},e)),sortComparator:sp,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t="true"===e.value;return({value:e})=>Boolean(e)===t},InputComponent:function(e){var t,r,o,i;const{item:a,applyValue:l,apiRef:s,focusElementRef:u}=e,c=(0,vl.Z)(e,ym),[d,p]=n.useState(a.value||""),f=Is(),h=null==(r=((null==(t=f.componentsProps)?void 0:t.baseSelect)||{}).native)||r,m=h?"option":Ud,g=n.useCallback((e=>{const t=e.target.value;p(t),l((0,bl.Z)({},a,{value:t}))}),[l,a]);return n.useEffect((()=>{p(a.value||"")}),[a.value]),(0,Dl.jsxs)(f.components.BaseTextField,(0,bl.Z)({label:s.current.getLocaleText("filterPanelInputLabel"),value:d,onChange:g,select:!0,variant:"standard",SelectProps:(0,bl.Z)({native:h,displayEmpty:!0},null==(o=f.componentsProps)?void 0:o.baseSelect),InputLabelProps:{shrink:!0},inputRef:u},c,null==(i=f.componentsProps)?void 0:i.baseTextField,{children:[(0,Dl.jsx)(m,{value:"",children:s.current.getLocaleText("filterValueAny")}),(0,Dl.jsx)(m,{value:"true",children:s.current.getLocaleText("filterValueTrue")}),(0,Dl.jsx)(m,{value:"false",children:s.current.getLocaleText("filterValueFalse")})]}))}}],getApplyQuickFilterFn:void 0,aggregable:!1}),xm=e=>"Escape"===e,Cm=e=>"Enter"===e,Sm=e=>"Tab"===e,Em=e=>" "===e,Nm=e=>"Delete"===e||"Backspace"===e;function Mm(e){return 1===e.key.length&&!1===e.ctrlKey&&!1===e.metaKey}const Im=["Enter","Escape","Tab"],Am=["Enter","Tab"],km=e=>Am.indexOf(e)>-1,Pm=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||Em(e),Lm=e=>!!e.key;var Rm,Tm,Dm;!function(e){e.Cell="cell",e.Row="row"}(Rm||(Rm={})),function(e){e.Edit="edit",e.View="view"}(Tm||(Tm={})),function(e){e.Edit="edit",e.View="view"}(Dm||(Dm={}));const Om=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"];function jm(e){var t,r,o;const i=Is(),{id:a,value:l,api:s,field:u,row:c,colDef:d,hasFocus:p,error:f,onValueChange:h,initialOpen:m=i.editMode===Rm.Cell}=e,g=(0,vl.Z)(e,Om),v=Ns(),b=n.useRef(),y=n.useRef(),[w,x]=n.useState(m),C=null!=(r=((null==(t=i.componentsProps)?void 0:t.baseSelect)||{}).native)&&r;let S;return S="function"==typeof d.valueOptions?d.valueOptions({id:a,row:c,field:u}):d.valueOptions,d.valueFormatter&&(S=S.map((e=>{if("object"==typeof e)return e;const t={field:u,api:s,value:e};return{value:e,label:String(d.valueFormatter(t))}}))),(0,Xl.Z)((()=>{p&&y.current.focus()}),[p]),(0,Dl.jsx)(i.components.BaseSelect,(0,bl.Z)({ref:b,inputRef:y,value:l,onChange:async e=>{var t;x(!1);const n=Gd(e.target.value,S);h&&await h(e,n);const r=await v.current.setEditCellValue({id:a,field:u,value:n},e);if((null==(t=i.experimentalFeatures)||!t.newEditingApi)&&i.editMode!==Rm.Row&&!1!==r&&await Promise.resolve(v.current.commitCellChange({id:a,field:u},e))&&(v.current.setCellMode(a,u,"view"),e.key)){const t=v.current.getCellParams(a,u);v.current.publishEvent("cellNavigationKeyDown",t,e)}},open:w,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||x(!0)},MenuProps:{onClose:(e,t)=>{var n;i.editMode!==Rm.Row?("backdropClick"===t||xm(e.key))&&(null!=(n=i.experimentalFeatures)&&n.newEditingApi?v.current.stopCellEditMode({id:a,field:u,ignoreModifications:!0}):v.current.setCellMode(a,u,"view")):x(!1)}},error:f,native:C,fullWidth:!0},g,null==(o=i.componentsProps)?void 0:o.baseSelect,{children:S.map((e=>((e,t)=>{const n="object"==typeof e,r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return(0,Dl.jsx)(t,{value:o,children:i},r)})(e,C?"option":Ud)))}))}const Fm=["item","applyValue","type","apiRef","focusElementRef"],_m=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"==typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const i="object"==typeof e,a=i?e.value:e,l=i?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=i?e.label:s;return(0,Dl.jsx)(o,{value:l,children:u},a)}));function Zm(e){var t,r,o,i,a;const{item:l,applyValue:s,type:u,apiRef:c,focusElementRef:d}=e,p=(0,vl.Z)(e,Fm),[f,h]=n.useState(null!=(t=l.value)?t:""),m=(0,sd.Z)(),g=Is(),v=null==(o=((null==(r=g.componentsProps)?void 0:r.baseSelect)||{}).native)||o,b=l.columnField?c.current.getColumn(l.columnField):null,y=n.useMemo((()=>{if(null!==b)return"function"==typeof b.valueOptions?b.valueOptions({field:b.field}):b.valueOptions}),[b]),w=n.useCallback((e=>{let t=e.target.value;t=Gd(t,y),h(String(t)),s((0,bl.Z)({},l,{value:t}))}),[s,l,y]);return n.useEffect((()=>{var e;let t;if(void 0!==y){if(t=Gd(l.value,y),t!==l.value)return void s((0,bl.Z)({},l,{value:t}))}else t=l.value;t=null!=(e=t)?e:"",h(String(t))}),[l,y,s]),(0,Dl.jsx)(g.components.BaseTextField,(0,bl.Z)({id:m,label:c.current.getLocaleText("filterPanelInputLabel"),placeholder:c.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:w,variant:"standard",type:u||"text",InputLabelProps:{shrink:!0},inputRef:d,select:!0,SelectProps:(0,bl.Z)({native:v},null==(i=g.componentsProps)?void 0:i.baseSelect)},p,null==(a=g.componentsProps)?void 0:a.baseTextField,{children:_m(c.current.getColumn(l.columnField),c.current,v?"option":Ud)}))}const Bm=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],zm=(e,t)=>Vd(e)===Vd(t),Hm=gp();const $m=e=>null==e||"object"!=typeof e?e:e.value,qm=(0,bl.Z)({},Xh,{type:"singleSelect",renderEditCell:e=>(0,Dl.jsx)(jm,(0,bl.Z)({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>$m(t)===$m(e.value),InputComponent:Zm},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>$m(t)!==$m(e.value),InputComponent:Zm},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map($m);return({value:e})=>t.includes($m(e))},InputComponent:function(e){const{item:t,applyValue:r,apiRef:o,focusElementRef:i,color:a,error:l,helperText:s,size:u,variant:c="standard"}=e,d=(0,vl.Z)(e,Bm),p={color:a,error:l,helperText:s,size:u,variant:c},f=(0,sd.Z)(),h=Is(),m=t.columnField?o.current.getColumn(t.columnField):null,g=n.useMemo((()=>null!=m&&m.valueOptions?"function"==typeof m.valueOptions?m.valueOptions({field:m.field}):m.valueOptions:[]),[m]),v=n.useMemo((()=>null==g?void 0:g.map(Vd)),[g]),{valueFormatter:b,field:y}=o.current.getColumn(t.columnField),w=e=>"object"==typeof e?e.label:b&&""!==e?b({value:e,field:y,api:o.current}):e,x=n.useMemo((()=>Array.isArray(t.value)?void 0!==g?t.value.map((e=>{const t=Vd(e);return(null==v?void 0:v.findIndex((e=>e===t)))||0})).filter((e=>e>=0)).map((e=>g[e])):t.value:[]),[t.value,g,v]);n.useEffect((()=>{Array.isArray(t.value)&&x.length===t.value.length||r((0,bl.Z)({},t,{value:x.map(Vd)}))}),[t,x,r]);const C=n.useCallback(((e,n)=>{r((0,bl.Z)({},t,{value:[...n.map(Vd)]}))}),[r,t]);return(0,Dl.jsx)(Yh,(0,bl.Z)({multiple:!0,options:g,isOptionEqualToValue:zm,filterOptions:Hm,id:f,value:x,onChange:C,renderTags:(e,t)=>e.map(((e,n)=>(0,Dl.jsx)(Ch,(0,bl.Z)({variant:"outlined",size:"small",label:w(e)},t({index:n}))))),renderInput:e=>{var t;return(0,Dl.jsx)(h.components.BaseTextField,(0,bl.Z)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,bl.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},p,null==(t=h.componentsProps)?void 0:t.baseTextField))}},d))}}],getApplyQuickFilterFn:(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,a=[$m(e).toString()],l="function"==typeof r?r({field:i}):r||[];return l&&l.forEach((t=>{let r,l;"object"==typeof t?(r=t.value,l=t.label):(r=t,l=o?o({value:t,field:i,api:n.current}):t),l.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(a.includes(r)||a.push(r.toString()))})),({value:e})=>null!=e&&a.includes($m(e).toString())}});a(6607);var Wm=a(8038);function Um(e){return(0,Rl.Z)("MuiList",e)}(0,Ll.Z)("MuiList",["root","padding","dense","subheader"]);const Vm=["children","className","component","dense","disablePadding","subheader"],Gm=(0,Pl.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,bl.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Ym=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=r,c=(0,vl.Z)(r,Vm),d=n.useMemo((()=>({dense:l})),[l]),p=(0,bl.Z)({},r,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,wl.Z)(i,Um,t)})(p);return(0,Dl.jsx)(ud.Provider,{value:d,children:(0,Dl.jsxs)(Gm,(0,bl.Z)({as:a,className:(0,yl.Z)(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})}));function Km(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Qm=Km;const Xm=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ng(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&tg(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var rg=n.forwardRef((function(e,t){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=(0,vl.Z)(e,Xm),f=n.useRef(null),h=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Xl.Z)((()=>{o&&f.current.focus()}),[o]),n.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Qm((0,Wm.Z)(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=(0,Ql.Z)(f,t);let g=-1;n.Children.forEach(a,((e,t)=>{n.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const v=n.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,Dl.jsx)(Ym,(0,bl.Z)({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key,r=(0,Wm.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ng(t,r,u,s,Jm);else if("ArrowUp"===n)e.preventDefault(),ng(t,r,u,s,eg);else if("Home"===n)e.preventDefault(),ng(t,null,u,s,Jm);else if("End"===n)e.preventDefault(),ng(t,null,u,s,eg);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&tg(r,o);o.previousKeyMatched&&(l||ng(t,r,!1,s,Jm,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:v}))}));function og(e){return e.substring(2).toLowerCase()}function ig(e){const{children:t,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,l=n.useRef(!1),s=n.useRef(null),u=n.useRef(!1),c=n.useRef(!1);n.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=(0,uc.Z)(t.ref,s),p=(0,fp.Z)((e=>{const t=c.current;c.current=!1;const n=(0,xp.Z)(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(l.current)return void(l.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(s.current)>-1:!n.documentElement.contains(e.target)||s.current.contains(e.target),o||!r&&t||i(e)})),f=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},h={ref:d};return!1!==a&&(h[a]=f(a)),n.useEffect((()=>{if(!1!==a){const e=og(a),t=(0,xp.Z)(s.current),n=()=>{l.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,a]),!1!==o&&(h[o]=f(o)),n.useEffect((()=>{if(!1!==o){const e=og(o),t=(0,xp.Z)(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,Dl.jsx)(n.Fragment,{children:n.cloneElement(t,h)})}var ag="unmounted",lg="exited",sg="entering",ug="entered",cg="exiting",dg=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=lg,r.appearStatus=sg):o=ug:o=t.unmountOnExit||t.mountOnEnter?ag:lg,r.state={status:o},r.nextCallback=null,r}pd(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ag?{status:lg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==sg&&n!==ug&&(t=sg):n!==sg&&n!==ug||(t=cg)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===sg){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:We().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lg&&this.setState({status:ag})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[We().findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:sg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ug},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:ug},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:We().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:cg},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lg},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lg},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:We().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ag)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,vl.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(fd.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},t}(r().Component);function pg(){}dg.contextType=fd,dg.propTypes={},dg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pg,onEntering:pg,onEntered:pg,onExit:pg,onExiting:pg,onExited:pg},dg.UNMOUNTED=ag,dg.EXITED=lg,dg.ENTERING=sg,dg.ENTERED=ug,dg.EXITING=cg;var fg=dg;function hg(){const e=(0,Sc.Z)(Nc.Z);return e[Mc.Z]||e}const mg=e=>e.scrollTop;function gg(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const vg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bg(e){return`scale(${e}, ${e**2})`}const yg={entering:{opacity:1,transform:bg(1)},entered:{opacity:1,transform:"none"}},wg="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xg=n.forwardRef((function(e,t){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=fg}=e,v=(0,vl.Z)(e,vg),b=n.useRef(),y=n.useRef(),w=hg(),x=n.useRef(null),C=(0,Ql.Z)(x,i.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=S(c),N=S(((e,t)=>{mg(e);const{duration:n,delay:r,easing:o}=gg({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:r}),w.transitions.create("transform",{duration:wg?i:.666*i,delay:r,easing:o})].join(","),s&&s(e,t)})),M=S(u),I=S(f),A=S((e=>{const{duration:t,delay:n,easing:r}=gg({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:wg?o:.666*o,delay:wg?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=bg(.75),d&&d(e)})),k=S(p);return n.useEffect((()=>()=>{clearTimeout(b.current)}),[]),(0,Dl.jsx)(g,(0,bl.Z)({appear:o,in:l,nodeRef:x,onEnter:N,onEntered:M,onEntering:E,onExit:A,onExited:k,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,y.current||0)),r&&r(x.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(i,(0,bl.Z)({style:(0,bl.Z)({opacity:0,transform:bg(.75),visibility:"exited"!==e||l?void 0:"hidden"},yg[e],h,i.props.style),ref:C},t))}))}));xg.muiSupportAuto=!0;var Cg=xg;const Sg=["open","target","onClickAway","children","position","className","onExited"],Eg=(0,Pl.ZP)(Jf,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ts.menuList}`]:{outline:0}}))),Ng={"bottom-start":"top left","bottom-end":"top right"},Mg=e=>{var t;const{open:r,target:o,onClickAway:i,children:a,position:l,className:s,onExited:u}=e,c=(0,vl.Z)(e,Sg),d=Ns(),p=n.useRef(o),f=n.useRef(r),h=Is(),m=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["menu"]},es,t)})(h);return n.useEffect((()=>{f.current&&p.current&&p.current.focus();const e=r?"menuOpen":"menuClose";d.current.publishEvent(e,{target:o}),f.current=r,p.current=o}),[d,r,o]),(0,Dl.jsx)(Eg,(0,bl.Z)({as:h.components.BasePopper,className:ce(s,m.root),ownerState:h,open:r,anchorEl:o,transition:!0,placement:l},c,null==(t=h.componentsProps)?void 0:t.basePopper,{children:({TransitionProps:e,placement:t})=>{return(0,Dl.jsx)(ig,{onClickAway:i,mouseEvent:"onMouseDown",children:(0,Dl.jsx)(Cg,(0,bl.Z)({},e,{style:{transformOrigin:Ng[t]},onExited:(n=null==e?void 0:e.onExited,e=>{n&&n(),u&&u(e)}),children:(0,Dl.jsx)(uh,{children:a})}))});var n}}))},Ig=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Ag=e=>{const{colDef:t,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:l}=e,s=(0,vl.Z)(e,Ig),[u,c]=n.useState(-1),[d,p]=n.useState(!1),f=Ns(),h=n.useRef(null),m=n.useRef(null),g=n.useRef(!1),v=n.useRef({}),b=(0,sd.Z)(),y=(0,sd.Z)(),w=Is();if(n.useLayoutEffect((()=>{o||Object.entries(v.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete v.current[e]}))}))}),[o]),n.useEffect((()=>{u<0||!h.current||u>=h.current.children.length||h.current.children[u].focus({preventScroll:!0})}),[u]),n.useEffect((()=>{o||(c(-1),g.current=!1)}),[o]),n.useImperativeHandle(l,(()=>({focus(){g.current||c(0)}})),[]),!(e=>"function"==typeof e.getActions)(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const x=t.getActions(f.current.getRowParams(r)),C=x.filter((e=>!e.props.showInMenu)),S=x.filter((e=>e.props.showInMenu)),E=C.length+(S.length?1:0);n.useEffect((()=>{u>=E&&c(E-1)}),[u,E]);const N=()=>{p(!1)},M=e=>t=>{v.current[e]=t},I=(e,t)=>n=>{c(e),g.current=!0,t&&t(n)};return(0,Dl.jsxs)("div",(0,bl.Z)({role:"menu",ref:h,tabIndex:-1,className:ts.actionsCell,onKeyDown:e=>{if(E<=1)return;let t=u;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=E||t!==u&&(e.preventDefault(),e.stopPropagation(),c(t))}},s,{children:[C.map(((e,t)=>n.cloneElement(e,{key:t,touchRippleRef:M(t),onClick:I(t,e.props.onClick),tabIndex:u===t?i:-1}))),S.length>0&&y&&(0,Dl.jsx)(hh,{ref:m,id:y,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-controls":b,"aria-expanded":d?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:()=>{p(!0),c(E-1),g.current=!0},touchRippleRef:M(y),tabIndex:u===C.length?i:-1,children:(0,Dl.jsx)(w.components.MoreActionsIcon,{fontSize:"small"})}),S.length>0&&(0,Dl.jsx)(Mg,{onClickAway:N,onClick:N,open:d,target:m.current,position:a,children:(0,Dl.jsx)(rg,{id:b,className:ts.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&N()},"aria-labelledby":y,variant:"menu",autoFocusItem:!0,children:S.map(((e,t)=>n.cloneElement(e,{key:t})))})})]}))},kg="actions",Pg=(0,bl.Z)({},Xh,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,Dl.jsx)(Ag,(0,bl.Z)({},e)),getApplyQuickFilterFn:void 0}),Lg="__default__",Rg=["maxWidth","minWidth","width","flex"],Tg=(e={})=>{const t=(0,bl.Z)({},{string:Xh,number:tm,date:pm,dateTime:fm,boolean:wm,singleSelect:qm,[kg]:Pg,[Lg]:Xh});return Object.entries(e).forEach((([e,n])=>{t[e]?t[e]=(0,bl.Z)({},t[e],n):t[e]=(0,bl.Z)({},t[n.extendType||Lg],n)})),t},Dg=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach((t=>{const a=(0,bl.Z)({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])a.computedWidth=0;else{let e;a.flex&&a.flex>0?(r+=a.flex,e=0,i.push(a)):e=Ru(a.width,a.minWidth,a.maxWidth),o+=e,a.computedWidth=e}n[t]=a}));const a=Math.max(t-o,0);if(r>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let a=e,l=t,s=0;r.frozenFields.forEach((e=>{a-=r.all[e].computedWidth,l-=r.all[e].flex}));for(let e=0;e<n.length;e+=1){const t=n[e];if(r.all[t.field]&&!0===r.all[t.field].frozen)continue;let o=a/l*t.flex;o<t.minWidth?(s+=t.minWidth-o,o=t.minWidth,i.min[t.field]=!0):o>t.maxWidth&&(s+=t.maxWidth-o,o=t.maxWidth,i.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}s<0?Object.keys(i.max).forEach((e=>{r.freeze(e)})):s>0?Object.keys(i.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),o()}(),r.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return(0,bl.Z)({},e,{lookup:n})},Og=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=gs(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:a=!1})=>{var l,s,u,c;const d=!e.current.state.columns;let p;if(d)p={all:[],lookup:{}};else{const t=ps(e.current.state);p={all:a?[]:[...t.all],lookup:(0,bl.Z)({},t.lookup)}}let f={};a&&!d&&(f=Object.keys(p.lookup).reduce(((e,t)=>(0,bl.Z)({},e,{[t]:!1})),{}));const h={};t.forEach((e=>{const{field:t}=e;h[t]=!0,f[t]=!0;let n=p.lookup[t];null==n?(n=(0,bl.Z)({},((e,t)=>t&&e[t]?e[t]:e[Lg])(r,e.type),{field:t,hasBeenResized:!1}),p.all.push(t)):a&&p.all.push(t);let o=n.hasBeenResized;Rg.forEach((t=>{void 0!==e[t]&&(o=!0,-1===e[t]&&(e[t]=1/0))})),p.lookup[t]=(0,bl.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:o})})),a&&!d&&Object.keys(p.lookup).forEach((e=>{f[e]||delete p.lookup[e]}));const m=(0,bl.Z)({},p.lookup),g=e.current.unstable_applyPipeProcessors("hydrateColumns",p);let v={};if(i){let t=!1;const n=(0,bl.Z)({},o);d?g.all.forEach((e=>{n[e]=!p.lookup[e].hide})):a&&Object.keys(n).forEach((e=>{g.lookup[e]||(delete n[e],t=!0)})),g.all.forEach((r=>{if(!h[r]&&m[r]===g.lookup[r])return;let i=o[r];void 0===i&&(i=!!d||!!ps(e.current.state).lookup[r]);const a=!g.lookup[r].hide;a!==i&&(t=!0,n[r]=a)})),v=t||d?n:o}else v=o;const b=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(0===o.length&&0===n.length)return e;const i={},a=[];for(let t=0;t<n.length;t+=1){const r=n[t];e.lookup[r]&&(i[r]=!0,a.push(r))}const l=0===a.length?e.all:[...a,...e.all.filter((e=>!i[e]))],s=(0,bl.Z)({},e.lookup);for(let e=0;e<o.length;e+=1){const t=o[e],n=(0,bl.Z)({},s[t],{hasBeenResized:!0});Object.entries(r[t]).forEach((([e,t])=>{n[e]=-1===t?1/0:t})),s[t]=n}return{all:l,lookup:s}})(g,n),y=(0,bl.Z)({},b,{columnVisibilityModel:v});return Dg(y,null!=(l=null==(s=(u=e.current).getRootDimensions)||null==(c=s.call(u))?void 0:c.viewportInnerSize.width)?l:0)},jg=e=>t=>(0,bl.Z)({},t,{columns:e});function Fg({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a<r;a+=1)if(o[a]){const n=o[a].id,r=t.current.unstable_getCellColSpanInfo(n,e);r&&r.spannedByColSpan&&(i=r.leftVisibleCellIndex)}return i}function _g({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:a}){return Fg({firstColumnToRender:Math.max(e-n,t),apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:a})}var Zg;!function(e){e.filters="filters",e.columns="columns"}(Zg||(Zg={}));const Bg=(e,t,n)=>{var r,o,i,a,l,s,u;const c=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(o=r.columns)||!o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:c};const d=Tg(t.columnTypes),p=Og({apiRef:n,columnTypes:d,columnsToUpsert:t.columns,initialState:null==(i=t.initialState)?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!c,currentColumnVisibilityModel:null!=(a=null!=(l=t.columnVisibilityModel)?l:null==(s=t.initialState)||null==(u=s.columns)?void 0:u.columnVisibilityModel)?a:{},keepOnlyColumnsToUpsert:!0});return(0,bl.Z)({},e,{columns:p})};var zg;function Hg(e){return void 0!==e.field}!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(zg||(zg={}));const $g=ds((e=>e.columnGrouping),(e=>e.lookup)),qg=["groupId","children"],Wg=(e,t,n)=>{if(Hg(e)){if(void 0!==n[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:r,children:o}=e;o.forEach((e=>{Wg(e,[...t,r],n)}))},Ug=e=>{if(!e)return{};const t={};return e.forEach((e=>{Wg(e,[],t)})),t},Vg=e=>{let t={};return e.forEach((e=>{if(Hg(e))return;const{groupId:n,children:r}=e,o=(0,vl.Z)(e,qg);if(!n)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");r||console.warn(`MUI: group groupId=${n} has no children.`);const i=(0,bl.Z)({},o,{groupId:n}),a=Vg(r);if(void 0!==a[n]||void 0!==t[n])throw new Error(`MUI: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=(0,bl.Z)({},t,a,{[n]:i})})),(0,bl.Z)({},t)},Gg=(e,t)=>{var n;const r=Vg(null!=(n=t.columnGroupingModel)?n:[]);return(0,bl.Z)({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},Yg=(e,t,n,r)=>{switch(e){case zg.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),headerGroupingMaxDepth:r,factor:.7};case zg.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),headerGroupingMaxDepth:r,factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Kg=(e,t)=>{let n;if(null==t.columnGroupingModel||0===Object.keys(t.columnGroupingModel).length)n=0;else{const r=Ug(t.columnGroupingModel),o=e.columns,i=o.all.filter((e=>!1!==o.columnVisibilityModel[e]));n=0===i.length?0:Math.max(...i.map((e=>{var t,n;return null!=(t=null==(n=r[e])?void 0:n.length)?t:0})))}return(0,bl.Z)({},e,{density:Yg(t.density,t.headerHeight,t.rowHeight,n)})},Qg=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],Xg=n.forwardRef((function(e,t){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=e,c=(0,vl.Z)(e,Qg),d=Ns(),p=Is(),f=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["checkboxInput"]},es,t)})({classes:p.classes}),h=n.useRef(null),m=n.useRef(),g=(0,Ql.Z)(h,t),v=d.current.getCellElement(i,o);n.useLayoutEffect((()=>{0===u&&v&&(v.tabIndex=-1)}),[v,u]),n.useEffect((()=>{if(s){var e;const t=null==(e=h.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else m.current&&m.current.stop({})}),[s]);const b=n.useCallback((t=>{Em(t.key)&&t.stopPropagation(),Pm(t.key)&&!t.shiftKey&&d.current.publishEvent("cellNavigationKeyDown",e,t)}),[d,e]);if("footer"===l.position)return null;const y=d.current.isRowSelectable(i),w=d.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return l.isPinned?null:(0,Dl.jsx)(p.components.BaseCheckbox,(0,bl.Z)({ref:g,tabIndex:u,checked:a,onChange:e=>{const t={value:e.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:f.root,inputProps:{"aria-label":w},onKeyDown:b,disabled:!y,touchRippleRef:m},null==(r=p.componentsProps)?void 0:r.baseCheckbox,c))})),Jg=e=>e.focus,ev=ds(Jg,(e=>e.cell)),tv=ds(Jg,(e=>e.columnHeader)),nv=e=>e.tabIndex,rv=ds(nv,(e=>e.cell)),ov=ds(nv,(e=>e.columnHeader)),iv=e=>e.selection,av=ds(iv,(e=>e.length)),lv=ds(iv,Zs,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),sv=ds(iv,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),uv=e=>e.pagination,cv=ds(uv,(e=>e.page)),dv=ds(uv,(e=>e.pageSize)),pv=(ds(uv,(e=>e.pageCount)),ds(uv,zs,$s,gu,wu,((e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(-1===a||-1===l)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex((e=>e.id===s.id));let d=c,p=0;for(;d<r.length&&p<=u;){const e=t[r[d].id].depth;(p<u||e>0)&&(d+=1),0===e&&(p+=1)}return{firstRowIndex:c,lastRowIndex:d-1}}))),fv=ds(gu,pv,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),hv=ds(vu,pv,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),mv=["field","colDef"],gv=n.forwardRef((function(e,t){var r;const o=(0,vl.Z)(e,mv),[,i]=n.useState(!1),a=Ns(),l=Is(),s=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["checkboxInput"]},es,t)})({classes:l.classes}),u=Ss(a,ov),c=Ss(a,iv),d=Ss(a,vu),p=Ss(a,hv),f=n.useMemo((()=>"function"!=typeof l.isRowSelectable?c:c.filter((e=>!!a.current.getRow(e)&&l.isRowSelectable(a.current.getRowParams(e))))),[a,l.isRowSelectable,c]),h=n.useMemo((()=>(l.pagination&&l.checkboxSelectionVisibleOnly?p:d).reduce(((e,t)=>(e[t]=!0,e)),{})),[l.pagination,l.checkboxSelectionVisibleOnly,p,d]),m=n.useMemo((()=>f.filter((e=>h[e])).length),[f,h]),g=m>0&&m<Object.keys(h).length,v=m>0,b=null!==u&&u.field===e.field?0:-1;n.useLayoutEffect((()=>{const t=a.current.getColumnHeaderElement(e.field);0===b&&t&&(t.tabIndex=-1)}),[b,a,e.field]);const y=n.useCallback((t=>{" "===t.key&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!v}),Pm(t.key)&&!t.shiftKey&&a.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[a,e,v]),w=n.useCallback((()=>{i((e=>!e))}),[]);n.useEffect((()=>a.current.subscribeEvent("selectionChange",w)),[a,w]);const x=a.current.getLocaleText(v?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,Dl.jsx)(l.components.BaseCheckbox,(0,bl.Z)({ref:t,indeterminate:g,checked:v,onChange:e=>{const t={value:e.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",t)},className:s.root,inputProps:{"aria-label":x},tabIndex:b,onKeyDown:y},null==(r=l.componentsProps)?void 0:r.baseCheckbox,o))})),vv="__check__",bv=(0,bl.Z)({},wm,{field:vv,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>void 0!==sv(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>(0,Dl.jsx)(gv,(0,bl.Z)({},e)),renderCell:e=>(0,Dl.jsx)(Xg,(0,bl.Z)({},e))}),yv=(e,t)=>{if("string"==typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e};ss(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);const wv=({apiRef:e,options:t})=>{const n=ms(e);return t.fields?t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e)):(t.allColumns?n:vs(e)).filter((e=>!e.disableExport))},xv=({apiRef:e})=>{var t,n;const r=yu(e),o=zs(e),i=e.current.getSelectedRows(),a=r.filter((e=>{var t;return"body"===(null!=(t=o[e].position)?t:"body")})),l=Us(e),s=(null==l||null==(t=l.top)?void 0:t.map((e=>e.id)))||[],u=(null==l||null==(n=l.bottom)?void 0:n.map((e=>e.id)))||[];return a.unshift(...s),a.push(...u),i.size>0?a.filter((e=>i.has(e))):a},Cv=["hideMenu","options"],Sv=["hideMenu","options"],Ev=e=>{const t=Ns(),{hideMenu:n,options:r}=e,o=(0,vl.Z)(e,Cv);return(0,Dl.jsx)(Ud,(0,bl.Z)({onClick:()=>{t.current.exportDataAsCsv(r),null==n||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},Nv=e=>{const t=Ns(),{hideMenu:n,options:r}=e,o=(0,vl.Z)(e,Sv);return(0,Dl.jsx)(Ud,(0,bl.Z)({onClick:()=>{t.current.exportDataAsPrint(r),null==n||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Mv=e=>{const t=Ks(e,"useGridCsvExport"),r=n.useCallback(((n={})=>{var r,o;return t.debug("Get data as CSV"),function(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,a=n.reduce(((e,n)=>`${e}${((e,t,n,r)=>t.map((t=>{const o=n(e,t.field);return yv(o.formattedValue,r)})))(n,t,r,o).join(o)}\r\n`),"").trim();return i?`${t.filter((e=>e.field!==bv.field)).map((e=>yv(e.headerName||e.field,o))).join(o)}\r\n${a}`.trim():a}({columns:wv({apiRef:e,options:n}),rowIds:(null!=(r=n.getRowsToExport)?r:xv)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:n.delimiter||",",includeHeaders:null==(o=n.includeHeaders)||o})}),[t,e]),o=n.useCallback((e=>{t.debug("Export data as CSV");const n=r(e);!function(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",n],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[t,r]);Bu(e,{getDataAsCsv:r,exportDataAsCsv:o});const i=n.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:(0,Dl.jsx)(Ev,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);ac(e,"exportMenu",i)},Iv=e=>e.rowsMeta,Av="client";var kv;!function(e){e.And="and",e.Or="or"}(kv||(kv={}));const Pv=()=>({items:[],linkOperator:kv.And,quickFilterValues:[],quickFilterLogicOperator:kv.And}),Lv=(e,t,r,o)=>{const i=n.useCallback((()=>{e.current.unstable_registerStrategyProcessor(t,r,o)}),[e,o,r,t]);ic((()=>{i()}));const a=n.useRef(!0);n.useEffect((()=>{a.current?a.current=!1:i()}),[i])},Rv=(e,t)=>{const n=(0,bl.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){const e=hs(t)[n.columnField];n.operatorValue=e&&e.filterOperators[0].value}return n},Tv=ss(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Dv=ss("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Ov=ss(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),jv=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Tv(),o=[e.items[0]]):o=e.items;const i=r&&o.some((e=>null==e.id)),a=o.some((e=>null==e.operatorValue));return i&&Dv(),a&&Ov(),a||i?(0,bl.Z)({},e,{items:o.map((e=>Rv(e,n)))}):e.items!==o?(0,bl.Z)({},e,{items:o}):e},Fv=(e,t,n)=>r=>(0,bl.Z)({},r,{filterModel:jv(e,t,n)}),_v=(e,t)=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const t=n.valueParser;r=Array.isArray(e.value)?null==(o=e.value)?void 0:o.map((e=>t(e))):t(e.value)}else r=e.value;const i=(0,bl.Z)({},e,{value:r}),a=n.filterOperators;if(null==a||!a.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=a.find((e=>e.value===i.operatorValue));if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operatorValue}'.`);const s=l.getApplyFilterFn(i,n);return"function"!=typeof s?null:{fn:e=>{const n=t.current.getCellParams(e,i.columnField);return s(n)},item:i}},Zv=(e,t,n,r)=>{var o,i;const a=n.items.filter((e=>null!==_v(e,r))),l=e.filter((e=>null!=e)),s=t.filter((e=>null!=e)),u=null!=(o=n.quickFilterLogicOperator)?o:Pv().quickFilterLogicOperator,c=null!=(i=n.linkOperator)?i:Pv().linkOperator;if(l.length>0){const e=e=>l.some((t=>t[e.id]));if(c===kv.And){if(!a.every(e))return!1}else if(!a.some(e))return!1}if(s.length>0&&null!=n.quickFilterValues){const e=e=>s.some((t=>t[e]));if(u===kv.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},Bv=(e,t,n)=>{var r,o,i,a;const l=null!=(r=null!=(o=t.filterModel)?o:null==(i=t.initialState)||null==(a=i.filter)?void 0:a.filterModel)?r:Pv();return(0,bl.Z)({},e,{filter:{filterModel:jv(l,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},zv=(e,t)=>{let n,r;return t.pagination&&"client"===t.paginationMode?(r=pv(e),n=fv(e)):(n=gu(e),r=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Hv=(e,t)=>{const r=zv(e,t);return n.useMemo((()=>({rows:r.rows,range:r.range})),[r.rows,r.range])},$v=e=>(0,bl.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),qv="__detail_panel_toggle__",Wv=["rowsBeforePartialUpdates"],Uv=(e,t,n)=>{const r=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},Vv=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let n=0;n<e.length;n+=1){const r=e[n],i=Uv(r,t);o.idRowsLookup[i]=r,o.idToIdLookup[i]=i,o.ids.push(i)}return o},Gv=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=(0,vl.Z)(o,Wv),a=null!=n?n:0,l=e.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,bl.Z)({},i,{previousTree:t})),s=e.current.unstable_applyPipeProcessors("hydrateRows",l),u=1===s.treeDepth?s.ids.length:Object.values(s.tree).filter((e=>null==e.parent&&!e.isPinned)).length;return(0,bl.Z)({},s,{groupingResponseBeforeRowHydration:l,loading:r,totalRowCount:Math.max(a,s.ids.length),totalTopLevelRowCount:Math.max(a,u)})},Yv=(e,t,n)=>{var r;const o=null==(r=e[t])?void 0:r.children;if(null==o)return[];const i=[];for(let t=0;t<o.length;t+=1){const r=o[t],a=e[r];n&&a.isAutoGenerated||i.push(r),i.push(...Yv(e,a.id,n))}return i};function Kv(e){var t,n;const r=Us(e);return{top:(null==r||null==(t=r.top)?void 0:t.reduce(((t,n)=>t+e.current.unstable_getRowHeight(n.id)),0))||0,bottom:(null==r||null==(n=r.bottom)?void 0:n.reduce(((t,n)=>t+e.current.unstable_getRowHeight(n.id)),0))||0}}const Qv=e=>e?0:100,Xv=e=>t=>(0,bl.Z)({},t,{pagination:(0,bl.Z)({},t.pagination,{pageSize:e})}),Jv=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,eb=e=>e.pageCount?(0,bl.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,tb=e=>t=>(0,bl.Z)({},t,{pagination:eb((0,bl.Z)({},t.pagination,{page:e}))}),nb=(ss(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),(e,t)=>{var n,r,o,i,a,l,s,u;let c;return c=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:Qv(t.autoPageSize),(0,bl.Z)({},e,{pagination:{pageSize:c,page:null!=(o=null!=(i=t.page)?i:null==(a=t.initialState)||null==(l=a.pagination)?void 0:l.page)?o:0,pageCount:Jv(null!=(s=t.rowCount)?s:0,c),rowCount:null!=(u=t.rowCount)?u:0}})}),rb=e=>e.preferencePanel,ob=(e,t)=>{var n,r;return(0,bl.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},ib=e=>e.editRows;function ab(e){return"function"==typeof e.then}const lb=e=>(0,bl.Z)({},e,{editRows:{}});function sb(e,t){var r;const o=Ks(e,"useGridEditRows");((e,t)=>{var r;const o=Ks(e,"useGridEditRows"),i=e=>(...n)=>{t.editMode===Rm.Cell&&e(...n)},a=n.useCallback(((t,n,r)=>{e.current.getCellMode(t,n)!==r&&(o.debug(`Switching cell id: ${t} field: ${n} to mode: ${r}`),e.current.setState((o=>{const i=(0,bl.Z)({},o.editRows);return i[t]=(0,bl.Z)({},i[t]),r===Tm.Edit?i[t][n]={value:e.current.getCellValue(t,n)}:(delete i[t][n],Object.keys(i[t]).length||delete i[t]),(0,bl.Z)({},o,{editRows:i})})),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(t,n)))}),[e,o]),l=n.useCallback(((t,n)=>{const r=ib(e.current.state);return r[t]&&r[t][n]?Tm.Edit:Tm.View}),[e]),s=n.useCallback(((n,r={})=>{var o;const{id:i,field:a}=n;e.current.unstable_runPendingEditCellValueMutation(i,a);const l=e.current.getEditRowsModel();if(!l[i]||!l[i][a])throw new Error(`MUI: Cell at id: ${i} and field: ${a} is not in edit mode.`);const s=l[i][a],u=e.current.getColumn(a),c=e.current.getRow(i);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating){const e=l[i][a];if(e.isValidating||e.error)return!1}const d=(0,bl.Z)({},n,{value:s.value});let p=!!s.error;if(!p&&"function"==typeof u.preProcessEditCellProps){const t=u.preProcessEditCellProps({id:i,row:c,props:s});if(ab(t))return t.then((t=>(e.current.unstable_setEditCellProps({id:i,field:a,props:t}),!t.error&&(e.current.publishEvent("cellEditCommit",d,r),!0))));e.current.unstable_setEditCellProps({id:i,field:a,props:t}),p=!!t.error}return!p&&(e.current.publishEvent("cellEditCommit",d,r),!0)}),[e,null==(r=t.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),u=n.useCallback((t=>{const n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((o=>{let i={value:t.value};const a=e.current.getEditRowsModel()[t.id][t.field];if("function"!=typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps((0,bl.Z)({},t,{props:i})),void o(!0);i=e.current.unstable_setEditCellProps((0,bl.Z)({},t,{props:(0,bl.Z)({},a,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:(0,bl.Z)({},i,{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((n=>{e.current.unstable_setEditCellProps((0,bl.Z)({},t,{props:(0,bl.Z)({},n,{isValidating:!1})})),o(!n.error)}))}))}),[e]);Bu(e,{setCellMode:a,getCellMode:l,commitCellChange:s,unstable_setCellEditingEditCellValue:u});const c=n.useCallback((async(t,n)=>{if(229===n.which)return;const{id:r,field:o,cellMode:i,isEditable:a}=t;if(!a)return;const l=i===Tm.Edit,s=n.ctrlKey||n.metaKey||n.altKey;if(l||!(e=>Cm(e.key)||Nm(e.key)||Mm(e))(n)||s||" "===n.key&&n.shiftKey||e.current.publishEvent("cellEditStart",t,n),!l&&Nm(n.key)&&(e.current.setEditCellValue({id:r,field:o,value:""}),e.current.commitCellChange({id:r,field:o},n),e.current.publishEvent("cellEditStop",t,n)),l&&km(n.key)){const t={id:r,field:o};if(!await e.current.commitCellChange(t,n))return}var u;l&&(u=n.key,Im.indexOf(u)>-1)&&e.current.publishEvent("cellEditStop",t,n)}),[e]),d=n.useCallback(((t,n)=>{t.isEditable&&e.current.publishEvent("cellEditStart",t,n)}),[e]),p=async(t,n)=>{t.cellMode!==Tm.View&&(await e.current.commitCellChange(t,n),e.current.publishEvent("cellEditStop",t,n))},f=(0,ru.Z)(((e,t)=>{p(e,t)})),h=(0,ru.Z)((()=>{const t=ev(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);p(n,{})})),m=n.useCallback(((t,n)=>{t.isEditable&&(e.current.setCellMode(t.id,t.field,Tm.Edit),Lm(n)&&Mm(n)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),g=n.useCallback(((t,n)=>{e.current.setCellMode(t.id,t.field,Tm.View),Lm(n)&&(km(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||Nm(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),v=n.useCallback((t=>{const{id:n,field:r}=t,i=e.current.getEditRowsModel(),{value:a}=i[n][r];o.debug(`Setting cell id: ${n} field: ${r} to value: ${null==a?void 0:a.toString()}`);const l=e.current.getRow(n);if(l){const n=e.current.getColumn(t.field);let o=(0,bl.Z)({},l,{[r]:a});n.valueSetter&&(o=n.valueSetter({row:l,value:a})),e.current.updateRows([o])}}),[e,o]),b=n.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getColumn(t.field),o=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;ab(o)?o.then((n=>{e.current.unstable_setEditCellProps((0,bl.Z)({},t,{props:n}))})):e.current.unstable_setEditCellProps((0,bl.Z)({},t,{props:o}))}),[e]);Wu(e,"cellKeyDown",i(c)),Wu(e,"cellDoubleClick",i(d)),Wu(e,"cellFocusOut",i(f)),Wu(e,"columnHeaderDragStart",i(h)),Wu(e,"cellEditStart",i(m)),Wu(e,"cellEditStop",i(g)),Wu(e,"cellEditCommit",i(v)),Wu(e,"editCellPropsChange",i(b)),Vu(e,"cellEditCommit",t.onCellEditCommit),Vu(e,"cellEditStart",t.onCellEditStart),Vu(e,"cellEditStop",t.onCellEditStop)})(e,t),((e,t)=>{var r,o;const i=n.useRef(null),a=n.useRef(null),l=Ss(e,ms),s=e=>(...n)=>{t.editMode===Rm.Row&&e(...n)},u=n.useCallback(((t,n)=>{n!==e.current.getRowMode(t)&&(e.current.setState((r=>{const o=(0,bl.Z)({},r.editRows);return n===Dm.Edit?(o[t]={},l.forEach((n=>{const r=e.current.getCellParams(t,n.field);r.isEditable&&(o[t][n.field]={value:r.value})}))):delete o[t],(0,bl.Z)({},r,{editRows:o})})),e.current.forceUpdate())}),[e,l]),c=n.useCallback((n=>t.editMode===Rm.Cell?Dm.View:ib(e.current.state)[n]?Dm.Edit:Dm.View),[e,t.editMode]),d=n.useCallback(((n,r={})=>{var o;if(t.editMode===Rm.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(n);const i=e.current.getEditRowsModel()[n];if(!i)throw new Error(`MUI: Row at id: ${n} is not being edited.`);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating&&!Object.keys(i).reduce(((e,t)=>e&&!i[t].isValidating&&!i[t].error),!0))return!1;if(Object.values(i).some((e=>!!e.error)))return!1;const a=Object.keys(i).filter((t=>"function"==typeof e.current.getColumn(t).preProcessEditCellProps));if(a.length>0){const t=e.current.getRow(n),o=a.map((async r=>{const o=e.current.getColumn(r),a=await Promise.resolve(o.preProcessEditCellProps({id:n,row:t,props:i[r]}));return e.current.unstable_setEditCellProps({id:n,field:r,props:a}),a.error}));return Promise.all(o).then((t=>!t.some((e=>!!e))&&(e.current.publishEvent("rowEditCommit",n,r),!0)))}return e.current.publishEvent("rowEditCommit",n,r),!0}),[e,t.editMode,null==(r=t.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),p=n.useCallback((t=>{const n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id);let o=!0;return new Promise((i=>{Object.keys(n).forEach((async i=>{const a=e.current.getColumn(i);let l=i===t.field?{value:t.value}:n[i];l=e.current.unstable_setEditCellProps({id:t.id,field:i,props:(0,bl.Z)({},l,{isValidating:!0})}),a.preProcessEditCellProps&&(l=await Promise.resolve(a.preProcessEditCellProps({id:t.id,row:r,props:(0,bl.Z)({},l,{value:i===t.field?e.current.unstable_parseValue(t.id,i,t.value):l.value})}))),l.error&&(o=!1),e.current.unstable_setEditCellProps({id:t.id,field:i,props:(0,bl.Z)({},l,{isValidating:!1})})})),i(o)}))}),[e]);Bu(e,{setRowMode:u,getRowMode:c,commitRowChange:d,unstable_setRowEditingEditCellValue:p});const f=n.useCallback((async(n,r)=>{if(229===r.which)return;const{cellMode:o,isEditable:i}=n;if(!i)return;const a=o===Tm.Edit,l=e.current.getRowParams(n.id);if(a)if("Enter"===r.key){var s;if(!await e.current.commitRowChange(n.id)&&null!=(s=t.experimentalFeatures)&&s.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",l,r)}else"Escape"===r.key&&e.current.publishEvent("rowEditStop",l,r);else"Enter"===r.key&&e.current.publishEvent("rowEditStart",l,r)}),[e,null==(o=t.experimentalFeatures)?void 0:o.preventCommitWhileValidating]),h=n.useCallback(((t,n)=>{if(!t.isEditable)return;const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStart",r,n)}),[e]),m=n.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach((async o=>{const i=e.current.getColumn(o);if(i.preProcessEditCellProps){const a=o===t.field?t.props:r[o],l=await Promise.resolve(i.preProcessEditCellProps({id:t.id,row:n,props:a}));e.current.unstable_setEditCellProps({id:t.id,field:o,props:l})}else o===t.field&&e.current.unstable_setEditCellProps(t)}))}),[e]),g=n.useCallback((t=>{e.current.setRowMode(t.id,Dm.Edit)}),[e]),v=n.useCallback(((t,n)=>{e.current.setRowMode(t.id,Dm.View),"Enter"===n.key&&e.current.publishEvent("cellNavigationKeyDown",t,n)}),[e]),b=n.useCallback((t=>{const n=e.current.getEditRowsModel()[t];if(!n)throw new Error(`MUI: Row at id: ${t} is not being edited.`);const r=e.current.getRow(t);if(r){let t=(0,bl.Z)({},r);Object.keys(n).forEach((r=>{const o=e.current.getColumn(r),i=n[r].value;o.valueSetter?t=o.valueSetter({row:t,value:i}):t[r]=i})),e.current.updateRows([t])}}),[e]),y=n.useCallback((e=>{a.current=e}),[]),w=async(t,n)=>{t.cellMode!==Tm.View&&(a.current=null,i.current=setTimeout((async()=>{var r;if((null==(r=a.current)?void 0:r.id)!==t.id){await e.current.commitRowChange(t.id,n);const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStop",r,n)}})))},x=(0,ru.Z)(((e,t)=>{w(e,t)})),C=(0,ru.Z)((()=>{const t=ev(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);w(n,{})}));Wu(e,"cellKeyDown",s(f)),Wu(e,"cellDoubleClick",s(h)),Wu(e,"editCellPropsChange",s(m)),Wu(e,"rowEditStart",s(g)),Wu(e,"rowEditStop",s(v)),Wu(e,"rowEditCommit",s(b)),Wu(e,"cellFocusIn",s(y)),Wu(e,"cellFocusOut",s(x)),Wu(e,"columnHeaderDragStart",s(C)),Vu(e,"rowEditCommit",t.onRowEditCommit),Vu(e,"rowEditStart",t.onRowEditStart),Vu(e,"rowEditStop",t.onRowEditStop)})(e,t);const i=n.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:ib,changeEvent:"editRowsModelChange"});const a=n.useCallback((e=>!e.rowNode.isAutoGenerated&&!e.rowNode.isPinned&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(e))),[t.isCellEditable]),l=n.useCallback(((e,t)=>{if(i.current[e])if(t){if(i.current[e][t]){const[,n]=i.current[e][t];n()}}else Object.keys(i.current[e]).forEach((t=>{const[,n]=i.current[e][t];n()}))}),[]),s=n.useCallback(((n,r={})=>{((e,t,n,r)=>{if(!n)return void r();if(i.current[e]||(i.current[e]={}),i.current[e][t]){const[n]=i.current[e][t];clearTimeout(n)}const o=setTimeout((()=>{r(),delete i.current[e][t]}),n);i.current[e][t]=[o,()=>{r();const[n]=i.current[e][t];clearTimeout(n),delete i.current[e][t]}]})(n.id,n.field,n.debounceMs,(()=>{var o;if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating)return"row"===t.editMode?e.current.unstable_setRowEditingEditCellValue(n):e.current.unstable_setCellEditingEditCellValue(n);const i={id:n.id,field:n.field,props:{value:n.value}};return e.current.publishEvent("editCellPropsChange",i,r)}))}),[e,t.editMode,null==(r=t.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),u=n.useCallback(((t,n,r)=>{const o=e.current.getColumn(n);return o.valueParser?o.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),c=n.useCallback((t=>{const{id:n,field:r,props:i}=t;return o.debug(`Setting cell props on id: ${n} field: ${r}`),e.current.setState((e=>{const t=(0,bl.Z)({},e.editRows);return t[n]=(0,bl.Z)({},e.editRows[n]),t[n][r]=(0,bl.Z)({},i,{value:u(n,r,i.value)}),(0,bl.Z)({},e,{editRows:t})})),e.current.forceUpdate(),ib(e.current.state)[n][r]}),[e,o,u]),d=n.useCallback((t=>{ib(e.current.state)!==t&&(o.debug("Setting editRows model"),e.current.setState((e=>(0,bl.Z)({},e,{editRows:t}))),e.current.forceUpdate())}),[e,o]),p=n.useCallback((()=>ib(e.current.state)),[e]),f=n.useCallback(((e,t)=>{const n=t.detail>1;e.isEditable&&e.cellMode===Tm.View&&n&&t.preventDefault()}),[]);Wu(e,"cellMouseDown",f),Vu(e,"editCellPropsChange",t.onEditCellPropsChange),Bu(e,{isCellEditable:a,setEditRowsModel:d,getEditRowsModel:p,setEditCellValue:s,unstable_setEditCellProps:c,unstable_parseValue:u,unstable_runPendingEditCellValueMutation:l}),n.useEffect((()=>{void 0!==t.editRowsModel&&e.current.setEditRowsModel(t.editRowsModel)}),[e,t.editRowsModel])}var ub,cb;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(ub||(ub={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(cb||(cb={}));const db=["id","field"],pb=["id","field"],fb=ss(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");var hb,mb;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(hb||(hb={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(mb||(mb={}));const gb=["id"],vb=["id"],bb=ss(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),yb=e=>(0,bl.Z)({},e,{editRows:{}}),wb=(e,t)=>{((e,t)=>{const[r,o]=n.useState({}),i=n.useRef(r),a=n.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:s,cellModesModel:u,onCellModesModelChange:c,signature:d}=t,p=e=>(...n)=>{t.editMode===Rm.Cell&&e(...n)},f=n.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),h=n.useCallback(((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI: The cell with id=${t} and field=${n} is not in ${r} mode.`)}),[e]),m=n.useCallback(((t,n)=>{if(!t.isEditable)return;if(t.cellMode===Tm.Edit)return;const r=(0,bl.Z)({},t,{reason:ub.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}),[e]),g=n.useCallback(((t,n)=>{if(t.cellMode===Tm.View)return;if(e.current.getCellMode(t.id,t.field)===Tm.View)return;const r=(0,bl.Z)({},t,{reason:cb.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}),[e]),v=n.useCallback(((t,n)=>{if(t.cellMode===Tm.Edit){if(229===n.which)return;let r;if("Escape"===n.key?r=cb.escapeKeyDown:"Enter"===n.key?r=cb.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?cb.shiftTabKeyDown:cb.tabKeyDown,n.preventDefault()),r){const o=(0,bl.Z)({},t,{reason:r});e.current.publishEvent("cellEditStop",o,n)}}else if(t.isEditable){let r;if(" "===n.key&&n.shiftKey)return;if(Mm(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?r=ub.printableKeyDown:"Enter"===n.key?r=ub.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(r=ub.deleteKeyDown),r){const o=(0,bl.Z)({},t,{reason:r,key:n.key});e.current.publishEvent("cellEditStart",o,n)}}}),[e]),b=n.useCallback((t=>{const{id:r,field:o,reason:i,key:a}=t,l={id:r,field:o};i===ub.printableKeyDown?n.version.startsWith("18")?l.initialValue=a:l.deleteValue=!0:i===ub.deleteKeyDown&&(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),y=n.useCallback((n=>{const{id:r,field:o,reason:i}=n;let a;e.current.unstable_runPendingEditCellValueMutation(r,o),i===cb.enterKeyDown?a="below":i===cb.tabKeyDown?a="right":i===cb.shiftTabKeyDown&&(a="left");let l="escapeKeyDown"===i;ib(e.current.state)[r][o].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(l=!0),e.current.stopCellEditMode({id:r,field:o,ignoreModifications:l,cellToFocusAfter:a})}),[e,t.disableIgnoreModificationsIfProcessingProps]);Wu(e,"cellDoubleClick",p(m)),Wu(e,"cellFocusOut",p(g)),Wu(e,"cellKeyDown",p(v)),Wu(e,"cellEditStart",p(b)),Wu(e,"cellEditStop",p(y)),Vu(e,"cellEditStart",t.onCellEditStart),Vu(e,"cellEditStop",t.onCellEditStop);const w=n.useCallback(((t,n)=>{const r=ib(e.current.state);return r[t]&&r[t][n]?Tm.Edit:Tm.View}),[e]),x=(0,fp.Z)((n=>{const r=n!==t.cellModesModel;if(c&&r){const t=d===$u.DataGridPro?{api:e.current}:{};c(n,t)}t.cellModesModel&&r||(o(n),i.current=n,e.current.publishEvent("cellModesModelChange",n))})),C=n.useCallback(((e,t,n)=>{const r=(0,bl.Z)({},i.current);if(null!==n)r[e]=(0,bl.Z)({},r[e],{[t]:(0,bl.Z)({},n)});else{const n=r[e],o=(0,vl.Z)(n,[t].map(Ku.Z));r[e]=o,0===Object.keys(r[e]).length&&delete r[e]}x(r)}),[x]),S=n.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,bl.Z)({},e.editRows);return null!==r?o[t]=(0,bl.Z)({},o[t],{[n]:(0,bl.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,bl.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),E=n.useCallback((e=>{const{id:t,field:n}=e,r=(0,vl.Z)(e,db);f(t,n),h(t,n,Tm.View),C(t,n,(0,bl.Z)({mode:Tm.Edit},r))}),[f,h,C]),N=(0,fp.Z)((t=>{const{id:n,field:r,deleteValue:o,initialValue:i}=t;let a=e.current.getCellValue(n,r);(o||i)&&(a=o?"":i),S(n,r,{value:a,error:!1,isProcessingProps:!1}),e.current.setCellFocus(n,r)})),M=n.useCallback((e=>{const{id:t,field:n}=e,r=(0,vl.Z)(e,pb);h(t,n,Tm.Edit),C(t,n,(0,bl.Z)({mode:Tm.View},r))}),[h,C]),I=(0,fp.Z)((async t=>{const{id:n,field:r,ignoreModifications:o,cellToFocusAfter:i="none"}=t;h(n,r,Tm.Edit),e.current.unstable_runPendingEditCellValueMutation(n,r);const u=()=>{S(n,r,null),C(n,r,null),"none"!==i&&e.current.unstable_moveFocusToRelativeCell(n,r,i)};if(o)return void u();const c=ib(e.current.state),{error:d,isProcessingProps:p}=c[n][r];if(d||p)return a.current[n][r].mode=Tm.Edit,void C(n,r,{mode:Tm.Edit});const f=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r);if(l){const t=e=>{a.current[n][r].mode=Tm.Edit,C(n,r,{mode:Tm.Edit}),s?s(e):fb()};try{const r=e.current.getRow(n);Promise.resolve(l(f,r)).then((t=>{e.current.updateRows([t]),u()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([f]),u()})),A=n.useCallback((async t=>{var n,r;const{id:o,field:i,value:a,debounceMs:l,unstable_skipValueParser:s}=t;f(o,i),h(o,i,Tm.Edit);const u=e.current.getColumn(i),c=e.current.getRow(o);let d=a;u.valueParser&&!s&&(d=u.valueParser(a,e.current.getCellParams(o,i)));let p=ib(e.current.state),m=(0,bl.Z)({},p[o][i],{value:d,changeReason:l?"debouncedSetEditCellValue":"setEditCellValue"});if(u.preProcessEditCellProps){const e=a!==p[o][i].value;m=(0,bl.Z)({},m,{isProcessingProps:!0}),S(o,i,m),m=await Promise.resolve(u.preProcessEditCellProps({id:o,row:c,props:m,hasChanged:e}))}return e.current.getCellMode(o,i)!==Tm.View&&(p=ib(e.current.state),m=(0,bl.Z)({},m,{isProcessingProps:!1}),m.value=u.preProcessEditCellProps?p[o][i].value:d,S(o,i,m),p=ib(e.current.state),!(null!=(n=p[o])&&null!=(r=n[i])&&r.error))}),[e,f,h,S]),k=n.useCallback(((t,n)=>{const r=e.current.getColumn(n),o=ib(e.current.state),{value:i}=o[t][n],a=e.current.getRow(t);return r.valueSetter?r.valueSetter({value:i,row:a}):(0,bl.Z)({},a,{[n]:i})}),[e]);Bu(e,{getCellMode:w,startCellEditMode:E,stopCellEditMode:M,unstable_setCellEditingEditCellValue:A,unstable_getRowWithUpdatedValuesFromCellEditing:k}),n.useEffect((()=>{u&&x(u)}),[u,x]),n.useEffect((()=>{const t=Bs(e),n=a.current;a.current=Du(r),Object.entries(r).forEach((([e,r])=>{Object.entries(r).forEach((([r,o])=>{var i,a,l;const s=(null==(i=n[e])||null==(a=i[r])?void 0:a.mode)||Tm.View,u=null!=(l=t[e])?l:e;o.mode===Tm.Edit&&s===Tm.View?N((0,bl.Z)({id:u,field:r},o)):o.mode===Tm.View&&s===Tm.Edit&&I((0,bl.Z)({id:u,field:r},o))}))}))}),[e,r,N,I])})(e,t),((e,t)=>{const[r,o]=n.useState({}),i=n.useRef(r),a=n.useRef({}),l=n.useRef(null),s=n.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p,signature:f}=t,h=e=>(...n)=>{t.editMode===Rm.Row&&e(...n)},m=n.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),g=n.useCallback(((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI: The row with id=${t} is not in ${n} mode.`)}),[e]),v=n.useCallback(((t,n)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===Dm.Edit)return;const r=e.current.getRowParams(t.id),o=(0,bl.Z)({},r,{field:t.field,reason:hb.cellDoubleClick});e.current.publishEvent("rowEditStart",o,n)}),[e]),b=n.useCallback((e=>{s.current=e}),[]),y=n.useCallback(((t,n)=>{t.isEditable&&e.current.getRowMode(t.id)!==Dm.View&&(s.current=null,l.current=setTimeout((()=>{var r;if(l.current=null,(null==(r=s.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===Dm.View)return;const r=e.current.getRowParams(t.id),o=(0,bl.Z)({},r,{field:t.field,reason:mb.rowFocusOut});e.current.publishEvent("rowEditStop",o,n)}})))}),[e]);n.useEffect((()=>()=>{clearTimeout(l.current)}),[]);const w=n.useCallback(((t,n)=>{if(t.cellMode===Dm.Edit){if(229===n.which)return;let r;if("Escape"===n.key)r=mb.escapeKeyDown;else if("Enter"===n.key)r=mb.enterKeyDown;else if("Tab"===n.key){const o=fs(e).filter((n=>e.current.isCellEditable(e.current.getCellParams(t.id,n))));n.shiftKey?t.field===o[0]&&(r=mb.shiftTabKeyDown):t.field===o[o.length-1]&&(r=mb.tabKeyDown),r&&n.preventDefault()}if(r){const o=e.current.getRowParams(t.id),i=(0,bl.Z)({},o,{reason:r,field:t.field});e.current.publishEvent("rowEditStop",i,n)}}else if(t.isEditable){let r;if(" "===n.key&&n.shiftKey)return;if(Mm(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?r=hb.printableKeyDown:"Enter"===n.key?r=hb.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(r=hb.deleteKeyDown),r){const o=e.current.getRowParams(t.id),i=(0,bl.Z)({},o,{field:t.field,key:n.key,reason:r});e.current.publishEvent("rowEditStart",i,n)}}}),[e]),x=n.useCallback((t=>{const{id:r,field:o,reason:i,key:a}=t,l={id:r,fieldToFocus:o};i===hb.printableKeyDown?n.version.startsWith("18")?l.initialValue=a:l.deleteValue=!!o:i===hb.deleteKeyDown&&(l.deleteValue=!!o),e.current.startRowEditMode(l)}),[e]),C=n.useCallback((n=>{const{id:r,reason:o,field:i}=n;let a;e.current.unstable_runPendingEditCellValueMutation(r),o===mb.enterKeyDown?a="below":o===mb.tabKeyDown?a="right":o===mb.shiftTabKeyDown&&(a="left");let l="escapeKeyDown"===o;const s=ib(e.current.state);l||t.disableIgnoreModificationsIfProcessingProps||(l=Object.values(s[r]).some((e=>e.isProcessingProps))),e.current.stopRowEditMode({id:r,ignoreModifications:l,field:i,cellToFocusAfter:a})}),[e,t.disableIgnoreModificationsIfProcessingProps]);Wu(e,"cellDoubleClick",h(v)),Wu(e,"cellFocusIn",h(b)),Wu(e,"cellFocusOut",h(y)),Wu(e,"cellKeyDown",h(w)),Wu(e,"rowEditStart",h(x)),Wu(e,"rowEditStop",h(C)),Vu(e,"rowEditStart",t.onRowEditStart),Vu(e,"rowEditStop",t.onRowEditStop);const S=n.useCallback((n=>{if(t.editMode===Rm.Cell)return Dm.View;const r=ib(e.current.state);return r[n]&&Object.keys(r[n]).length>0?Dm.Edit:Dm.View}),[e,t.editMode]),E=(0,fp.Z)((n=>{const r=n!==t.rowModesModel;if(p&&r){const t=f===$u.DataGridPro?{api:e.current}:{};p(n,t)}t.rowModesModel&&r||(o(n),i.current=n,e.current.publishEvent("rowModesModelChange",n))})),N=n.useCallback(((e,t)=>{const n=(0,bl.Z)({},i.current);null!==t?n[e]=(0,bl.Z)({},t):delete n[e],E(n)}),[E]),M=n.useCallback(((t,n)=>{e.current.setState((e=>{const r=(0,bl.Z)({},e.editRows);return null!==n?r[t]=n:delete r[t],(0,bl.Z)({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),I=n.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,bl.Z)({},e.editRows);return null!==r?o[t]=(0,bl.Z)({},o[t],{[n]:(0,bl.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,bl.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),A=n.useCallback((e=>{const{id:t}=e,n=(0,vl.Z)(e,gb);g(t,Dm.View),N(t,(0,bl.Z)({mode:Dm.Edit},n))}),[g,N]),k=(0,fp.Z)((t=>{const{id:n,fieldToFocus:r,deleteValue:o,initialValue:i}=t,a=fs(e).reduce(((t,a)=>{if(!e.current.getCellParams(n,a).isEditable)return t;let l=e.current.getCellValue(n,a);return r===a&&(o||i)&&(l=o?"":i),t[a]={value:l,error:!1,isProcessingProps:!1},t}),{});M(n,a),r&&e.current.setCellFocus(n,r)})),P=n.useCallback((e=>{const{id:t}=e,n=(0,vl.Z)(e,vb);g(t,Dm.Edit),N(t,(0,bl.Z)({mode:Dm.View},n))}),[g,N]),L=(0,fp.Z)((t=>{const{id:n,ignoreModifications:r,field:o,cellToFocusAfter:i="none"}=t;e.current.unstable_runPendingEditCellValueMutation(n);const l=()=>{"none"!==i&&o&&e.current.unstable_moveFocusToRelativeCell(n,o,i),M(n,null),N(n,null)};if(r)return void l();const s=ib(e.current.state),d=e.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(a.current[n].mode=Dm.Edit);if(Object.values(s[n]).some((e=>e.error)))return a.current[n].mode=Dm.Edit,void N(n,{mode:Dm.Edit});const p=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(u){const t=e=>{a.current[n].mode=Dm.Edit,N(n,{mode:Dm.Edit}),c?c(e):bb()};try{Promise.resolve(u(p,d)).then((t=>{e.current.updateRows([t]),l()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([p]),l()})),R=n.useCallback((t=>{const{id:n,field:r,value:o,debounceMs:i,unstable_skipValueParser:a}=t;m(n,r);const l=e.current.getColumn(r),s=e.current.getRow(n);let u=o;l.valueParser&&!a&&(u=l.valueParser(o,e.current.getCellParams(n,r)));let c=ib(e.current.state),d=(0,bl.Z)({},c[n][r],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return l.preProcessEditCellProps||I(n,r,d),new Promise((t=>{const o=[];if(l.preProcessEditCellProps){const i=d.value!==c[n][r].value;d=(0,bl.Z)({},d,{isProcessingProps:!0}),I(n,r,d);const a=c[n],p=(0,vl.Z)(a,[r].map(Ku.Z)),f=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:i,otherFieldsProps:p})).then((o=>{e.current.getRowMode(n)!==Dm.View?(c=ib(e.current.state),(o=(0,bl.Z)({},o,{isProcessingProps:!1})).value=l.preProcessEditCellProps?c[n][r].value:u,I(n,r,o)):t(!1)}));o.push(f)}Object.entries(c[n]).forEach((([i,a])=>{if(i===r)return;const l=e.current.getColumn(i);if(!l.preProcessEditCellProps)return;a=(0,bl.Z)({},a,{isProcessingProps:!0}),I(n,i,a),c=ib(e.current.state);const u=c[n],d=(0,vl.Z)(u,[i].map(Ku.Z)),p=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:a,hasChanged:!1,otherFieldsProps:d})).then((r=>{e.current.getRowMode(n)!==Dm.View?(r=(0,bl.Z)({},r,{isProcessingProps:!1}),I(n,i,r)):t(!1)}));o.push(p)})),Promise.all(o).then((()=>{e.current.getRowMode(n)===Dm.Edit?(c=ib(e.current.state),t(!c[n][r].error)):t(!1)}))}))}),[e,m,I]),T=n.useCallback((t=>{const n=ib(e.current.state),r=e.current.getRow(t);let o=(0,bl.Z)({},r);return Object.entries(n[t]).forEach((([t,n])=>{const r=e.current.getColumn(t);r.valueSetter?o=r.valueSetter({value:n.value,row:o}):o[t]=n.value})),o}),[e]);Bu(e,{getRowMode:S,startRowEditMode:A,stopRowEditMode:P,unstable_setRowEditingEditCellValue:R,unstable_getRowWithUpdatedValuesFromRowEditing:T}),n.useEffect((()=>{d&&E(d)}),[d,E]),n.useEffect((()=>{const t=Bs(e),n=a.current;a.current=Du(r),Object.entries(r).forEach((([e,r])=>{var o,i;const a=(null==(o=n[e])?void 0:o.mode)||Dm.View,l=null!=(i=t[e])?i:e;r.mode===Dm.Edit&&a===Dm.View?k((0,bl.Z)({id:l},r)):r.mode===Dm.View&&a===Dm.Edit&&L((0,bl.Z)({id:l},r))}))}),[e,r,k,L])})(e,t);const r=n.useRef({}),{isCellEditable:o}=t,i=n.useCallback((e=>!e.rowNode.isAutoGenerated&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(o?o(e):!e.rowNode.isPinned)),[o]);n.useEffect((()=>{const e=r.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[r]=e[t][n];clearTimeout(r),delete e[t][n]}))}))}}),[]);const a=n.useCallback(((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach((t=>{const[,n]=r.current[e][t];n()}))}),[]),l=n.useCallback((n=>{const{id:o,field:i,debounceMs:a}=n;return new Promise((l=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{o(),delete r.current[e][t]}),n);r.current[e][t]=[i,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,i,a,(async()=>{const r=t.editMode===Rm.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(o,i)===Tm.Edit){const e=await r(n);l(e)}}))}))}),[e,t.editMode]),s=n.useCallback(((n,r)=>t.editMode===Rm.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n)),[e,t.editMode]),u=n.useCallback(((t,n)=>({changeReason:ib(e.current.state)[t][n].changeReason})),[e]);Bu(e,{isCellEditable:i,setEditCellValue:l,unstable_runPendingEditCellValueMutation:a,unstable_getRowWithUpdatedValues:s,unstable_getEditCellMeta:u})},xb=(e,t,n)=>(n.current.unstable_caches.rows=Vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,bl.Z)({},e,{rows:Gv({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),Cb=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let t=0;t<e.length;t+=1){const n=e[t];r&&r[n]&&0===r[n].depth&&null==r[n].parent&&!r[n].isPinned?o[n]=r[n]:o[n]={id:n,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:Qu,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}};function Sb(e){return e.replace(/["\\]/g,"\\$&")}function Eb(e){return`.${ts.row}[data-id="${Sb(String(e))}"]`}ss(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);const Nb=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],Mb=(e,t)=>{var n;return(0,bl.Z)({},e,{selection:null!=(n=Nb(t.selectionModel))?n:[]})},Ib=(e,t)=>{var n,r,o,i;const a=null!=(n=null!=(r=t.sortModel)?r:null==(o=t.initialState)||null==(i=o.sorting)?void 0:i.sortModel)?n:[];return(0,bl.Z)({},e,{sorting:{sortModel:rp(a,t.disableMultipleColumnsSorting),sortedRows:[]}})};function Ab(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;return r>t?o:i-t>n?i-t:o<n?o:void 0}var kb=a(7144);const Pb=e=>(0,bl.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Lb=e=>{var t,r;const o=ec(void 0,e);return((e,t)=>{var r;const o=n.useCallback((e=>{var n;if(null==(n=t.experimentalFeatures)||!n.columnGrouping)return e;const r=Ug(t.columnGroupingModel);return e.all.forEach((t=>{var n,o;const i=null!=(n=r[t])?n:[],a=e.lookup[t];(function(e){return void 0!==e.groupPath})(a)&&Tu(i,null==a?void 0:a.groupPath)||(e.lookup[t]=(0,bl.Z)({},e.lookup[t],{groupPath:null!=(o=r[t])?o:[]}))})),e}),[t.columnGroupingModel,null==(r=t.experimentalFeatures)?void 0:r.columnGrouping]);ac(e,"hydrateColumns",o)})(o,e),((e,t)=>{const r=(e=>{const{classes:t}=e;return n.useMemo((()=>(0,wl.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},es,t)),[t])})({classes:t.classes}),o=n.useCallback((n=>{const o=(0,bl.Z)({},bv,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=null!=n.lookup[vv];return i&&!a?(n.lookup[vv]=o,n.all=[vv,...n.all]):!i&&a?(delete n.lookup[vv],n.all=n.all.filter((e=>e!==vv))):i&&a&&(n.lookup[vv]=(0,bl.Z)({},o,n.lookup[vv])),n}),[e,r,t.checkboxSelection]);ac(e,"hydrateColumns",o)})(o,e),(e=>{Lv(e,Qu,"rowTreeCreation",Cb)})(o),tc(Mb,o,e),tc(Bg,o,e),tc(Gg,o,e),tc(xb,o,e),tc(null!=(t=e.experimentalFeatures)&&t.newEditingApi?yb:lb,o,e),tc($v,o,e),tc(Ib,o,e),tc(ob,o,e),tc(Bv,o,e),tc(Kg,o,e),tc(nb,o,e),tc(Pb,o,e),tc(oc,o,e),((e,t)=>{const r=Ks(e,"useGridKeyboardNavigation"),o=Hv(e,t).rows,i=n.useMemo((()=>function(e,t){const n=Us(e)||{};return[...n.top||[],...t,...n.bottom||[]]}(e,o)),[e,o]),a=n.useCallback(((t,n,o="left")=>{const i=gu(e),a=e.current.unstable_getCellColSpanInfo(n,t);a&&a.spannedByColSpan&&("left"===o?t=a.leftVisibleCellIndex:"right"===o&&(t=a.rightVisibleCellIndex));const l=i.findIndex((e=>e.id===n));r.debug(`Navigating to cell row ${l}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:l});const s=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(n,s)}),[e,r]),l=n.useCallback(((t,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),s=n.useCallback((e=>i[e].id),[i]),u=n.useCallback(((t,n)=>{const r=e.current.getRootDimensions();if(0===i.length||!r)return;const o=e.current.unstable_getViewportPageSize(),u=t.field?e.current.getColumnIndex(t.field):0,c=i.findIndex((e=>e.id===t.id)),d=i.length-1,p=vs(e).length-1;let f=!0;switch(n.key){case"ArrowDown":case"Enter":c<d&&a(u,s(c+1));break;case"ArrowUp":c>0?a(u,s(c-1)):l(u,n);break;case"ArrowRight":u<p&&a(u+1,s(c),"right");break;case"ArrowLeft":u>0&&a(u-1,s(c));break;case"Tab":n.shiftKey&&u>0?a(u-1,s(c),"left"):!n.shiftKey&&u<p&&a(u+1,s(c),"right");break;case" ":{if(t.field===qv)break;const e=t.colDef;if(e&&"treeDataGroup"===e.type)break;!n.shiftKey&&c<d&&a(u,s(Math.min(c+o,d)));break}case"PageDown":c<d&&a(u,s(Math.min(c+o,d)));break;case"PageUp":{const e=Math.max(c-o,0);e!==c&&e>=0?a(u,s(e)):l(u,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?a(0,s(0)):a(0,s(c));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?a(p,s(d)):a(p,s(c));break;default:f=!1}f&&n.preventDefault()}),[e,i,a,l,s]),c=n.useCallback(((t,n)=>{const r=n.currentTarget.querySelector(`.${ts.columnHeaderTitleContainerContent}`);if(r&&r.contains(n.target)&&t.field!==bv.field)return;if(!e.current.getRootDimensions())return;const o=e.current.unstable_getViewportPageSize(),u=t.field?e.current.getColumnIndex(t.field):0,c=i.length-1,d=vs(e).length-1;let p=!0;switch(n.key){case"ArrowDown":a(u,s(0));break;case"ArrowRight":u<d&&l(u+1,n);break;case"ArrowLeft":u>0&&l(u-1,n);break;case"PageDown":null!==c&&a(u,s(Math.min(0+o,c)));break;case"Home":l(0,n);break;case"End":l(d,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:p=!1}p&&n.preventDefault()}),[e,i,a,l,s]),d=n.useCallback(((t,n)=>{if(!n.currentTarget.contains(n.target))return;const r=e.current.getCellParams(t.id,t.field);r.cellMode!==Tm.Edit&&Pm(n.key)&&e.current.publishEvent("cellNavigationKeyDown",r,n)}),[e]);Wu(e,"cellNavigationKeyDown",u),Wu(e,"columnHeaderKeyDown",c),Wu(e,"cellKeyDown",d)})(o,e),((e,t)=>{const r=Ks(e,"useGridSelection"),o=n.useMemo((()=>Nb(t.selectionModel,iv(e.current.state))),[e,t.selectionModel]),i=n.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:o,propOnChange:t.onSelectionModelChange,stateSelector:iv,changeEvent:"selectionChange"});const{checkboxSelection:a,disableMultipleSelection:l,disableSelectionOnClick:s,pagination:u,paginationMode:c,isRowSelectable:d}=t,p=!l||a,f=Hv(e,t),h=n.useCallback((t=>{var n;let r=t;const o=null!=(n=i.current)?n:t,a=e.current.isRowSelected(t);if(a){const t=vu(e),n=t.findIndex((e=>e===o)),i=t.findIndex((e=>e===r));if(n===i)return;r=n>i?t[i+1]:t[i-1]}i.current=t,e.current.selectRowRange({startId:o,endId:r},!a)}),[e]),m=n.useCallback((t=>{iv(e.current.state)!==t&&(r.debug("Setting selection model"),e.current.setState((e=>(0,bl.Z)({},e,{selection:t}))),e.current.forceUpdate())}),[e,r]),g=n.useCallback((t=>iv(e.current.state).includes(t)),[e]),v=n.useCallback((t=>{if(d&&!d(e.current.getRowParams(t)))return!1;const n=e.current.getRowNode(t);return!("footer"===(null==n?void 0:n.position)||null!=n&&n.isPinned)}),[e,d]),b=n.useCallback((()=>lv(e)),[e]),y=n.useCallback(((t,n=!0,o=!1)=>{if(e.current.isRowSelectable(t))if(i.current=t,o)r.debug(`Setting selection for row ${t}`),e.current.setSelectionModel(n?[t]:[]);else{r.debug(`Toggling selection for row ${t}`);const o=iv(e.current.state).filter((e=>e!==t));n&&o.push(t),(o.length<2||p)&&e.current.setSelectionModel(o)}}),[e,r,p]),w=n.useCallback(((t,n=!0,o=!1)=>{r.debug("Setting selection for several rows");const i=t.filter((t=>e.current.isRowSelectable(t)));let a;if(o)a=n?i:[];else{const t=(0,bl.Z)({},sv(e));i.forEach((e=>{n?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||p)&&e.current.setSelectionModel(a)}),[e,r,p]),x=n.useCallback((({startId:t,endId:n},o=!0,i)=>{if(!e.current.getRow(t)||!e.current.getRow(n))return;r.debug(`Expanding selection from row ${t} to row ${n}`);const a=vu(e),l=a.indexOf(t),s=a.indexOf(n),[u,c]=l>s?[s,l]:[l,s],d=a.slice(u,c+1);e.current.selectRows(d,o,i)}),[e,r]);Bu(e,{selectRow:y,selectRows:w,selectRowRange:x,setSelectionModel:m,getSelectedRows:b,isRowSelected:g,isRowSelectable:v});const C=n.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const n=iv(e.current.state),r=Zs(e),o=(0,bl.Z)({},sv(e));let i=!1;n.forEach((e=>{r[e]||(delete o[e],i=!0)})),i&&e.current.setSelectionModel(Object.values(o))}),[e,t.keepNonExistentRowsSelected]),S=n.useCallback(((t,n)=>{const r=n.metaKey||n.ctrlKey,o=!a&&!r&&!Lm(n),i=!p||o,l=e.current.isRowSelected(t);i?e.current.selectRow(t,!!o||!l,!0):e.current.selectRow(t,!l,!1)}),[e,p,a]),E=n.useCallback(((t,n)=>{var r;if(s)return;const o=null==(r=n.target.closest(`.${ts.cell}`))?void 0:r.getAttribute("data-field");o!==bv.field&&o!==qv&&(o&&e.current.getColumn(o).type===kg||e.current.getRowNode(t.id).isPinned||(n.shiftKey&&(p||a)?h(t.id):S(t.id,n)))}),[s,p,a,e,h,S]),N=n.useCallback(((e,t)=>{var n;p&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[p]),M=n.useCallback(((t,n)=>{n.nativeEvent.shiftKey?h(t.id):e.current.selectRow(t.id,t.value)}),[e,h]),I=n.useCallback((n=>{const r=t.checkboxSelectionVisibleOnly&&t.pagination?hv(e):vu(e);e.current.selectRows(r,n.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),A=n.useCallback(((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==Tm.Edit&&n.currentTarget.contains(n.target)){if(Pm(n.key)&&n.shiftKey){const r=ev(e);if(r&&r.id!==t.id){n.preventDefault();const o=e.current.isRowSelected(r.id);if(!p)return void e.current.selectRow(r.id,!o,!0);const i=e.current.getRowIndexRelativeToVisibleRows(r.id),a=e.current.getRowIndexRelativeToVisibleRows(t.id);let l,s;i>a?o?(l=a,s=i-1):(l=a,s=i):o?(l=i+1,s=a):(l=i,s=a);const u=f.rows.slice(l,s+1).map((e=>e.id));return void e.current.selectRows(u,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void S(t.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),w(e.current.getAllRowIds(),!0))}}),[e,S,w,f.rows,p]);Wu(e,"sortedRowsSet",C),Wu(e,"rowClick",E),Wu(e,"rowSelectionCheckboxChange",M),Wu(e,"headerSelectionCheckboxChange",I),Wu(e,"cellMouseDown",N),Wu(e,"cellKeyDown",A),n.useEffect((()=>{void 0!==o&&e.current.setSelectionModel(o)}),[e,o]);const k=null!=o;n.useEffect((()=>{if(k)return;const t=iv(e.current.state);if(v){const n=t.filter((e=>v(e)));n.length<t.length&&e.current.setSelectionModel(n)}}),[e,v,k]),n.useEffect((()=>{const t=iv(e.current.state);if(!p&&t.length>1){const{rows:n}=zv(e,{pagination:u,paginationMode:c}),r=n.reduce(((e,{id:t})=>(e[t]=!0,e)),{}),o=t.find((e=>{let t=!0;return v&&(t=v(e)),t&&r[e]}));e.current.setSelectionModel(void 0!==o?[o]:[])}}),[e,p,a,l,v,u,c])})(o,e),function(e,t){var r,o;const i=Ks(e,"useGridColumns"),a=n.useMemo((()=>Tg(t.columnTypes)),[t.columnTypes]),l=n.useRef(t.columns),s=n.useRef(a);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:gs,changeEvent:"columnVisibilityModelChange"});const u=n.useCallback((t=>{i.debug("Updating columns state."),e.current.setState(jg(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.all)}),[i,e]),c=n.useCallback((t=>hs(e)[t]),[e]),d=n.useCallback((()=>ms(e)),[e]),p=n.useCallback((()=>vs(e)),[e]),f=n.useCallback((()=>Cs(e)),[e]),h=n.useCallback(((t,n=!0)=>(n?vs(e):ms(e)).findIndex((e=>e.field===t))),[e]),m=n.useCallback((t=>{const n=h(t);return bs(e)[n]}),[e,h]),g=n.useCallback((t=>{gs(e)!==t&&(e.current.setState((n=>(0,bl.Z)({},n,{columns:Og({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.forceUpdate())}),[e,a]),v=n.useCallback((t=>{const n=Og({apiRef:e,columnTypes:a,columnsToUpsert:t,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});u(n)}),[e,u,a]),b=n.useCallback((t=>e.current.updateColumns([t])),[e]),y=n.useCallback(((t,n)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r;const o=gs(e);if(n!==(null==(r=o[t])||r)){const r=(0,bl.Z)({},o,{[t]:n});e.current.setColumnVisibilityModel(r)}}else{const r=e.current.getColumn(t),o=(0,bl.Z)({},r,{hide:!n});e.current.updateColumns([o]);const i={field:t,colDef:o,isVisible:n};e.current.publishEvent("columnVisibilityChange",i)}}),[e]),w=n.useCallback(((t,n)=>{const r=fs(e),o=r.findIndex((e=>e===t));if(o===n)return;i.debug(`Moving column ${t} to index ${n}`);const a=[...r],l=a.splice(o,1)[0];a.splice(n,0,l),u((0,bl.Z)({},ps(e.current.state),{all:a}));const s={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:o};e.current.publishEvent("columnOrderChange",s)}),[e,i,u]),x=n.useCallback(((t,n)=>{i.debug(`Updating column ${t} width to ${n}`);const r=e.current.getColumn(t),o=(0,bl.Z)({},r,{width:n});e.current.updateColumns([o]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:o,width:n})}),[e,i]);Bu(e,{getColumn:c,getAllColumns:d,getColumnIndex:h,getColumnPosition:m,getVisibleColumns:p,getColumnsMeta:f,updateColumn:b,updateColumns:v,setColumnVisibilityModel:g,setColumnVisibility:y,setColumnIndex:w,setColumnWidth:x});const C=n.useCallback(((n,r)=>{const o={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var i,a,l;const n=gs(e);(!r.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(null!=(i=null==(a=t.initialState)||null==(l=a.columns)?void 0:l.columnVisibilityModel)?i:{}).length>0||Object.keys(n).length>0)&&(o.columnVisibilityModel=n)}o.orderedFields=fs(e);const s=ms(e),u={};return s.forEach((e=>{if(e.hasBeenResized){const t={};Rg.forEach((n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r})),u[e.field]=t}})),Object.keys(u).length>0&&(o.dimensions=u),(0,bl.Z)({},n,{columns:o})}),[e,t.columnVisibilityModel,null==(r=t.initialState)?void 0:r.columns]),S=n.useCallback(((t,n)=>{var r;const o=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,i=n.stateToRestore.columns;if(null==o&&null==i)return t;const l=Og({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:i,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return e.current.setState(jg(l)),null!=i&&e.current.publishEvent("columnsChange",l.all),t}),[e,a]),E=n.useCallback(((e,n)=>{if(n===Zg.columns){var r;const e=t.components.ColumnsPanel;return(0,Dl.jsx)(e,(0,bl.Z)({},null==(r=t.componentsProps)?void 0:r.columnsPanel))}return e}),[t.components.ColumnsPanel,null==(o=t.componentsProps)?void 0:o.columnsPanel]);ac(e,"exportState",C),ac(e,"restoreState",S),ac(e,"preferencePanel",E);const N=n.useRef(null);Wu(e,"viewportInnerSizeChange",(t=>{N.current!==t.width&&(N.current=t.width,u(Dg(ps(e.current.state),t.width)))})),Vu(e,"columnVisibilityChange",t.onColumnVisibilityChange);const M=n.useCallback((()=>{i.info("Columns pipe processing have changed, regenerating the columns");const t=Og({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});u(t)}),[e,i,u,a]);lc(e,"hydrateColumns",M);const I=n.useRef(!0);n.useEffect((()=>{if(I.current)return void(I.current=!1);if(i.info(`GridColumns have changed, new length ${t.columns.length}`),l.current===t.columns&&s.current===a)return;const n=Og({apiRef:e,columnTypes:a,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});l.current=t.columns,s.current=a,u(n)}),[i,e,u,t.columns,a]),n.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,i,t.columnVisibilityModel])}(o,e),((e,t)=>{const r=Ks(e,"useGridRows"),o=Hv(e,t),i=n.useRef(Date.now()),a=n.useRef(null),l=n.useCallback((t=>{var n;return null!=(n=Zs(e)[t])?n:null}),[e]),s=n.useMemo((()=>o.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[o.rows]),u=n.useCallback(((n,r)=>{const o=()=>{a.current=null,i.current=Date.now(),e.current.setState((n=>(0,bl.Z)({},n,{rows:Gv({apiRef:e,previousTree:zs(e),rowCountProp:t.rowCount,loadingProp:t.loading})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.current&&(clearTimeout(a.current),a.current=null),e.current.unstable_caches.rows=n,!r)return void o();const l=t.throttleRowsMs-(Date.now()-i.current);l>0?a.current=setTimeout(o,l):o()}),[t.throttleRowsMs,t.rowCount,t.loading,e]),c=n.useCallback((n=>{r.debug(`Updating all rows, new length ${n.length}`);const o=Vv({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),i=e.current.unstable_caches.rows;o.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,u(o,!0)}),[r,t.getRowId,t.loading,t.rowCount,u,e]),d=n.useCallback((n=>{if(t.signature===$u.DataGrid&&n.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const r=new Map;n.forEach((e=>{const n=Uv(e,t.getRowId,"A row was provided without id when calling updateRows():");r.has(n)?r.set(n,(0,bl.Z)({},r.get(n),e)):r.set(n,e)}));const o=[],i=e.current.unstable_caches.rows,a={rowsBeforePartialUpdates:i.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:i.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:i.rowCountPropBeforePartialUpdates,idRowsLookup:(0,bl.Z)({},i.idRowsLookup),idToIdLookup:(0,bl.Z)({},i.idToIdLookup),ids:[...i.ids]};r.forEach(((t,n)=>"delete"===t._action?(delete a.idRowsLookup[n],delete a.idToIdLookup[n],void o.push(n)):e.current.getRow(n)?void(a.idRowsLookup[n]=(0,bl.Z)({},e.current.getRow(n),t)):(a.idRowsLookup[n]=t,a.idToIdLookup[n]=n,void a.ids.push(n)))),o.length>0&&(a.ids=a.ids.filter((e=>!o.includes(e)))),u(a,!0)}),[t.signature,t.getRowId,u,e]),p=n.useCallback((()=>{const t=qs(e),n=Zs(e);return new Map(t.map((e=>[e,n[e]])))}),[e]),f=n.useCallback((()=>js(e)),[e]),h=n.useCallback((()=>qs(e)),[e]),m=n.useCallback((e=>s[e]),[s]),g=n.useCallback(((t,n)=>{const r=e.current.getRowNode(t);if(!r)throw new Error(`MUI: No row with id #${t} found`);const o=(0,bl.Z)({},r,{childrenExpanded:n});e.current.setState((e=>(0,bl.Z)({},e,{rows:(0,bl.Z)({},e.rows,{tree:(0,bl.Z)({},e.rows.tree,{[t]:o})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",o)}),[e]),v=n.useCallback((t=>{var n;return null!=(n=zs(e)[t])?n:null}),[e]),b=n.useCallback((({skipAutoGeneratedRows:t=!0,groupId:n,applySorting:r,applyFiltering:o})=>{const i=zs(e);let a;if(r){const r=i[n];if(!r)return[];const o=su(e);a=[];for(let e=o.findIndex((e=>e===n))+1;e<o.length&&i[o[e]].depth>r.depth;e+=1){const n=o[e],r=i[n];t&&r.isAutoGenerated||a.push(n)}}else a=Yv(i,n,t);if(o){const t=mu(e);a=a.filter((e=>!1!==t[e]))}return a}),[e]),y={getRow:l,getRowModels:p,getRowsCount:f,getAllRowIds:h,setRows:c,setRowIndex:n.useCallback(((t,n)=>{const o=qs(e),i=o.findIndex((e=>e===t));if(-1===i||i===n)return;r.debug(`Moving row ${t} to index ${n}`);const a=[...o];a.splice(n,0,a.splice(i,1)[0]),e.current.setState((e=>(0,bl.Z)({},e,{rows:(0,bl.Z)({},e.rows,{ids:a})}))),e.current.unstable_caches.rows.ids=a,e.current.publishEvent("rowsSet")}),[e,r]),updateRows:d,setRowChildrenExpansion:g,getRowNode:v,getRowIndexRelativeToVisibleRows:m,getRowGroupChildren:b,unstable_replaceRows:n.useCallback(((n,r)=>{if(t.signature===$u.DataGrid&&r.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===r.length)return;const o=[...qs(e)],i=Zs(e),a=Bs(e),l=zs(e),s=(0,bl.Z)({},i),u=(0,bl.Z)({},a),c=(0,bl.Z)({},l),d=r.map((e=>({id:Uv(e,t.getRowId,"A row was provided without id when calling replaceRows()."),model:e})));d.forEach(((e,t)=>{const[r]=o.splice(n+t,1,e.id);delete s[r],delete u[r],delete c[r]})),d.forEach((e=>{const t={id:e.id,parent:null,depth:0,groupingKey:null,groupingField:null};s[e.id]=e.model,u[e.id]=e.id,c[e.id]=t})),e.current.unstable_caches.rows.idRowsLookup=s,e.current.unstable_caches.rows.idToIdLookup=u,e.current.unstable_caches.rows.ids=o,e.current.setState((e=>{const t={idRowsLookup:s,idToIdLookup:u,tree:c,ids:o};return(0,bl.Z)({},e,{rows:(0,bl.Z)({},e.rows,t,{groupingResponseBeforeRowHydration:(0,bl.Z)({},e.rows.groupingResponseBeforeRowHydration,t)})})})),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId])},w=n.useCallback((()=>{let n;r.info("Row grouping pre-processing have changed, regenerating the row tree"),n=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?e.current.unstable_caches.rows:Vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u(n,!1)}),[r,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),x=n.useCallback((e=>{"rowTreeCreation"===e&&w()}),[w]),C=n.useCallback((()=>{e.current.unstable_getActiveStrategy("rowTree")!==Hs(e)&&w()}),[e,w]);Wu(e,"activeStrategyProcessorChange",x),Wu(e,"strategyAvailabilityChange",C);const S=n.useCallback((()=>{e.current.setState((t=>(0,bl.Z)({},t,{rows:(0,bl.Z)({},t.rows,e.current.unstable_applyPipeProcessors("hydrateRows",t.rows.groupingResponseBeforeRowHydration))}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e]);lc(e,"hydrateRows",S),Bu(e,y),n.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current)}),[]);const E=n.useRef(!0);n.useEffect((()=>{if(E.current)return void(E.current=!1);const n=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,o=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading,i=e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(n)return o||(e.current.setState((e=>(0,bl.Z)({},e,{rows:(0,bl.Z)({},e.rows,{loading:t.loading})}))),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),void(i||(e.current.setState((e=>(0,bl.Z)({},e,{rows:(0,bl.Z)({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()));r.debug(`Updating all rows, new length ${t.rows.length}`),u(Vv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),!1)}),[t.rows,t.rowCount,t.getRowId,t.loading,r,u,e])})(o,e),function(e){const t=n.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),r=n.useCallback(((...t)=>e.current.getCellValue(...t)),[e]),o=n.useCallback((t=>{const n=e.current.getRow(t);if(!n)throw new Error(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:n,getValue:r}}),[e,r]),i=n.useCallback(((t,n)=>{const o=e.current.getRow(t),i=e.current.getRowNode(t);if(!o||!i)throw new Error(`No row with id #${t} found`);const a=ev(e),l=rv(e);return{id:t,field:n,row:o,rowNode:i,value:o[n],colDef:e.current.getColumn(n),cellMode:e.current.getCellMode(t,n),getValue:r,api:e.current,hasFocus:null!==a&&a.field===n&&a.id===t,tabIndex:l&&l.field===n&&l.id===t?0:-1}}),[e,r]),a=n.useCallback(((t,n)=>{const o=e.current.getColumn(n),i=e.current.getCellValue(t,n),a=e.current.getRow(t),l=e.current.getRowNode(t);if(!a||!l)throw new Error(`No row with id #${t} found`);const s=ev(e),u=rv(e),c={id:t,field:n,row:a,rowNode:l,colDef:o,cellMode:e.current.getCellMode(t,n),getValue:r,hasFocus:null!==s&&s.field===n&&s.id===t,tabIndex:u&&u.field===n&&u.id===t?0:-1,value:i,formattedValue:i};return o&&o.valueFormatter&&(c.formattedValue=o.valueFormatter({id:t,field:c.field,value:c.value,api:e.current})),c.isEditable=o&&e.current.isCellEditable(c),c}),[e,r]),l=n.useCallback(((t,n)=>{const r=e.current.getColumn(n);if(!r||!r.valueGetter){const r=e.current.getRow(t);if(!r)throw new Error(`No row with id #${t} found`);return r[n]}return r.valueGetter(i(t,n))}),[e,i]),s=n.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${Sb(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),u=n.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(Eb(t))}(e.current.rootElementRef.current,t):null),[e]),c=n.useCallback(((t,n)=>e.current.rootElementRef.current?function(e,{id:t,field:n}){const r=`${Eb(t)} .${ts.cell}[data-field="${Sb(n)}"]`;return e.querySelector(r)}(e.current.rootElementRef.current,{id:t,field:n}):null),[e]);Bu(e,{getCellValue:l,getCellParams:a,getCellElement:c,getRowParams:o,getRowElement:u,getColumnHeaderParams:t,getColumnHeaderElement:s})}(o),(e=>{const t=n.useRef({}),r=n.useCallback(((e,n,r)=>{const o=t.current;o[e]||(o[e]={}),o[e][n]=r}),[]),o=n.useCallback(((e,n)=>{var r;return null==(r=t.current[e])?void 0:r[n]}),[]),i=n.useCallback((t=>{const{columnIndex:n,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:l}=t,s=l.length,u=l[n],c="function"==typeof u.colSpan?u.colSpan(e.current.getCellParams(o,u.field)):u.colSpan;if(!c||1===c)return r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e<c;e+=1){const t=n+e;t>=i&&t<a&&(d+=l[t].computedWidth,r(o,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,s-1),leftVisibleCellIndex:n})),r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[e,r]),a=n.useCallback((({rowId:e,minFirstColumn:t,maxLastColumn:n,columns:r})=>{for(let o=t;o<n;o+=1){const a=i({columnIndex:o,rowId:e,minFirstColumnIndex:t,maxLastColumnIndex:n,columns:r});a.colSpan>1&&(o+=a.colSpan-1)}}),[i]);Bu(e,{unstable_getCellColSpanInfo:o,unstable_calculateColSpan:a});const l=n.useCallback((()=>{t.current={}}),[]);Wu(e,"columnOrderChange",l)})(o),((e,t)=>{var r;const o=n.useCallback((t=>{var n,r;return null!=(n=null==(r=hs(e)[t])?void 0:r.groupPath)?n:[]}),[e]),i=n.useCallback((()=>$g(e)),[e]);Bu(e,{unstable_getColumnGroupPath:o,unstable_getAllGroupDetails:i});const a=n.useRef(!0);n.useEffect((()=>{var n,r;if(a.current)return void(a.current=!1);if(null==(n=t.experimentalFeatures)||!n.columnGrouping)return;const o=Vg(null!=(r=t.columnGroupingModel)?r:[]);e.current.setState((e=>(0,bl.Z)({},e,{columnGrouping:(0,bl.Z)({},e.columnGrouping,{lookup:o})})))}),[e,t.columnGroupingModel,null==(r=t.experimentalFeatures)?void 0:r.columnGrouping])})(o,e),(null!=(r=e.experimentalFeatures)&&r.newEditingApi?wb:sb)(o,e),((e,t)=>{const r=Ks(e,"useGridFocus"),o=n.useRef(null),i=n.useCallback(((t,n)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),n)}),[e]),a=n.useCallback(((t,n)=>{const o=ev(e);(null==o?void 0:o.id)===t&&(null==o?void 0:o.field)===n||(e.current.setState((e=>(r.debug(`Focusing on cell with id=${t} and field=${n}`),(0,bl.Z)({},e,{tabIndex:{cell:{id:t,field:n},columnHeader:null},focus:{cell:{id:t,field:n},columnHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&(o&&i(o,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,n))))}),[e,r,i]),l=n.useCallback(((t,n={})=>{const o=ev(e);i(o,n),e.current.setState((e=>(r.debug(`Focusing on column header with colIndex=${t}`),(0,bl.Z)({},e,{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})))),e.current.forceUpdate()}),[e,r,i]),s=n.useCallback(((n,r,o)=>{let i=e.current.getColumnIndex(r),a=e.current.getRowIndexRelativeToVisibleRows(n);const l=vs(e);"right"===o?i+=1:"left"===o?i-=1:a+=1;const s=zv(e,{pagination:t.pagination,paginationMode:t.paginationMode});i>=l.length?(a+=1,a<s.rows.length&&(i=0)):i<0&&(a-=1,a>=0&&(i=l.length-1)),a=Ru(a,0,s.rows.length-1);const u=s.rows[a],c=e.current.unstable_getCellColSpanInfo(u.id,i);c&&c.spannedByColSpan&&("left"===o||"below"===o?i=c.leftVisibleCellIndex:"right"===o&&(i=c.rightVisibleCellIndex)),i=Ru(i,0,l.length-1);const d=l[i];e.current.setCellFocus(u.id,d.field)}),[e,t.pagination,t.paginationMode]),u=n.useCallback((({id:t,field:n})=>{e.current.setCellFocus(t,n)}),[e]),c=n.useCallback(((t,n)=>{"Enter"===n.key||"Tab"===n.key||Pm(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),d=n.useCallback((({field:t},n)=>{n.target===n.currentTarget&&e.current.setColumnHeaderFocus(t,n)}),[e]),p=n.useCallback((()=>{r.debug("Clearing focus"),e.current.setState((e=>(0,bl.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[r,e]),f=n.useCallback((e=>{o.current=e}),[]),h=n.useCallback((t=>{const n=o.current;o.current=null;const r=ev(e);if(!r)return void(n&&e.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===r.id&&(null==n?void 0:n.field)===r.field)return;const a=e.current.getCellElement(r.id,r.field);null!=a&&a.contains(t.target)||(n?e.current.setCellFocus(n.id,n.field):(e.current.setState((e=>(0,bl.Z)({},e,{focus:{cell:null,columnHeader:null}}))),e.current.forceUpdate(),i(r,t)))}),[e,i]),m=n.useCallback((t=>{if("view"===t.cellMode)return;const n=ev(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),g=n.useCallback((()=>{const t=ev(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,bl.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[e]);Bu(e,{setCellFocus:a,setColumnHeaderFocus:l,unstable_moveFocusToRelativeCell:s}),n.useEffect((()=>{const t=(0,Wm.Z)(e.current.rootElementRef.current);return t.addEventListener("click",h),()=>{t.removeEventListener("click",h)}}),[e,h]),Wu(e,"columnHeaderBlur",p),Wu(e,"cellDoubleClick",u),Wu(e,"cellMouseDown",f),Wu(e,"cellKeyDown",c),Wu(e,"cellModeChange",m),Wu(e,"columnHeaderFocus",d),Wu(e,"rowsSet",g)})(o,e),((e,t)=>{var r;const o=Ks(e,"useGridPreferencesPanel"),i=n.useRef(),a=n.useRef(),l=n.useCallback((()=>{o.debug("Hiding Preferences Panel");const t=rb(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((e=>(0,bl.Z)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,o]),s=n.useCallback((()=>{a.current=setTimeout((()=>clearTimeout(i.current)),0)}),[]),u=n.useCallback((()=>{i.current=setTimeout(l,100)}),[l]),c=n.useCallback((t=>{o.debug("Opening Preferences Panel"),s(),e.current.setState((e=>(0,bl.Z)({},e,{preferencePanel:(0,bl.Z)({},e.preferencePanel,{open:!0,openedPanelValue:t})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[o,s,e]);Bu(e,{showPreferences:c,hidePreferences:u});const d=n.useCallback(((n,r)=>{var o;const i=rb(e.current.state);return!r.exportOnlyDirtyModels||null!=(null==(o=t.initialState)?void 0:o.preferencePanel)||i.open?(0,bl.Z)({},n,{preferencePanel:i}):n}),[e,null==(r=t.initialState)?void 0:r.preferencePanel]),p=n.useCallback(((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>(0,bl.Z)({},e,{preferencePanel:r}))),t}),[e]);ac(e,"exportState",d),ac(e,"restoreState",p),n.useEffect((()=>()=>{clearTimeout(i.current),clearTimeout(a.current)}),[])})(o,e),((e,t)=>{var r,o,i;const a=Ks(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:fu,changeEvent:"filterModelChange"});const l=n.useCallback((()=>{e.current.setState((n=>{const r=fu(n,e.current.instanceId),o=t.filterMode===Av?((e,t)=>{const n=((e,t)=>{const{items:n}=e,r=n.map((e=>_v(e,t))).filter((e=>!!e));return 0===r.length?null:(e,t)=>{const n={};return(t?r.filter((e=>t(e.item.columnField))):r).forEach((t=>{n[t.item.id]=t.fn(e)})),n}})(e,t),r=((e,t)=>{const{quickFilterValues:n=[]}=e;if(0===n.length)return null;const r=fs(t),o={};r.forEach((e=>{const r=t.current.getColumn(e),i=null==r?void 0:r.getApplyQuickFilterFn;i&&(o[e]=n.map((e=>i(e,r,t))))}));const i=n.filter(((e,t)=>Object.keys(o).some((e=>null!=o[e][t]))));return 0===i.length?null:(e,n)=>{const r={},a=[];Object.keys(o).forEach((o=>{n&&!n(o)||(r[o]=t.current.getCellParams(e,o),a.push(o))}));const l={};return i.forEach(((e,t)=>{const n=a.some((e=>{var n,i;return null!=o[e][t]&&(null==(n=(i=o[e])[t])?void 0:n.call(i,r[e]))}));l[e]=n})),l}})(e,t);return(e,t)=>({passingFilterItems:n&&n(e,t),passingQuickFilterValues:r&&r(e,t)})})(r,e):null,i=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:o,filterModel:null!=r?r:Pv()});return(0,bl.Z)({},n,{filter:(0,bl.Z)({},n.filter,i)})})),e.current.publishEvent("filteredRowsSet")}),[t.filterMode,e]),s=n.useCallback((()=>{l(),e.current.forceUpdate()}),[e,l]),u=n.useCallback((t=>{const n=fu(e),r=[...n.items],o=r.findIndex((e=>e.id===t.id));-1===o?r.push(t):r[o]=t,e.current.setFilterModel((0,bl.Z)({},n,{items:r}),"upsertFilterItem")}),[e]),c=n.useCallback((t=>{const n=fu(e),r=[...n.items];t.forEach((e=>{const n=t.findIndex((t=>t.id===e.id));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel((0,bl.Z)({},n,{items:t}),"upsertFilterItems")}),[e]),d=n.useCallback((t=>{const n=fu(e),r=n.items.filter((e=>e.id!==t.id));r.length!==n.items.length&&e.current.setFilterModel((0,bl.Z)({},n,{items:r}),"deleteFilterItem")}),[e]),p=n.useCallback((n=>{if(a.debug("Displaying filter panel"),n){const r=fu(e),o=r.items.filter((t=>{var n;if(void 0!==t.value)return!0;const r=null==(n=e.current.getColumn(t.columnField).filterOperators)?void 0:n.find((e=>e.value===t.operatorValue));return!(void 0===(null==r?void 0:r.requiresFilterValue)||(null==r?void 0:r.requiresFilterValue))}));let i;i=o.find((e=>e.columnField===n))?o:t.disableMultipleColumnsFiltering?[Rv({columnField:n},e)]:[...o,Rv({columnField:n},e)],e.current.setFilterModel((0,bl.Z)({},r,{items:i}))}e.current.showPreferences(Zg.filters)}),[e,a,t.disableMultipleColumnsFiltering]),f=n.useCallback((()=>{a.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,a]),h=n.useCallback((t=>{const n=fu(e);n.linkOperator!==t&&e.current.setFilterModel((0,bl.Z)({},n,{linkOperator:t}),"changeLogicOperator")}),[e]),m=n.useCallback((t=>{const n=fu(e);Tu(n.quickFilterValues,t)||e.current.setFilterModel((0,bl.Z)({},n,{quickFilterValues:[...t]}))}),[e]),g=n.useCallback(((n,r)=>{fu(e)!==n&&(a.debug("Setting filter model"),e.current.unstable_updateControlState("filter",Fv(n,t.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,a,t.disableMultipleColumnsFiltering]),v=n.useCallback((()=>{const t=gu(e);return new Map(t.map((e=>[e.id,e.model])))}),[e]);Bu(e,{setFilterLinkOperator:h,unstable_applyFilters:s,deleteFilterItem:d,upsertFilterItem:u,upsertFilterItems:c,setFilterModel:g,showFilterPanel:p,hideFilterPanel:f,getVisibleRowModels:v,setQuickFilterValues:m});const b=n.useCallback(((n,r)=>{var o,i;const a=fu(e);return r.exportOnlyDirtyModels&&null==t.filterModel&&null==(null==(o=t.initialState)||null==(i=o.filter)?void 0:i.filterModel)&&Tu(a,Pv())?n:(0,bl.Z)({},n,{filter:{filterModel:a}})}),[e,t.filterModel,null==(r=t.initialState)||null==(o=r.filter)?void 0:o.filterModel]),y=n.useCallback(((n,r)=>{var o;const i=null==(o=r.stateToRestore.filter)?void 0:o.filterModel;return null==i?n:(e.current.unstable_updateControlState("filter",Fv(i,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,bl.Z)({},n,{callbacks:[...n.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),w=n.useCallback(((e,n)=>{if(n===Zg.filters){var r;const e=t.components.FilterPanel;return(0,Dl.jsx)(e,(0,bl.Z)({},null==(r=t.componentsProps)?void 0:r.filterPanel))}return e}),[t.components.FilterPanel,null==(i=t.componentsProps)?void 0:i.filterPanel]),x=n.useCallback((n=>{if(t.filterMode===Av&&n.isRowMatchingFilters){const t=qs(e),r={};for(let o=0;o<t.length;o+=1){const i=t[o];let a;if("string"==typeof i&&i.startsWith("auto-generated-group-footer"))a=!0;else{const{passingFilterItems:t,passingQuickFilterValues:r}=n.isRowMatchingFilters(i);a=Zv([t],[r],n.filterModel,e)}r[i]=a}return{filteredRowsLookup:r,visibleRowsLookup:r,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}}),[e,t.filterMode]);ac(e,"exportState",b),ac(e,"restoreState",y),ac(e,"preferencePanel",w),Lv(e,Qu,"filtering",x);const C=n.useCallback((()=>{a.debug("onColUpdated - GridColumns changed, applying filters");const t=fu(e),n=xs(e),r=t.items.filter((e=>e.columnField&&n[e.columnField]));r.length<t.items.length&&e.current.setFilterModel((0,bl.Z)({},t,{items:r}))}),[e,a]),S=n.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]);Wu(e,"rowsSet",l),Wu(e,"rowExpansionChange",e.current.unstable_applyFilters),Wu(e,"columnsChange",C),Wu(e,"activeStrategyProcessorChange",S),ic((()=>{e.current.unstable_applyFilters()})),n.useEffect((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,a,t.filterModel])})(o,e),((e,t)=>{var r,o;const i=Ks(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:cu,changeEvent:"sortModelChange"});const a=n.useCallback(((t,n)=>{const r=cu(e),o=r.findIndex((e=>e.field===t));let i=[...r];return o>-1?n?i.splice(o,1,n):i.splice(o,1):i=[...r,n],i}),[e]),l=n.useCallback(((n,r)=>{var o;const i=cu(e).find((e=>e.field===n.field));if(i){var a;const e=void 0===r?ip(null!=(a=n.sortingOrder)?a:t.sortingOrder,i.sort):r;return null==e?void 0:(0,bl.Z)({},i,{sort:e})}return{field:n.field,sort:void 0===r?ip(null!=(o=n.sortingOrder)?o:t.sortingOrder):r}}),[e,t.sortingOrder]),s=n.useCallback((()=>{e.current.setState((n=>{if("server"===t.sortingMode)return i.debug("Skipping sorting rows as sortingMode = server"),(0,bl.Z)({},n,{sorting:(0,bl.Z)({},n.sorting,{sortedRows:qs(n,e.current.instanceId)})});const r=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);return n?{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:"desc"===e.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator}:null})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return r=e,o=t,n.reduce(((e,t,n)=>{if(0!==e)return e;const i=r.params[n],a=o.params[n];return t.comparator(i.value,a.value,i,a)}),0);var r,o})).map((e=>e.node.id))})(cu(n,e.current.instanceId),e),o=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:r});return(0,bl.Z)({},n,{sorting:(0,bl.Z)({},n.sorting,{sortedRows:o})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,i,t.sortingMode]),u=n.useCallback((n=>{cu(e)!==n&&(i.debug("Setting sort model"),e.current.setState(op(n,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,i,t.disableMultipleColumnsSorting]),c=n.useCallback(((n,r,o)=>{if(!n.sortable)return;const i=l(n,r);let s;s=!o||t.disableMultipleColumnsSorting?i?[i]:[]:a(n.field,i),e.current.setSortModel(s)}),[e,a,l,t.disableMultipleColumnsSorting]),d=n.useCallback((()=>cu(e)),[e]),p=n.useCallback((()=>uu(e).map((e=>e.model))),[e]),f=n.useCallback((()=>su(e)),[e]),h=n.useCallback((t=>e.current.getSortedRowIds().indexOf(t)),[e]),m=n.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);Bu(e,{getSortModel:d,getSortedRows:p,getSortedRowIds:f,getRowIndex:h,getRowIdFromRowIndex:m,setSortModel:u,sortColumn:c,applySorting:s});const g=n.useCallback(((n,r)=>{var o,i;const a=cu(e);return!r.exportOnlyDirtyModels||null!=t.sortModel||null!=(null==(o=t.initialState)||null==(i=o.sorting)?void 0:i.sortModel)||a.length>0?(0,bl.Z)({},n,{sorting:{sortModel:a}}):n}),[e,t.sortModel,null==(r=t.initialState)||null==(o=r.sorting)?void 0:o.sortModel]),v=n.useCallback(((n,r)=>{var o;const i=null==(o=r.stateToRestore.sorting)?void 0:o.sortModel;return null==i?n:(e.current.setState(op(i,t.disableMultipleColumnsSorting)),(0,bl.Z)({},n,{callbacks:[...n.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),b=n.useCallback((t=>{const n=zs(e);if(!t.sortRowList){const t=[],r=[];return qs(e).forEach((e=>{n[e].isPinned||("footer"===n[e].position?r.push(e):t.push(e))})),[...t,...r]}const r=[],o=[];return Object.values(n).forEach((e=>{e.isPinned||("footer"===e.position?o.push(e.id):r.push(e))})),[...t.sortRowList(r),...o]}),[e]);ac(e,"exportState",g),ac(e,"restoreState",v),Lv(e,Qu,"sorting",b);const y=n.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;c(e,void 0,n)}),[c]),w=n.useCallback((({colDef:e},t)=>{!Cm(t.key)||t.ctrlKey||t.metaKey||c(e,void 0,t.shiftKey)}),[c]),x=n.useCallback((()=>{const t=cu(e),n=hs(e);if(t.length>0){const r=t.filter((e=>n[e.field]));r.length<t.length&&e.current.setSortModel(r)}}),[e]),C=n.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);Wu(e,"columnHeaderClick",y),Wu(e,"columnHeaderKeyDown",w),Wu(e,"rowsSet",e.current.applySorting),Wu(e,"columnsChange",x),Wu(e,"activeStrategyProcessorChange",C),ic((()=>{e.current.applySorting()})),n.useEffect((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(o,e),((e,t)=>{const r=Ss(e,vs),o=r.length>0?Math.max(...r.map((e=>{var t,n;return null!=(t=null==(n=e.groupPath)?void 0:n.length)?t:0}))):0,i=Ks(e,"useDensity"),a=n.useCallback(((n,r=t.headerHeight,a=t.rowHeight,l=o)=>{i.debug(`Set grid density to ${n}`),e.current.setState((e=>{const t=As(e),o=Yg(n,r,a,l);return Tu(t,o)?e:(0,bl.Z)({},e,{density:o})})),e.current.forceUpdate()}),[i,e,t.headerHeight,t.rowHeight,o]);n.useEffect((()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,o)}),[e,t.density,t.rowHeight,t.headerHeight,o]),Bu(e,{setDensity:a})})(o,e),((e,t)=>{((e,t)=>{var r,o;const i=Ks(e,"useGridPageSize"),a=Ss(e,Ps);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:dv,changeEvent:"pageSizeChange"});const l=n.useCallback((t=>{t!==dv(e)&&(i.debug(`Setting page size to ${t}`),e.current.setState(Xv(t)),e.current.forceUpdate())}),[e,i]);Bu(e,{setPageSize:l});const s=n.useCallback(((n,r)=>{var o,i;const a=dv(e);return r.exportOnlyDirtyModels&&null==t.pageSize&&null==(null==(o=t.initialState)||null==(i=o.pagination)?void 0:i.pageSize)&&a===Qv(t.autoPageSize)?n:(0,bl.Z)({},n,{pagination:(0,bl.Z)({},n.pagination,{pageSize:a})})}),[e,t.pageSize,null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.pageSize,t.autoPageSize]),u=n.useCallback(((t,n)=>{var r;const o=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=o&&e.current.setState(Xv(o)),t}),[e]);ac(e,"exportState",s),ac(e,"restoreState",u);const c=n.useCallback((()=>{const n=e.current.getRootDimensions();if(!t.autoPageSize||!n)return;const r=Kv(e),o=Math.floor((n.viewportInnerSize.height-r.top-r.bottom)/a);e.current.setPageSize(o)}),[e,t.autoPageSize,a]);Wu(e,"viewportInnerSizeChange",c),n.useEffect((()=>{null==t.pageSize||t.autoPageSize||e.current.setPageSize(t.pageSize)}),[e,t.autoPageSize,t.pageSize]),n.useEffect((()=>{c()}),[c])})(e,t),((e,t)=>{var r,o;const i=Ks(e,"useGridPage"),a=Ss(e,Cu);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:cv,changeEvent:"pageChange"});const l=n.useCallback((t=>{i.debug(`Setting page to ${t}`),e.current.setState(tb(t)),e.current.forceUpdate()}),[e,i]);Bu(e,{setPage:l});const s=n.useCallback(((n,r)=>{var o,i;const a=cv(e);return r.exportOnlyDirtyModels&&null==t.page&&null==(null==(o=t.initialState)||null==(i=o.pagination)?void 0:i.page)&&0===a?n:(0,bl.Z)({},n,{pagination:(0,bl.Z)({},n.pagination,{page:a})})}),[e,t.page,null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.page]),u=n.useCallback(((t,n)=>{var r,o;const i=null!=(r=null==(o=n.stateToRestore.pagination)?void 0:o.page)?r:cv(e);return e.current.setState(tb(i)),t}),[e]);ac(e,"exportState",s),ac(e,"restoreState",u),Wu(e,"pageSizeChange",(t=>{e.current.setState((e=>{const n=Jv(e.pagination.rowCount,t);return(0,bl.Z)({},e,{pagination:eb((0,bl.Z)({},e.pagination,{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),Wu(e,"pageChange",(()=>e.current.scrollToIndexes({rowIndex:cv(e)*dv(e)}))),n.useEffect((()=>{}),[t.rowCount,t.paginationMode]),n.useEffect((()=>{e.current.setState((e=>{const n=void 0!==t.rowCount?t.rowCount:a,r=Jv(n,e.pagination.pageSize),o=null==t.page?e.pagination.page:t.page;return(0,bl.Z)({},e,{pagination:eb((0,bl.Z)({},e.pagination,{page:o,rowCount:n,pageCount:r}))})})),e.current.forceUpdate()}),[a,t.rowCount,t.page,t.paginationMode,e])})(e,t)})(o,e),((e,t)=>{const{getRowHeight:r,getRowSpacing:o,getEstimatedRowHeight:i}=t,a=n.useRef({}),l=n.useRef(-1),s=n.useRef(!1),u=Ss(e,Ps),c=Ss(e,pu),d=Ss(e,uv),p=Ss(e,lu),f=Hv(e,t),h=Ss(e,Us),m=n.useCallback((()=>{var t,n;s.current=!1;const c=Ts(e.current.state,e.current.instanceId),d=t=>{a.current[t.id]||(a.current[t.id]={sizes:{baseCenter:u},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:n,needsFirstMeasurement:l,sizes:d}=a.current[t.id];let p=u;const h=d.baseCenter;if(n)p=h;else if(r){const e=r((0,bl.Z)({},t,{densityFactor:c}));if("auto"===e){if(l){const e=i?i((0,bl.Z)({},t,{densityFactor:c})):u;p=null!=e?e:u}else p=h;s.current=!0,a.current[t.id].autoHeight=!0}else p=null!=e?e:u,a.current[t.id].needsFirstMeasurement=!1,a.current[t.id].autoHeight=!1}else a.current[t.id].needsFirstMeasurement=!1;const m=Object.entries(d).reduce(((e,[t,n])=>(/^base[A-Z]/.test(t)&&(e[t]=n),e)),{}),g=(0,bl.Z)({},m,{baseCenter:p});if(o){var v,b;const n=e.current.getRowIndexRelativeToVisibleRows(t.id),r=o((0,bl.Z)({},t,{isFirstVisible:0===n,isLastVisible:n===f.rows.length-1,indexRelativeToCurrentPage:n}));g.spacingTop=null!=(v=r.top)?v:0,g.spacingBottom=null!=(b=r.bottom)?b:0}const y=e.current.unstable_applyPipeProcessors("rowHeight",g,t);return a.current[t.id].sizes=y,y},p=[],m=f.rows.reduce(((e,t)=>{p.push(e);let n=0,r=0;const o=d(t);return Object.entries(o).forEach((([e,t])=>{/^base[A-Z]/.test(e)?n=t>n?t:n:r+=t})),e+n+r}),0);null==h||null==(t=h.top)||t.forEach((e=>{d(e)})),null==h||null==(n=h.bottom)||n.forEach((e=>{d(e)})),e.current.setState((e=>(0,bl.Z)({},e,{rowsMeta:{currentPageTotalHeight:m,positions:p}}))),s.current||(l.current=1/0),e.current.forceUpdate()}),[e,f.rows,u,r,o,i,h]),g=n.useCallback((e=>{const t=a.current[e];return t?t.sizes.baseCenter:u}),[u]),v=n.useCallback(((e,t)=>{a.current[e].sizes.baseCenter=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,m()}),[m]),b=n.useMemo((()=>(0,kb.Z)(m)),[m]),y=n.useCallback(((e,t,n)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const r=a.current[e].sizes[`base${(0,Al.Z)(n)}`]!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes[`base${(0,Al.Z)(n)}`]=t,r&&b()}),[b]),w=n.useCallback((e=>{var t;return(null==(t=a.current[e])?void 0:t.autoHeight)||!1}),[]),x=n.useCallback((()=>l.current),[]),C=n.useCallback((e=>{s.current&&e>l.current&&(l.current=e)}),[]),S=n.useCallback((()=>{a.current={},m()}),[m]);n.useEffect((()=>{m()}),[u,c,d,p,m]),lc(e,"rowHeight",m),Bu(e,{unstable_getLastMeasuredRowIndex:x,unstable_setLastMeasuredRowIndex:C,unstable_rowHasAutoHeight:w,unstable_getRowHeight:g,unstable_getRowInternalSizes:e=>{var t;return null==(t=a.current[e])?void 0:t.sizes},unstable_setRowHeight:v,unstable_storeRowHeightMeasurement:y,resetRowHeights:S})})(o,e),((e,t)=>{const r=Ks(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.windowRef,a=Ss(e,gu),l=n.useCallback((n=>{const o=js(e),l=vs(e);if(null!=n.rowIndex&&0===o||0===l.length)return!1;r.debug(`Scrolling to cell at row ${n.rowIndex}, col: ${n.colIndex} `);let s={};if(null!=n.colIndex){const t=bs(e);let r;if(void 0!==n.rowIndex){var u;const t=null==(u=a[n.rowIndex])?void 0:u.id,o=e.current.unstable_getCellColSpanInfo(t,n.colIndex);o&&!o.spannedByColSpan&&(r=o.cellProps.width)}void 0===r&&(r=l[n.colIndex].computedWidth),s.left=Ab({clientHeight:i.current.clientWidth,scrollTop:i.current.scrollLeft,offsetHeight:r,offsetTop:t[n.colIndex]})}if(null!=n.rowIndex){var c,d;const r=Iv(e.current.state),o=cv(e),a=dv(e),l=t.pagination?n.rowIndex-o*a:n.rowIndex,u=r.positions[l+1]?r.positions[l+1]-r.positions[l]:r.currentPageTotalHeight-r.positions[l],p=(null==(c=i.current.querySelector(`.${ts["pinnedRows--top"]}`))?void 0:c.clientHeight)||0,f=(null==(d=i.current.querySelector(`.${ts["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;s.top=Ab({clientHeight:i.current.clientHeight-p-f,scrollTop:i.current.scrollTop,offsetHeight:u,offsetTop:r.positions[l]})}return s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,n),(void 0!==typeof s.left||void 0!==typeof s.top)&&(e.current.scroll(s),!0)}),[r,e,i,t.pagination,a]),s=n.useCallback((e=>{i.current&&null!=e.left&&o.current&&(o.current.scrollLeft=e.left,i.current.scrollLeft=e.left,r.debug(`Scrolling left: ${e.left}`)),i.current&&null!=e.top&&(i.current.scrollTop=e.top,r.debug(`Scrolling top: ${e.top}`)),r.debug("Scrolling, updating container, and viewport")}),[i,o,r]),u=n.useCallback((()=>null!=i&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0}),[i]);Bu(e,{scroll:s,scrollToIndexes:l,getScrollPosition:u})})(o,e),(e=>{const t=Ks(e,"useGridColumnMenu"),r=n.useCallback((n=>{e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),(0,bl.Z)({},e,{columnMenu:{open:!0,field:n}}))))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),o=n.useCallback((()=>{e.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),(0,bl.Z)({},e,{columnMenu:(0,bl.Z)({},e.columnMenu,{open:!1,field:void 0})})):e))&&e.current.forceUpdate()}),[e,t]),i=n.useCallback((n=>{t.debug("Toggle Column Menu");const i=rc(e.current.state);i.open&&i.field===n?o():r(n)}),[e,t,r,o]);Bu(e,{showColumnMenu:r,hideColumnMenu:o,toggleColumnMenu:i});const a=n.useCallback(((t,n)=>{if(!n.target.classList.contains(ts.menuIconButton))return;if(!n.relatedTarget)return;const r=n.relatedTarget.classList.contains(ts.menuList),o="menuitem"===n.relatedTarget.getAttribute("role");(r||o)&&e.current.setColumnHeaderFocus(t.field)}),[e]);Wu(e,"columnResizeStart",o),Wu(e,"columnHeaderFocus",a),Wu(e,"virtualScrollerWheel",e.current.hideColumnMenu),Wu(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(o),Mv(o),((e,t)=>{const r=Ks(e,"useGridPrintExport"),o=n.useRef(null),i=n.useRef(null),a=n.useRef({});n.useEffect((()=>{o.current=(0,Wm.Z)(e.current.rootElementRef.current)}),[e]);const l=n.useCallback(((t,n)=>new Promise((r=>{if(!t&&!n)return void r();const o=wv({apiRef:e,options:{fields:t,allColumns:n}}).map((e=>e.field)),i=ms(e),a={};i.forEach((e=>{a[e.field]=o.includes(e.field)})),e.current.setColumnVisibilityModel(a),r()}))),[e]),s=n.useCallback((e=>{const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),u=n.useCallback(((t,n)=>{var r,i;const a=(0,bl.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n),l=t.contentDocument;if(!l)return;const s=Ds(e),u=Iv(e.current.state),c=e.current.rootElementRef.current,d=c.cloneNode(!0),p=d.querySelector(`.${ts.virtualScroller}`);p.style.height="auto",p.style.width="auto",p.parentElement.style.width="auto",p.parentElement.style.height="auto",d.querySelector(`.${ts.main}`).style.overflow="visible";const f=function(){const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):null}();f&&f>=108&&(d.style.contain="size"),d.querySelector(`.${ts.columnHeaders}`).querySelector(`.${ts.columnHeadersInner}`).style.width="100%";let h=(null==(r=c.querySelector(`.${ts.toolbarContainer}`))?void 0:r.clientHeight)||0,m=(null==(i=c.querySelector(`.${ts.footerContainer}`))?void 0:i.clientHeight)||0;var g,v;a.hideToolbar&&(null==(g=d.querySelector(`.${ts.toolbarContainer}`))||g.remove(),h=0),a.hideFooter&&(null==(v=d.querySelector(`.${ts.footerContainer}`))||v.remove(),m=0),d.style.height=`${u.currentPageTotalHeight+s+h+m}px`;const b=document.createElement("div");b.appendChild(d),l.body.innerHTML=b.innerHTML;const y="function"==typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"==typeof y){const e=l.createElement("style");e.appendChild(l.createTextNode(y)),l.head.appendChild(e)}if(a.bodyClassName&&l.body.classList.add(...a.bodyClassName.split(" ")),a.copyStyles){const e=o.current.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t<e.length;t+=1){const n=e[t];if("STYLE"===n.tagName){const e=l.createElement(n.tagName),t=n.sheet;if(t){let n="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(n+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(l.createTextNode(n)),l.head.appendChild(e)}}else if(n.getAttribute("href")){const e=l.createElement(n.tagName);for(let t=0;t<n.attributes.length;t+=1){const r=n.attributes[t];r&&e.setAttribute(r.nodeName,r.nodeValue||"")}l.head.appendChild(e)}}}t.contentWindow.print()}),[e,o]),c=n.useCallback((t=>{var n,r;o.current.body.removeChild(t),e.current.restoreState(i.current||{}),null!=(n=i.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_enableVirtualization(),i.current=null,a.current={}}),[e]),d=n.useCallback((async n=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(i.current=e.current.exportState(),a.current=gs(e),t.pagination){const t=xu(e);e.current.setPageSize(t)}await l(null==n?void 0:n.fields,null==n?void 0:n.allColumns),e.current.unstable_disableVirtualization(),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const d=s(null==n?void 0:n.fileName);d.onload=()=>{u(d,n),d.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&c(d)}))},o.current.body.appendChild(d)}),[t,r,e,s,u,c,l]);Bu(e,{exportDataAsPrint:d});const p=n.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:(0,Dl.jsx)(Nv,{options:t.printOptions}),componentName:"printExport"}]}),[]);ac(e,"exportMenu",p)})(o,e),(e=>{const t=n.useCallback(((t=!1)=>{if(0===e.current.getSelectedRows().size)return;const n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((()=>{nc(n)})):nc(n)}),[e]),r=n.useCallback((t=>{const n=t.ctrlKey||t.metaKey||t.altKey;var r,o;"C"===String.fromCharCode(t.keyCode)&&n&&(r=t.target,""!==(null==(o=window.getSelection())?void 0:o.toString())||r&&(r.selectionEnd||0)-(r.selectionStart||0)>0||e.current.unstable_copySelectedRowsToClipboard(t.altKey))}),[e]);((e,t,r,o,i)=>{const a=Ks(e,"useNativeEventListener"),[l,s]=n.useState(!1),u=n.useRef(o),c=n.useCallback((e=>u.current&&u.current(e)),[]);n.useEffect((()=>{u.current=o}),[o]),n.useEffect((()=>{let n;if(n=Pu(t)?t():t&&t.current?t.current:null,n&&r&&!l){a.debug(`Binding native ${r} event`),n.addEventListener(r,c,i);const t=n;s(!0);const o=()=>{a.debug(`Clearing native ${r} event`),t.removeEventListener(r,c,i)};e.current.subscribeEvent("unmount",o)}}),[t,c,r,l,a,i,e])})(e,e.current.rootElementRef,"keydown",r),Bu(e,{unstable_copySelectedRowsToClipboard:t})})(o),function(e,t){const r=Ks(e,"useResizeContainer"),o=n.useRef(!1),i=n.useRef(null),a=n.useRef(null),l=Ss(e,Iv),s=Ss(e,Ds),u=n.useCallback((()=>{var n;const r=null==(n=e.current.rootElementRef)?void 0:n.current,o=ys(e),u=Kv(e);if(!i.current)return;let c,d,p,f;if(null!=t.scrollbarSize)c=t.scrollbarSize;else if(o&&r){const e=(0,Wm.Z)(r).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",r.appendChild(e),c=e.offsetWidth-e.clientWidth,r.removeChild(e)}else c=0;if(t.autoHeight)f=!1,p=Math.round(o)>i.current.width,d={width:i.current.width,height:l.currentPageTotalHeight+(p?c:0)};else{d={width:i.current.width,height:i.current.height-s};const e=(({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,a=!1;return(r||o)&&(i=r,a=e.height+(i?n:0)>t.height,a&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:a}})({content:{width:Math.round(o),height:l.currentPageTotalHeight},container:{width:d.width,height:d.height-u.top-u.bottom},scrollBarSize:c});f=e.hasScrollY,p=e.hasScrollX}const h={viewportOuterSize:d,viewportInnerSize:{width:d.width-(f?c:0),height:d.height-(p?c:0)},hasScrollX:p,hasScrollY:f,scrollBarSize:c},m=a.current;a.current=h,h.viewportInnerSize.width===(null==m?void 0:m.viewportInnerSize.width)&&h.viewportInnerSize.height===(null==m?void 0:m.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",h.viewportInnerSize)}),[e,t.scrollbarSize,t.autoHeight,s,l.currentPageTotalHeight]),c=n.useCallback((()=>{u(),e.current.publishEvent("debouncedResize",i.current)}),[e,u]),d=n.useCallback((()=>a.current),[]),p=n.useCallback((()=>{const n=e.current.getRootDimensions();if(!n)return 0;const r=zv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=e.current.unstable_getRenderContext(),n=t.lastRowIndex-t.firstRowIndex;return Math.min(n-1,r.rows.length)}const o=Math.floor(n.viewportInnerSize.height/Ps(e));return Math.min(o,r.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight]);Bu(e,{resize:c,getRootDimensions:d,unstable_getViewportPageSize:p,unstable_updateGridDimensionsRef:u});const f=n.useMemo((()=>(0,kb.Z)(c,60)),[c]),h=n.useRef(!0),m=n.useCallback((e=>{i.current=e;const n=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||o.current||t.autoHeight||n||(r.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||n||(r.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),h.current)return c(),void(h.current=!1);f()}),[t.autoHeight,f,r,c]);(0,Xl.Z)((()=>u()),[u]),Vu(e,"sortedRowsSet",u),Vu(e,"pageChange",u),Vu(e,"pageSizeChange",u),Vu(e,"columnsChange",u),Wu(e,"resize",m),Vu(e,"debouncedResize",t.onResize)}(o,e),function(e,t){Vu(e,"columnHeaderClick",t.onColumnHeaderClick),Vu(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Vu(e,"columnHeaderOver",t.onColumnHeaderOver),Vu(e,"columnHeaderOut",t.onColumnHeaderOut),Vu(e,"columnHeaderEnter",t.onColumnHeaderEnter),Vu(e,"columnHeaderLeave",t.onColumnHeaderLeave),Vu(e,"columnOrderChange",t.onColumnOrderChange),Vu(e,"cellClick",t.onCellClick),Vu(e,"cellDoubleClick",t.onCellDoubleClick),Vu(e,"cellKeyDown",t.onCellKeyDown),Vu(e,"cellFocusOut",t.onCellFocusOut),Vu(e,"preferencePanelClose",t.onPreferencePanelClose),Vu(e,"preferencePanelOpen",t.onPreferencePanelOpen),Vu(e,"menuOpen",t.onMenuOpen),Vu(e,"menuClose",t.onMenuClose),Vu(e,"rowDoubleClick",t.onRowDoubleClick),Vu(e,"rowClick",t.onRowClick),Vu(e,"componentError",t.onError),Vu(e,"stateChange",t.onStateChange)}(o,e),(e=>{const t=n.useCallback(((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t)),[e]),r=n.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e]);Bu(e,{exportState:t,restoreState:r})})(o),o},Rb={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};var Tb=a(9299);function Db(e){return(0,Rl.Z)("PrivateSwitchBase",e)}(0,Ll.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ob=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jb=(0,Pl.ZP)(_d)((({ownerState:e})=>(0,bl.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fb=(0,Pl.ZP)("input",{shouldForwardProp:Pl.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var _b=n.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:l,disableFocusRipple:s=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:w,type:x,value:C}=e,S=(0,vl.Z)(e,Ob),[E,N]=(0,Tb.Z)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),M=xc();let I=l;M&&void 0===I&&(I=M.disabled);const A="checkbox"===x||"radio"===x,k=(0,bl.Z)({},e,{checked:E,disabled:I,disableFocusRipple:s,edge:u}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,Al.Z)(o)}`],input:["input"]};return(0,wl.Z)(i,Db,t)})(k);return(0,Dl.jsxs)(jb,(0,bl.Z)({component:"span",className:(0,yl.Z)(P.root,i),centerRipple:!0,focusRipple:!s,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),M&&M.onFocus&&M.onFocus(e)},onBlur:e=>{m&&m(e),M&&M.onBlur&&M.onBlur(e)},ownerState:k,ref:t},S,{children:[(0,Dl.jsx)(Fb,(0,bl.Z)({autoFocus:n,checked:r,defaultChecked:a,className:P.input,disabled:I,id:A?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;N(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:k,tabIndex:w,type:x},"checkbox"===x&&void 0===C?{}:{value:C},p)),E?o:c]}))})),Zb=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Bb=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zb=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Hb(e){return(0,Rl.Z)("MuiCheckbox",e)}var $b=(0,Ll.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const qb=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Wb=(0,Pl.ZP)(_b,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,Al.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,Al.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${$b.checked}, &.${$b.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$b.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Ub=(0,Dl.jsx)(Bb,{}),Vb=(0,Dl.jsx)(Zb,{}),Gb=(0,Dl.jsx)(zb,{});var Yb=n.forwardRef((function(e,t){var r,o;const i=(0,kl.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Ub,color:l="primary",icon:s=Vb,indeterminate:u=!1,indeterminateIcon:c=Gb,inputProps:d,size:p="medium",className:f}=i,h=(0,vl.Z)(i,qb),m=u?c:s,g=u?c:a,v=(0,bl.Z)({},i,{color:l,indeterminate:u,size:p}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${(0,Al.Z)(r)}`,`size${(0,Al.Z)(o)}`]},a=(0,wl.Z)(i,Hb,t);return(0,bl.Z)({},t,a)})(v);return(0,Dl.jsx)(Wb,(0,bl.Z)({type:"checkbox",inputProps:(0,bl.Z)({"data-indeterminate":u},d),icon:n.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:n.cloneElement(g,{fontSize:null!=(o=g.props.fontSize)?o:p}),ownerState:v,ref:t,className:(0,yl.Z)(b.root,f)},h,{classes:b}))})),Kb=a(9766);const Qb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xb=(0,Pl.ZP)(Oc,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tc(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,bl.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Eh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Eh.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Eh.disabled}, .${Eh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Eh.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Jb=(0,Pl.ZP)(jc,{name:"MuiInput",slot:"Input",overridesResolver:Dc})({}),ey=n.forwardRef((function(e,t){var n,r,o,i;const a=(0,kl.Z)({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=(0,vl.Z)(a,Qb),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,wl.Z)(r,Sh,t);return(0,bl.Z)({},t,o)})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?(0,Kb.Z)(null!=f?f:u,b):b,w=null!=(n=null!=(r=h.root)?r:s.Root)?n:Xb,x=null!=(o=null!=(i=h.input)?i:s.Input)?o:Jb;return(0,Dl.jsx)(Zc,(0,bl.Z)({slots:{root:w,input:x},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));ey.muiName="Input";var ty=ey;const ny=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ry=(0,Pl.ZP)(Oc,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tc(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,bl.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ah.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ah.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ah.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ah.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ah.disabled}, .${Ah.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ah.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,bl.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),oy=(0,Pl.ZP)(jc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dc})((({theme:e,ownerState:t})=>(0,bl.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),iy=n.forwardRef((function(e,t){var n,r,o,i;const a=(0,kl.Z)({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=(0,vl.Z)(a,ny),g=(0,bl.Z)({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,wl.Z)(r,Ih,t);return(0,bl.Z)({},t,o)})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?(0,Kb.Z)(b,null!=p?p:s):b,w=null!=(n=null!=(r=f.root)?r:l.Root)?n:ry,x=null!=(o=null!=(i=f.input)?i:l.Input)?o:oy;return(0,Dl.jsx)(Zc,(0,bl.Z)({slots:{root:w,input:x},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));iy.muiName="Input";var ay,ly=iy;const sy=["children","classes","className","label","notched"],uy=(0,Pl.ZP)("fieldset",{shouldForwardProp:Pl.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cy=(0,Pl.ZP)("legend",{shouldForwardProp:Pl.FO})((({ownerState:e,theme:t})=>(0,bl.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,bl.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})))),dy=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],py=(0,Pl.ZP)(Oc,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Tc})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,bl.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Mh.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mh.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Mh.focused} .${Mh.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Mh.error} .${Mh.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mh.disabled} .${Mh.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,bl.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),fy=(0,Pl.ZP)((function(e){const{className:t,label:n,notched:r}=e,o=(0,vl.Z)(e,sy),i=null!=n&&""!==n,a=(0,bl.Z)({},e,{notched:r,withLabel:i});return(0,Dl.jsx)(uy,(0,bl.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,Dl.jsx)(cy,{ownerState:a,children:i?(0,Dl.jsx)("span",{children:n}):ay||(ay=(0,Dl.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),hy=(0,Pl.ZP)(jc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dc})((({theme:e,ownerState:t})=>(0,bl.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),my=n.forwardRef((function(e,t){var r,o,i,a,l;const s=(0,kl.Z)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=s,v=(0,vl.Z)(s,dy),b=(e=>{const{classes:t}=e,n=(0,wl.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nh,t);return(0,bl.Z)({},t,n)})(s),y=xc(),w=yc({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=(0,bl.Z)({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:f,size:w.size,type:g}),C=null!=(r=null!=(o=m.root)?o:u.Root)?r:py,S=null!=(i=null!=(a=m.input)?a:u.Input)?i:hy;return(0,Dl.jsx)(Zc,(0,bl.Z)({slots:{root:C,input:S},renderSuffix:e=>(0,Dl.jsx)(fy,{ownerState:x,className:b.notchedOutline,label:null!=p&&""!==p&&w.required?l||(l=(0,Dl.jsxs)(n.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:(0,bl.Z)({},b,{notchedOutline:null})}))}));my.muiName="Input";var gy=my;function vy(e){return(0,Rl.Z)("MuiFormLabel",e)}var by=(0,Ll.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const yy=["children","className","color","component","disabled","error","filled","focused","required"],wy=(0,Pl.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,bl.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,bl.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${by.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${by.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${by.error}`]:{color:(e.vars||e).palette.error.main}}))),xy=(0,Pl.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${by.error}`]:{color:(e.vars||e).palette.error.main}})));var Cy=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=(0,vl.Z)(n,yy),l=yc({props:n,muiFormControl:xc(),states:["color","required","focused","disabled","error","filled"]}),s=(0,bl.Z)({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,s={root:["root",`color${(0,Al.Z)(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,wl.Z)(s,vy,t)})(s);return(0,Dl.jsxs)(wy,(0,bl.Z)({as:i,ownerState:s,className:(0,yl.Z)(u.root,o),ref:t},a,{children:[r,l.required&&(0,Dl.jsxs)(xy,{ownerState:s,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function Sy(e){return(0,Rl.Z)("MuiInputLabel",e)}(0,Ll.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ey=["disableAnimation","margin","shrink","variant","className"],Ny=(0,Pl.ZP)(Cy,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${by.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,bl.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,bl.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,bl.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),My=n.forwardRef((function(e,t){const n=(0,kl.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=(0,vl.Z)(n,Ey),l=xc();let s=o;void 0===s&&l&&(s=l.filled||l.focused||l.adornedStart);const u=yc({props:n,muiFormControl:l,states:["size","variant","required","focused"]}),c=(0,bl.Z)({},n,{disableAnimation:r,formControl:l,shrink:s,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,s={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,Al.Z)(r)}`,a],asterisk:[l&&"asterisk"]},u=(0,wl.Z)(s,Sy,t);return(0,bl.Z)({},t,u)})(c);return(0,Dl.jsx)(Ny,(0,bl.Z)({"data-shrink":s,ownerState:c,ref:t,className:(0,yl.Z)(d.root,i)},a,{classes:d}))}));var Iy=My,Ay=a(8502);function ky(e){return(0,Rl.Z)("MuiFormControl",e)}(0,Ll.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Py=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ly=(0,Pl.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,bl.Z)({},t.root,t[`margin${(0,Al.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,bl.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})));var Ry=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:g="outlined"}=r,v=(0,vl.Z)(r,Py),b=(0,bl.Z)({},r,{color:a,component:l,disabled:s,error:u,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:g}),y=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&`margin${(0,Al.Z)(n)}`,r&&"fullWidth"]};return(0,wl.Z)(o,ky,t)})(b),[w,x]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,Ay.Z)(t,["Input","Select"]))return;const n=(0,Ay.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[C,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,Ay.Z)(t,["Input","Select"])&&(kc(t.props,!0)||kc(t.props.inputProps,!0))&&(e=!0)})),e})),[E,N]=n.useState(!1);s&&E&&N(!1);const M=void 0===c||s?E:c;let I;const A=n.useMemo((()=>({adornedStart:w,setAdornedStart:x,color:a,disabled:s,error:u,filled:C,focused:M,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{N(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{N(!0)},registerEffect:I,required:h,variant:g})),[w,a,s,u,C,M,d,p,I,h,m,g]);return(0,Dl.jsx)(wc.Provider,{value:A,children:(0,Dl.jsx)(Ly,(0,bl.Z)({as:l,ownerState:b,className:(0,yl.Z)(y.root,i),ref:t},v,{children:o}))})}));function Ty(e){return(0,Rl.Z)("MuiFormHelperText",e)}var Dy,Oy=(0,Ll.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const jy=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fy=(0,Pl.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Al.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,bl.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Oy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Oy.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})));var _y=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p"}=n,a=(0,vl.Z)(n,jy),l=yc({props:n,muiFormControl:xc(),states:["variant","size","disabled","error","filled","focused","required"]}),s=(0,bl.Z)({},n,{component:i,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${(0,Al.Z)(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return(0,wl.Z)(u,Ty,t)})(s);return(0,Dl.jsx)(Fy,(0,bl.Z)({as:i,ownerState:s,className:(0,yl.Z)(u.root,o),ref:t},a,{children:" "===r?Dy||(Dy=(0,Dl.jsx)("span",{className:"notranslate",children:"​"})):r}))})),Zy=a(9064);function By(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zy(e){return parseInt((0,cc.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Hy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&By(e,o)}))}function $y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const qy=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&By(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hy(t,e.mount,e.modalRef,r,!0);const o=$y(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=$y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,xp.Z)(e);return t.body===e?(0,cc.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Km((0,xp.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${zy(r)+e}px`;const t=(0,xp.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zy(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,xp.Z)(r).body;else{const t=r.parentElement,n=(0,cc.Z)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=$y(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&By(e.modalRef,t),Hy(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&By(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const Wy=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Uy(e){const t=[],n=[];return Array.from(e.querySelectorAll(Wy)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Vy(){return!0}function Gy(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=Uy,isEnabled:l=Vy,open:s}=e,u=n.useRef(!1),c=n.useRef(null),d=n.useRef(null),p=n.useRef(null),f=n.useRef(null),h=n.useRef(!1),m=n.useRef(null),g=(0,uc.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{s&&m.current&&(h.current=!r)}),[r,s]),n.useEffect((()=>{if(!s||!m.current)return;const e=(0,xp.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),n.useEffect((()=>{if(!s||!m.current)return;const e=(0,xp.Z)(m.current),t=t=>{v.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=v.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,i,l,s,a]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,Dl.jsxs)(n.Fragment,{children:[(0,Dl.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Dl.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})}const Yy=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ky={entering:{opacity:1},entered:{opacity:1}};var Qy=n.forwardRef((function(e,t){const r=hg(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=o,TransitionComponent:b=fg}=e,y=(0,vl.Z)(e,Yy),w=n.useRef(null),x=(0,Ql.Z)(w,l.ref,t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=C(p),E=C(((e,t)=>{mg(e);const n=gg({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),N=C(d),M=C(m),I=C((e=>{const t=gg({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),A=C(h);return(0,Dl.jsx)(b,(0,bl.Z)({appear:a,in:u,nodeRef:w,onEnter:E,onEntered:N,onEntering:S,onExit:I,onExited:A,onExiting:M,addEndListener:e=>{i&&i(w.current,e)},timeout:v},y,{children:(e,t)=>n.cloneElement(l,(0,bl.Z)({style:(0,bl.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Ky[e],g,l.props.style),ref:x},t))}))}));function Xy(e){return(0,Rl.Z)("MuiBackdrop",e)}(0,Ll.Z)("MuiBackdrop",["root","invisible"]);const Jy=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ew=(0,Pl.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,bl.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var tw=n.forwardRef((function(e,t){var n,r,o;const i=(0,kl.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Qy,transitionDuration:g}=i,v=(0,vl.Z)(i,Jy),b=(0,bl.Z)({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,wl.Z)(r,Xy,t)})(b),w=null!=(n=f.root)?n:c.root;return(0,Dl.jsx)(m,(0,bl.Z)({in:p,timeout:g},v,{children:(0,Dl.jsx)(ew,(0,bl.Z)({"aria-hidden":!0},w,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:(0,yl.Z)(y.root,l,null==w?void 0:w.className),ownerState:(0,bl.Z)({},b,null==w?void 0:w.ownerState),classes:y,ref:t,children:a}))}))}));function nw(e){return(0,Rl.Z)("MuiModal",e)}(0,Ll.Z)("MuiModal",["root","hidden","backdrop"]);const rw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ow=(0,Pl.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,bl.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),iw=(0,Pl.ZP)(tw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),aw=n.forwardRef((function(e,t){var r,o,i,a,l,s;const u=(0,kl.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=iw,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:x=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:E=!1,hideBackdrop:N=!1,keepMounted:M=!1,onBackdropClick:I,open:A,slotProps:k,slots:P}=u,L=(0,vl.Z)(u,rw),R=(0,bl.Z)({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:x,disablePortal:C,disableRestoreFocus:S,disableScrollLock:E,hideBackdrop:N,keepMounted:M}),{getRootProps:T,getBackdropProps:D,getTransitionProps:O,portalRef:j,isTopModal:F,exited:_,hasTransition:Z}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=qy,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=n.useRef({}),h=n.useRef(null),m=n.useRef(null),g=(0,uc.Z)(m,p),[v,b]=n.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const x=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),C=()=>{i.mount(x(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,fp.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,xp.Z)(h.current).body;i.add(x(),e),m.current&&C()})),E=n.useCallback((()=>i.isTopModal(x())),[i]),N=(0,fp.Z)((e=>{h.current=e,e&&(d&&E()?C():m.current&&By(m.current,w))})),M=n.useCallback((()=>{i.remove(x(),w)}),[w,i]);n.useEffect((()=>()=>{M()}),[M]),n.useEffect((()=>{d?S():y&&a||M()}),[d,M,y,a,S]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=_f(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,bl.Z)({},n,t);return(0,bl.Z)({role:"presentation"},r,{onKeyDown:I(r),ref:g})},getBackdropProps:(e={})=>{const t=e;return(0,bl.Z)({"aria-hidden":!0},t,{onClick:A(t),open:d})},getTransitionProps:()=>({onEnter:(0,Zy.Z)((()=>{b(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:(0,Zy.Z)((()=>{b(!0),s&&s(),a&&M()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:N,isTopModal:E,exited:v,hasTransition:y}}((0,bl.Z)({},R,{rootRef:t})),B=(0,bl.Z)({},R,{exited:_}),z=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,wl.Z)(o,nw,r)})(B),H={};if(void 0===h.props.tabIndex&&(H.tabIndex="-1"),Z){const{onEnter:e,onExited:t}=O();H.onEnter=e,H.onExited=t}const $=null!=(r=null!=(o=null==P?void 0:P.root)?o:v.Root)?r:ow,q=null!=(i=null!=(a=null==P?void 0:P.backdrop)?a:v.Backdrop)?i:c,W=null!=(l=null==k?void 0:k.root)?l:b.root,U=null!=(s=null==k?void 0:k.backdrop)?s:b.backdrop,V=zf({elementType:$,externalSlotProps:W,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:g},ownerState:B,className:(0,yl.Z)(p,null==W?void 0:W.className,null==z?void 0:z.root,!B.open&&B.exited&&(null==z?void 0:z.hidden))}),G=zf({elementType:q,externalSlotProps:U,additionalProps:d,getSlotProps:e=>D((0,bl.Z)({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,yl.Z)(null==U?void 0:U.className,null==d?void 0:d.className,null==z?void 0:z.backdrop),ownerState:B});return M||A||Z&&!_?(0,Dl.jsx)(Of,{ref:j,container:m,disablePortal:C,children:(0,Dl.jsxs)($,(0,bl.Z)({},V,{children:[!N&&c?(0,Dl.jsx)(q,(0,bl.Z)({},G)):null,(0,Dl.jsx)(Gy,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:F,open:A,children:n.cloneElement(h,H)})]}))}):null}));var lw=aw;function sw(e){return(0,Rl.Z)("MuiPopover",e)}(0,Ll.Z)("MuiPopover",["root","paper"]);const uw=["onEntering"],cw=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dw=["slotProps"];function pw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function fw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function hw(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function mw(e){return"function"==typeof e?e():e}const gw=(0,Pl.ZP)(lw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vw=(0,Pl.ZP)(uh,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),bw=n.forwardRef((function(e,t){var r,o,i;const a=(0,kl.Z)({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:b={},slots:y,slotProps:w,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=Cg,transitionDuration:S="auto",TransitionProps:{onEntering:E}={},disableScrollLock:N=!1}=a,M=(0,vl.Z)(a.TransitionProps,uw),I=(0,vl.Z)(a,cw),A=null!=(r=null==w?void 0:w.paper)?r:b,k=n.useRef(),P=(0,Ql.Z)(k,A.ref),L=(0,bl.Z)({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:C,transitionDuration:S,TransitionProps:M}),R=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["root"],paper:["paper"]},sw,t)})(L),T=n.useCallback((()=>{if("anchorPosition"===d)return c;const e=mw(s),t=(e&&1===e.nodeType?e:(0,Wm.Z)(k.current).body).getBoundingClientRect();return{top:t.top+pw(t,u.vertical),left:t.left+fw(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),D=n.useCallback((e=>({vertical:pw(e,x.vertical),horizontal:fw(e,x.horizontal)})),[x.horizontal,x.vertical]),O=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===d)return{top:null,left:null,transformOrigin:hw(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=(0,ou.Z)(mw(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:hw(n)}}),[s,d,T,D,g]),[j,F]=n.useState(v),_=n.useCallback((()=>{const e=k.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[O]);n.useEffect((()=>(N&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,N,_]),n.useEffect((()=>{v&&_()})),n.useImperativeHandle(l,(()=>v?{updatePosition:()=>{_()}}:null),[v,_]),n.useEffect((()=>{if(!v)return;const e=(0,kb.Z)((()=>{_()})),t=(0,ou.Z)(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,v,_]);let Z=S;"auto"!==S||C.muiSupportAuto||(Z=void 0);const B=h||(s?(0,Wm.Z)(mw(s)).body:void 0),z=null!=(o=null==y?void 0:y.root)?o:gw,H=null!=(i=null==y?void 0:y.paper)?i:vw,$=zf({elementType:H,externalSlotProps:(0,bl.Z)({},A,{style:j?A.style:(0,bl.Z)({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:L,className:(0,yl.Z)(R.paper,null==A?void 0:A.className)}),q=zf({elementType:z,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:v},ownerState:L,className:(0,yl.Z)(R.root,f)}),{slotProps:W}=q,U=(0,vl.Z)(q,dw);return(0,Dl.jsx)(z,(0,bl.Z)({},U,!bc(z)&&{slotProps:W,disableScrollLock:N},{children:(0,Dl.jsx)(C,(0,bl.Z)({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{F(!1)},timeout:Z},M,{children:(0,Dl.jsx)(H,(0,bl.Z)({},$,{children:p}))}))}))}));var yw=bw;function ww(e){return(0,Rl.Z)("MuiMenu",e)}(0,Ll.Z)("MuiMenu",["root","paper","list"]);const xw=["onEntering"],Cw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Sw={vertical:"top",horizontal:"right"},Ew={vertical:"top",horizontal:"left"},Nw=(0,Pl.ZP)(yw,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mw=(0,Pl.ZP)(vw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Iw=(0,Pl.ZP)(rg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Aw=n.forwardRef((function(e,t){var r,o;const i=(0,kl.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:b={},slotProps:y={}}=i,w=(0,vl.Z)(i.TransitionProps,xw),x=(0,vl.Z)(i,Cw),C=hg(),S="rtl"===C.direction,E=(0,bl.Z)({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:w,variant:v}),N=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["root"],paper:["paper"],list:["list"]},ww,t)})(E),M=a&&!u&&p,I=n.useRef(null);let A=-1;n.Children.map(l,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===A)&&(A=t))}));const k=null!=(r=b.paper)?r:Mw,P=null!=(o=y.paper)?o:f,L=zf({elementType:b.root,externalSlotProps:y.root,ownerState:E,className:[N.root,s]}),R=zf({elementType:k,externalSlotProps:P,ownerState:E,className:N.paper});return(0,Dl.jsx)(Nw,(0,bl.Z)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Sw:Ew,slots:{paper:k,root:b.root},slotProps:{root:L,paper:R},open:p,ref:t,transitionDuration:m,TransitionProps:(0,bl.Z)({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,C),g&&g(e,t)}},w),ownerState:E},x,{classes:h,children:(0,Dl.jsx)(Iw,(0,bl.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===A||u),autoFocusItem:M,variant:v},c,{className:(0,yl.Z)(N.list,c.className),children:l}))}))}));function kw(e){return(0,Rl.Z)("MuiNativeSelect",e)}var Pw=(0,Ll.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Lw=["className","disabled","error","IconComponent","inputRef","variant"],Rw=({ownerState:e,theme:t})=>(0,bl.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,bl.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Pw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Tw=(0,Pl.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pl.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Pw.multiple}`]:t.multiple}]}})(Rw),Dw=({ownerState:e,theme:t})=>(0,bl.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Pw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Ow=(0,Pl.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Al.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Dw);var jw=n.forwardRef((function(e,t){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=(0,vl.Z)(e,Lw),c=(0,bl.Z)({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${(0,Al.Z)(n)}`,i&&"iconOpen",r&&"disabled"]};return(0,wl.Z)(l,kw,t)})(c);return(0,Dl.jsxs)(n.Fragment,{children:[(0,Dl.jsx)(Tw,(0,bl.Z)({ownerState:c,className:(0,yl.Z)(d.select,r),disabled:o,ref:l||t},u)),e.multiple?null:(0,Dl.jsx)(Ow,{as:a,ownerState:c,className:d.icon})]})}));function Fw(e){return(0,Rl.Z)("MuiSelect",e)}var _w,Zw=(0,Ll.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Bw=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],zw=(0,Pl.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zw.select}`]:t.select},{[`&.${Zw.select}`]:t[n.variant]},{[`&.${Zw.error}`]:t.error},{[`&.${Zw.multiple}`]:t.multiple}]}})(Rw,{[`&.${Zw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hw=(0,Pl.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Al.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Dw),$w=(0,Pl.ZP)("input",{shouldForwardProp:e=>(0,Pl.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function qw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ww(e){return null==e||"string"==typeof e&&!e.trim()}const Uw=n.forwardRef((function(e,t){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:b={},multiple:y,name:w,onBlur:x,onChange:C,onClose:S,onFocus:E,onOpen:N,open:M,readOnly:I,renderValue:A,SelectDisplayProps:k={},tabIndex:P,value:L,variant:R="standard"}=e,T=(0,vl.Z)(e,Bw),[D,O]=(0,Tb.Z)({controlled:L,default:d,name:"Select"}),[j,F]=(0,Tb.Z)({controlled:M,default:c,name:"Select"}),_=n.useRef(null),Z=n.useRef(null),[B,z]=n.useState(null),{current:H}=n.useRef(null!=M),[$,q]=n.useState(),W=(0,Ql.Z)(t,g),U=n.useCallback((e=>{Z.current=e,e&&z(e)}),[]),V=null==B?void 0:B.parentNode;n.useImperativeHandle(W,(()=>({focus:()=>{Z.current.focus()},node:_.current,value:D})),[D]),n.useEffect((()=>{c&&j&&B&&!H&&(q(l?null:V.clientWidth),Z.current.focus())}),[B,l]),n.useEffect((()=>{a&&Z.current.focus()}),[a]),n.useEffect((()=>{if(!v)return;const e=(0,Wm.Z)(Z.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&Z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const G=(e,t)=>{e?N&&N(t):S&&S(t),H||(q(l?null:V.clientWidth),F(e))},Y=n.Children.toArray(s),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(O(n),C)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:w}}),C(o,e)}y||G(!1,t)}},Q=null!==B&&j;let X,J;delete T["aria-invalid"];const ee=[];let te=!1,ne=!1;(kc({value:D})||f)&&(A?X=A(D):te=!0);const re=Y.map((e=>{if(!n.isValidElement(e))return null;let t;if(y){if(!Array.isArray(D))throw new Error((0,sc.Z)(2));t=D.some((t=>qw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=qw(D,e.props.value),t&&te&&(J=e.props.children);return t&&(ne=!0),n.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=y?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):J);let oe,ie=$;!l&&H&&B&&(ie=V.clientWidth),oe=void 0!==P?P:p?null:0;const ae=k.id||(w?`mui-component-select-${w}`:void 0),le=(0,bl.Z)({},e,{variant:R,value:D,open:Q,error:h}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${(0,Al.Z)(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,wl.Z)(l,Fw,t)})(le),ue=(0,bl.Z)({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=(0,cp.Z)();return(0,Dl.jsxs)(n.Fragment,{children:[(0,Dl.jsx)(zw,(0,bl.Z)({ref:U,tabIndex:oe,role:"combobox","aria-controls":ce,"aria-disabled":p?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{I||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))},onMouseDown:p||I?null:e=>{0===e.button&&(e.preventDefault(),Z.current.focus(),G(!0,e))},onBlur:e=>{!Q&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:w}}),x(e))},onFocus:E},k,{ownerState:le,className:(0,yl.Z)(k.className,se.select,u),id:ae,children:Ww(X)?_w||(_w=(0,Dl.jsx)("span",{className:"notranslate",children:"​"})):X})),(0,Dl.jsx)($w,(0,bl.Z)({"aria-invalid":h,value:Array.isArray(D)?D.join(","):D,name:w,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),C&&C(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:le},T)),(0,Dl.jsx)(Hw,{as:m,className:se.icon,ownerState:le}),(0,Dl.jsx)(Aw,(0,bl.Z)({id:`menu-${w||""}`,anchorEl:V,open:Q,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:(0,bl.Z)({"aria-labelledby":v,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:(0,bl.Z)({},b.slotProps,{paper:(0,bl.Z)({},ue,{style:(0,bl.Z)({minWidth:ie},null!=ue?ue.style:null)})}),children:re}))]})}));var Vw=Uw;const Gw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Yw=["root"],Kw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Pl.FO)(e)&&"variant"!==e,slot:"Root"},Qw=(0,Pl.ZP)(ty,Kw)(""),Xw=(0,Pl.ZP)(gy,Kw)(""),Jw=(0,Pl.ZP)(ly,Kw)(""),ex=n.forwardRef((function(e,t){const r=(0,kl.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Ph,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:b=!1,onClose:y,onOpen:w,open:x,renderValue:C,SelectDisplayProps:S,variant:E="outlined"}=r,N=(0,vl.Z)(r,Gw),M=b?jw:Vw,I=yc({props:r,muiFormControl:xc(),states:["variant","error"]}),A=I.variant||E,k=(0,bl.Z)({},r,{variant:A,classes:a}),P=(e=>{const{classes:t}=e;return t})(k),L=(0,vl.Z)(P,Yw),R=p||{standard:(0,Dl.jsx)(Qw,{ownerState:k}),outlined:(0,Dl.jsx)(Xw,{label:h,ownerState:k}),filled:(0,Dl.jsx)(Jw,{ownerState:k})}[A],T=(0,Ql.Z)(t,R.ref);return(0,Dl.jsx)(n.Fragment,{children:n.cloneElement(R,(0,bl.Z)({inputComponent:M,inputProps:(0,bl.Z)({children:i,error:I.error,IconComponent:c,variant:A,type:void 0,multiple:v},b?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:m,MenuProps:g,onClose:y,onOpen:w,open:x,renderValue:C,SelectDisplayProps:(0,bl.Z)({id:d},S)},f,{classes:f?(0,Kb.Z)(L,f.classes):L},p?p.props.inputProps:{})},v&&b&&"outlined"===A?{notched:!0}:{},{ref:T,className:(0,yl.Z)(R.props.className,l,P.root)},!p&&{variant:A},N))})}));ex.muiName="Select";var tx=ex;function nx(e){return(0,Rl.Z)("MuiTextField",e)}(0,Ll.Z)("MuiTextField",["root"]);const rx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ox={standard:ty,filled:ly,outlined:gy},ix=(0,Pl.ZP)(Ry,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var ax=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:l="primary",defaultValue:s,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:b,label:y,maxRows:w,minRows:x,multiline:C=!1,name:S,onBlur:E,onChange:N,onFocus:M,placeholder:I,required:A=!1,rows:k,select:P=!1,SelectProps:L,type:R,value:T,variant:D="outlined"}=n,O=(0,vl.Z)(n,rx),j=(0,bl.Z)({},n,{autoFocus:o,color:l,disabled:u,error:c,fullWidth:p,multiline:C,required:A,select:P,variant:D}),F=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["root"]},nx,t)})(j),_={};"outlined"===D&&(m&&void 0!==m.shrink&&(_.notched=m.shrink),_.label=y),P&&(L&&L.native||(_.id=void 0),_["aria-describedby"]=void 0);const Z=(0,cp.Z)(h),B=f&&Z?`${Z}-helper-text`:void 0,z=y&&Z?`${Z}-label`:void 0,H=ox[D],$=(0,Dl.jsx)(H,(0,bl.Z)({"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:p,multiline:C,name:S,rows:k,maxRows:w,minRows:x,type:R,value:T,id:Z,inputRef:b,onBlur:E,onChange:N,onFocus:M,placeholder:I,inputProps:g},_,v));return(0,Dl.jsxs)(ix,(0,bl.Z)({className:(0,yl.Z)(F.root,a),disabled:u,error:c,fullWidth:p,ref:t,required:A,color:l,variant:D,ownerState:j},O,{children:[null!=y&&""!==y&&(0,Dl.jsx)(Iy,(0,bl.Z)({htmlFor:Z,id:z},m,{children:y})),P?(0,Dl.jsx)(tx,(0,bl.Z)({"aria-describedby":B,id:Z,labelId:z,value:T,input:$},L,{children:i})):$,f&&(0,Dl.jsx)(_y,(0,bl.Z)({id:B},d,{children:f}))]}))}));function lx(e){return(0,Rl.Z)("MuiSwitch",e)}var sx=(0,Ll.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);const ux=["className","color","edge","size","sx"],cx=(0,Pl.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,Al.Z)(n.edge)}`],t[`size${(0,Al.Z)(n.size)}`]]}})((({ownerState:e})=>(0,bl.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${sx.thumb}`]:{width:16,height:16},[`& .${sx.switchBase}`]:{padding:4,[`&.${sx.checked}`]:{transform:"translateX(16px)"}}}))),dx=(0,Pl.ZP)(_b,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${sx.input}`]:t.input},"default"!==n.color&&t[`color${(0,Al.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${sx.checked}`]:{transform:"translateX(20px)"},[`&.${sx.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${sx.checked} + .${sx.track}`]:{opacity:.5},[`&.${sx.disabled} + .${sx.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${sx.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,bl.Z)({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${sx.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sx.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${"light"===e.palette.mode?(0,Jl.$n)(e.palette[t.color].main,.62):(0,Jl._j)(e.palette[t.color].main,.55)}`}},[`&.${sx.checked} + .${sx.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}}))),px=(0,Pl.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),fx=(0,Pl.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})));var hx=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:i=!1,size:a="medium",sx:l}=n,s=(0,vl.Z)(n,ux),u=(0,bl.Z)({},n,{color:o,edge:i,size:a}),c=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l={root:["root",n&&`edge${(0,Al.Z)(n)}`,`size${(0,Al.Z)(r)}`],switchBase:["switchBase",`color${(0,Al.Z)(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,wl.Z)(l,lx,t);return(0,bl.Z)({},t,s)})(u),d=(0,Dl.jsx)(fx,{className:c.thumb,ownerState:u});return(0,Dl.jsxs)(cx,{className:(0,yl.Z)(c.root,r),sx:l,ownerState:u,children:[(0,Dl.jsx)(dx,(0,bl.Z)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:u},s,{classes:(0,bl.Z)({},c,{root:c.switchBase})})),(0,Dl.jsx)(px,{className:c.track,ownerState:u})]})})),mx=a(7925);function gx(e){return(0,Rl.Z)("MuiButton",e)}var vx=(0,Ll.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),bx=n.createContext({}),yx=n.createContext(void 0);const wx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xx=e=>(0,bl.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Cx=(0,Pl.ZP)(_d,{shouldForwardProp:e=>(0,Pl.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Al.Z)(n.color)}`],t[`size${(0,Al.Z)(n.size)}`],t[`${n.variant}Size${(0,Al.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,bl.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,bl.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Jl.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,bl.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${vx.focusVisible}`]:(0,bl.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${vx.disabled}`]:(0,bl.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,Jl.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vx.disabled}`]:{boxShadow:"none"}})),Sx=(0,Pl.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,Al.Z)(n.size)}`]]}})((({ownerState:e})=>(0,bl.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},xx(e)))),Ex=(0,Pl.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,Al.Z)(n.size)}`]]}})((({ownerState:e})=>(0,bl.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},xx(e))));var Nx=n.forwardRef((function(e,t){const r=n.useContext(bx),o=n.useContext(yx),i=(0,mx.Z)(r,e),a=(0,kl.Z)({props:i,name:"MuiButton"}),{children:l,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:m,fullWidth:g=!1,size:v="medium",startIcon:b,type:y,variant:w="text"}=a,x=(0,vl.Z)(a,wx),C=(0,bl.Z)({},a,{color:s,component:u,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:g,size:v,type:y,variant:w}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l={root:["root",i,`${i}${(0,Al.Z)(t)}`,`size${(0,Al.Z)(o)}`,`${i}Size${(0,Al.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,Al.Z)(o)}`],endIcon:["endIcon",`iconSize${(0,Al.Z)(o)}`]},s=(0,wl.Z)(l,gx,a);return(0,bl.Z)({},a,s)})(C),E=b&&(0,Dl.jsx)(Sx,{className:S.startIcon,ownerState:C,children:b}),N=h&&(0,Dl.jsx)(Ex,{className:S.endIcon,ownerState:C,children:h}),M=o||"";return(0,Dl.jsxs)(Cx,(0,bl.Z)({ownerState:C,className:(0,yl.Z)(r.className,S.root,c,M),component:u,disabled:d,focusRipple:!f,focusVisibleClassName:(0,yl.Z)(S.focusVisible,m),ref:t,type:y},x,{classes:S,children:[E,l,N]}))}));function Mx(e){return(0,Rl.Z)("MuiTooltip",e)}var Ix=(0,Ll.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Ax=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],kx=(0,Pl.ZP)(Jf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,bl.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ix.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ix.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ix.arrow}`]:(0,bl.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ix.arrow}`]:(0,bl.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Px=(0,Pl.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Al.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Jl.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Ix.popper}[data-popper-placement*="left"] &`]:(0,bl.Z)({transformOrigin:"right center"},t.isRtl?(0,bl.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,bl.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ix.popper}[data-popper-placement*="right"] &`]:(0,bl.Z)({transformOrigin:"left center"},t.isRtl?(0,bl.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,bl.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ix.popper}[data-popper-placement*="top"] &`]:(0,bl.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ix.popper}[data-popper-placement*="bottom"] &`]:(0,bl.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),Lx=(0,Pl.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Jl.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Rx=!1,Tx=null,Dx={x:0,y:0};function Ox(e,t){return n=>{t&&t(n),e(n)}}var jx=n.forwardRef((function(e,t){var r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,w,x;const C=(0,kl.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:E,components:N={},componentsProps:M={},describeChild:I=!1,disableFocusListener:A=!1,disableHoverListener:k=!1,disableInteractive:P=!1,disableTouchListener:L=!1,enterDelay:R=100,enterNextDelay:T=0,enterTouchDelay:D=700,followCursor:O=!1,id:j,leaveDelay:F=0,leaveTouchDelay:_=1500,onClose:Z,onOpen:B,open:z,placement:H="bottom",PopperComponent:$,PopperProps:q={},slotProps:W={},slots:U={},title:V,TransitionComponent:G=Cg,TransitionProps:Y}=C,K=(0,vl.Z)(C,Ax),Q=n.isValidElement(E)?E:(0,Dl.jsx)("span",{children:E}),X=hg(),J="rtl"===X.direction,[ee,te]=n.useState(),[ne,re]=n.useState(null),oe=n.useRef(!1),ie=P||O,ae=n.useRef(),le=n.useRef(),se=n.useRef(),ue=n.useRef(),[ce,de]=(0,Tb.Z)({controlled:z,default:!1,name:"Tooltip",state:"open"});let pe=ce;const fe=(0,sd.Z)(j),he=n.useRef(),me=n.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ue.current)}),[]);n.useEffect((()=>()=>{clearTimeout(ae.current),clearTimeout(le.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(Tx),Rx=!0,de(!0),B&&!pe&&B(e)},ve=(0,ru.Z)((e=>{clearTimeout(Tx),Tx=setTimeout((()=>{Rx=!1}),800+F),de(!1),Z&&pe&&Z(e),clearTimeout(ae.current),ae.current=setTimeout((()=>{oe.current=!1}),X.transitions.duration.shortest)})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(le.current),clearTimeout(se.current),R||Rx&&T?le.current=setTimeout((()=>{ge(e)}),Rx?T:R):ge(e))},ye=e=>{clearTimeout(le.current),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),F)},{isFocusVisibleRef:we,onBlur:xe,onFocus:Ce,ref:Se}=(0,cd.Z)(),[,Ee]=n.useState(!1),Ne=e=>{xe(e),!1===we.current&&(Ee(!1),ye(e))},Me=e=>{ee||te(e.currentTarget),Ce(e),!0===we.current&&(Ee(!0),be(e))},Ie=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Ae=be,ke=ye;n.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Pe=(0,Ql.Z)(Q.ref,Se,te,t);V||0===V||(pe=!1);const Le=n.useRef(),Re={},Te="string"==typeof V;I?(Re.title=pe||!Te||k?null:V,Re["aria-describedby"]=pe?fe:null):(Re["aria-label"]=Te?V:null,Re["aria-labelledby"]=pe&&!Te?fe:null);const De=(0,bl.Z)({},Re,K,Q.props,{className:(0,yl.Z)(K.className,Q.props.className),onTouchStart:Ie,ref:Pe},O?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),Dx={x:e.clientX,y:e.clientY},Le.current&&Le.current.update()}}:{}),Oe={};L||(De.onTouchStart=e=>{Ie(e),clearTimeout(se.current),clearTimeout(ae.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,be(e)}),D)},De.onTouchEnd=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),_)}),k||(De.onMouseOver=Ox(Ae,De.onMouseOver),De.onMouseLeave=Ox(ke,De.onMouseLeave),ie||(Oe.onMouseOver=Ae,Oe.onMouseLeave=ke)),A||(De.onFocus=Ox(Me,De.onFocus),De.onBlur=Ox(Ne,De.onBlur),ie||(Oe.onFocus=Me,Oe.onBlur=Ne));const je=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=q.popperOptions)&&e.modifiers&&(t=t.concat(q.popperOptions.modifiers)),(0,bl.Z)({},q.popperOptions,{modifiers:t})}),[ne,q]),Fe=(0,bl.Z)({},C,{isRtl:J,arrow:S,disableInteractive:ie,placement:H,PopperComponentProp:$,touch:oe.current}),_e=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Al.Z)(i.split("-")[0])}`],arrow:["arrow"]};return(0,wl.Z)(a,Mx,t)})(Fe),Ze=null!=(r=null!=(o=U.popper)?o:N.Popper)?r:kx,Be=null!=(i=null!=(a=null!=(l=U.transition)?l:N.Transition)?a:G)?i:Cg,ze=null!=(s=null!=(u=U.tooltip)?u:N.Tooltip)?s:Px,He=null!=(c=null!=(d=U.arrow)?d:N.Arrow)?c:Lx,$e=Ff(Ze,(0,bl.Z)({},q,null!=(p=W.popper)?p:M.popper,{className:(0,yl.Z)(_e.popper,null==q?void 0:q.className,null==(f=null!=(h=W.popper)?h:M.popper)?void 0:f.className)}),Fe),qe=Ff(Be,(0,bl.Z)({},Y,null!=(m=W.transition)?m:M.transition),Fe),We=Ff(ze,(0,bl.Z)({},null!=(g=W.tooltip)?g:M.tooltip,{className:(0,yl.Z)(_e.tooltip,null==(v=null!=(b=W.tooltip)?b:M.tooltip)?void 0:v.className)}),Fe),Ue=Ff(He,(0,bl.Z)({},null!=(y=W.arrow)?y:M.arrow,{className:(0,yl.Z)(_e.arrow,null==(w=null!=(x=W.arrow)?x:M.arrow)?void 0:w.className)}),Fe);return(0,Dl.jsxs)(n.Fragment,{children:[n.cloneElement(Q,De),(0,Dl.jsx)(Ze,(0,bl.Z)({as:null!=$?$:Jf,placement:H,anchorEl:O?{getBoundingClientRect:()=>({top:Dx.y,left:Dx.x,right:Dx.x,bottom:Dx.y,width:0,height:0})}:ee,popperRef:Le,open:!!ee&&pe,id:fe,transition:!0},Oe,$e,{popperOptions:je,children:({TransitionProps:e})=>(0,Dl.jsx)(Be,(0,bl.Z)({timeout:X.transitions.duration.shorter},e,qe,{children:(0,Dl.jsxs)(ze,(0,bl.Z)({},We,{children:[V,S?(0,Dl.jsx)(He,(0,bl.Z)({},Ue,{ref:re})):null]}))}))}))]})}));const Fx=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let Zx;function Bx(e){return(0,Rl.Z)("MuiSkeleton",e)}(0,Ll.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const zx=["animation","className","component","height","style","variant","width"];let Hx,$x,qx,Wx,Ux=e=>e;const Vx=Il(Hx||(Hx=Ux`
     101`),`
    102102  0% {
    103103    opacity: 1;
     
    111111    opacity: 1;
    112112  }
    113 `)),Gx=Il($x||($x=Ux`
     113`)),`
    114114  0% {
    115115    transform: translateX(-100%);
     
    124124    transform: translateX(100%);
    125125  }
    126 `)),Yx=(0,Pl.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=(i=e.shape.borderRadius,String(i).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px"),r=(o=e.shape.borderRadius,parseFloat(o));var o,i;return(0,bl.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,Jl.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&Ml(qx||(qx=Ux`
     126`)),`
    127127      animation: ${0} 2s ease-in-out 0.5s infinite;
    128     `),Vx)),(({ownerState:e,theme:t})=>"wave"===e.animation&&Ml(Wx||(Wx=Ux`
     128    `),`
    129129      position: relative;
    130130      overflow: hidden;
     
    149149        top: 0;
    150150      }
    151     `),Gx,(t.vars||t).palette.action.hover)));var Kx=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:i="span",height:a,style:l,variant:s="text",width:u}=n,c=(0,vl.Z)(n,zx),d=(0,bl.Z)({},n,{animation:r,component:i,variant:s,hasChildren:Boolean(c.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e,l={root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return(0,wl.Z)(l,Bx,t)})(d);return(0,Dl.jsx)(Yx,(0,bl.Z)({as:i,ref:t,className:(0,yl.Z)(p.root,o),ownerState:d},c,{style:(0,bl.Z)({width:u,height:a},l)}))}));const Qx=["field","align","width","contentWidth"];function Xx(e){return(0,Rl.Z)("MuiBadge",e)}var Jx=(0,Ll.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const eC=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],tC=(0,Pl.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nC=(0,Pl.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Al.Z)(n.anchorOrigin.vertical)}${(0,Al.Z)(n.anchorOrigin.horizontal)}${(0,Al.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Al.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Jx.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}));var rC=n.forwardRef((function(e,t){var n,r,o,i,a,l;const s=(0,kl.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:c,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:w,slotProps:x,showZero:C=!1,variant:S="standard"}=s,E=(0,vl.Z)(s,eC),{badgeContent:N,invisible:M,max:I,displayValue:A}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=pp({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:C}),k=pp({anchorOrigin:u,color:g,overlap:m,variant:S,badgeContent:y}),P=M||null==N&&"dot"!==S,{color:L=g,overlap:R=m,anchorOrigin:T=u,variant:D=S}=P?k:s,O="dot"!==D?A:void 0,j=(0,bl.Z)({},s,{badgeContent:N,invisible:P,max:I,displayValue:O,showZero:C,anchorOrigin:T,color:L,overlap:R,variant:D}),F=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${(0,Al.Z)(n.vertical)}${(0,Al.Z)(n.horizontal)}`,`anchorOrigin${(0,Al.Z)(n.vertical)}${(0,Al.Z)(n.horizontal)}${(0,Al.Z)(o)}`,`overlap${(0,Al.Z)(o)}`,"default"!==t&&`color${(0,Al.Z)(t)}`]};return(0,wl.Z)(l,Xx,a)})(j),_=null!=(n=null!=(r=null==w?void 0:w.root)?r:p.Root)?n:tC,Z=null!=(o=null!=(i=null==w?void 0:w.badge)?i:p.Badge)?o:nC,B=null!=(a=null==x?void 0:x.root)?a:f.root,z=null!=(l=null==x?void 0:x.badge)?l:f.badge,H=zf({elementType:_,externalSlotProps:B,externalForwardedProps:E,additionalProps:{ref:t,as:d},ownerState:j,className:(0,yl.Z)(null==B?void 0:B.className,F.root,c)}),$=zf({elementType:Z,externalSlotProps:z,ownerState:j,className:(0,yl.Z)(F.badge,null==z?void 0:z.className)});return(0,Dl.jsxs)(_,(0,bl.Z)({},H,{children:[h,(0,Dl.jsx)(Z,(0,bl.Z)({},$,{children:O}))]}))}));const oC=["className"],iC=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),aC=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,oC),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["iconButtonContainer"]},es,t)})(o);return(0,Dl.jsx)(iC,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))})),lC=["hideMenu","currentColumn","open","id","labelledby","className","children"],sC=n.forwardRef((function(e,t){const{hideMenu:r,open:o,id:i,labelledby:a,className:l,children:s}=e,u=(0,vl.Z)(e,lC),c=n.useCallback((e=>{var t;Sm(e.key)&&e.preventDefault(),t=e.key,(Sm(t)||xm(t))&&r(e)}),[r]);return(0,Dl.jsx)(rg,(0,bl.Z)({id:i,ref:t,className:ce(ts.menuList,l),"aria-labelledby":a,onKeyDown:c,autoFocus:o},u,{children:s}))})),uC=e=>{const{onClick:t}=e,r=Ns(),o=Is(),i=n.useCallback((e=>{t(e),r.current.showPreferences(Zg.columns)}),[r,t]);return o.disableColumnSelector?null:(0,Dl.jsx)(Ud,{onClick:i,children:r.current.getLocaleText("columnMenuShowColumns")})},cC=e=>{const{column:t,onClick:r}=e,o=Ns(),i=Is(),a=n.useCallback((e=>{r(e),o.current.showFilterPanel(null==t?void 0:t.field)}),[o,null==t?void 0:t.field,r]);return i.disableColumnFilter||null==t||!t.filterable?null:(0,Dl.jsx)(Ud,{onClick:a,children:o.current.getLocaleText("columnMenuFilter")})},dC=e=>{const{column:t,onClick:r}=e,o=Ns(),i=Is(),a=n.useRef(),l=1===vs(o).filter((e=>!0!==e.disableColumnMenu)).length,s=n.useCallback((e=>{l||(r(e),a.current=setTimeout((()=>{o.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100))}),[o,null==t?void 0:t.field,r,l]);return n.useEffect((()=>()=>clearTimeout(a.current)),[]),i.disableColumnSelector||!1===t.hideable?null:(0,Dl.jsx)(Ud,{onClick:s,disabled:l,children:o.current.getLocaleText("columnMenuHideColumn")})};function pC(e){var t;const{column:r,onClick:o}=e,i=Ns(),a=Ss(i,cu),l=Is(),s=null!=(t=r.sortingOrder)?t:l.sortingOrder,u=n.useMemo((()=>{if(!r)return null;const e=a.find((e=>e.field===r.field));return null==e?void 0:e.sort}),[r,a]),c=n.useCallback((e=>{o(e);const t=e.currentTarget.getAttribute("data-value")||null;i.current.sortColumn(r,t)}),[i,r,o]);return r&&r.sortable?(0,Dl.jsxs)(n.Fragment,{children:[s.includes(null)?(0,Dl.jsx)(Ud,{onClick:c,disabled:null==u,children:i.current.getLocaleText("columnMenuUnsort")}):null,s.includes("asc")?(0,Dl.jsx)(Ud,{onClick:c,"data-value":"asc",disabled:"asc"===u,children:i.current.getLocaleText("columnMenuSortAsc")}):null,s.includes("desc")?(0,Dl.jsx)(Ud,{onClick:c,"data-value":"desc",disabled:"desc"===u,children:i.current.getLocaleText("columnMenuSortDesc")}):null]}):null}const fC=n.forwardRef((function(e,t){const{hideMenu:r,currentColumn:o}=e,i=Ns(),a=[(0,Dl.jsx)(pC,{onClick:r,column:o}),(0,Dl.jsx)(cC,{onClick:r,column:o}),(0,Dl.jsx)(dC,{onClick:r,column:o}),(0,Dl.jsx)(uC,{onClick:r,column:o})],l=i.current.unstable_applyPipeProcessors("columnMenu",a,o);return(0,Dl.jsx)(sC,(0,bl.Z)({ref:t},e,{children:l.map(((e,t)=>n.cloneElement(e,{key:t,onClick:r,column:o})))}))})),hC=["className","rowCount","visibleRowCount"],mC=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),gC=n.forwardRef((function(e,t){const{className:n,rowCount:r,visibleRowCount:o}=e,i=(0,vl.Z)(e,hC),a=Ns(),l=Is(),s=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["rowCount"]},es,t)})(l);if(0===r)return null;const u=o<r?a.current.getLocaleText("footerTotalVisibleRows")(o,r):r.toLocaleString();return(0,Dl.jsxs)(mC,(0,bl.Z)({ref:t,className:ce(s.root,n),ownerState:l},i,{children:[a.current.getLocaleText("footerTotalRows")," ",u]}))})),vC=["className","selectedRowCount"],bC=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}))),yC=n.forwardRef((function(e,t){const{className:n,selectedRowCount:r}=e,o=(0,vl.Z)(e,vC),i=Ns(),a=Is(),l=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["selectedRowCount"]},es,t)})(a),s=i.current.getLocaleText("footerRowSelected")(r);return(0,Dl.jsx)(bC,(0,bl.Z)({ref:t,className:ce(l.root,n),ownerState:a},o,{children:s}))})),wC=["className"],xC=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})((({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${"light"===e.palette.mode?(0,Jl.$n)((0,Jl.Fq)(e.palette.divider,1),.88):(0,Jl._j)((0,Jl.Fq)(e.palette.divider,1),.68)}`}))),CC=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,wC),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["footerContainer"]},es,t)})(o);return(0,Dl.jsx)(xC,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))})),SC=n.forwardRef((function(e,t){var n;const r=Ns(),o=Is(),i=Ss(r,_s),a=Ss(r,av),l=Ss(r,Cu),s=!o.hideFooterSelectedRowCount&&a>0?(0,Dl.jsx)(yC,{selectedRowCount:a}):(0,Dl.jsx)("div",{}),u=o.hideFooterRowCount||o.pagination?null:(0,Dl.jsx)(gC,{rowCount:i,visibleRowCount:l}),c=o.pagination&&!o.hideFooterPagination&&o.components.Pagination&&(0,Dl.jsx)(o.components.Pagination,(0,bl.Z)({},null==(n=o.componentsProps)?void 0:n.pagination));return(0,Dl.jsxs)(CC,(0,bl.Z)({ref:t},e,{children:[s,u,c]}))})),EC=n.forwardRef((function(e,t){var n,r;const o=Is();return(0,Dl.jsxs)("div",(0,bl.Z)({ref:t},e,{children:[(0,Dl.jsx)(o.components.PreferencesPanel,(0,bl.Z)({},null==(n=o.componentsProps)?void 0:n.preferencesPanel)),o.components.Toolbar&&(0,Dl.jsx)(o.components.Toolbar,(0,bl.Z)({},null==(r=o.componentsProps)?void 0:r.toolbar))]}))})),NC=n.forwardRef((function(e,t){var n,r,o;const i=Ns(),a=Ss(i,ms),l=Is(),s=Ss(i,rb),u=i.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=s.openedPanelValue)?n:Zg.filters);return(0,Dl.jsx)(l.components.Panel,(0,bl.Z)({ref:t,as:l.components.BasePopper,open:a.length>0&&s.open},null==(r=l.componentsProps)?void 0:r.panel,e,null==(o=l.componentsProps)?void 0:o.basePopper,{children:u}))})),MC=["className"],IC=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})((({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,Jl.Fq)(e.palette.background.default,e.palette.action.disabledOpacity)}))),AC=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,MC),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["overlay"]},es,t)})(o);return(0,Dl.jsx)(IC,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))})),kC=n.forwardRef((function(e,t){return(0,Dl.jsx)(AC,(0,bl.Z)({ref:t},e,{children:(0,Dl.jsx)(Ul,{})}))})),PC=n.forwardRef((function(e,t){const n=Ns().current.getLocaleText("noRowsLabel");return(0,Dl.jsx)(AC,(0,bl.Z)({ref:t},e,{children:n}))}));var LC=n.createContext(),RC=n.createContext();function TC(e){return(0,Rl.Z)("MuiTableCell",e)}var DC=(0,Ll.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const OC=["align","className","component","padding","scope","size","sortDirection","variant"],jC=(0,Pl.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,Al.Z)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,Al.Z)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,Al.Z)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,bl.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===e.palette.mode?(0,Jl.$n)((0,Jl.Fq)(e.palette.divider,1),.88):(0,Jl._j)((0,Jl.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${DC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})));var FC=n.forwardRef((function(e,t){const r=(0,kl.Z)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,p=(0,vl.Z)(r,OC),f=n.useContext(LC),h=n.useContext(RC),m=h&&"head"===h.variant;let g;g=a||(m?"th":"td");let v=s;"td"===g?v=void 0:!v&&m&&(v="col");const b=d||h&&h.variant,y=(0,bl.Z)({},r,{align:o,component:g,padding:l||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&f&&f.stickyHeader,variant:b}),w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,Al.Z)(r)}`,"normal"!==o&&`padding${(0,Al.Z)(o)}`,`size${(0,Al.Z)(i)}`]};return(0,wl.Z)(l,TC,t)})(y);let x=null;return c&&(x="asc"===c?"ascending":"descending"),(0,Dl.jsx)(jC,(0,bl.Z)({as:g,ref:t,className:(0,yl.Z)(w.root,i),"aria-sort":x,scope:v,ownerState:y},p))}));function _C(e){return(0,Rl.Z)("MuiToolbar",e)}(0,Ll.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ZC=["className","component","disableGutters","variant"],BC=(0,Pl.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar));var zC=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,l=(0,vl.Z)(n,ZC),s=(0,bl.Z)({},n,{component:o,disableGutters:i,variant:a}),u=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,wl.Z)(o,_C,t)})(s);return(0,Dl.jsx)(BC,(0,bl.Z)({as:o,className:(0,yl.Z)(u.root,r),ref:t,ownerState:s},l))})),HC=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$C=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),qC=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),WC=(0,Bc.Z)((0,Dl.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");const UC=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],VC=n.forwardRef((function(e,t){var n,r,o,i,a,l,s,u;const{backIconButtonProps:c,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:h,onPageChange:m,page:g,rowsPerPage:v,showFirstButton:b,showLastButton:y,slots:w={},slotProps:x={}}=e,C=(0,vl.Z)(e,UC),S=hg(),E=null!=(n=w.firstButton)?n:hh,N=null!=(r=w.lastButton)?r:hh,M=null!=(o=w.nextButton)?o:hh,I=null!=(i=w.previousButton)?i:hh,A=null!=(a=w.firstButtonIcon)?a:WC,k=null!=(l=w.lastButtonIcon)?l:qC,P=null!=(s=w.nextButtonIcon)?s:$C,L=null!=(u=w.previousButtonIcon)?u:HC,R="rtl"===S.direction?N:E,T="rtl"===S.direction?M:I,D="rtl"===S.direction?I:M,O="rtl"===S.direction?E:N,j="rtl"===S.direction?x.lastButton:x.firstButton,F="rtl"===S.direction?x.nextButton:x.previousButton,_="rtl"===S.direction?x.previousButton:x.nextButton,Z="rtl"===S.direction?x.firstButton:x.lastButton;return(0,Dl.jsxs)("div",(0,bl.Z)({ref:t},C,{children:[b&&(0,Dl.jsx)(R,(0,bl.Z)({onClick:e=>{m(e,0)},disabled:p||0===g,"aria-label":f("first",g),title:f("first",g)},j,{children:"rtl"===S.direction?(0,Dl.jsx)(k,(0,bl.Z)({},x.lastButtonIcon)):(0,Dl.jsx)(A,(0,bl.Z)({},x.firstButtonIcon))})),(0,Dl.jsx)(T,(0,bl.Z)({onClick:e=>{m(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":f("previous",g),title:f("previous",g)},null!=F?F:c,{children:"rtl"===S.direction?(0,Dl.jsx)(P,(0,bl.Z)({},x.nextButtonIcon)):(0,Dl.jsx)(L,(0,bl.Z)({},x.previousButtonIcon))})),(0,Dl.jsx)(D,(0,bl.Z)({onClick:e=>{m(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/v)-1,color:"inherit","aria-label":f("next",g),title:f("next",g)},null!=_?_:h,{children:"rtl"===S.direction?(0,Dl.jsx)(L,(0,bl.Z)({},x.previousButtonIcon)):(0,Dl.jsx)(P,(0,bl.Z)({},x.nextButtonIcon))})),y&&(0,Dl.jsx)(O,(0,bl.Z)({onClick:e=>{m(e,Math.max(0,Math.ceil(d/v)-1))},disabled:p||g>=Math.ceil(d/v)-1,"aria-label":f("last",g),title:f("last",g)},Z,{children:"rtl"===S.direction?(0,Dl.jsx)(A,(0,bl.Z)({},x.firstButtonIcon)):(0,Dl.jsx)(k,(0,bl.Z)({},x.lastButtonIcon))}))]}))}));var GC=VC;function YC(e){return(0,Rl.Z)("MuiTablePagination",e)}var KC,QC=(0,Ll.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const XC=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],JC=(0,Pl.ZP)(FC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),eS=(0,Pl.ZP)(zC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,bl.Z)({[`& .${QC.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${QC.actions}`]:{flexShrink:0,marginLeft:20}}))),tS=(0,Pl.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),nS=(0,Pl.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>(0,bl.Z)({},e.typography.body2,{flexShrink:0}))),rS=(0,Pl.ZP)(tx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,bl.Z)({[`& .${QC.selectIcon}`]:t.selectIcon,[`& .${QC.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${QC.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),oS=(0,Pl.ZP)(Ud,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),iS=(0,Pl.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>(0,bl.Z)({},e.typography.body2,{flexShrink:0})));function aS({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function lS(e){return`Go to ${e} page`}const sS=n.forwardRef((function(e,t){var r;const o=(0,kl.Z)({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=GC,backIconButtonProps:a,className:l,colSpan:s,component:u=FC,count:c,disabled:d=!1,getItemAriaLabel:p=lS,labelDisplayedRows:f=aS,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:b,rowsPerPage:y,rowsPerPageOptions:w=[10,25,50,100],SelectProps:x={},showFirstButton:C=!1,showLastButton:S=!1,slotProps:E={},slots:N={}}=o,M=(0,vl.Z)(o,XC),I=o,A=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},YC,t)})(I),k=null!=(r=null==E?void 0:E.select)?r:x,P=k.native?"option":oS;let L;u!==FC&&"td"!==u||(L=s||1e3);const R=(0,sd.Z)(k.id),T=(0,sd.Z)(k.labelId);return(0,Dl.jsx)(JC,(0,bl.Z)({colSpan:L,ref:t,as:u,ownerState:I,className:(0,yl.Z)(A.root,l)},M,{children:(0,Dl.jsxs)(eS,{className:A.toolbar,children:[(0,Dl.jsx)(tS,{className:A.spacer}),w.length>1&&(0,Dl.jsx)(nS,{className:A.selectLabel,id:T,children:h}),w.length>1&&(0,Dl.jsx)(rS,(0,bl.Z)({variant:"standard"},!k.variant&&{input:KC||(KC=(0,Dl.jsx)(Zc,{}))},{value:y,onChange:v,id:R,labelId:T},k,{classes:(0,bl.Z)({},k.classes,{root:(0,yl.Z)(A.input,A.selectRoot,(k.classes||{}).root),select:(0,yl.Z)(A.select,(k.classes||{}).select),icon:(0,yl.Z)(A.selectIcon,(k.classes||{}).icon)}),disabled:d,children:w.map((e=>(0,n.createElement)(P,(0,bl.Z)({},!bc(P)&&{ownerState:I},{className:A.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,Dl.jsx)(iS,{className:A.displayedRows,children:f({from:0===c?0:b*y+1,to:-1===c?(b+1)*y:-1===y?c:Math.min(c,(b+1)*y),count:-1===c?-1:c,page:b})}),(0,Dl.jsx)(i,{className:A.actions,backIconButtonProps:a,count:c,nextIconButtonProps:m,onPageChange:g,page:b,rowsPerPage:y,showFirstButton:C,showLastButton:S,slotProps:E.actions,slots:N.actions,getItemAriaLabel:p,disabled:d})]})}))}));var uS=sS;const cS=(0,Pl.ZP)(uS)((({theme:e})=>({[`& .${QC.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${QC.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),dS=n.forwardRef((function(e,t){var r;const o=Ns(),i=Is(),a=Ss(o,uv),l=n.useMemo((()=>Math.floor(a.rowCount/(a.pageSize||1))),[a.rowCount,a.pageSize]),s=n.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),u=n.useCallback(((e,t)=>{o.current.setPage(t)}),[o]);return(0,Dl.jsx)(cS,(0,bl.Z)({ref:t,component:"div",count:a.rowCount,page:a.page<=l?a.page:l,rowsPerPageOptions:null!=(r=i.rowsPerPageOptions)&&r.includes(a.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:a.pageSize,onPageChange:u,onRowsPerPageChange:s},o.current.getLocaleText("MuiTablePagination"),e))})),pS=["className"],fS=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function hS(e){const{className:t}=e,n=(0,vl.Z)(e,pS),r=Is(),o=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["panelContent"]},es,t)})(r);return(0,Dl.jsx)(fS,(0,bl.Z)({className:ce(t,o.root),ownerState:r},n))}const mS=["className"],gS=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function vS(e){const{className:t}=e,n=(0,vl.Z)(e,mS),r=Is(),o=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["panelFooter"]},es,t)})(r);return(0,Dl.jsx)(gS,(0,bl.Z)({className:ce(t,o.root),ownerState:r},n))}const bS=["className","slotProps"],yS=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),wS=()=>!0,xS=n.forwardRef((function(e,t){const{className:n,slotProps:r={}}=e,o=(0,vl.Z)(e,bS),i=Is(),a=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["panelWrapper"]},es,t)})(i);return(0,Dl.jsx)(Gy,(0,bl.Z)({open:!0,disableEnforceFocus:!0,isEnabled:wS},r.TrapFocus,{children:(0,Dl.jsx)(yS,(0,bl.Z)({ref:t,tabIndex:-1,className:ce(n,a.root),ownerState:i},o))}))})),CS=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],SS=["InputComponentProps"],ES=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),NS=(0,Pl.ZP)(Ry,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)}))),MS=(0,Pl.ZP)(Ry,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),IS=(0,Pl.ZP)(Ry,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),AS=(0,Pl.ZP)(Ry,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),kS=(0,Pl.ZP)(Ry,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),PS=e=>{switch(e){case kv.And:return"filterPanelOperatorAnd";case kv.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},LS=e=>e.headerName||e.field,RS=new Intl.Collator,TS=n.forwardRef((function(e,t){var r,o,i,a,l,s,u;const{item:c,hasMultipleFilters:d,deleteFilter:p,applyFilterChanges:f,multiFilterOperator:h,showMultiFilterOperators:m,disableMultiFilterOperator:g,applyMultiFilterOperatorChanges:v,focusElementRef:b,linkOperators:y=[kv.And,kv.Or],columnsSort:w,deleteIconProps:x={},linkOperatorInputProps:C={},operatorInputProps:S={},columnInputProps:E={},valueInputProps:N={}}=e,M=(0,vl.Z)(e,CS),I=Ns(),A=Ss(I,ws),k=(0,sd.Z)(),P=(0,sd.Z)(),L=(0,sd.Z)(),R=(0,sd.Z)(),T=Is(),D=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},es,t)})(T),O=n.useRef(null),j=n.useRef(null),F=d&&y.length>0,_=(null==(r=T.componentsProps)?void 0:r.baseFormControl)||{},Z=null==(i=((null==(o=T.componentsProps)?void 0:o.baseSelect)||{}).native)||i,B=Z?"option":Ud,{InputComponentProps:z}=N,H=(0,vl.Z)(N,SS),$=n.useMemo((()=>{switch(w){case"asc":return A.sort(((e,t)=>RS.compare(LS(e),LS(t))));case"desc":return A.sort(((e,t)=>-RS.compare(LS(e),LS(t))));default:return A}}),[A,w]),q=c.columnField?I.current.getColumn(c.columnField):null,W=n.useMemo((()=>{var e;return c.operatorValue&&q?null==(e=q.filterOperators)?void 0:e.find((e=>e.value===c.operatorValue)):null}),[c,q]),U=n.useCallback((e=>{const t=e.target.value,n=I.current.getColumn(t);if(n.field===q.field)return;const r=n.filterOperators.find((e=>e.value===c.operatorValue))||n.filterOperators[0],o=!r.InputComponent||r.InputComponent!==(null==W?void 0:W.InputComponent);f((0,bl.Z)({},c,{columnField:t,operatorValue:r.value,value:o?void 0:c.value}))}),[I,f,c,q,W]),V=n.useCallback((e=>{const t=e.target.value,n=null==q?void 0:q.filterOperators.find((e=>e.value===t)),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==W?void 0:W.InputComponent);f((0,bl.Z)({},c,{operatorValue:t,value:r?void 0:c.value}))}),[f,c,q,W]),G=n.useCallback((e=>{const t=e.target.value===kv.And.toString()?kv.And:kv.Or;v(t)}),[v]);return n.useImperativeHandle(b,(()=>({focus:()=>{var e;null!=W&&W.InputComponent?null==O||null==(e=O.current)||e.focus():j.current.focus()}})),[W]),(0,Dl.jsxs)(ES,(0,bl.Z)({ref:t,className:D.root,ownerState:T},M,{children:[(0,Dl.jsx)(NS,(0,bl.Z)({variant:"standard",as:T.components.BaseFormControl},_,x,{className:ce(D.deleteIcon,_.className,x.className),ownerState:T,children:(0,Dl.jsx)(hh,{"aria-label":I.current.getLocaleText("filterPanelDeleteIconLabel"),title:I.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{T.disableMultipleColumnsFiltering?void 0===c.value?p(c):f((0,bl.Z)({},c,{value:void 0})):p(c)},size:"small",children:(0,Dl.jsx)(T.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,Dl.jsx)(MS,(0,bl.Z)({variant:"standard",as:T.components.BaseFormControl},_,C,{sx:(0,bl.Z)({display:F?"flex":"none",visibility:m?"visible":"hidden"},_.sx||{},C.sx||{}),className:ce(D.linkOperatorInput,_.className,C.className),ownerState:T,children:(0,Dl.jsx)(T.components.BaseSelect,(0,bl.Z)({inputProps:{"aria-label":I.current.getLocaleText("filterPanelLinkOperator")},value:h,onChange:G,disabled:!!g||1===y.length,native:Z},null==(a=T.componentsProps)?void 0:a.baseSelect,{children:y.map((e=>(0,Dl.jsx)(B,{value:e.toString(),children:I.current.getLocaleText(PS(e))},e.toString())))}))})),(0,Dl.jsxs)(IS,(0,bl.Z)({variant:"standard",as:T.components.BaseFormControl},_,E,{className:ce(D.columnInput,_.className,E.className),ownerState:T,children:[(0,Dl.jsx)(Iy,{htmlFor:k,id:P,children:I.current.getLocaleText("filterPanelColumns")}),(0,Dl.jsx)(T.components.BaseSelect,(0,bl.Z)({labelId:P,id:k,label:I.current.getLocaleText("filterPanelColumns"),value:c.columnField||"",onChange:U,native:Z},null==(l=T.componentsProps)?void 0:l.baseSelect,{children:$.map((e=>(0,Dl.jsx)(B,{value:e.field,children:LS(e)},e.field)))}))]})),(0,Dl.jsxs)(AS,(0,bl.Z)({variant:"standard",as:T.components.BaseFormControl},_,S,{className:ce(D.operatorInput,_.className,S.className),ownerState:T,children:[(0,Dl.jsx)(Iy,{htmlFor:L,id:R,children:I.current.getLocaleText("filterPanelOperators")}),(0,Dl.jsx)(T.components.BaseSelect,(0,bl.Z)({labelId:R,label:I.current.getLocaleText("filterPanelOperators"),id:L,value:c.operatorValue,onChange:V,native:Z,inputRef:j},null==(s=T.componentsProps)?void 0:s.baseSelect,{children:null==q||null==(u=q.filterOperators)?void 0:u.map((e=>(0,Dl.jsx)(B,{value:e.value,children:e.label||I.current.getLocaleText(`filterOperator${(0,Al.Z)(e.value)}`)},e.value)))}))]})),(0,Dl.jsx)(kS,(0,bl.Z)({variant:"standard",as:T.components.BaseFormControl},_,H,{className:ce(D.valueInput,_.className,H.className),ownerState:T,children:null!=W&&W.InputComponent?(0,Dl.jsx)(W.InputComponent,(0,bl.Z)({apiRef:I,item:c,applyValue:f,focusElementRef:O},W.InputComponentProps,z)):null}))]}))})),DS=["linkOperators","columnsSort","filterFormProps","children"],OS=n.forwardRef((function(e,t){var r;const o=Ns(),i=Is(),a=Ss(o,fu),l=Ss(o,ws),s=n.useRef(null),{linkOperators:u=[kv.And,kv.Or],columnsSort:c,filterFormProps:d}=e,p=(0,vl.Z)(e,DS),f=n.useCallback((e=>{o.current.upsertFilterItem(e)}),[o]),h=n.useCallback((e=>{o.current.setFilterLinkOperator(e)}),[o]),m=n.useCallback((()=>{const e=l.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[l]),g=n.useMemo((()=>{if(a.items.length)return a.items;const e=m();return e?[e]:[]}),[a.items,m]),v=g.length>1,b=n.useCallback((e=>{const t=1===g.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,g.length]);return n.useEffect((()=>{u.length>0&&a.linkOperator&&!u.includes(a.linkOperator)&&h(u[0])}),[u,h,a.linkOperator]),n.useEffect((()=>{g.length>0&&s.current.focus()}),[g.length]),(0,Dl.jsxs)(xS,(0,bl.Z)({ref:t},p,{children:[(0,Dl.jsx)(hS,{children:g.map(((e,t)=>(0,Dl.jsx)(TS,(0,bl.Z)({item:e,applyFilterChanges:f,deleteFilter:b,hasMultipleFilters:v,showMultiFilterOperators:t>0,multiFilterOperator:a.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:h,focusElementRef:t===g.length-1?s:null,linkOperators:u,columnsSort:c},d),null==e.id?t:e.id)))}),!i.disableMultipleColumnsFiltering&&(0,Dl.jsx)(vS,{children:(0,Dl.jsx)(i.components.BaseButton,(0,bl.Z)({onClick:()=>{const e=m();e&&o.current.upsertFilterItems([...g,e])},startIcon:(0,Dl.jsx)(td,{})},null==(r=i.componentsProps)?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}));function jS(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var FS=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jS(e))&&(r&&(r+=" "),r+=t);return r},_S=(0,a(2360).ZP)(),ZS=a(7333),BS=a(8010);const zS=["sx"];function HS(e){const{sx:t}=e,n=(0,vl.Z)(e,zS),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:BS.Z;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,Kb.P)(n)?(0,bl.Z)({},r,n):r}:(0,bl.Z)({},r,t),(0,bl.Z)({},o,{sx:i})}var $S=a(6268),qS=a(5408),WS=a(2605);const US=["component","direction","spacing","divider","children","className","useFlexGap"],VS=(0,$S.Z)(),GS=_S("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function YS(e){return(0,ZS.Z)({props:e,name:"MuiStack",defaultTheme:VS})}function KS(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,o,i)=>(e.push(o),i<r.length-1&&e.push(n.cloneElement(t,{key:`separator-${i}`})),e)),[])}const QS=({ownerState:e,theme:t})=>{let n=(0,bl.Z)({display:"flex",flexDirection:"column"},(0,qS.k9)({theme:t},(0,qS.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,WS.hB)(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=(0,qS.P$)({values:e.direction,base:o}),a=(0,qS.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const l=(t,n)=>{return e.useFlexGap?{gap:(0,WS.NA)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,WS.NA)(r,t)}};var o};n=(0,Kb.Z)(n,(0,qS.k9)({theme:t},a,l))}return n=(0,qS.dt)(t.breakpoints,n),n},XS=function(e={}){const{createStyledComponent:t=GS,useThemeProps:r=YS,componentName:o="MuiStack"}=e,i=t(QS),a=n.forwardRef((function(e,t){const n=HS(r(e)),{component:a="div",direction:l="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:p=!1}=n,f=(0,vl.Z)(n,US),h={direction:l,spacing:s,useFlexGap:p},m=(0,wl.Z)({root:["root"]},(e=>(0,Rl.Z)(o,e)),{});return(0,Dl.jsx)(i,(0,bl.Z)({as:a,ownerState:h,ref:t,className:FS(m.root,d)},f,{children:u?KS(c,u):c}))}));return a}({createStyledComponent:(0,Pl.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,kl.Z)({props:e,name:"MuiStack"})});var JS=XS;function eE(e){return(0,Rl.Z)("MuiTypography",e)}(0,Ll.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nE=(0,Pl.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,Al.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,bl.Z)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),rE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var iE=n.forwardRef((function(e,t){const n=(0,kl.Z)({props:e,name:"MuiTypography"}),r=(e=>oE[e]||e)(n.color),o=HS((0,bl.Z)({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=rE}=o,f=(0,vl.Z)(o,tE),h=(0,bl.Z)({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||rE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,"inherit"!==e.align&&`align${(0,Al.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,wl.Z)(l,eE,a)})(h);return(0,Dl.jsx)(nE,(0,bl.Z)({as:m,ref:t,ownerState:h,className:(0,yl.Z)(g.root,a)},f))}));function aE(e){return(0,Rl.Z)("MuiFormControlLabel",e)}var lE=(0,Ll.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const sE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uE=(0,Pl.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lE.label}`]:t.label},t.root,t[`labelPlacement${(0,Al.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,bl.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${lE.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${lE.label}`]:{[`&.${lE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),cE=(0,Pl.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${lE.error}`]:{color:(e.vars||e).palette.error.main}})));var dE=n.forwardRef((function(e,t){var r,o;const i=(0,kl.Z)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:l={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:f,slotProps:h={}}=i,m=(0,vl.Z)(i,sE),g=xc(),v=null!=(r=null!=u?u:s.props.disabled)?r:null==g?void 0:g.disabled,b=null!=f?f:s.props.required,y={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==i[e]&&(y[e]=i[e])}));const w=yc({props:i,muiFormControl:g,states:["error"]}),x=(0,bl.Z)({},i,{disabled:v,labelPlacement:p,required:b,error:w.error}),C=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,Al.Z)(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,wl.Z)(a,aE,t)})(x),S=null!=(o=h.typography)?o:l.typography;let E=d;return null==E||E.type===iE||c||(E=(0,Dl.jsx)(iE,(0,bl.Z)({component:"span"},S,{className:(0,yl.Z)(C.label,null==S?void 0:S.className),children:E}))),(0,Dl.jsxs)(uE,(0,bl.Z)({className:(0,yl.Z)(C.root,a),ownerState:x,ref:t},m,{children:[n.cloneElement(s,y),b?(0,Dl.jsxs)(JS,{display:"block",children:[E,(0,Dl.jsxs)(cE,{ownerState:x,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):E]}))}));const pE=["className"],fE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((({theme:e})=>({padding:e.spacing(1)})));function hE(e){const{className:t}=e,n=(0,vl.Z)(e,pE),r=Is(),o=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["panelHeader"]},es,t)})(r);return(0,Dl.jsx)(fE,(0,bl.Z)({className:ce(t,o.root),ownerState:r},n))}const mE=["sort","searchPredicate","autoFocusSearchField"],gE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),vE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${sx.root}`]:{marginRight:e.spacing(.5)}}))),bE=((0,Pl.ZP)(hh)({justifyContent:"flex-end"}),new Intl.Collator),yE=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,wE=["children","className","classes"],xE=(0,Ll.Z)("MuiDataGrid",["panel","paper"]),CE=(0,Pl.ZP)(Jf,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),SE=(0,Pl.ZP)(uh,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}))),EE=n.forwardRef(((e,t)=>{var r;const{children:o,className:i}=e,a=(0,vl.Z)(e,wE),l=Ns(),s=Is(),u=xE,[c,d]=n.useState(!1),p=n.useCallback((()=>{l.current.hidePreferences()}),[l]),f=n.useCallback((e=>{xm(e.key)&&l.current.hidePreferences()}),[l]),h=n.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}]),[]),m=null==(r=l.current.columnHeadersContainerElementRef)?void 0:r.current;return m?(0,Dl.jsx)(CE,(0,bl.Z)({ref:t,placement:"bottom-start",className:ce(i,u.panel),ownerState:s,anchorEl:m,modifiers:h},a,{children:(0,Dl.jsx)(ig,{mouseEvent:"onMouseUp",onClickAway:p,children:(0,Dl.jsx)(SE,{className:u.paper,ownerState:s,elevation:8,onKeyDown:f,children:c&&o})})})):null})),NE=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],ME=["changeReason"],IE=({width:e})=>{if(!e)return null;const t={width:e};return(0,Dl.jsx)("div",{className:"MuiDataGrid-cell",style:t})},AE=n.forwardRef((function(e,t){var r;const{selected:o,rowId:i,row:a,index:l,style:s,position:u,rowHeight:c,className:d,visibleColumns:p,renderedColumns:f,containerWidth:h,firstColumnToRender:m,cellFocus:g,cellTabIndex:v,editRowsState:b,isLastVisible:y=!1,onClick:w,onDoubleClick:x,onMouseEnter:C,onMouseLeave:S}=e,E=(0,vl.Z)(e,NE),N=Ns(),M=n.useRef(null),I=Is(),A=Hv(N,I),k=Ss(N,ys),P=Ss(N,cu),L=Ss(N,$s),R=Ss(N,Rs),T=(0,Ql.Z)(M,t),D=l+R+2,{hasScrollX:O,hasScrollY:j}=null!=(r=N.current.getRootDimensions())?r:{hasScrollX:!1,hasScrollY:!1},F=(e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e,l={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]};return(0,wl.Z)(l,es,a)})({selected:o,isLastVisible:y,classes:I.classes,editing:N.current.getRowMode(i)===Dm.Edit,editable:I.editMode===Rm.Row,rowHeight:c});n.useLayoutEffect((()=>{"auto"===c&&M.current&&"undefined"==typeof ResizeObserver&&N.current.unstable_storeRowHeightMeasurement(i,M.current.clientHeight,u)}),[N,c,i,u]),n.useLayoutEffect((()=>{if(A.range){const e=N.current.getRowIndexRelativeToVisibleRows(i);null!=e&&N.current.unstable_setLastMeasuredRowIndex(e)}const e=M.current;if(!e||"auto"!==c||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;N.current.unstable_storeRowHeightMeasurement(i,n,u)}));return t.observe(e),()=>t.disconnect()}),[N,A.range,l,c,i,u]);const _=n.useCallback(((e,t)=>n=>{(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&N.current.getRow(i)&&(N.current.publishEvent(e,N.current.getRowParams(i),n),t&&t(n))}),[N,i]),Z=n.useCallback((e=>{const t=function(e,t){return e.closest(`.${t}`)}(e.target,ts.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===bv.field)return;if(n===qv)return;if("__reorder__"===n)return;if(N.current.getCellMode(i,n)===Tm.Edit)return;if(N.current.getColumn(n).type===kg)return}_("rowClick",w)(e)}),[N,w,_,i]),B=n.useCallback(((e,t)=>{var n;const r=N.current.getCellParams(i,e.field),o=[],l=I.disableColumnReorder&&e.disableReorder||!I.rowReordering&&!!P.length&&L>1&&Object.keys(b).length>0;e.cellClassName&&o.push(ce("function"==typeof e.cellClassName?e.cellClassName(r):e.cellClassName));const s=b[i]?b[i][e.field]:null;let u=null;var d;if(null==s&&e.renderCell&&(u=e.renderCell((0,bl.Z)({},r,{api:N.current})),o.push(ce(ts["cell--withRenderer"],null==(d=I.classes)?void 0:d["cell--withRenderer"]))),null!=s&&e.renderEditCell){var p;let t=a;N.current.unstable_getRowWithUpdatedValues&&(t=N.current.unstable_getRowWithUpdatedValues(i,e.field));const n=(0,vl.Z)(s,ME),l=(0,bl.Z)({},r,{row:t},n,{api:N.current});u=e.renderEditCell(l),o.push(ce(ts["cell--editing"],null==(p=I.classes)?void 0:p["cell--editing"]))}I.getCellClassName&&o.push(I.getCellClassName(r));const f=null!==g&&g.id===i&&g.field===e.field,h=null!==v&&v.id===i&&v.field===e.field&&"view"===r.cellMode?0:-1;return(0,Dl.jsx)(I.components.Cell,(0,bl.Z)({value:r.value,field:e.field,width:t.width,rowId:i,height:c,showRightBorder:t.showRightBorder,formattedValue:r.formattedValue,align:e.align||"left",cellMode:r.cellMode,colIndex:t.indexRelativeToAllColumns,isEditable:r.isEditable,hasFocus:f,tabIndex:h,className:ce(o),colSpan:t.colSpan,disableDragEvents:l},null==(n=I.componentsProps)?void 0:n.cell,{children:u}),e.field)}),[N,v,b,g,I,a,c,i,L,P.length]),z=N.current.unstable_getRowInternalSizes(i);let H=c;if("auto"===H&&z){let e=0;const t=Object.entries(z).reduce(((t,[n,r])=>/^base[A-Z]/.test(n)?(e+=1,r>t?r:t):t),0);t>0&&e>1&&(H=t)}const $=(0,bl.Z)({},s,{maxHeight:"auto"===c?"none":c,minHeight:H});if(null!=z&&z.spacingTop&&($["border"===I.rowSpacingType?"borderTopWidth":"marginTop"]=z.spacingTop),null!=z&&z.spacingBottom){const e="border"===I.rowSpacingType?"borderBottomWidth":"marginBottom";let t=$[e];"number"!=typeof t&&(t=parseInt(t||"0",10)),t+=z.spacingBottom,$[e]=t}const q=N.current.unstable_applyPipeProcessors("rowClassName",[],i);if("function"==typeof I.getRowClassName){var W;const e=l-((null==(W=A.range)?void 0:W.firstRowIndex)||0),t=(0,bl.Z)({},N.current.getRowParams(i),{isFirstVisible:0===e,isLastVisible:e===A.rows.length-1,indexRelativeToCurrentPage:e});q.push(I.getRowClassName(t))}const U=function(e,t,n){const r=function(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}}(e);return()=>t+(n-t)*r()}(1e4,20,80),V=[];for(let e=0;e<f.length;e+=1){const t=f[e],n=m+e,r=n===p.length-1,o=r?!(r&&O&&!j)&&I.disableExtendRowFullWidth:I.showCellRightBorder,l=N.current.unstable_getCellColSpanInfo(i,n);if(l&&!l.spannedByColSpan)if(a){const{colSpan:e,width:r}=l.cellProps,i={width:r,colSpan:e,showRightBorder:o,indexRelativeToAllColumns:n};V.push(B(t,i))}else{const{width:e}=l.cellProps,n=Math.round(U());V.push((0,Dl.jsx)(I.components.SkeletonCell,{width:e,contentWidth:n,field:t.field,align:t.align},t.field))}}const G=h-k,Y=a?{onClick:Z,onDoubleClick:_("rowDoubleClick",x),onMouseEnter:_("rowMouseEnter",C),onMouseLeave:_("rowMouseLeave",S)}:null;return(0,Dl.jsxs)("div",(0,bl.Z)({ref:T,"data-id":i,"data-rowindex":l,role:"row",className:ce(...q,F.root,d),"aria-rowindex":D,"aria-selected":o,style:$},Y,E,{children:[V,G>0&&(0,Dl.jsx)(IE,{width:G})]}))})),kE=["sortingOrder"],PE=n.memo((function(e){const{sortingOrder:t}=e,n=(0,vl.Z)(e,kE),r=Is(),[o]=t,i="asc"===o?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return i?(0,Dl.jsx)(i,(0,bl.Z)({},n)):null})),LE=["error","hasError","errorInfo"],RE=n.forwardRef((function(e,t){const{error:n}=e,r=(0,vl.Z)(e,LE),o=Ns(),i=o.current.getLocaleText("errorOverlayDefaultLabel"),a=Ss(o,Ps);return(0,Dl.jsx)(AC,(0,bl.Z)({ref:t,sx:{width:"100%",minHeight:2*a}},r,{children:(null==n?void 0:n.message)||i}))})),TE=n.forwardRef((function(e,t){const n=Ns().current.getLocaleText("noResultsOverlayLabel");return(0,Dl.jsx)(AC,(0,bl.Z)({ref:t},e,{children:n}))})),DE={BooleanCellTrueIcon:ad,BooleanCellFalseIcon:ed,ColumnMenuIcon:Jc,OpenFilterButtonIcon:Wc,FilterPanelDeleteIcon:ed,ColumnFilteredIcon:Uc,ColumnSelectorIcon:Gc,ColumnUnsortedIcon:PE,ColumnSortedAscendingIcon:zc,ColumnSortedDescendingIcon:Hc,ColumnResizeIcon:Yc,DensityCompactIcon:Kc,DensityStandardIcon:Qc,DensityComfortableIcon:Xc,ExportIcon:id,MoreActionsIcon:ld,TreeDataCollapseIcon:qc,TreeDataExpandIcon:$c,GroupingCriteriaCollapseIcon:qc,GroupingCriteriaExpandIcon:$c,DetailPanelExpandIcon:td,DetailPanelCollapseIcon:nd,RowReorderIcon:od,QuickFilterIcon:Vc,QuickFilterClearIcon:ed},OE=(0,bl.Z)({},DE,{BaseCheckbox:Yb,BaseTextField:ax,BaseFormControl:Ry,BaseSelect:tx,BaseSwitch:hx,BaseButton:Nx,BaseTooltip:jx,BasePopper:Jf,Cell:function(e){const{align:t,children:r,colIndex:o,cellMode:i,field:a,formattedValue:l,hasFocus:s,height:u,isEditable:c,rowId:d,tabIndex:p,value:f,width:h,className:m,showRightBorder:g,colSpan:v,disableDragEvents:b,onClick:y,onDoubleClick:w,onMouseDown:x,onMouseUp:C,onKeyDown:S,onDragEnter:E,onDragOver:N}=e,M=(0,vl.Z)(e,Fx),I=null==l?f:l,A=n.useRef(null),k=n.useRef(null),P=Ns(),L=(e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${(0,Al.Z)(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,wl.Z)(i,es,o)})({align:t,showRightBorder:g,isEditable:c,classes:Is().classes}),R=n.useCallback((e=>t=>{const n=P.current.getCellParams(d,a||"");P.current.publishEvent(e,n,t),C&&C(t)}),[P,a,C,d]),T=n.useCallback((e=>t=>{const n=P.current.getCellParams(d,a||"");P.current.publishEvent(e,n,t),x&&x(t)}),[P,a,x,d]),D=n.useCallback(((e,t)=>n=>{if(!n.currentTarget.contains(n.target))return;if(!P.current.getRow(d))return;const r=P.current.getCellParams(d,a||"");P.current.publishEvent(e,r,n),t&&t(n)}),[P,a,d]),O={minWidth:h,maxWidth:h,minHeight:u,maxHeight:"auto"===u?"none":u};n.useEffect((()=>{if(!s||i===Tm.Edit)return;const e=(0,Wm.Z)(P.current.rootElementRef.current);if(A.current&&!A.current.contains(e.activeElement)){const e=A.current.querySelector('[tabindex="0"]'),t=k.current||e||A.current;if(void 0===Zx&&document.createElement("div").focus({get preventScroll(){return Zx=!0,!1}}),Zx)t.focus({preventScroll:!0});else{const e=P.current.getScrollPosition();t.focus(),P.current.scroll(e)}}}),[s,i,P]);let j=M.onFocus;const F="actions"===P.current.getColumn(a).type,_=b?null:{onDragEnter:D("cellDragEnter",E),onDragOver:D("cellDragOver",N)};return(0,Dl.jsx)("div",(0,bl.Z)({ref:A,className:ce(m,L.root),role:"cell","data-field":a,"data-colindex":o,"aria-colindex":o+1,"aria-colspan":v,style:O,tabIndex:"view"!==i&&c||F?-1:p,onClick:D("cellClick",y),onDoubleClick:D("cellDoubleClick",w),onMouseDown:T("cellMouseDown"),onMouseUp:R("cellMouseUp"),onKeyDown:D("cellKeyDown",S)},_,M,{onFocus:j,children:(()=>{if(null==r){const e=null==I?void 0:I.toString();return(0,Dl.jsx)("div",{title:e,className:L.content,children:e})}return n.isValidElement(r)&&F?n.cloneElement(r,{focusElementRef:k}):r})()}))},SkeletonCell:function(e){const{align:t,width:n,contentWidth:r}=e,o=(0,vl.Z)(e,Qx),i=(e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${(0,Al.Z)(t)}`]};return(0,wl.Z)(r,es,n)})({classes:Is().classes,align:t});return(0,Dl.jsx)("div",(0,bl.Z)({className:i.root,style:{width:n}},o,{children:(0,Dl.jsx)(Kx,{width:`${r}%`})}))},ColumnHeaderFilterIconButton:function(e){var t;const{counter:r,field:o,onClick:i}=e,a=Ns(),l=Is(),s=(e=>{const{classes:t}=e;return(0,wl.Z)({icon:["filterIcon"]},es,t)})((0,bl.Z)({},e,{classes:l.classes})),u=n.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=rb(a.current.state);t&&n===Zg.filters?a.current.hideFilterPanel():a.current.showFilterPanel(),i&&i(a.current.getColumnHeaderParams(o),e)}),[a,o,i]);if(!r)return null;const c=(0,Dl.jsx)(hh,{onClick:u,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,Dl.jsx)(l.components.ColumnFilteredIcon,{className:s.icon,fontSize:"small"})});return(0,Dl.jsx)(l.components.BaseTooltip,(0,bl.Z)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},null==(t=l.componentsProps)?void 0:t.baseTooltip,{children:(0,Dl.jsxs)(aC,{children:[r>1&&(0,Dl.jsx)(rC,{badgeContent:r,color:"default",children:c}),1===r&&c]})}))},ColumnMenu:fC,ErrorOverlay:RE,Footer:SC,Header:EC,Toolbar:null,PreferencesPanel:NC,LoadingOverlay:kC,NoResultsOverlay:TE,NoRowsOverlay:PC,Pagination:dS,FilterPanel:OS,ColumnsPanel:function(e){var t,r,o;const i=Ns(),a=n.useRef(null),l=Ss(i,ms),s=Ss(i,gs),u=Is(),[c,d]=n.useState(""),p=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},es,t)})(u),{sort:f,searchPredicate:h=yE,autoFocusSearchField:m=!0}=e,g=(0,vl.Z)(e,mE),v=n.useMemo((()=>{switch(f){case"asc":return[...l].sort(((e,t)=>bE.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...l].sort(((e,t)=>-bE.compare(e.headerName||e.field,t.headerName||t.field)));default:return l}}),[l,f]),b=e=>{const{name:t}=e.target;i.current.setColumnVisibility(t,!1===s[t])},y=n.useCallback((e=>{if(i.current.unstable_caches.columns.isUsingColumnVisibilityModel){const t=gs(i),n=(0,bl.Z)({},t);return l.forEach((t=>{t.hideable&&(e?delete n[t.field]:n[t.field]=!1)})),i.current.setColumnVisibilityModel(n)}return i.current.updateColumns(l.map((t=>!1!==t.hideable?{field:t.field,hide:!e}:t)))}),[i,l]),w=n.useCallback((e=>{d(e.target.value)}),[]),x=n.useMemo((()=>{if(!c)return v;const e=c.toLowerCase();return v.filter((t=>h(t,e)))}),[v,c,h]),C=n.useRef(null);n.useEffect((()=>{m?a.current.focus():C.current&&"function"==typeof C.current.focus&&C.current.focus()}),[m]);let S=!1;const E=e=>!1===S&&!1!==e.hideable&&(S=!0,!0);return(0,Dl.jsxs)(xS,(0,bl.Z)({},g,{children:[(0,Dl.jsx)(hE,{children:(0,Dl.jsx)(u.components.BaseTextField,(0,bl.Z)({label:i.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:i.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:a,value:c,onChange:w,variant:"standard",fullWidth:!0},null==(t=u.componentsProps)?void 0:t.baseTextField))}),(0,Dl.jsx)(hS,{children:(0,Dl.jsx)(gE,{className:p.root,ownerState:u,children:x.map((e=>{var t;return(0,Dl.jsxs)(vE,{className:p.columnsPanelRow,ownerState:u,children:[(0,Dl.jsx)(dE,{control:(0,Dl.jsx)(u.components.BaseSwitch,(0,bl.Z)({disabled:!1===e.hideable,checked:!1!==s[e.field],onClick:b,name:e.field,size:"small",inputRef:E(e)?C:void 0},null==(t=u.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!u.disableColumnReorder&&!1]},e.field)}))})}),(0,Dl.jsxs)(vS,{children:[(0,Dl.jsx)(u.components.BaseButton,(0,bl.Z)({onClick:()=>y(!1)},null==(r=u.componentsProps)?void 0:r.baseButton,{children:i.current.getLocaleText("columnsPanelHideAllButton")})),(0,Dl.jsx)(u.components.BaseButton,(0,bl.Z)({onClick:()=>y(!0)},null==(o=u.componentsProps)?void 0:o.baseButton,{children:i.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:EE,Row:AE}),jE={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},FE={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:zg.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:Rm.Cell,filterMode:Av,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Av,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Av,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},_E=["className"],ZE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),BE=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,_E),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["virtualScroller"]},es,t)})(o);return(0,Dl.jsx)(ZE,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))})),zE=["className","style"],HE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),$E=n.forwardRef((function(e,t){const{className:n,style:r}=e,o=(0,vl.Z)(e,zE),i=Is(),a=(0,bl.Z)({},i,{overflowedContent:!i.autoHeight&&"auto"===(null==r?void 0:r.minHeight)}),l=(e=>{const{classes:t,overflowedContent:n}=e,r={root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]};return(0,wl.Z)(r,es,t)})(a);return(0,Dl.jsx)(HE,(0,bl.Z)({ref:t,className:ce(l.root,n),ownerState:a,style:r},o))})),qE=["className"],WE=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),UE=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,qE),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["virtualScrollerRenderZone"]},es,t)})(o);return(0,Dl.jsx)(WE,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))})),VE=["style"];function GE(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2);return e<=t[o]?GE(e,t,n,o):GE(e,t,o+1,r)}const YE=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Ru(e-n,r,o),Ru(t+n,r,o)],KE=["className","disableVirtualization"],QE=n.forwardRef((function(e,t){const{className:r,disableVirtualization:o}=e,i=(0,vl.Z)(e,KE),{getRootProps:a,getContentProps:l,getRenderZoneProps:s,getRows:u}=(e=>{var t,r;const o=Ns(),i=Is(),a=Ss(o,vs),{ref:l,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=a.length,getRowProps:p}=e,f=Ss(o,bs),h=Ss(o,ys),m=Ss(o,Ps),g=Ss(o,ev),v=Ss(o,rv),b=Ss(o,Iv),y=Ss(o,ib),w=Ss(o,sv),x=Hv(o,i),C=n.useRef(null),S=n.useRef(null),E=(0,Ql.Z)(l,S),[N,M]=n.useState(null),I=n.useRef(N),A=n.useRef({top:0,left:0}),[k,P]=n.useState({width:null,height:null}),L=n.useRef(h),R=n.useCallback((e=>{var t,n;const r=o.current.unstable_getLastMeasuredRowIndex();let i=r===1/0;null!=(t=x.range)&&t.lastRowIndex&&!i&&(i=r>=x.range.lastRowIndex);const a=Ru(r-((null==(n=x.range)?void 0:n.firstRowIndex)||0),0,b.positions.length);return i||b.positions[a]>=e?GE(e,b.positions):function(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return GE(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,b.positions,a)}),[o,null==(t=x.range)?void 0:t.firstRowIndex,null==(r=x.range)?void 0:r.lastRowIndex,b.positions]),T=n.useCallback((()=>{if(s)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:a.length};const{top:e,left:t}=A.current,n=Math.min(R(e),b.positions.length-1),r=i.autoHeight?n+x.rows.length:R(e+k.height);let l=!1,u=0,c=f.length;const[d,p]=YE({firstIndex:n,lastIndex:r,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:i.rowBuffer});for(let e=d;e<p&&!l;e+=1){const t=x.rows[e];l=o.current.unstable_rowHasAutoHeight(t.id)}return l||(u=GE(t,f),c=GE(t+k.width,f)),{firstRowIndex:n,lastRowIndex:r,firstColumnIndex:u,lastColumnIndex:c}}),[s,R,b.positions.length,i.autoHeight,i.rowBuffer,x.rows,f,a.length,o,k]);(0,Xl.Z)((()=>{s?C.current.style.transform="translate3d(0px, 0px, 0px)":(S.current.scrollLeft=0,S.current.scrollTop=0)}),[s]),(0,Xl.Z)((()=>{P({width:S.current.clientWidth,height:S.current.clientHeight})}),[b.currentPageTotalHeight]);const D=n.useCallback((e=>{P({width:e.width,height:e.height})}),[]);Wu(o,"resize",D);const O=n.useCallback((e=>{const[t,n]=YE({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:i.rowBuffer}),[r]=YE({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:i.columnBuffer}),a=Fg({firstColumnToRender:r,apiRef:o,firstRowToRender:t,lastRowToRender:n,visibleRows:x.rows}),l=Iv(o.current.state).positions[t],s=bs(o)[a];C.current.style.transform=`translate3d(${s}px, ${l}px, 0px)`,"function"==typeof u&&u({top:l,left:s})}),[o,x.rows,u,c,d,i.columnBuffer,i.rowBuffer]),j=n.useCallback((e=>{if(I.current&&((t=e)===(n=I.current)||t.firstRowIndex===n.firstRowIndex&&t.lastRowIndex===n.lastRowIndex&&t.firstColumnIndex===n.firstColumnIndex&&t.lastColumnIndex===n.lastColumnIndex))return void O(e);var t,n;M(e),O(e);const[r,a]=YE({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:i.rowBuffer});o.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:r,lastRowToRender:a}),I.current=e}),[o,M,I,x.rows.length,i.rowBuffer,O]);(0,Xl.Z)((()=>{if(null==k.width)return;const e=T();j(e);const{top:t,left:n}=A.current,r={top:t,left:n,renderContext:e};o.current.publishEvent("rowsScroll",r)}),[o,T,k.width,j]);const F=e=>{const{scrollTop:t,scrollLeft:n}=e.currentTarget;if(A.current.top=t,A.current.left=n,n<0||t<0||!I.current)return;const r=s?I.current:T(),a=Math.abs(r.firstRowIndex-I.current.firstRowIndex),l=Math.abs(r.lastRowIndex-I.current.lastRowIndex),u=Math.abs(r.firstColumnIndex-I.current.firstColumnIndex),c=Math.abs(r.lastColumnIndex-I.current.lastColumnIndex),d=a>=i.rowThreshold||l>=i.rowThreshold||u>=i.columnThreshold||c>=i.columnThreshold||L.current!==h;o.current.publishEvent("rowsScroll",{top:t,left:n,renderContext:d?r:I.current},e),d&&(qe.flushSync((()=>{j(r)})),L.current=h)},_=e=>{o.current.publishEvent("virtualScrollerWheel",{},e)},Z=e=>{o.current.publishEvent("virtualScrollerTouchMove",{},e)},B=k.width&&h>k.width,z=n.useMemo((()=>{const e=Math.max(b.currentPageTotalHeight,1);let t=!1;null!=S&&S.current&&e<=(null==S?void 0:S.current.clientHeight)&&(t=!0);const n={width:B?h:"auto",height:e,minHeight:t?"100%":"auto"};return i.autoHeight&&0===x.rows.length&&(n.height=2*m),n}),[S,h,b.currentPageTotalHeight,x.rows.length,B,i.autoHeight,m]);n.useEffect((()=>{o.current.publishEvent("virtualScrollerContentSizeChange")}),[o,z]),i.autoHeight&&0===x.rows.length&&(z.height=2*m);const H={};B||(H.overflowX="hidden"),i.autoHeight&&(H.overflowY="hidden");const $=n.useCallback((()=>I.current),[]);return o.current.unstable_getRenderContext=$,{renderContext:N,updateRenderZonePosition:O,getRows:(e={renderContext:N})=>{const{renderContext:t,minFirstColumn:n=c,maxLastColumn:r=d,availableSpace:l=k.width,rowIndexOffset:u=0,position:f="center"}=e;if(!t||null==l)return null;const h=s?0:i.rowBuffer,m=s?0:i.columnBuffer,[b,C]=YE({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:h}),S=[];if(e.rows)e.rows.forEach((e=>{S.push(e),o.current.unstable_calculateColSpan({rowId:e.id,minFirstColumn:n,maxLastColumn:r,columns:a})}));else{if(!x.range)return null;for(let e=b;e<C;e+=1){const t=x.rows[e];S.push(t),o.current.unstable_calculateColSpan({rowId:t.id,minFirstColumn:n,maxLastColumn:r,columns:a})}}const[E,M]=YE({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:n,maxLastIndex:r,buffer:m}),I=Fg({firstColumnToRender:E,apiRef:o,firstRowToRender:b,lastRowToRender:C,visibleRows:x.rows}),A=a.slice(I,M),P=[];for(let e=0;e<S.length;e+=1){var L,R;const{id:t,model:n}=S[e],r=b+e===x.rows.length-1,s=o.current.unstable_rowHasAutoHeight(t)?"auto":o.current.unstable_getRowHeight(t);let c;c=null!=w[t]&&o.current.isRowSelectable(t),P.push((0,Dl.jsx)(i.components.Row,(0,bl.Z)({row:n,rowId:t,rowHeight:s,cellFocus:g,cellTabIndex:v,editRowsState:y,renderedColumns:A,visibleColumns:a,firstColumnToRender:I,lastColumnToRender:M,selected:c,index:u+((null==x||null==(L=x.range)?void 0:L.firstRowIndex)||0)+b+e,containerWidth:l,isLastVisible:r,position:f},"function"==typeof p?p(t,n):{},null==(R=i.componentsProps)?void 0:R.row),t))}return P},getRootProps:(e={})=>{let{style:t={}}=e,n=(0,vl.Z)(e,VE);return(0,bl.Z)({ref:E,onScroll:F,onWheel:_,onTouchMove:Z,style:(0,bl.Z)({},t,H)},n)},getContentProps:({style:e={}}={})=>({style:(0,bl.Z)({},e,z)}),getRenderZoneProps:()=>({ref:C})}})({ref:t,disableVirtualization:o});return(0,Dl.jsx)(BE,(0,bl.Z)({className:r},a(i),{children:(0,Dl.jsx)($E,(0,bl.Z)({},l(),{children:(0,Dl.jsx)(UE,(0,bl.Z)({},s(),{children:u()}))}))}))}));function XE(e){const{direction:t,index:n,sortingOrder:r}=e,o=Ns(),i=Is(),a=(e=>{const{classes:t}=e;return(0,wl.Z)({icon:["sortIcon"]},es,t)})((0,bl.Z)({},e,{classes:i.classes})),l=function(e,t,n,r){let o;const i={};return"asc"===t?o=e.ColumnSortedAscendingIcon:"desc"===t?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?(0,Dl.jsx)(o,(0,bl.Z)({fontSize:"small",className:n},i)):null}(i.components,t,a.icon,r);if(!l)return null;const s=(0,Dl.jsx)(hh,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:l});return(0,Dl.jsxs)(aC,{children:[null!=n&&(0,Dl.jsx)(rC,{badgeContent:n,color:"default",children:s}),null==n&&s]})}const JE=n.memo(XE),eN=n.memo((e=>{const{column:t,open:r,columnMenuId:o,columnMenuButtonId:i,iconButtonRef:a}=e,l=Ns(),s=Is(),u=(e=>{const{classes:t,open:n}=e,r={root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]};return(0,wl.Z)(r,es,t)})((0,bl.Z)({},e,{classes:s.classes})),c=n.useCallback((e=>{e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(t.field)}),[l,t.field]);return(0,Dl.jsx)("div",{className:u.root,children:(0,Dl.jsx)(hh,{ref:a,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),title:l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:c,"aria-expanded":r?"true":void 0,"aria-haspopup":"true","aria-controls":o,id:i,children:(0,Dl.jsx)(s.components.ColumnMenuIcon,{fontSize:"small"})})})}));function tN({columnMenuId:e,columnMenuButtonId:t,ContentComponent:r,contentComponentProps:o,field:i,open:a,target:l,onExited:s}){const u=Ns(),c=u.current.getColumn(i),d=n.useCallback((e=>{e.stopPropagation(),u.current.hideColumnMenu()}),[u]);return l?(0,Dl.jsx)(Mg,{placement:"bottom-"+("right"===c.align?"start":"end"),open:a,target:l,onClickAway:d,onExited:s,children:(0,Dl.jsx)(r,(0,bl.Z)({currentColumn:c,hideMenu:d,open:a,id:e,labelledby:t},o))}):null}const nN=["className"],rN=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})((({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium}))),oN=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,nN),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["columnHeaderTitle"]},es,t)})(o);return(0,Dl.jsx)(rN,(0,bl.Z)({ref:t,className:ce(i.root,n),ownerState:o},r))}));function iN(e){var t;const{label:r,description:o,columnWidth:i}=e,a=Is(),l=n.useRef(null),[s,u]=n.useState("");return n.useEffect((()=>{if(!o&&l&&l.current){const t=(e=l.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;u(t?r:"")}var e}),[l,i,o,r]),(0,Dl.jsx)(a.components.BaseTooltip,(0,bl.Z)({title:o||s},null==(t=a.componentsProps)?void 0:t.baseTooltip,{children:(0,Dl.jsx)(oN,{ref:l,children:r})}))}const aN=["resizable","resizing","height","side"];var lN;function sN(e){const{height:t,side:r=lN.Right}=e,o=(0,vl.Z)(e,aN),i=Is(),a=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,Al.Z)(o)}`],icon:["iconSeparator"]};return(0,wl.Z)(i,es,r)})((0,bl.Z)({},e,{side:r,classes:i.classes})),l=n.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,Dl.jsx)("div",(0,bl.Z)({className:a.root,style:{minHeight:t,opacity:i.showColumnRightBorder?0:1}},o,{onClick:l,children:(0,Dl.jsx)(i.components.ColumnResizeIcon,{className:a.icon})}))}!function(e){e.Left="left",e.Right="right"}(lN||(lN={}));const uN=n.memo(sN),cN=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],dN=n.forwardRef((function(e,t){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:l,sortDirection:s,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:p,headerComponent:f,description:h,width:m,columnMenuIconButton:g=null,columnMenu:v=null,columnTitleIconButtons:b=null,headerClassName:y,label:w,resizable:x,draggableContainerProps:C,columnHeaderSeparatorProps:S,disableHeaderSeparator:E}=e,N=(0,vl.Z)(e,cN),M=Ns(),I=Is(),A=n.useRef(null),[k,P]=n.useState(o),L=(0,Ql.Z)(A,t);let R="none";return null!=s&&(R="asc"===s?"ascending":"descending"),n.useEffect((()=>{k||P(o)}),[k,o]),n.useLayoutEffect((()=>{const e=M.current.state.columnMenu;if(u&&!e.open){const e=A.current.querySelector('[tabindex="0"]')||A.current;null==e||e.focus(),M.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[M,u]),(0,Dl.jsxs)("div",(0,bl.Z)({ref:L,className:ce(r.root,y),style:{height:a,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":R,"aria-label":null==f?w:void 0},N,{children:[(0,Dl.jsxs)("div",(0,bl.Z)({className:r.draggableContainer,draggable:p},C,{children:[(0,Dl.jsxs)("div",{className:r.titleContainer,children:[(0,Dl.jsx)("div",{className:r.titleContainerContent,children:void 0!==f?f:(0,Dl.jsx)(iN,{label:w,description:h,columnWidth:m})}),b]}),g]})),!E&&(0,Dl.jsx)(uN,(0,bl.Z)({resizable:!I.disableColumnResize&&!!x,resizing:l,height:a,side:d},S)),v]}))}));function pN(e){var t,r,o,i,a;const{column:l,columnMenuOpen:s,colIndex:u,headerHeight:c,isResizing:d,isLastColumn:p,sortDirection:f,sortIndex:h,filterItemsCounter:m,hasFocus:g,tabIndex:v,extendRowFullWidth:b,disableReorder:y,separatorSide:w}=e,x=Ns(),C=Is(),S=n.useRef(null),E=(0,sd.Z)(),N=(0,sd.Z)(),M=n.useRef(null),[I,A]=n.useState(s),{hasScrollX:k,hasScrollY:P}=null!=(t=x.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},L=n.useMemo((()=>!C.disableColumnReorder&&!y&&!l.disableReorder),[C.disableColumnReorder,y,l.disableReorder]);let R;l.renderHeader&&(R=l.renderHeader(x.current.getColumnHeaderParams(l.field)));const T=p?!(p&&k&&!P||b):C.showColumnRightBorder,D=(e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:a}=e,l=null!=o,s=null!=a&&a>0,u="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",s&&"columnHeader--filtered",u&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,wl.Z)(c,es,n)})((0,bl.Z)({},e,{classes:C.classes,showRightBorder:T})),O=n.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&x.current.publishEvent(e,x.current.getColumnHeaderParams(l.field),t)}),[x,l.field]),j=n.useMemo((()=>({onClick:O("columnHeaderClick"),onDoubleClick:O("columnHeaderDoubleClick"),onMouseOver:O("columnHeaderOver"),onMouseOut:O("columnHeaderOut"),onMouseEnter:O("columnHeaderEnter"),onMouseLeave:O("columnHeaderLeave"),onKeyDown:O("columnHeaderKeyDown"),onFocus:O("columnHeaderFocus"),onBlur:O("columnHeaderBlur")})),[O]),F=n.useMemo((()=>L?{onDragStart:O("columnHeaderDragStart"),onDragEnter:O("columnHeaderDragEnter"),onDragOver:O("columnHeaderDragOver"),onDragEnd:O("columnHeaderDragEnd")}:{}),[L,O]),_=n.useMemo((()=>({onMouseDown:O("columnSeparatorMouseDown")})),[O]);n.useEffect((()=>{I||A(s)}),[I,s]);const Z=n.useCallback((()=>{A(!1)}),[]),B=!C.disableColumnMenu&&!l.disableColumnMenu&&(0,Dl.jsx)(eN,{column:l,columnMenuId:E,columnMenuButtonId:N,open:I,iconButtonRef:M}),z=(0,Dl.jsx)(tN,{columnMenuId:E,columnMenuButtonId:N,field:l.field,open:s,target:M.current,ContentComponent:C.components.ColumnMenu,contentComponentProps:null==(r=C.componentsProps)?void 0:r.columnMenu,onExited:Z}),H=null!=(o=l.sortingOrder)?o:C.sortingOrder,$=(0,Dl.jsxs)(n.Fragment,{children:[!C.disableColumnFilter&&(0,Dl.jsx)(C.components.ColumnHeaderFilterIconButton,(0,bl.Z)({field:l.field,counter:m},null==(i=C.componentsProps)?void 0:i.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&(0,Dl.jsx)(JE,{direction:f,index:h,sortingOrder:H})]});n.useLayoutEffect((()=>{const e=x.current.state.columnMenu;if(g&&!e.open){const e=S.current.querySelector('[tabindex="0"]')||S.current;null==e||e.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[x,g]);const q="function"==typeof l.headerClassName?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,W=null!=(a=l.headerName)?a:l.field;return(0,Dl.jsx)(dN,(0,bl.Z)({ref:S,classes:D,columnMenuOpen:s,colIndex:u,height:c,isResizing:d,sortDirection:f,hasFocus:g,tabIndex:v,separatorSide:w,isDraggable:L,headerComponent:R,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:B,columnTitleIconButtons:$,headerClassName:q,label:W,resizable:!C.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:z,draggableContainerProps:F,columnHeaderSeparatorProps:_},j))}function fN(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:a,fields:l,height:s,colIndex:u,isLastColumn:c,extendRowFullWidth:d}=e,p=Is(),f=Ns(),h=Ss(f,$g),{hasScrollX:m,hasScrollY:g}=null!=(t=f.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},v=r?h[r]:{},{headerName:b=(null!=r?r:""),description:y="",headerAlign:w}=v;let x;const C=r&&(null==(n=h[r])?void 0:n.renderHeaderGroup),S={groupId:r,headerName:b,description:y,depth:i,maxDepth:a,fields:l,colIndex:u,isLastColumn:c};r&&C&&(x=C(S));const E=c?!(c&&m&&!g||d):p.showColumnRightBorder,N=p.showColumnRightBorder,M=(0,bl.Z)({},e,{classes:p.classes,showRightBorder:E,showColumnBorder:N,headerAlign:w,depth:i,isDragging:!1}),I=null!=b?b:r,A=(0,cp.Z)(),k=null===r?`empty-group-cell-${A}`:r,P=(e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:a}=e,l={root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",null===a?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,wl.Z)(l,es,t)})(M),L="function"==typeof v.headerClassName?v.headerClassName(S):v.headerClassName;return(0,Dl.jsx)(dN,{classes:P,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:x,headerClassName:L,description:y,elementId:k,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:I,"aria-colspan":l.length,"data-fields":`|-${l.join("-|-")}-|`,disableHeaderSeparator:!0})}const hN=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"}))),mN=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ts["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ts["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ts["scrollArea--left"]}`]:{left:0},[`&.${ts["scrollArea--right"]}`]:{right:0}})));function gN(e){const{scrollDirection:t}=e,r=n.useRef(null),o=Ns(),i=n.useRef(),[a,l]=n.useState(!1),s=Ss(o,Ls),u=n.useRef({left:0,top:0}),c=Is(),d=(0,bl.Z)({},c,{scrollDirection:t}),p=(e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return(0,wl.Z)(r,es,n)})(d),f=n.useCallback((e=>{u.current=e}),[]),h=n.useCallback((e=>{let n;if("left"===t)n=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI: Wrong drag direction");n=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}n=1.5*(n-1)+1,clearTimeout(i.current),i.current=setTimeout((()=>{o.current.scroll({left:u.current.left+n,top:u.current.top})}))}),[t,o]);n.useEffect((()=>()=>{clearTimeout(i.current)}),[]);const m=n.useCallback((()=>{l((e=>!e))}),[]);return Wu(o,"rowsScroll",f),Wu(o,"columnHeaderDragStart",m),Wu(o,"columnHeaderDragEnd",m),a?(0,Dl.jsx)(mN,{ref:r,className:ce(p.root),ownerState:d,onDragOver:h,style:{height:s}}):null}const vN=n.memo(gN),bN=["className"],yN=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})((({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:`1px solid ${"light"===e.palette.mode?(0,Jl.$n)((0,Jl.Fq)(e.palette.divider,1),.88):(0,Jl._j)((0,Jl.Fq)(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius}))),wN=n.forwardRef((function(e,t){const{className:n}=e,r=(0,vl.Z)(e,bN),o=Is(),i=(e=>{const{classes:t}=e;return(0,wl.Z)({root:["columnHeaders"]},es,t)})(o);return(0,Dl.jsx)(yN,(0,bl.Z)({ref:t,className:ce(n,i.root),ownerState:o},r))})),xN=["isDragging","className"],CN=(0,Pl.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ts.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ts.columnHeaderDropZone} .${ts.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ts["columnHeadersInner--scrollable"]} .${ts.columnHeader}:last-child`]:{borderRight:"none"}}))),SN=n.forwardRef((function(e,t){var n,r;const{isDragging:o,className:i}=e,a=(0,vl.Z)(e,xN),l=Ns(),s=Is(),u=(0,bl.Z)({},s,{isDragging:o,hasScrollX:null!=(n=null==(r=l.current.getRootDimensions())?void 0:r.hasScrollX)&&n}),c=(e=>{const{isDragging:t,hasScrollX:n,classes:r}=e,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,wl.Z)(o,es,r)})(u);return(0,Dl.jsx)(CN,(0,bl.Z)({ref:t,className:ce(i,c.root),ownerState:u},a))})),EN=["innerRef","className"],NN=n.forwardRef((function(e,t){const{innerRef:r}=e,o=(0,vl.Z)(e,EN),{isDragging:i,getRootProps:a,getInnerProps:l,getColumnHeaders:s,getColumnGroupHeaders:u}=(e=>{const{innerRef:t,minColumnIndex:r=0}=e,[o,i]=n.useState(""),[a,l]=n.useState(""),s=Ns(),u=Ss(s,vs),c=Ss(s,bs),d=Ss(s,ov),p=Ss(s,rv),f=Ss(s,tv),h=Ss(s,Ls),m=Ss(s,Rs),g=Ss(s,Ds),v=Ss(s,Eu),b=Ss(s,du),y=Ss(s,rc),w=Is(),x=n.useRef(null),C=(0,Ql.Z)(t,x),[S,E]=n.useState(null),N=n.useRef(S),M=n.useRef(0),I=Hv(s,w);n.useEffect((()=>{s.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[s]);const A=n.useRef(is(_g,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),k=n.useCallback((e=>{const[t,n]=YE({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:I.rows.length,buffer:w.rowBuffer}),o=A.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:r,columnBuffer:w.columnBuffer,firstRowToRender:t,lastRowToRender:n,apiRef:s,visibleRows:I.rows}),i=o>0?M.current-c[o]:M.current;x.current.style.transform=`translate3d(${-i}px, 0px, 0px)`}),[c,r,w.columnBuffer,s,I.rows,w.rowBuffer]);n.useLayoutEffect((()=>{S&&k(S)}),[S,k]);const P=n.useCallback((({left:e,renderContext:t=null},n)=>{var r,o;if(!x.current)return;if(M.current===e&&(null==(r=N.current)?void 0:r.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(o=N.current)?void 0:o.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;M.current=e;let i=!1;t===N.current&&N.current?i=!0:(function(e){return!!e.target}(n)?(qe.flushSync((()=>{E(t)})),i=!0):E(t),N.current=t),t&&i&&k(t)}),[k]),L=n.useCallback((e=>l(e.field)),[]),R=n.useCallback((()=>l("")),[]),T=n.useCallback((e=>i(e.field)),[]),D=n.useCallback((()=>i("")),[]);Wu(s,"columnResizeStart",L),Wu(s,"columnResizeStop",R),Wu(s,"columnHeaderDragStart",T),Wu(s,"columnHeaderDragEnd",D),Wu(s,"rowsScroll",P);const O=e=>{const{renderContext:t=S,minFirstColumn:n=r,maxLastColumn:o=u.length}=e||{};if(!t)return null;const[i,a]=YE({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:I.rows.length,buffer:w.rowBuffer}),l=A.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,apiRef:s,firstRowToRender:i,lastRowToRender:a,visibleRows:I.rows}),c=Math.min(t.lastColumnIndex+w.columnBuffer,o);return{renderedColumns:u.slice(l,c),firstColumnToRender:l,lastColumnToRender:c,minFirstColumn:n,maxLastColumn:o}},j=(e=[],t)=>e.slice(0,t+1),F={minHeight:g,maxHeight:g,lineHeight:`${h}px`};return{renderContext:S,getColumnHeaders:(e,t={})=>{const n=O(e);if(null==n)return null;const{renderedColumns:r,firstColumnToRender:i}=n,l=[];for(let e=0;e<r.length;e+=1){const n=r[e],s=i+e,c=0===s,m=!(null===d&&null===p),g=null!==d&&d.field===n.field||c&&!m?0:-1,x=null!==f&&f.field===n.field,C=y.open&&y.field===n.field;l.push((0,Dl.jsx)(pN,(0,bl.Z)({},b[n.field],{columnMenuOpen:C,filterItemsCounter:v[n.field]&&v[n.field].length,headerHeight:h,isDragging:n.field===o,column:n,colIndex:s,isResizing:a===n.field,isLastColumn:s===u.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:x,tabIndex:g},t),n.field))}return(0,Dl.jsx)(hN,{role:"row","aria-rowindex":m+1,ownerState:w,children:l})},getColumnGroupHeaders:e=>{if(0===m)return null;const t=O(e);if(null==t||0===t.renderedColumns.length)return null;const{renderedColumns:n,firstColumnToRender:o,lastColumnToRender:i,maxLastColumn:a}=t,l=[],s=[];for(let e=0;e<m;e+=1){var c,d,p;const t=[];let l=0,h=o-1;const m=null==(c=u[o])||null==(d=c.groupPath)?void 0:d[e],w=j(null==(p=u[o])?void 0:p.groupPath,e);for(;null!==m&&h>=r&&null!=(f=u[h])&&f.groupPath&&Tu(j(null==(g=u[h])?void 0:g.groupPath,e),w);){var f,g,v;const e=u[h];var b,y;l+=null!=(v=e.computedWidth)?v:0,0===t.length?t.push({width:null!=(b=e.computedWidth)?b:0,fields:[e.field],groupId:m,groupParents:w,colIndex:h}):(t[0].width+=null!=(y=e.computedWidth)?y:0,t[0].fields.push(e.field),t[0].colIndex=h),h-=1}const N=n.reduce(((t,n,r)=>{var i;const a=t[t.length-1];var l,s,u;return n.groupPath&&n.groupPath.length>e?a&&a.groupId===n.groupPath[e]?[...t.slice(0,t.length-1),(0,bl.Z)({},a,{width:a.width+(null!=(s=n.computedWidth)?s:0),fields:[...a.fields,n.field]})]:[...t,{groupId:n.groupPath[e],groupParents:j(n.groupPath,e),width:null!=(l=n.computedWidth)?l:0,fields:[n.field],colIndex:o+r}]:a&&null===a.groupId&&Tu(j(n.groupPath,e),a.groupParents)?[...t.slice(0,t.length-1),(0,bl.Z)({},a,{width:a.width+(null!=(u=n.computedWidth)?u:0),fields:[...a.fields,n.field]})]:[...t,{groupId:null,groupParents:j(n.groupPath,e),width:null!=(i=n.computedWidth)?i:0,fields:[n.field],colIndex:o+r}]}),t);h=i;const M=N[N.length-1].groupId;for(;null!==M&&h<a&&null!=(x=u[h])&&x.groupPath&&(null==(C=u[h])||null==(S=C.groupPath)?void 0:S[e])===M;){var x,C,S,E;const e=u[h];N[N.length-1].width+=null!=(E=e.computedWidth)?E:0,N[N.length-1].fields.push(e.field),h+=1}s.push({leftOverflow:l,elements:[...N]})}return s.forEach(((e,t)=>{l.push((0,Dl.jsx)(hN,{style:{height:`${h}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:w,children:e.elements.map((({groupId:e,width:n,fields:r,colIndex:o},i)=>(0,Dl.jsx)(fN,{groupId:e,width:n,fields:r,colIndex:o,depth:t,isLastColumn:o===u.length-r.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:s.length,height:h},i)))},t))})),l},isDragging:!!o,getRootProps:(e={})=>(0,bl.Z)({style:F},e),getInnerProps:()=>({ref:C,role:"rowgroup"})}})({innerRef:r});return(0,Dl.jsxs)(wN,(0,bl.Z)({ref:t},a(o),{children:[(0,Dl.jsx)(vN,{scrollDirection:"left"}),(0,Dl.jsxs)(SN,(0,bl.Z)({isDragging:i},l(),{children:[u(),s()]})),(0,Dl.jsx)(vN,{scrollDirection:"right"})]}))})),MN=n.forwardRef((function(e,t){const r=(e=>{if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=(0,kl.Z)({props:e,name:"MuiDataGrid"}),r=n.useMemo((()=>(0,bl.Z)({},Rb,t.localeText)),[t.localeText]),o=n.useMemo((()=>{const e=t.components;if(!e)return(0,bl.Z)({},OE);const n={};return Object.entries(OE).forEach((([t,r])=>{n[t]=void 0===e[t]?r:e[t]})),n}),[t.components]);return n.useMemo((()=>(0,bl.Z)({},FE,t,{localeText:r,components:o},jE)),[t,r,o])})(e),o=Lb(r);return(0,Dl.jsx)(ku,{apiRef:o,props:r,children:(0,Dl.jsx)(Ys,{className:r.className,style:r.style,sx:r.sx,ref:t,children:(0,Dl.jsxs)(tu,{children:[(0,Dl.jsx)(nu,{}),(0,Dl.jsx)(Iu,{ColumnHeadersComponent:NN,VirtualScrollerComponent:QE}),(0,Dl.jsx)(Au,{})]})})})})),IN=n.memo(MN);MN.propTypes={"aria-label":Kl().string,"aria-labelledby":Kl().string,autoHeight:Kl().bool,autoPageSize:Kl().bool,cellModesModel:Kl().object,checkboxSelection:Kl().bool,classes:Kl().object,columnBuffer:Kl().number,columnGroupingModel:Kl().arrayOf(Kl().object),columns:(Kl().array.isRequired,()=>null),columnThreshold:Kl().number,columnTypes:Kl().object,columnVisibilityModel:Kl().object,components:Kl().object,componentsProps:Kl().object,density:Kl().oneOf(["comfortable","compact","standard"]),disableColumnFilter:Kl().bool,disableColumnMenu:Kl().bool,disableColumnSelector:Kl().bool,disableDensitySelector:Kl().bool,disableExtendRowFullWidth:Kl().bool,disableIgnoreModificationsIfProcessingProps:Kl().bool,disableSelectionOnClick:Kl().bool,disableVirtualization:Kl().bool,editMode:Kl().oneOf(["cell","row"]),editRowsModel:Kl().object,error:Kl().any,experimentalFeatures:Kl().shape({columnGrouping:Kl().bool,newEditingApi:Kl().bool,preventCommitWhileValidating:Kl().bool,warnIfFocusStateIsNotSynced:Kl().bool}),filterMode:Kl().oneOf(["client","server"]),filterModel:Kl().shape({items:Kl().arrayOf(Kl().shape({columnField:Kl().string.isRequired,id:Kl().oneOfType([Kl().number,Kl().string]),operatorValue:Kl().string,value:Kl().any})).isRequired,linkOperator:Kl().oneOf(["and","or"]),quickFilterLogicOperator:Kl().oneOf(["and","or"]),quickFilterValues:Kl().array}),getCellClassName:Kl().func,getDetailPanelContent:Kl().func,getEstimatedRowHeight:Kl().func,getRowClassName:Kl().func,getRowHeight:Kl().func,getRowId:Kl().func,getRowSpacing:Kl().func,headerHeight:Kl().number,hideFooter:Kl().bool,hideFooterPagination:Kl().bool,hideFooterSelectedRowCount:Kl().bool,initialState:Kl().object,isCellEditable:Kl().func,isRowSelectable:Kl().func,keepNonExistentRowsSelected:Kl().bool,loading:Kl().bool,localeText:Kl().object,logger:Kl().shape({debug:Kl().func.isRequired,error:Kl().func.isRequired,info:Kl().func.isRequired,warn:Kl().func.isRequired}),logLevel:Kl().oneOf(["debug","error","info","warn",!1]),nonce:Kl().string,onCellClick:Kl().func,onCellDoubleClick:Kl().func,onCellEditCommit:Kl().func,onCellEditStart:Kl().func,onCellEditStop:Kl().func,onCellFocusOut:Kl().func,onCellKeyDown:Kl().func,onCellModesModelChange:Kl().func,onColumnHeaderClick:Kl().func,onColumnHeaderDoubleClick:Kl().func,onColumnHeaderEnter:Kl().func,onColumnHeaderLeave:Kl().func,onColumnHeaderOut:Kl().func,onColumnHeaderOver:Kl().func,onColumnOrderChange:Kl().func,onColumnVisibilityChange:Kl().func,onColumnVisibilityModelChange:Kl().func,onEditCellPropsChange:Kl().func,onEditRowsModelChange:Kl().func,onError:Kl().func,onFilterModelChange:Kl().func,onMenuClose:Kl().func,onMenuOpen:Kl().func,onPageChange:Kl().func,onPageSizeChange:Kl().func,onPreferencePanelClose:Kl().func,onPreferencePanelOpen:Kl().func,onProcessRowUpdateError:Kl().func,onResize:Kl().func,onRowClick:Kl().func,onRowDoubleClick:Kl().func,onRowEditCommit:Kl().func,onRowEditStart:Kl().func,onRowEditStop:Kl().func,onRowModesModelChange:Kl().func,onSelectionModelChange:Kl().func,onSortModelChange:Kl().func,onStateChange:Kl().func,page:Kl().number,pageSize:(Kl().number,()=>null),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:Kl().oneOf(["client","server"]),processRowUpdate:Kl().func,rowBuffer:Kl().number,rowCount:Kl().number,rowHeight:Kl().number,rowModesModel:Kl().object,rows:Kl().arrayOf(Kl().object).isRequired,rowSpacingType:Kl().oneOf(["border","margin"]),rowsPerPageOptions:Kl().arrayOf(Kl().number),rowThreshold:Kl().number,scrollbarSize:Kl().number,selectionModel:(Kl().oneOfType([Kl().number,Kl().string,Kl().array]),()=>null),showCellRightBorder:Kl().bool,showColumnRightBorder:Kl().bool,sortingMode:Kl().oneOf(["client","server"]),sortingOrder:Kl().arrayOf(Kl().oneOf(["asc","desc"])),sortModel:Kl().arrayOf(Kl().shape({field:Kl().string.isRequired,sort:Kl().oneOf(["asc","desc"])})),sx:Kl().oneOfType([Kl().arrayOf(Kl().oneOfType([Kl().func,Kl().object,Kl().bool])),Kl().func,Kl().object])};var AN=a(4107),kN=a.n(AN),PN=a(3162),LN=a(1168);a(8159);var RN=()=>{const e=it().length,r=rt(),o=(0,n.useRef)(),[i,a]=(0,n.useState)(e),[l,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(null),[d,p]=(0,n.useState)([]),[f,h]=(0,n.useState)(0),[m,g]=(0,n.useState)([]),[v,b]=(0,n.useState)([]),[y,w]=(0,n.useState)(!1),[x,C]=(0,n.useState)(null),[S,E]=(0,n.useState)(!1),[N,M]=(0,n.useState)(),I=e=>{const n=e.value;return n.startsWith("data:image")?(0,t.createElement)("img",{src:n,alt:"Lead Image",style:{maxWidth:"100%",maxHeight:"100%"}}):(0,t.createElement)("span",null,n)},A=({value:e})=>(0,t.createElement)("img",{src:e,alt:"Lead Image",style:{maxWidth:"100%",maxHeight:"100%"}}),k=e=>{"csv"!==e&&"pdf"!==e||r?(async e=>{let t;switch(e){case"json":t=[d.map((e=>{const t=JSON.parse(e.fields);return Object.keys(t).reduce(((e,n)=>(e[n]=t[n],e)),{})}))],(0,PN.saveAs)(new Blob([JSON.stringify(t,null,2)],{type:"application/json"}),"leads.json");break;case"csv":const e=d.map((e=>{const t=JSON.parse(e.fields);return Object.keys(t).reduce(((e,n)=>(e[n]=t[n],e)),{})}));kN()(e,((e,t)=>{if(e)return console.error(e);const n=new Blob([t],{type:"text/csv;charset=utf-8"});(0,PN.saveAs)(n,"leads.csv")}));break;case"print":print();break;case"pdf":const n=d.map((e=>{const t=JSON.parse(e.fields);return Object.keys(t).reduce(((e,n)=>(e[n]=t[n],e)),{})})),r=new LN.default;r.autoTable({head:[Object.keys(n[0])],body:n.map((e=>Object.values(e)))}),r.save("leads.pdf")}})(e):Swal.fire({text:"Need Pro to access CSV and PDF exports!",icon:"warning",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'})},P=()=>{E(!1)};function L(e){o.current&&!o.current.contains(e.target)&&P()}(0,n.useEffect)((()=>{wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){a(e.tables_count)},error({message:e}){}})}),[]),(0,n.useEffect)((()=>{s(!0),wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){const t=e.tables;g(t),c(t.length>0?t[0].id:null),s(!1)},error(e){console.error(e)}})}),[]),(0,n.useEffect)((()=>{null!==u&&(p([]),wp.ajax.send("simpleform_get_leads",{data:{nonce:nt(),form_id:u},success(e){p(e.tables)},error(e){}}))}),[u]),(0,n.useEffect)((()=>(document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)})),[L]);const R=d.length>0&&d[0]?.fields?Object.keys(JSON.parse(d[0].fields)).slice(0,3).map((e=>({field:e,headerName:e,flex:1,renderCell:"esignature-input-1707021260927"===e?I:void 0}))):[],T=d.map((e=>{const t=JSON.parse(e.fields);return{id:e.id,...Object.fromEntries(Object.entries(t).slice(0,3)),actions:e.id}})),D={field:"actions",headerName:"Actions",width:150,renderCell:e=>(0,t.createElement)("div",{className:"action-button"},(0,t.createElement)("button",{className:"view-button",onClick:t=>((e,t)=>{t.stopPropagation();const n=d.find((t=>t.id===e));n&&(C(n),w(!0))})(e.value,t)},(0,t.createElement)(Vl.Z,{className:"sf-view-form"})),(0,t.createElement)("button",{className:"delete-button",onClick:t=>((e,t)=>{t.stopPropagation(),M(e),E(!0)})(e.value,t)},(0,t.createElement)(ut.Z,{className:"leads-delete"})))};return R.push(D),(0,t.createElement)(t.Fragment,null,l?(0,t.createElement)(et,null,(0,t.createElement)(Ul,null)):(0,t.createElement)("div",{className:"main-leads-container"},(0,t.createElement)("h3",{className:"review-case-title"},"Simple form leads",(0,t.createElement)("a",{href:"#",target:"_blank"})),(0,t.createElement)("div",{className:"leads-container"},(0,t.createElement)("div",{className:"search-select-panel"},(0,t.createElement)("select",{value:u,onChange:e=>(e=>{const t=e.target.value,n=e.target.options[e.target.selectedIndex].getAttribute("data-actual-id");parseInt(n)>2&&!r?(e.preventDefault(),Swal.fire({text:"Need Pro to access more forms!",icon:"warning",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'})):c(t)})(e)},(0,t.createElement)("option",{value:"","data-actual-id":""},"Please choose one"),m.map(((e,n)=>(0,t.createElement)("option",{key:e.id,value:e.id,"data-actual-id":n},e.form_name)))),(0,t.createElement)("div",{className:"export-btn"},(0,t.createElement)("div",{className:"exports-action"},(0,t.createElement)("img",{className:"export-icon",onClick:()=>k("json"),style:{width:"40px",height:"30px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBvcGFjaXR5PSIwLjMiIHg9IjAuMjUiIHk9IjAuMjUiIHdpZHRoPSIyNi41IiBoZWlnaHQ9IjI2LjUiIHJ4PSIyLjc1IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSIjQkJCQkJCIiBzdHJva2Utd2lkdGg9IjAuNjQ4MTQ4MTQ4MTQ4MTQ4MSIgZD0iTTMuODg5IDAuMzI0SDMxLjExMUEzLjU2NSAzLjU2NSAwIDAgMSAzNC42NzYgMy44ODlWMzEuMTExQTMuNTY1IDMuNTY1IDAgMCAxIDMxLjExMSAzNC42NzZIMy44ODlBMy41NjUgMy41NjUgMCAwIDEgMC4zMjQgMzEuMTExVjMuODg5QTMuNTY1IDMuNTY1IDAgMCAxIDMuODg5IDAuMzI0eiIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjcuNTkzIDExLjE3N3YxMC41MjloLTEuNjE5VjExLjE3N2gtMy4yMzlhMi40MjkgMi40MjkgMCAwIDEgLTIuNDI5IC0yLjQyOVY1LjUwOUgxMS4zOTdhMS42MiAxLjYyIDAgMCAwIC0xLjYyIDEuNjJ2MTQuNTc3SDguMTU5VjcuMTI4QTMuMjM5IDMuMjM5IDAgMCAxIDExLjM5OCAzLjg4OWg4LjkwNmw3LjI4OSA3LjI4OFpNMTEuNjQyIDI4LjY1M2ExLjkwNCAxLjkwNCAwIDAgMSAtMC4xOCAtMC43MjdoMS4yMzhhMC45MzcgMC45MzcgMCAwIDAgMC40MTIgMC42MjJjMC4xMTQgMC4wNzggMC4yNSAwLjE0IDAuNDA2IDAuMTg0IDAuMTUzIDAuMDQ1IDAuMzI0IDAuMDY2IDAuNTE2IDAuMDY2IDAuMjY2IDAgMC40ODcgLTAuMDM4IDAuNjY5IC0wLjExM2EwLjkwNSAwLjkwNSAwIDAgMCAwLjQxNCAtMC4zMTIgMC44MjIgMC44MjIgMCAwIDAgMC4xMzYgLTAuNDcxIDAuNjI3IDAuNjI3IDAgMCAwIC0wLjI0NiAtMC41MjhjLTAuMTYzIC0wLjEzIC0wLjQxNSAtMC4yMzMgLTAuNzUxIC0wLjMxMmwtMS4wMDEgLTAuMjMyYTIuNzgzIDIuNzgzIDAgMCAxIC0wLjg3MiAtMC4zNDYgMS42MiAxLjYyIDAgMCAxIC0wLjU3IC0wLjU5NSAxLjcyOSAxLjcyOSAwIDAgMSAtMC4yIC0wLjg0OGMwIC0wLjM5NSAwLjEwNCAtMC43NCAwLjMwOSAtMS4wMzYgMC4yMDcgLTAuMjkzIDAuNDkzIC0wLjUyMSAwLjg1NiAtMC42ODNhMy4wNzIgMy4wNzIgMCAwIDEgMS4yNTcgLTAuMjQxYzAuNDkzIDAgMC45MTQgMC4wOCAxLjI2MSAwLjI0NiAwLjM1MyAwLjE2NSAwLjYyMiAwLjM4NiAwLjgxIDAuNjY0IDAuMTk0IDAuMjc1IDAuMzAyIDAuNTgxIDAuMzI0IDAuOTE2aC0xLjIxNWEwLjkwNyAwLjkwNyAwIDAgMCAtMC4xOTQgLTAuNDE3IDEuMDExIDEuMDExIDAgMCAwIC0wLjM5OCAtMC4yOTMgMS40OTYgMS40OTYgMCAwIDAgLTAuNiAtMC4xMWMtMC4zNSAwIC0wLjYyNiAwLjA4IC0wLjgzIDAuMjQ2YTAuNzY0IDAuNzY0IDAgMCAwIC0wLjI5OCAwLjYyMmMwIDAuMTk0IDAuMDc4IDAuMzU1IDAuMjMzIDAuNDg1IDAuMTkzIDAuMTQzIDAuNDE2IDAuMjQxIDAuNjUzIDAuMjg0bDEuMDA2IDAuMjMxYzAuMzUxIDAuMDgyIDAuNjU3IDAuMTk0IDAuOTE2IDAuMzQyIDAuMjUgMC4xMzYgMC40NiAwLjMzNyAwLjYwOCAwLjU4MSAwLjE0NSAwLjIzOSAwLjIxOCAwLjU0MiAwLjIxOCAwLjkwNyAwIDAuMzk5IC0wLjEwMSAwLjc1MyAtMC4zMDMgMS4wNjJhMS45NyAxLjk3IDAgMCAxIC0wLjg3NCAwLjcxYy0wLjM3OSAwLjE3IC0wLjg0MyAwLjI1NyAtMS4zOSAwLjI1NyAtMC40MTEgMCAtMC43NzEgLTAuMDQ5IC0xLjA3NiAtMC4xNDZhMi4yNzUgMi4yNzUgMCAwIDEgLTAuNzc1IC0wLjQwOCAxLjgzIDEuODMgMCAwIDEgLTAuNDY5IC0wLjYwN1ptLTUuMDI4IC0wLjA1M0EyLjEzOSAyLjEzOSAwIDAgMSA2LjQ4MSAyNy44NDRoMS4yMzhhMC45MzMgMC45MzMgMCAwIDAgMC4xMTkgMC40MzggMC44MDkgMC44MDkgMCAwIDAgMC43MzUgMC4zOThjMC4zMDkgMCAwLjUzNSAtMC4wODkgMC42ODQgLTAuMjY2IDAuMTQ2IC0wLjE3OCAwLjIyIC0wLjQyOCAwLjIyIC0wLjc1NHYtNC40NDZoMS4yODJ2NC40MTRjMCAwLjcxMyAtMC4xOTMgMS4yNTQgLTAuNTc4IDEuNjI4IC0wLjM4NCAwLjM3MiAtMC45MTUgMC41NTcgLTEuNTk0IDAuNTU3YTIuNTc3IDIuNTc3IDAgMCAxIC0wLjkyIC0wLjE1MiAxLjg1NCAxLjg1NCAwIDAgMSAtMC42NiAtMC40MyAxLjg0NyAxLjg0NyAwIDAgMSAtMC4zOTQgLTAuNjMxWm0xNC43MjYgLTIuNTY3djAuODQ1YzAgMC40MTUgLTAuMDY1IDAuNzYxIC0wLjE5MSAxLjAzN2ExLjM5NiAxLjM5NiAwIDAgMSAtMC41MjEgMC42MjdjLTAuMjI5IDAuMTM5IC0wLjQ5NCAwLjIwOSAtMC43NjIgMC4yMDRhMS40MyAxLjQzIDAgMCAxIC0wLjc2MSAtMC4yMDQgMS40MDkgMS40MDkgMCAwIDEgLTAuNTE5IC0wLjYyNyAyLjUxIDIuNTEgMCAwIDEgLTAuMTg5IC0xLjAzN3YtMC44NDZjMCAtMC40MTcgMC4wNjQgLTAuNzYyIDAuMTg5IC0xLjAzNyAwLjEwOCAtMC4yNTcgMC4yODggLTAuNDc0IDAuNTE5IC0wLjYyNyAwLjIyOCAtMC4xNDEgMC40OTMgLTAuMjE0IDAuNzYxIC0wLjIwOSAwLjI4OCAwIDAuNTM5IDAuMDY5IDAuNzYyIDAuMjA3IDAuMjMyIDAuMTUzIDAuNDE0IDAuMzcyIDAuNTIxIDAuNjI3IDAuMTI2IDAuMjc2IDAuMTg5IDAuNjIxIDAuMTg5IDEuMDM4Wm0xLjI5OSAwLjg0di0wLjgzMWMwIC0wLjYxMSAtMC4xMTEgLTEuMTM2IC0wLjMzMiAtMS41NzZhMi4zNjQgMi4zNjQgMCAwIDAgLTAuOTU1IC0xLjAyYy0wLjQxIC0wLjIzNyAtMC45MDUgLTAuMzU2IC0xLjQ4MyAtMC4zNTYgLTAuNTc3IDAgLTEuMDczIDAuMTE5IC0xLjQ5MSAwLjM1NmEyLjMzMyAyLjMzMyAwIDAgMCAtMC45NTQgMS4wMThjLTAuMjIyIDAuNDM4IC0wLjMzMiAwLjk2NCAtMC4zMzIgMS41Nzl2MC44M2MwIDAuNjA5IDAuMTEgMS4xMzMgMC4zMzIgMS41NzYgMC4yMjIgMC40MzkgMC41MzkgMC43NzggMC45NTQgMS4wMTQgMC40MTcgMC4yMzYgMC45MTQgMC4zNTMgMS40OTEgMC4zNTMgMC41NzggMCAxLjA3MyAtMC4xMTcgMS40ODQgLTAuMzUxIDAuNDE1IC0wLjIzNyAwLjczMiAtMC41NzYgMC45NTQgLTEuMDE1IDAuMjIgLTAuNDQzIDAuMzMyIC0wLjk2OCAwLjMzMiAtMS41NzVabTIuMDkgLTEuNTE1djQuMzM0aC0xLjIwOHYtNi40NzhoMS4wNzJsMi44MzkgNC4zMDloMC4wNTJ2LTQuMzA5aDEuMjEzdjYuNDc5aC0xLjA2M2wtMi44NTIgLTQuMzM0aC0wLjA1MloiIGZpbGw9IiMwQzY1Q0MiLz48L3N2Zz4=",alt:"json",title:"Click to Export JSON"})),(0,t.createElement)("div",{className:"exports-action"},(0,t.createElement)("img",{className:"export-icon",onClick:()=>k("print"),style:{width:"40px",height:"30px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBvcGFjaXR5PSIwLjMiIHg9IjAuMjUiIHk9IjAuMjUiIHdpZHRoPSIyNi41IiBoZWlnaHQ9IjI2LjUiIHJ4PSIyLjc1IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSIjQkJCQkJCIiBzdHJva2Utd2lkdGg9IjAuNjQ4MTQ4MTQ4MTQ4MTQ4MSIgZD0iTTMuODg5IDAuMzI0SDMxLjExMUEzLjU2NSAzLjU2NSAwIDAgMSAzNC42NzYgMy44ODlWMzEuMTExQTMuNTY1IDMuNTY1IDAgMCAxIDMxLjExMSAzNC42NzZIMy44ODlBMy41NjUgMy41NjUgMCAwIDEgMC4zMjQgMzEuMTExVjMuODg5QTMuNTY1IDMuNTY1IDAgMCAxIDMuODg5IDAuMzI0eiIvPjxwYXRoIGQ9Ik0yMi40IDMuODg5YTMuMjQxIDMuMjQxIDAgMCAxIDMuMjQxIDMuMjQxdjEuMDg1aDEuMDhhNC42ODYgNC42ODYgMCAwIDEgNC42ODUgNC42OGwwLjAwNCA4LjYzOWEzLjIzOSAzLjIzOSAwIDAgMSAtMy4yMzggMy4yNDFoLTIuNTMzVjI2LjU3NGEzLjI0MSAzLjI0MSAwIDAgMSAtMy4yNDEgMy4yNDFIMTEuNTk0YTMuMjQxIDMuMjQxIDAgMCAxIC0zLjI0MSAtMy4yNDF2LTEuODAxSDUuODMzYTMuMjQxIDMuMjQxIDAgMCAxIC0zLjI0MSAtMy4yNDFWMTIuODk4YTQuNjgxIDQuNjgxIDAgMCAxIDQuNjgxIC00LjY4MWwxLjA3OSAtMC4wMDEgMC4wMDEgLTEuMDg1YTMuMjQxIDMuMjQxIDAgMCAxIDMuMjQxIC0zLjI0MWgxMC44MDZabS0wLjAwMyAxNS4xMjRIMTEuNTk0YTEuMDgxIDEuMDgxIDAgMCAwIC0xLjA4IDEuMDh2Ni40ODFjMCAwLjU5NiAwLjQ4NCAxLjA4IDEuMDggMS4wOGgxMC44MDNhMS4wOCAxLjA4IDAgMCAwIDEuMDggLTEuMDh2LTYuNDgxYTEuMDggMS4wOCAwIDAgMCAtMS4wOCAtMS4wOFptNC4zMjMgLTguNjM3SDcuMjc0QTIuNTIgMi41MiAwIDAgMCA0Ljc1NCAxMi44OTh2OC42MzZjMCAwLjU5NiAwLjQ4NCAxLjA4IDEuMDggMS4wOGgyLjUyVjIwLjA5M2EzLjI0MSAzLjI0MSAwIDAgMSAzLjI0MSAtMy4yNDFoMTAuODAzYTMuMjQxIDMuMjQxIDAgMCAxIDMuMjQxIDMuMjQxdjIuNTJoMi41NjdhMS4wNzkgMS4wNzkgMCAwIDAgMS4wNDQgLTEuMDc5TDI5LjI0NCAxMi44OThhMi41MjYgMi41MjYgMCAwIDAgLTIuNTI0IC0yLjUyMVpNMjIuNCA2LjA1SDExLjU5NGExLjA4IDEuMDggMCAwIDAgLTEuMDggMS4wOGwtMC4wMDEgMS4wODVoMTIuOTY3VjcuMTNhMS4wODEgMS4wODEgMCAwIDAgLTEuMDggLTEuMDhaIiBmaWxsPSIjMkM3NkUxIi8+PC9zdmc+",alt:"print",title:"Click to Print this page"})),(0,t.createElement)("div",{className:"exports-action"},r?"":(0,t.createElement)("p",{className:"PRO_TAG"},"PRO"),(0,t.createElement)("img",{className:"export-icon "+(r?"":"inactive"),onClick:()=>k("csv"),style:{width:"40px",height:"30px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBvcGFjaXR5PSIwLjMiIHg9IjAuMjUiIHk9IjAuMjUiIHdpZHRoPSIyNi41IiBoZWlnaHQ9IjI2LjUiIHJ4PSIyLjc1IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSIjQkJCQkJCIiBzdHJva2Utd2lkdGg9IjAuNjQ4MTQ4MTQ4MTQ4MTQ4MSIgZD0iTTMuODg5IDAuMzI0SDMxLjExMUEzLjU2NSAzLjU2NSAwIDAgMSAzNC42NzYgMy44ODlWMzEuMTExQTMuNTY1IDMuNTY1IDAgMCAxIDMxLjExMSAzNC42NzZIMy44ODlBMy41NjUgMy41NjUgMCAwIDEgMC4zMjQgMzEuMTExVjMuODg5QTMuNTY1IDMuNTY1IDAgMCAxIDMuODg5IDAuMzI0eiIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjkuMTU1IDExLjE3N3YxNS4zODdhMy4yMzkgMy4yMzkgMCAwIDEgLTMuMjM4IDMuMjM4aC0xLjYydi0xLjYyaDEuNjJhMS42MiAxLjYyIDAgMCAwIDEuNjE5IC0xLjYxOVYxMS4xNzdoLTMuMjM5YTIuNDI5IDIuNDI5IDAgMCAxIC0yLjQyOSAtMi40MjlWNS41MDlIMTIuOTZhMS42MiAxLjYyIDAgMCAwIC0xLjYyIDEuNjJ2MTQuNTc2aC0xLjYyVjcuMTNBMy4yMzkgMy4yMzkgMCAwIDEgMTIuOTYyIDMuODg5aDguOTA3bDcuMjg4IDcuMjg4Wk0xMi4xNzcgMjcuOTI1YTEuODMgMS44MyAwIDAgMCAwLjY0OSAxLjMzM2MwLjIxIDAuMTc1IDAuNDY4IDAuMzExIDAuNzc0IDAuNDA4IDAuMzA5IDAuMDk5IDAuNjY2IDAuMTQ4IDEuMDc3IDAuMTQ4IDAuNTQ3IDAgMS4wMTEgLTAuMDg2IDEuMzkxIC0wLjI1NyAwLjM4MiAtMC4xNjkgMC42NzQgLTAuNDA3IDAuODc0IC0wLjcxMyAwLjIwMiAtMC4zMDYgMC4zMDIgLTAuNjYxIDAuMzAyIC0xLjA2MiAwIC0wLjM2MyAtMC4wNzMgLTAuNjY0IC0wLjIxNiAtMC45MDdhMS42MiAxLjYyIDAgMCAwIC0wLjYwOCAtMC41NzggMy4yODIgMy4yODIgMCAwIDAgLTAuOTE2IC0wLjM0bC0xLjAwNiAtMC4yMzNhMS41NzEgMS41NzEgMCAwIDEgLTAuNjUzIC0wLjI4NSAwLjU5OSAwLjU5OSAwIDAgMSAtMC4yMzMgLTAuNDg0YzAgLTAuMjUzIDAuMSAtMC40NiAwLjI5OCAtMC42MjIgMC4yMDQgLTAuMTYzIDAuNDggLTAuMjQ2IDAuODMgLTAuMjQ2IDAuMjMzIDAgMC40MzIgMC4wMzggMC42IDAuMTFhMS4wMTEgMS4wMTEgMCAwIDEgMC4zOTggMC4yOTMgMC45MDcgMC45MDcgMCAwIDEgMC4xOTQgMC40MTdoMS4yMTVhMS43NjkgMS43NjkgMCAwIDAgLTAuMzI0IC0wLjkxNiAxLjk2IDEuOTYgMCAwIDAgLTAuODA5IC0wLjY2NGMtMC4zOTggLTAuMTc1IC0wLjgzIC0wLjI1OSAtMS4yNjQgLTAuMjQ2IC0wLjQ3NCAwIC0wLjg5MiAwLjA4MiAtMS4yNTcgMC4yNDQgLTAuMzYzIDAuMTU5IC0wLjY0OCAwLjM4OSAtMC44NTMgMC42ODJhMS43NjMgMS43NjMgMCAwIDAgLTAuMzA3IDEuMDM0YzAgMC4zMjUgMC4wNjUgMC42MDkgMC4xOTcgMC44NDggMC4xMzQgMC4yNDIgMC4zMjQgMC40MzggMC41NyAwLjU5NSAwLjI0NiAwLjE1NCAwLjUzOCAwLjI3MSAwLjg3MiAwLjM0NWwxLjAwMSAwLjIzM2MwLjMzNyAwLjA3OSAwLjU4NSAwLjE4MyAwLjc1MSAwLjMxMmEwLjYyNiAwLjYyNiAwIDAgMSAwLjI0NiAwLjUyOCAwLjgxNyAwLjgxNyAwIDAgMSAtMC4xMzcgMC40NzEgMC45MDUgMC45MDUgMCAwIDEgLTAuNDE0IDAuMzExIDEuNzIgMS43MiAwIDAgMSAtMC42NjkgMC4xMTRjLTAuMTg5IDAgLTAuMzYgLTAuMDIxIC0wLjUxOSAtMC4wNjUgLTAuMTQzIC0wLjAzOSAtMC4yNzkgLTAuMTAyIC0wLjQwMiAtMC4xODVhMC45MzYgMC45MzYgMCAwIDEgLTAuNDEyIC0wLjYyMmgtMS4yMzlabS00LjM5MSAtMS44NTljMCAtMC40MDIgMC4wNTQgLTAuNzQ1IDAuMTY1IC0xLjAyNSAwLjA5NyAtMC4yNTkgMC4yNjcgLTAuNDg0IDAuNDkgLTAuNjQ3IDAuMjI3IC0wLjE1MiAwLjQ5NSAtMC4yMjkgMC43NjkgLTAuMjIgMC4yNDQgMCAwLjQ1OSAwLjA1MiAwLjY0NCAwLjE1NiAwLjE4MyAwLjA5OSAwLjMzNiAwLjI0NCAwLjQ0MSAwLjQyMSAwLjExMyAwLjE4OCAwLjE4IDAuMzk5IDAuMTk0IDAuNjE3aDEuMjM5di0wLjExN2EyLjE1MyAyLjE1MyAwIDAgMCAtMC43NTQgLTEuNTYxIDIuMzM1IDIuMzM1IDAgMCAwIC0wLjc5MiAtMC40NDEgMi45NzkgMi45NzkgMCAwIDAgLTAuOTgxIC0wLjE1N2MtMC41NzcgMCAtMS4wNjkgMC4xMTkgLTEuNDc1IDAuMzYyIC0wLjQwNiAwLjIzOSAtMC43MTMgMC41ODEgLTAuOTI3IDEuMDI0IC0wLjIxMSAwLjQ0MiAtMC4zMTggMC45NzEgLTAuMzE4IDEuNTg0djAuODA2YzAgMC42MTQgMC4xMDQgMS4xNDEgMC4zMTIgMS41ODEgMC4yMTMgMC40MzggMC41MjEgMC43NzggMC45MjcgMS4wMTQgMC40MDQgMC4yMzUgMC44OTcgMC4zNTEgMS40OCAwLjM1MSAwLjQ3NCAwIDAuODk3IC0wLjA4OSAxLjI3IC0wLjI2NiAwLjM3MyAtMC4xNzggMC42NzEgLTAuNDIxIDAuODkyIC0wLjczNSAwLjIyMyAtMC4zMjEgMC4zNSAtMC43IDAuMzY2IC0xLjA5MXYtMC4xMjNoLTEuMjM4YTEuMjk1IDEuMjk1IDAgMCAxIC0wLjE5MSAwLjU4NyAxLjEzNCAxLjEzNCAwIDAgMSAtMC40NDEgMC40MDYgMS40MTMgMS40MTMgMCAwIDEgLTAuNjQ4IDAuMTRBMS4zNjggMS4zNjggMCAwIDEgOC40MzUgMjguNTE5YTEuMzQ4IDEuMzQ4IDAgMCAxIC0wLjQ4NSAtMC42MzUgMi43NTEgMi43NTEgMCAwIDEgLTAuMTY1IC0xLjAxNXYtMC44MDJabTEzLjM0NCAzLjYyNEgxOS41ODdsLTIuMTY3IC02LjQ3OGgxLjQ4NmwxLjQ1MiA1LjA4M2gwLjA2MWwxLjQzOSAtNS4wODFoMS40MjNMMjEuMTMgMjkuNjl2LTAuMDAxWiIgZmlsbD0iIzBCOUJBNSIvPjwvc3ZnPg==",alt:"csv",title:"Click to Export CSV"})),(0,t.createElement)("div",{className:"exports-action"},r?"":(0,t.createElement)("p",{className:"PRO_TAG"},"PRO"),(0,t.createElement)("img",{className:"export-icon "+(r?"":"inactive"),onClick:()=>k("pdf"),style:{width:"40px",height:"30px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBvcGFjaXR5PSIwLjMiIHg9IjAuMjUiIHk9IjAuMjUiIHdpZHRoPSIyNi41IiBoZWlnaHQ9IjI2LjUiIHJ4PSIyLjc1IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSIjQkJCQkJCIiBzdHJva2Utd2lkdGg9IjAuNjQ4MTQ4MTQ4MTQ4MTQ4MSIgZD0iTTMuODg5IDAuMzI0SDMxLjExMUEzLjU2NSAzLjU2NSAwIDAgMSAzNC42NzYgMy44ODlWMzEuMTExQTMuNTY1IDMuNTY1IDAgMCAxIDMxLjExMSAzNC42NzZIMy44ODlBMy41NjUgMy41NjUgMCAwIDEgMC4zMjQgMzEuMTExVjMuODg5QTMuNTY1IDMuNTY1IDAgMCAxIDMuODg5IDAuMzI0eiIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjkuMTY3IDExLjE4MVYyNi41NzRBMy4yNDEgMy4yNDEgMCAwIDEgMjUuOTI2IDI5LjgxNWgtMS42MnYtMS42MkgyNS45MjZhMS42MiAxLjYyIDAgMCAwIDEuNjIgLTEuNjJWMTEuMTgxaC0zLjI0MWEyLjQzMSAyLjQzMSAwIDAgMSAtMi40MzEgLTIuNDMxdi0zLjI0MUgxMi45NjNBMS42MiAxLjYyIDAgMCAwIDExLjM0MyA3LjEzdjE0LjU4M0g5LjcyMlY3LjEzQTMuMjQxIDMuMjQxIDAgMCAxIDEyLjk2MyAzLjg4OWg4LjkxMkwyOS4xNjcgMTEuMTgxWk05LjA3NCAyMy4wOTFINi40ODF2Ni40NzloMS4yODJ2LTIuMTc0aDEuM2MwLjQ2NyAwIDAuODYxIC0wLjA5MyAxLjE4NiAtMC4yOCAwLjMyOSAtMC4xOTEgMC41ODEgLTAuNDQ2IDAuNzUyIC0wLjc2OSAwLjE3NSAtMC4zMzggMC4yNjYgLTAuNzE2IDAuMjU5IC0xLjA5NyAwIC0wLjQwNiAtMC4wODYgLTAuNzcxIC0wLjI1NSAtMS4wOTdhMS45MDYgMS45MDYgMCAwIDAgLTAuNzQ1IC0wLjc3NGMtMC4zMjQgLTAuMTk0IC0wLjcxOCAtMC4yOSAtMS4xODYgLTAuMjlabTAuODgzIDIuMTZhMS4yODkgMS4yODkgMCAwIDEgLTAuMTM3IDAuNjE2IDAuOTMxIDAuOTMxIDAgMCAxIC0wLjM4NiAwLjM5IDEuMjg2IDEuMjg2IDAgMCAxIC0wLjYwNyAwLjEzNGgtMS4wNjhWMjQuMTExaDEuMDY5YzAuMzUzIDAgMC42MyAwLjA5NyAwLjgzIDAuMjkzIDAuMiAwLjE5OCAwLjI5OSAwLjQ4IDAuMjk5IDAuODQ2Wm0xLjk3MyAtMi4xNnY2LjQ3OWgyLjM2NmMwLjY0OCAwIDEuMTg5IC0wLjEzIDEuNjE2IC0wLjM4NCAwLjQzMyAtMC4yNTkgMC43NzEgLTAuNjUxIDAuOTY0IC0xLjExNiAwLjIxIC0wLjQ4NiAwLjMxOCAtMS4wNzMgMC4zMTggLTEuNzU2IDAgLTAuNjgxIC0wLjEwNiAtMS4yNjEgLTAuMzE4IC0xLjc0MmEyLjMxMSAyLjMxMSAwIDAgMCAtMC45NTQgLTEuMTAyYy0wLjQyOCAtMC4yNTMgLTAuOTcyIC0wLjM4IC0xLjYyOSAtMC4zOEgxMS45M1ptMS4yODEgMS4wNDVoMC45MTNjMC40MDIgMCAwLjczIDAuMDggMC45ODYgMC4yNDYgMC4yNjggMC4xNzUgMC40NjkgMC40MzMgMC41NzQgMC43MzUgMC4xMjcgMC4zMjcgMC4xOTEgMC43MzIgMC4xOTEgMS4yMiAwLjAwNSAwLjMyNCAtMC4wMzEgMC42NDcgLTAuMTEgMC45NTkgLTAuMDU3IDAuMjQ4IC0wLjE2NiAwLjQ4IC0wLjMxOCAwLjY4NGExLjI5NiAxLjI5NiAwIDAgMSAtMC41NDEgMC40MDggMi4xMDEgMi4xMDEgMCAwIDEgLTAuNzgzIDAuMTM0aC0wLjkxM3YtNC4zODdabTYuMDY1IDIuODU3djIuNTc3aC0xLjI3OXYtNi40NzloNC4xMjd2MS4wNThIMTkuMjc2djEuODFoMi42MDN2MS4wMzRIMTkuMjc2WiIgZmlsbD0iI0UzNTkzMCIvPjwvc3ZnPg==",alt:"pdf",title:"Click to Export as PDF"})))),(0,t.createElement)("div",{style:{height:400,width:"100%"}},(0,t.createElement)(IN,{rows:T,columns:R,pageSizeOptions:[5,10],checkboxSelection:!0})))),y&&x&&(0,t.createElement)(pt,{onClose:()=>{w(!1)}},(0,t.createElement)("div",{className:"details-leads"},(0,t.createElement)("h2",{className:"leads-title"},(0,t.createElement)(Gl.Z,null)," Lead Details"),(0,t.createElement)("div",{style:{height:400,width:"100%"},className:"datagrid-container"},(0,t.createElement)(IN,{rows:Object.entries(JSON.parse(x.fields)).map((([e,t],n)=>({id:e,field:e,value:!r&&n>=4?"Need PRO":t}))),columns:[{field:"field",headerName:"Field",flex:1},{field:"value",headerName:"Value",flex:1,renderCell:e=>e.value.startsWith("data:image")?(0,t.createElement)(A,{value:e.value}):(0,t.createElement)("span",null,e.value)}],pageSize:Object.keys(JSON.parse(x.fields)).length,checkboxSelection:!0})),x.meta&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"leads-title"},(0,t.createElement)(Gl.Z,null)," Meta Details"),(0,t.createElement)("div",{style:{height:400,width:"100%"},className:"datagrid-container"},(0,t.createElement)(IN,{rows:Object.entries(JSON.parse(x.meta)).map((([e,t],n)=>({id:e,field:e,value:!r&&n>=3?"Need PRO":t}))),columns:[{field:"field",headerName:"Field",flex:1},{field:"value",headerName:"Value",flex:1,renderCell:e=>e.value.startsWith("data:image")?(0,t.createElement)(A,{value:e.value}):(0,t.createElement)("span",null,e.value)}],pageSize:Object.keys(JSON.parse(x.meta)).length,checkboxSelection:!0}))))),S&&(0,t.createElement)(pt,null,(0,t.createElement)("div",{className:"delete-table-modal-wrap modal-content",ref:o},(0,t.createElement)("div",{className:"cross_sign",onClick:()=>P()},(0,t.createElement)(lt.Z,{className:"scf-delete-btn"})),(0,t.createElement)("div",{className:"delete-table-modal"},(0,t.createElement)("div",{className:"modal-media"},(0,t.createElement)(ut.Z,{fontSize:"large",htmlColor:"secondary",className:"scf-form-delete"})),(0,t.createElement)("h2",null,"Are you sure to delete the leads? "),(0,t.createElement)("div",{className:"action-buttons"},(0,t.createElement)("button",{className:"simpleform-button cancel-button",onClick:P},"Cancel"),(0,t.createElement)("button",{className:"simpleform-button confirm-button",onClick:()=>{return e=N,void wp.ajax.send("simpleform_delete_leads",{data:{nonce:nt(),id:e},success(){console.log("success"),E(!1);const t=d.filter((t=>t.id!==e));p(t),b(t),Swal.mixin({toast:!0,position:"bottom-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",Swal.stopTimer),e.addEventListener("mouseleave",Swal.resumeTimer)}}).fire({icon:"success",title:"Lead has been deleted"})},error(e){console.error(e)}});var e}},"Delete"))))))};function TN(){return TN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TN.apply(this,arguments)}var DN=n.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},n.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),ON=n.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},n.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function jN(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function FN(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",l=1;l<6;l+=2){var s=parseInt(r.substr(l,2),16),u=parseInt(o.substr(l,2),16),c=Math.round((1-i)*s+i*u).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(e,t,n,jN(r),jN(o))}var _N=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.checked;this.t=t.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.m=this.m.bind(this),this.M=this.M.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.componentDidMount=function(){this.W=!0},t.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},t.prototype.componentWillUnmount=function(){this.W=!1},t.prototype.I=function(e){this.H.focus(),this.setState({R:e,j:!0,B:Date.now()})},t.prototype.L=function(e){var t=this.state,n=t.R,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var i=Math.min(this.i,Math.max(this.o,o));i!==r&&this.setState({h:i})},t.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,i=this.props.checked,a=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var l=Date.now()-o;(!r||l<250||i&&n<=a||!i&&n>=a)&&this.A(e),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},t.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},t.prototype.m=function(e){this.L(e.touches[0].clientX)},t.prototype.M=function(e){e.preventDefault(),this.U(e)},t.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(e){this.H=e},t.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({j:!1})},t.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,o=e.className,i=e.offColor,a=e.onColor,l=e.offHandleColor,s=e.onHandleColor,u=e.checkedIcon,c=e.uncheckedIcon,d=e.checkedHandleIcon,p=e.uncheckedHandleIcon,f=e.boxShadow,h=e.activeBoxShadow,m=e.height,g=e.width,v=e.borderRadius,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),y=this.state,w=y.h,x=y.N,C=y.j,S={position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:m/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},E={height:m,width:g,margin:Math.max(0,(this.t-m)/2),position:"relative",background:FN(w,this.i,this.o,i,a),borderRadius:"number"==typeof v?v:m/2,cursor:r?"default":"pointer",WebkitTransition:x?null:"background 0.25s",MozTransition:x?null:"background 0.25s",transition:x?null:"background 0.25s"},N={height:m,width:Math.min(1.5*m,g-(this.t+m)/2+1),position:"relative",opacity:(w-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},M={height:m,width:Math.min(1.5*m,g-(this.t+m)/2+1),position:"absolute",opacity:1-(w-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},I={height:this.t,width:this.t,background:FN(w,this.i,this.o,l,s),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof v?v-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(m-this.t)/2),outline:0,boxShadow:C?h:f,border:0,WebkitTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},A={height:this.t,width:this.t,opacity:Math.max(2*(1-(w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},k={height:this.t,width:this.t,opacity:Math.max(2*((w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"};return n.createElement("div",{className:o,style:S},n.createElement("div",{className:"react-switch-bg",style:E,onClick:r?null:this.T,onMouseDown:function(e){return e.preventDefault()}},u&&n.createElement("div",{style:N},u),c&&n.createElement("div",{style:M},c)),n.createElement("div",{className:"react-switch-handle",style:I,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.p,onTouchStart:r?null:this.k,onTouchMove:r?null:this.m,onTouchEnd:r?null:this.M,onTouchCancel:r?null:this.O},p&&n.createElement("div",{style:A},p),d&&n.createElement("div",{style:k},d)),n.createElement("input",TN({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},b,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(n.Component);_N.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:DN,checkedIcon:ON,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};var ZN=a(9469);const BN=(0,n.forwardRef)((({as:e="div",...t},n)=>(0,Dl.jsx)(e,{...t,ref:n}))),zN="cf-turnstile-script",HN="onloadTurnstileCallback",$N=e=>!!document.getElementById(e),qN={normal:{width:300,height:65},compact:{width:130,height:120},invisible:{width:0,height:0,overflow:"hidden"},interactionOnly:{width:"fit-content",height:"auto"}};function WN(e){let t;return"invisible"!==e&&(t=e),t}const UN=(0,n.forwardRef)(((e,t)=>{const{scriptOptions:r,options:o={},siteKey:i,onWidgetLoad:a,onSuccess:l,onExpire:s,onError:u,onBeforeInteractive:c,onAfterInteractive:d,onUnsupported:p,onLoadScript:f,id:h,style:m,as:g="div",injectScript:v=!0,...b}=e,y=o.size||"normal",[w,x]=(0,n.useState)("execute"===o.execution?qN.invisible:"interaction-only"===o.appearance?qN.interactionOnly:qN[y]),C=(0,n.useRef)(null),S=(0,n.useRef)(!1),[E,N]=(0,n.useState)(!1),M=(0,n.useRef)(),I=(0,n.useRef)(!1),A=h||"cf-turnstile",k=v?r?.id||`${zN}__${A}`:r?.id||zN,P=function(e=zN){const[t,r]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=()=>{$N(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}}),[e]),t}(k),L=r?.onLoadCallbackName?`${r.onLoadCallbackName}__${A}`:`${HN}__${A}`,R=(0,n.useMemo)((()=>({sitekey:i,action:o.action,cData:o.cData,callback:e=>{I.current=!0,l?.(e)},"error-callback":u,"expired-callback":s,"before-interactive-callback":c,"after-interactive-callback":d,"unsupported-callback":p,theme:o.theme||"auto",language:o.language||"auto",tabindex:o.tabIndex,"response-field":o.responseField,"response-field-name":o.responseFieldName,size:WN(y),retry:o.retry||"auto","retry-interval":o.retryInterval||8e3,"refresh-expired":o.refreshExpired||"auto",execution:o.execution||"render",appearance:o.appearance||"always"})),[i,o,l,u,s,y,c,d,p]),T=(0,n.useMemo)((()=>JSON.stringify(R)),[R]),D=(0,n.useCallback)((()=>"undefined"!=typeof window&&!!window.turnstile),[]);return(0,n.useImperativeHandle)(t,(()=>{const{turnstile:e}=window;return{getResponse(){if(e?.getResponse&&M.current&&D())return e.getResponse(M.current);console.warn("Turnstile has not been loaded")},async getResponsePromise(e=3e4,t=100){return new Promise(((n,r)=>{let o;const i=async()=>{if(I.current&&window.turnstile&&M.current)try{const e=window.turnstile.getResponse(M.current);return o&&clearTimeout(o),e?n(e):r(new Error("No response received"))}catch(e){return o&&clearTimeout(o),console.warn("Failed to get response",e),r(new Error("Failed to get response"))}o||(o=setTimeout((()=>{o&&clearTimeout(o),r(new Error("Timeout"))}),e)),await new Promise((e=>setTimeout(e,t))),await i()};i()}))},reset(){if(e?.reset&&M.current&&D()){"execute"===o.execution&&x(qN.invisible);try{console.log("resetting..."),I.current=!1,e.reset(M.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${M}`,e)}}else console.warn("Turnstile has not been loaded")},remove(){e?.remove&&M.current&&D()?(x(qN.invisible),I.current=!1,e.remove(M.current),M.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!C.current||!D()||M.current)return void console.warn("Turnstile has not been loaded or widget already rendered");const t=e.render(C.current,R);return M.current=t,"execute"!==o.execution&&x(qN[y]),t},execute(){"execute"===o.execution&&(e?.execute&&C.current&&M.current&&D()?(e.execute(C.current,R),x(qN[y])):console.warn("Turnstile has not been loaded or widget has not been rendered"))},isExpired(){if(e?.isExpired&&M.current&&D())return e.isExpired(M.current);console.warn("Turnstile has not been loaded")}}}),[M,o.execution,y,R,C,D]),(0,n.useEffect)((()=>(window[L]=()=>N(!0),()=>{delete window[L]})),[L]),(0,n.useEffect)((()=>{v&&!E&&(({render:e="explicit",onLoadCallbackName:t=HN,scriptOptions:{nonce:n="",defer:r=!0,async:o=!0,id:i="",appendTo:a,onError:l,crossOrigin:s=""}={}})=>{const u=i||zN;if($N(u))return;const c=document.createElement("script");c.id=u,c.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${c.src}"]`)||(c.defer=!!r,c.async=!!o,n&&(c.nonce=n),s&&(c.crossOrigin=s),l&&(c.onerror=l),("body"===a?document.body:document.getElementsByTagName("head")[0]).appendChild(c))})({onLoadCallbackName:L,scriptOptions:{...r,id:k}})}),[v,E,L,r,k]),(0,n.useEffect)((()=>{P&&!E&&window.turnstile&&N(!0)}),[E,P]),(0,n.useEffect)((()=>{if(!i)return void console.warn("sitekey was not provided");if(!P||!C.current||!E||S.current)return;const e=window.turnstile.render(C.current,R);M.current=e,S.current=!0}),[P,i,R,S,E]),(0,n.useEffect)((()=>{if(window.turnstile&&C.current&&M.current){$N(M.current)&&window.turnstile.remove(M.current);const e=window.turnstile.render(C.current,R);M.current=e,S.current=!0}}),[T,i]),(0,n.useEffect)((()=>{if(window.turnstile&&M.current&&$N(M.current))return a?.(M.current),()=>{M.current&&window.turnstile&&window.turnstile.remove(M.current)}}),[M,a]),(0,n.useEffect)((()=>{x("execute"===o.execution?qN.invisible:"interaction-only"===R.appearance?qN.interactionOnly:qN[y])}),[o.execution,y,R.appearance]),(0,n.useEffect)((()=>{P&&"function"==typeof f&&f()}),[P,f]),(0,Dl.jsx)(BN,{ref:C,as:g,id:A,style:{...w,...m},...b})}));UN.displayName="Turnstile",a(5704);const VN=a(2773);var GN=()=>{const e=ot(),r=e.siteKey,o=e.validated,[i,a]=(0,n.useState)(it()),[l,s]=(0,n.useState)(tt.formsettings),[u,c]=(0,n.useState)(0),[d,p]=(0,n.useState)("settings"),[f,h]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),[v,b]=(0,n.useState)(!1),[y,w]=(0,n.useState)(""),[x,C]=(0,n.useState)(!1),S=(0,n.useRef)(null),E=rt(),N=(e,t)=>{const[r,o]=(0,n.useState)((()=>{const n=localStorage.getItem(e);try{return n?JSON.parse(n):t}catch(n){return console.error(`Error parsing JSON for key ${e}:`,n),t}}));return(0,n.useEffect)((()=>{localStorage.setItem(e,JSON.stringify(r))}),[e,r]),[r,o]},[M,I]=N("selectedTable",l.selectedTable||null),[A,k]=N("whatsappRedirection",l.whatsappRedirection||!1),[P,L]=N("formCustomization",l.formCustomization||!1),[R,T]=N("cloudflareCaptchaEnable",l.cloudflareCaptchaEnable||!1),[D,O]=N("siteKey",l.siteKey||""),[j,F]=N("secretKey",l.secretKey||""),[_,Z]=N("storeleds",l.storeleds||!0),[B,z]=N("metadata",l.metadata||!0),[H,$]=N("leadsinMail",l.leadsinMail||!1),[q,W]=N("leadsinSlack",l.leadsinSlack||!1),[U,V]=N("recipiantslack",l.recipiantslack||""),[G,Y]=N("floatingwidgets",l.floatingwidgets||!1),[K,Q]=N("openInNewTab",l.openInNewTab||!1),[X,J]=N("selectedWhatsapp",l.selectedWhatsapp||!1),[ee,te]=N("whatsappNumber",l.whatsappNumber||""),[ne,re]=N("recipiantmail",l.recipiantmail||""),[oe,ie]=N("submitbtntext",l.submitbtntext||"Send Message"),[ae,le]=N("formheader",l.formheader||"Have question? - Submit the Form"),[se,ue]=N("formcta",l.formcta||"Have queries?"),[ce,de]=N("submitbtnbgcolor",l.submitbtnbgcolor||"#FFA500"),[pe,fe]=N("submitbtntextcolor",l.submitbtntextcolor||"#FFFFFF"),[he,me]=N("submitbtntexthovercolor",l.submitbtntexthovercolor||"#3F98D2"),[ge,ve]=N("headerbackgroundcolor",l.headerbackgroundcolor||"#293239"),[be,ye]=N("headertextcolor",l.headertextcolor||"#FFFFFF"),[we,xe]=N("formfieldtextcolor",l.formfieldtextcolor||"#293239"),[Ce,Se]=N("formbackgroundcolor",l.formbackgroundcolor||"#F7F7F7"),[Ee,Ne]=N("flotingwidgetsbgcolor",l.flotingwidgetsbgcolor||"#0065A0"),[Me,Ie]=N("selectedFont",l.selectedFont||"Arial"),Ae=()=>{c(window.scrollY||document.documentElement.scrollTop)};(0,n.useEffect)((()=>(window.addEventListener("scroll",Ae),()=>{window.removeEventListener("scroll",Ae)})),[]),(0,n.useEffect)((()=>{if(u>=450){const e=document.querySelector(".whatsapp-icon"),t=document.querySelector(".form-preview-panel");e&&(e.style.display="none"),t&&(t.style.display="block")}else{const e=document.querySelector(".whatsapp-icon"),t=document.querySelector(".form-preview-panel");e&&(e.style.display="block"),t&&(t.style.display="none")}}),[u]);const ke=e=>{p(e)};return(0,n.useEffect)((()=>{wp.ajax.send("simpleform_get_tables",{data:{nonce:nt()},success(e){a(e.tables)},error(e){console.error(e)}})}),[]),(0,n.useEffect)((()=>{wp.ajax.send("simpleform_get_settings",{data:{nonce:nt()},success(e){s(e.settings)},error(e){console.error(e)}})}),[]),(0,n.useEffect)((()=>{b(!1)}),[j,D]),(0,t.createElement)("div",{className:"acb_bottom",id:"acb_bottom"},(0,t.createElement)("div",{className:"acb_left"},(0,t.createElement)("div",{className:"tab-headers"},(0,t.createElement)("div",{className:"tab-header "+("settings"===d?"active":""),onClick:()=>ke("settings")},"Settings"),(0,t.createElement)("div",{className:"tab-header "+("whatsApp"===d?"active":""),onClick:()=>ke("whatsApp")},"WhatsApp"),(0,t.createElement)("div",{className:"tab-header "+("form"===d?"active":""),onClick:()=>ke("form")},"Form"),(0,t.createElement)("div",{className:"tab-header "+("captcha"===d?"active":""),onClick:()=>ke("captcha")},"Captcha")),(0,t.createElement)("div",{className:"tab-content settings-tab "+("settings"===d?"active":"")},"settings"===d&&(0,t.createElement)("div",{className:"sf-settings-panel"},(0,t.createElement)("h3",{className:"review-case-title"},"Simple Form settings panel"),(0,t.createElement)("div",{className:"floating-widgets"},(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("p",{className:"NEW_TAG"},"New"),(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"storeleds"},"Store leads in Database:"),(0,t.createElement)(_N,{checked:_,className:"storeleds",name:"storeleds",id:"storeleds",onChange:e=>Z(e)})),(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("p",{className:"NEW_TAG"},"New"),(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"metadata"},"Collect metadata:"),(0,t.createElement)(_N,{checked:B,className:"metadata",name:"metadata",id:"metadata",onChange:e=>z(e)})),(0,t.createElement)("div",{className:"wpnts-switch-review"},E?"":(0,t.createElement)("p",{className:"PRO_TAG Pro_settings"},"PRO"),(0,t.createElement)("p",{className:"NEW_TAG"},"New"),(0,t.createElement)("label",{className:"form-feature-heading "+(E?"":"inactive"),htmlFor:"leadsinMail"},"Get leads in Mail:"),(0,t.createElement)(_N,{checked:H,className:"leadsinMail "+(E?"":"inactive"),name:"leadsinMail",id:"leadsinMail",onChange:e=>{if(!E)return Swal.fire({icon:"warning",title:"Need Pro to access this feature!",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'}),void $(!1);$(e)}})),H&&(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"recipiantmail"},"Recepiant Mail"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",className:"recipiantmail",id:"recipiantmail",name:"recipiantmail",value:ne,onChange:e=>re(e.target.value)}))),(0,t.createElement)("div",{className:"wpnts-switch-review"},E?"":(0,t.createElement)("p",{className:"PRO_TAG Pro_settings"},"PRO"),(0,t.createElement)("p",{className:"NEW_TAG"},"New"),(0,t.createElement)("label",{className:"form-feature-heading "+(E?"":"inactive"),htmlFor:"leadsinSlack"},"Get leads in Slack:"),(0,t.createElement)(_N,{checked:q,className:"leadsinSlack "+(E?"":"inactive"),name:"leadsinSlack",id:"leadsinSlack",onChange:e=>{if(!E)return Swal.fire({icon:"warning",title:"Need Pro to access this feature!",html:'Get Pro: <a href="https://wpxperties.com/" target="_blank">WPXperties</a>'}),void W(!1);W(e)}})),q&&(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"recipiantslack"},"Slack Webhook"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",className:"recipiantslack",id:"recipiantslack",name:"recipiantslack",value:U,onChange:e=>V(e.target.value)}))),(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"floatingwidgets"},"Enable floating widgets:"),(0,t.createElement)(_N,{checked:G,className:"floatingwidgets",name:"floatingwidgets",id:"floatingwidgets",onChange:e=>Y(e)})),(0,t.createElement)("div",{className:"settings-panel"},G&&(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"selectedTable"},"Select Form to display as floating widgets"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("select",{id:"selectedTable",name:"selectedTable",value:M||"",onChange:e=>I(parseInt(e.target.value,10))},(0,t.createElement)("option",{value:""},"Select a form"),i.map((e=>(0,t.createElement)("option",{key:e.id,value:e.id},e.form_name))))),(0,t.createElement)("div",{className:"seperationLine"},(0,t.createElement)("hr",null))))))),(0,t.createElement)("div",{className:"tab-content whatsApp-tab "+("whatsApp"===d?"active":"")},"whatsApp"===d&&(0,t.createElement)("div",{className:"sf-whatsApp-panel"},(0,t.createElement)("h3",{className:"review-case-title"},"Simple Form whatsApp Settings"),(0,t.createElement)("div",{className:"whatsApp-redirection"},(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"whatsappRedirection"},"Enable WhatsApp redirection:"),(0,t.createElement)(_N,{checked:A,className:"whatsappRedirection",name:"whatsappRedirection",id:"whatsappRedirection",onChange:e=>k(e)})),(0,t.createElement)("div",{className:"settings-panel"},A&&(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"webhook"},"WhatsApp number"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",placeholder:"Add country code ex. +88013071089564",name:"webhook",value:ee,onChange:e=>te(e.target.value)}))),A&&(0,t.createElement)("div",{className:"sf-customization"},(0,t.createElement)("div",{className:"formInput open-new-tab"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"openinnewtab"},"Open in new tab"),(0,t.createElement)("input",{type:"checkbox",name:"openinnewtab",checked:K,onChange:e=>Q(e.target.checked)})),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"selectedWhatsapp"},"Select Forms for WhatsApp redirection:"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("select",{id:"selectedWhatsapp",name:"selectedWhatsapp",multiple:!0,value:X||[],onChange:e=>{const t=Array.from(e.target.selectedOptions,(e=>e.value));J(t)}},i.map((e=>(0,t.createElement)("option",{key:e.id,value:e.id},e.form_name)))))),(0,t.createElement)("div",{className:"seperationLine"},(0,t.createElement)("hr",null))))))),(0,t.createElement)("div",{className:"tab-content form-tab "+("form"===d?"active":"")},"form"===d&&(0,t.createElement)("div",{className:"sf-form-panel"},(0,t.createElement)("h3",{className:"review-case-title"},"Simple Form customization panel"),(0,t.createElement)("div",{className:"form-customization"},(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"formCustomization"},"Enable Form customization:"),(0,t.createElement)(_N,{checked:P,className:"formCustomization",name:"formCustomization",id:"formCustomization",onChange:e=>L(e)})),(0,t.createElement)("div",{className:"settings-panel"},P&&(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"webhook"},"Submit button text"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",name:"interval_review",value:oe,onChange:e=>ie(e.target.value)}))),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"webhook"},"Form Header text"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",name:"interval_review",value:ae,onChange:e=>le(e.target.value)}))),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"webhook"},"Form CTA text"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{type:"text",name:"interval_review",value:se,onChange:e=>ue(e.target.value)}))),(0,t.createElement)("div",{className:"seperationLine"},(0,t.createElement)("hr",null)),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"selectedFont"},"Select Font"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("select",{id:"selectedFont",name:"selectedFont",value:Me,onChange:e=>{Ie(e.target.value)}},(0,t.createElement)("option",{value:""},"Select a font"),["Arial","Verdana","Times New Roman","Helvetica","Courier New","circular","auto","cursive","emoji","fangsong","fantasy","inherit","initial","monospace","system-ui","ui-monospace","unset"].map((e=>(0,t.createElement)("option",{key:e,value:e},e)))))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"flotingwidgetsbgcolor"},"Floting widgets color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{className:"colorSelectionformtext",type:"color",name:"flotingwidgetsbgcolor",value:Ee,onChange:e=>Ne(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"headertextcolor"},"Header text color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{className:"colorSelectionformtext",type:"color",name:"headertextcolor",value:be,onChange:e=>ye(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"headerbackgroundcolor"},"header background color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{className:"colorSelectionbg",type:"color",name:"headerbackgroundcolor",value:ge,onChange:e=>ve(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"formbackgroundcolor"},"Form background color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{className:"colorSelectionbg",type:"color",name:"formbackgroundcolor",value:Ce,onChange:e=>Se(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"formfieldtextcolor"},"Form fields text/lable color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{className:"colorSelectionformtextcolor",type:"color",name:"formfieldtextcolor",value:we,onChange:e=>xe(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"submitbtnbgcolor"},"Submit button BG color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{id:"submitbtnbgcolor",className:"colorSelectionbg",type:"color",name:"submitbtnbgcolor",value:ce,onChange:e=>de(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"submitbtntextcolor"},"Submit button text color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{id:"submitbtntextcolor",className:"colorSelectiontext",type:"color",name:"submitbtntextcolor",value:pe,onChange:e=>fe(e.target.value)}))),(0,t.createElement)("div",{className:"formInput simpleform-colorplate"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"submitbtntexthovercolor"},"Submit button hover color"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{id:"submitbtntexthovercolor",className:"colorSelectionhover",type:"color",name:"submitbtntexthovercolor",value:he,onChange:e=>me(e.target.value)}))),(0,t.createElement)("div",{className:"seperationLine"},(0,t.createElement)("hr",null))))))),(0,t.createElement)("div",{className:"tab-content captcha-tab "+("captcha"===d?"active":"")},"captcha"===d&&(0,t.createElement)("div",{className:"cache-panel"},(0,t.createElement)("h3",{className:"review-case-title"},"Simple Form captcha panel"),(0,t.createElement)("div",{className:"form-customization"},(0,t.createElement)("div",{className:"wpnts-switch-review"},(0,t.createElement)("label",{className:"form-feature-heading",htmlFor:"cloudflareCaptchaEnable"},"Enable Cloudflare Captcha:"),(0,t.createElement)(_N,{checked:R,className:"cloudflareCaptchaEnable",name:"cloudflareCaptchaEnable",id:"cloudflareCaptchaEnable",onChange:e=>{T(e)}})),(0,t.createElement)("div",{className:"settings-panel"},R&&(0,t.createElement)("div",null,D&&r&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(UN,{ref:S,siteKey:D,onError:e=>{w(e)},onSuccess:e=>{w(e)},options:{theme:"light"}})),(0,t.createElement)("div",{className:"cloudflare-get-key"},(0,t.createElement)(ZN.Z,{className:"key-icon"}),(0,t.createElement)("span",null,(0,t.createElement)("a",{target:"_blank",href:"https://dash.cloudflare.com/?to=/:account/turnstile",rel:"noreferrer",className:"get-keys"},"Click here")," to get your ",(0,t.createElement)("strong",null,"Site Key")," and ",(0,t.createElement)("strong",null,"Secret Key")," then paste them below")),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"siteKey"},"Site Key"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{id:"siteKey",className:"colorSelectionhover",type:"text",name:"siteKey",value:D,onChange:e=>{O(e.target.value)}}))),(0,t.createElement)("div",{className:"formInput"},(0,t.createElement)("label",{className:"form-feature-sub-heading",htmlFor:"secretKey"},"Secret Key"),(0,t.createElement)("div",{className:"wpnts-setting"},(0,t.createElement)("input",{id:"secretKey",className:"colorSelectionhover",type:"text",name:"secretKey",value:j,onChange:e=>{F(e.target.value)}}))),f&&(0,t.createElement)("div",{className:"ErrorMessage"},(0,t.createElement)("h5",null,"Error! Your Secret Key is not match with the Cloudflare Turnstile! ",(0,t.createElement)("a",{href:"https://dash.cloudflare.com/?to=/:account/turnstile",rel:"noreferrer",target:"_blank"},"view"))," "),m&&!f&&(0,t.createElement)("div",{className:"SuccessMessage"},(0,t.createElement)("h5",null,"Thanks! Click to verify and connect the Cloudflare Turnstile!")," "),!m&&(0,t.createElement)("button",{className:"ConnectCaptcha-btn",onClick:()=>{""!==D&&""!==j?Swal.fire({text:"Connect your site with CLoudFlare!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Connect!"}).then((e=>{e.isConfirmed&&wp.ajax.send("simpleform_store_captcha",{data:{nonce:nt(),cloudflareCaptchaEnable:R,siteKey:D,secretKey:j},success({validated:e}){g(!0),C(e),h(!1),Swal.fire({position:"center",icon:"success",title:"Connected",showConfirmButton:!1,timer:1500})},error({message:e}){h(!0),g(!1),console.log(e)}})})):Swal.fire({icon:"warning",title:"Need keys to connect!",html:'<span><a target="_blank" href="https://dash.cloudflare.com/?to=/:account/turnstile" rel="noreferrer" className="get-keys">Click here</a> to get your <strong>Site Key</strong> and <strong>Secret Key</strong> then paste them below</span>'})},type:"button"},"Verify"),m&&(0,t.createElement)("button",{className:"ConnectCaptcha-btn",onClick:()=>{b(!v),""!==j?Swal.fire({text:"Attempt to connect!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Connect!"}).then((e=>{e.isConfirmed&&wp.ajax.send("simpleform_connect_captcha",{data:{nonce:nt(),token:y,secretKey:j,siteKey:D},success({validated:e}){b(!0),C(e),h(!1),Swal.fire({position:"center",icon:"success",title:"Connected",showConfirmButton:!1,timer:1500})},error({message:e}){h(!0),b(!1),C(!1),console.log(e)}})})):Swal.fire({icon:"warning",title:"Need keys to connect!",html:'<span><a target="_blank" href="https://dash.cloudflare.com/?to=/:account/turnstile" rel="noreferrer" className="get-keys">Click here</a> to get your <strong>Site Key</strong> and <strong>Secret Key</strong> then paste them below</span>'})},type:"button"},"  ",v&&o?"Connected":"Connect"),(0,t.createElement)("div",{className:"seperationLine"},(0,t.createElement)("hr",null)))))))),(0,t.createElement)("div",{className:"acb_right"},(0,t.createElement)("form",{onSubmit:e=>{e.preventDefault();const t={whatsappRedirection:A,formCustomization:P,cloudflareCaptchaEnable:R,storeleds:_,metadata:B,recipiantmail:ne,leadsinMail:H,recipiantslack:U,leadsinSlack:q,floatingwidgets:G,whatsappNumber:ee,openInNewTab:K,selectedTable:M,selectedWhatsapp:X,submitbtntext:oe,selectedFont:Me,formcta:se,formheader:ae,flotingwidgetsbgcolor:Ee,formbackgroundcolor:Ce,formfieldtextcolor:we,headerbackgroundcolor:ge,headertextcolor:be,submitbtntextcolor:pe,submitbtnbgcolor:ce,submitbtntexthovercolor:he,siteKey:D,secretKey:j};Swal.fire({text:"Are you done!",icon:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Save!"}).then((e=>{e.isConfirmed&&wp.ajax.send("simpleform_save_settings",{data:{nonce:nt(),settings:t},success({}){wp.ajax.send("simpleform_get_settings",{data:{nonce:nt()},success(e){s(e.settings)},error(e){console.error(e)}}),Swal.fire({position:"center",icon:"success",title:"Your Form has been saved",showConfirmButton:!1,timer:1500})},error({message:e}){}})}))},id:"wpntswebhook"},(0,t.createElement)("button",{type:"submit",className:"save-webhook"},"SAVE")),(0,t.createElement)("div",{className:"scf-form-preview"},(0,t.createElement)("div",{className:"laptopscreen"},(0,t.createElement)("div",{className:"preview-panel"},(0,t.createElement)("img",{style:{width:"80%"},src:VN,alt:"Laptop Screen"}),(0,t.createElement)("button",{type:"button",className:"whatsapp-icon",id:"jumping-whatsapp"},(0,t.createElement)("svg",{width:"45",height:"45",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{fill:"none","fill-rule":"evenodd"},(0,t.createElement)("circle",{cx:"16",cy:"16",r:"16",fill:Ee}),(0,t.createElement)("path",{fill:"#FFF",d:"M16.28 23.325a11.45 11.45 0 0 0 2.084-.34a5.696 5.696 0 0 0 2.602.17a.627.627 0 0 1 .104-.008c.31 0 .717.18 1.31.56v-.625a.61.61 0 0 1 .311-.531c.258-.146.498-.314.717-.499c.864-.732 1.352-1.708 1.352-2.742c0-.347-.055-.684-.159-1.006c.261-.487.472-.999.627-1.53A4.59 4.59 0 0 1 26 19.31c0 1.405-.654 2.715-1.785 3.673a5.843 5.843 0 0 1-.595.442v1.461c0 .503-.58.792-.989.493a15.032 15.032 0 0 0-1.2-.81a2.986 2.986 0 0 0-.368-.187c-.34.051-.688.077-1.039.077c-1.412 0-2.716-.423-3.743-1.134zm-7.466-2.922C7.03 18.89 6 16.829 6 14.62c0-4.513 4.258-8.12 9.457-8.12c5.2 0 9.458 3.607 9.458 8.12c0 4.514-4.259 8.121-9.458 8.121c-.584 0-1.162-.045-1.728-.135c-.245.058-1.224.64-2.635 1.67c-.511.374-1.236.013-1.236-.616v-2.492a9.27 9.27 0 0 1-1.044-.765zm4.949.666c.043 0 .087.003.13.01c.51.086 1.034.13 1.564.13c4.392 0 7.907-2.978 7.907-6.589c0-3.61-3.515-6.588-7.907-6.588c-4.39 0-7.907 2.978-7.907 6.588c0 1.746.821 3.39 2.273 4.62c.365.308.766.588 1.196.832c.241.136.39.39.39.664v1.437c1.116-.749 1.85-1.104 2.354-1.104zm-2.337-4.916c-.685 0-1.24-.55-1.24-1.226c0-.677.555-1.226 1.24-1.226c.685 0 1.24.549 1.24 1.226c0 .677-.555 1.226-1.24 1.226zm4.031 0c-.685 0-1.24-.55-1.24-1.226c0-.677.555-1.226 1.24-1.226c.685 0 1.24.549 1.24 1.226c0 .677-.555 1.226-1.24 1.226zm4.031 0c-.685 0-1.24-.55-1.24-1.226c0-.677.555-1.226 1.24-1.226c.685 0 1.24.549 1.24 1.226c0 .677-.555 1.226-1.24 1.226z"}))),se&&(0,t.createElement)("span",{className:"cta-text",style:{fontFamily:Me}},se)),(0,t.createElement)("div",{className:"form-preview-panel"},(0,t.createElement)("div",{className:"form-content active",style:{height:"210px",fontFamily:Me}},(0,t.createElement)("header",{className:"clearfix",style:{backgroundColor:ge,color:be}},(0,t.createElement)("h4",{className:"offline"},(0,t.createElement)("i",{className:"fa fa-envelope"})," ",ae),(0,t.createElement)("span",{className:"sf-close"},"X")),(0,t.createElement)("div",{className:"simple_form_container simple_form_container_floating",style:{backgroundColor:Ce,color:we}},(0,t.createElement)("form",{className:"simple_form"},(0,t.createElement)("div",{className:"simple_form_content"},(0,t.createElement)("div",{className:"ui segment"},(0,t.createElement)("div",{className:"text-fields"},(0,t.createElement)("label",{htmlFor:"text-input-1704554209165"},"Dummy Input"),(0,t.createElement)("input",{id:"text-input-1704554209165",type:"text",name:"name-text-input-1704554209165",placeholder:"Dummy text...",className:"custom-input",value:"",required:!0})),(0,t.createElement)("div",{className:"text-fields"},(0,t.createElement)("label",{htmlFor:"number-input-1704554234877"},"Dummy Message"),(0,t.createElement)("textarea",{id:"number-input-1704554234877",name:"number-text-input-1704554234877",placeholder:"Dummy content...",className:"custom-input",value:"",required:!0})),(0,t.createElement)("div",{className:"text-fields"},(0,t.createElement)("button",{style:{backgroundColor:ce,color:pe,":hover":{backgroundColor:he}},type:"button",className:"submit-button main-search-btn"},oe))),(0,t.createElement)("br",null),(0,t.createElement)("div",null)))))))))))},YN=()=>(0,t.createElement)(He,{className:"documentation-page-wrap documentation-page"},(0,t.createElement)($e,{customClass:"documentation-flex-row"},(0,t.createElement)(ze,{lg:"3",sm:"4"},(0,t.createElement)(et,{customClass:"documentation-card"},(0,t.createElement)("a",{href:"",target:"_blank",className:"single-doc-item"}),ll,(0,t.createElement)("h4",null,"Documentation"))),(0,t.createElement)(ze,{lg:"3",sm:"4"},(0,t.createElement)(et,{customClass:"documentation-card"},(0,t.createElement)("a",{href:"",target:"_blank",className:"single-doc-item"}),sl,(0,t.createElement)("h4",null,"Video Tutorial"))),(0,t.createElement)(ze,{lg:"3",sm:"4"},(0,t.createElement)("a",{href:"",target:"_blank",className:"documentation-contact"},ul,(0,t.createElement)("h4",null,"Need more help?"),(0,t.createElement)("p",null,"Get professional help via our ticketing system")))));wp.element.render((0,t.createElement)((function(t){let{basename:r,children:a,future:f,window:h}=t,m=n.useRef();var g;null==m.current&&(m.current=(void 0===(g={window:h,v5Compat:!0})&&(g={}),function(t,n,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:p=!1}=a,f=s.history,h=e.Pop,m=null,g=v();function v(){return(f.state||{idx:null}).idx}function b(){h=e.Pop;let t=v(),n=null==t?null:t-g;g=t,m&&m({action:h,location:w.location,delta:n})}function y(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:d(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(o({},f.state,{idx:g}),""));let w={get action(){return h},get location(){return t(s,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(i,b),m=e,()=>{s.removeEventListener(i,b),m=null}},createHref(e){return n(s,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){h=e.Push;let o=c(w.location,t,n);r&&r(o,t),g=v()+1;let i=u(o,g),a=w.createHref(o);try{f.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}p&&m&&m({action:h,location:w.location,delta:1})},replace:function(t,n){h=e.Replace;let o=c(w.location,t,n);r&&r(o,t),g=v();let i=u(o,g),a=w.createHref(o);f.replaceState(i,"",a),p&&m&&m({action:h,location:w.location,delta:0})},go(e){return f.go(e)}};return w}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:o},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)+")")}),g)));let v=m.current,[b,y]=n.useState({action:v.action,location:v.location}),{v7_startTransition:w}=f||{},x=n.useCallback((e=>{w&&Ge?Ge((()=>y(e))):y(e)}),[y,w]);return n.useLayoutEffect((()=>v.listen(x)),[v,x]),n.createElement(ae,{basename:r,children:a,location:b.location,navigationType:b.action,navigator:v,future:f})}),null,(0,t.createElement)((function(){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(He,null,(0,t.createElement)($e,null,(0,t.createElement)(ze,{xs:"12"},(0,t.createElement)(le,null,(0,t.createElement)(ie,{path:"/",element:(0,t.createElement)(gt,null)}),(0,t.createElement)(ie,{path:"/create-form",element:(0,t.createElement)(ml,null)}),(0,t.createElement)(ie,{path:"/edit/:id",element:(0,t.createElement)(gl,null)}),(0,t.createElement)(ie,{path:"/Leads",element:(0,t.createElement)(RN,null)}),(0,t.createElement)(ie,{path:"/settings",element:(0,t.createElement)(GN,null)}),(0,t.createElement)(ie,{path:"/doc",element:(0,t.createElement)(YN,null)})),(0,t.createElement)(Pe,{position:"top-right",autoClose:2e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,pauseOnHover:!0,theme:"colored"})))))}),null)),document.getElementById("simpleform-app-root"))}()}();
     151    `),,null)})),(0,t.createElement)(Pe,{position:"top-right",autoClose:2e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,pauseOnHover:!0,theme:"colored"})))))}),null)),document.getElementById("simpleform-app-root"))}()}();
  • simple-form/trunk/readme.txt

    r3038239 r3038864  
    55Tested up to: 6.4
    66Requires PHP: 5.4 or higher
    7 Stable Tag: 2.9.0
     7Stable Tag: 2.9.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    182182== Changelog ==
    183183
     184
     185
     186
     187
     188
     189
     190
     191
    184192= 2.9.0 – 20 Feb 2024 =
    185193* New: Introduces Heading, Label, Links, Video, Audio and iFrame fields
  • simple-form/trunk/simple-form.php

    r3038119 r3038864  
    1111 * Plugin URI: https://github.com/sabbirsam/Simple-Form/tree/free
    1212 * Description: It's a simple contact form with a drag-and-drop feature that allows you to quickly design and build forms. It's also free to collect leads and deliver them directly to Social site.
    13  * Version:           2.9.0
     13 * Version:           2.9.
    1414 * Requires at least: 5.9 or higher
    1515 * Requires PHP:      5.4 or higher
     
    6363defined('ABSPATH') or die('Hey, what are you doing here? You silly human!');
    6464
    65 define( 'SIMPLEFORM_VERSION', '2.9.0' );
     65define( 'SIMPLEFORM_VERSION', '2.9.' );
    6666define( 'SIMPLEFORM_BASE_PATH', plugin_dir_path( __FILE__ ) );
    6767define( 'SIMPLEFORM_BASE_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.